Conversation
- theme.ts: replace ThemeResult with discriminated union ResolvedTheme, remove dead themeId field, move DEFAULT_THEMES here, handle invalid configs with console.warn instead of sentinel nulls - options.ts: accept ShikiInputOptions instead of full HighlighterOptions, remove OMIT_KEYS/underscore destructuring, use positional params - highlight.ts: remove dead ResolvedHighlight type, move HighlighterFactory to types.ts, type shikiOptions as CodeToHastOptions - types.ts: add HighlighterFactory, ShikiInputOptions, tighten HighlightedCode from ReactNode to ReactElement - hook.ts: destructure hook-only keys before passing to buildShikiOptions, remove type cast on return Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
🦋 Changeset detectedLatest commit: 6adef49 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
Claude finished @AVGVSTVS96's task —— View job Code Review Complete ✅This is an excellent refactoring that significantly improves code quality, robustness, and maintainability. The changes demonstrate thoughtful architecture decisions and solid engineering practices. Review SummaryStrengths ✅
Code Quality AssessmentArchitecture & Design ⭐⭐⭐⭐⭐
Type Safety ⭐⭐⭐⭐⭐
Async Handling ⭐⭐⭐⭐⭐
Performance ⭐⭐⭐⭐⭐
Error Handling & Resilience ⭐⭐⭐⭐⭐
Specific Technical Improvements
Test Coverage Analysis ⭐⭐⭐⭐⭐Comprehensive test additions demonstrate strong testing discipline:
Documentation & Changeset ✅
Biome Configuration ✅Excellent linting improvements:
Security & Performance Assessment ✅
Minor Suggestions
VerdictThis is exemplary refactoring work. The code demonstrates:
Strongly recommend approval 🚀 |
7ad3821 to
8c412b5
Compare
8c412b5 to
e169c74
Compare
51162f7 to
6adef49
Compare

Async robustness improvements
Architecture refactoring
highlight.tsmodule withgetEmbeddedLanguagesandresolveHighlightfunctionsThemeResultwith discriminated unionResolvedThemefor better type safetyDEFAULT_THEMESto theme module and handle invalid multi-theme configs with console warningsbuildShikiOptionsto accept resolved theme and use positional parametersHighlightedCodetype fromReactNodetoReactElement | string | nullBiome configuration updates
noUnusedImportsandnoUnusedVariablesas errorsFragmentor any patternpackage/distand remove wildcards from exclusionsnoExplicitAnyas error inpackage/src/**and disable inpackage/tests/**Plugin improvements
rehypeInlineCodePropertywith proper type checking for parent elementsTest enhancements