Repository navigation
feat(syntax-highlighter): add exact Octane binding - #546
jonkwheeler wants to merge 42 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Resolve inventory, eval manifest, hook-form parity lockfile, and root package scripts while keeping react-syntax-highlighter coverage. Co-authored-by: Cursor <[email protected]>
Regenerate lockfile hashes and inventory for react-syntax-highlighter. Co-authored-by: Cursor <[email protected]>
Resolve inventory, eval manifest, hook-form parity lockfile, and root package scripts while keeping react-syntax-highlighter coverage. Co-authored-by: Cursor <[email protected]>
Regenerate lockfile hashes and inventory for react-syntax-highlighter. Co-authored-by: Cursor <[email protected]>
* perf: skip unchanged conditional keyed rows * fix: exclude Activity boundaries from keyed row memoization
Resolve inventory and root scripts while keeping react-syntax-highlighter coverage.
|
REVIEW WITHDRAWN |
|
READY FOR REVIEW |
|
READY FOR REVIEW |
|
REVIEW WITHDRAWN Withdrawing ready signal pending package rename per maintainer feedback: drop redundant |
Co-authored-by: Cursor <[email protected]>
…hter Drop the redundant react segment from the Octane package id and folder under the @octanejs namespace; keep upstream react-syntax-highlighter dependency names. Co-authored-by: Cursor <[email protected]>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.
Reviewed by Cursor Bugbot for commit c053ddb. Configure here.
Point adapted/differential/browser parity lanes at the renamed syntax-highlighter* Vitest projects so fail-closed inventory generation and harness list --project lookups resolve. Co-authored-by: Cursor <[email protected]>
|
Renamed READY FOR REVIEW |
|
REVIEW WITHDRAWN Restoring currency after main moved (mergeStateStatus DIRTY). Will re-signal when CLEAN + Bugbot clear. |
Resolve evals manifest conflict via pnpm sync after main moved. Co-authored-by: Cursor <[email protected]>
|
Currency pass complete: merged latest READY FOR REVIEW |
|
REVIEW WITHDRAWN Restoring currency after main moved again (Version Packages #682). Will re-signal when CLEAN + Bugbot clear. |
Absorb Version Packages (octanejs#682) and resolve generated inventory/evals conflicts via pnpm sync. Co-authored-by: Cursor <[email protected]>
|
Thank you for your contribution! This pull request was incorporated into |

Summary
Published as
@octanejs/syntax-highlighter(packages/syntax-highlighter).Octane applications can now migrate from
[email protected]package-for-package, including all eight component variants, registration and renderer APIs, and the complete published language/style/build deep-import surface, without carrying React in the runtime graph.The binding retains the upstream highlighting engines and generated data while replacing only React-owned rendering and asynchronous lifecycle seams. Its fail-closed parity contract pins the npm artifact and source commit, executes all 19 upstream suites and 51 test identities, and rejects stale, missing, extra, renamed, or colliding generated evidence.
The public surface contains 658 paths per ESM/CJS family and 2,634 exports. Paired React/Octane evidence covers runtime output, types, SSR, hydration adoption, async races and retry behavior, custom renderers, and real Chromium/Firefox layout and selection behavior.
Validation
pnpm format:checkpnpm typecheckpnpm testCI=true pnpm packages:pack:check— 70 tarballs and 580 raw TSRX consumers; external client/server builds and executed SSR passed without Reactgit diff --checkRisk / follow-ups
children={source}because nested component children compile to an opaque renderer block rather than inspectable source text.PreTag/CodeTag; React class components require a function adapter.dist/cjs/*specifiers are preserved as package paths, while module-format execution claims remain limited to the executable import/require evidence recorded by the parity and packed-consumer gates.Provenance
agent-authored)Note
Medium Risk
Large new public surface (thousands of exports) with SSR, hydration, and async race behavior; risk is mitigated by fail-closed parity lanes and packed-consumer checks, but regressions would affect migration paths from the React package.
Overview
Introduces
@octanejs/syntax-highlighter(0.1.0) as a drop-in Octane port of[email protected], including default/Light/Prism sync and async variants, registration APIs, custom renderers/tags, and 2,634 generated deep-import paths (languages, styles, ESM/CJS aliases).The binding keeps upstream highlighting data and replaces only React rendering and async lifecycle. Documented Octane deltas:
children={source}in.tsrxfor inspectable code text, andPreTag/CodeTaglimited to native tags or function components (no React class components without an adapter). Sync paths SSR without DOM globals; async variants use a deterministic fallback then hydrate by adopting existing markup.Repo wiring adds a patch changeset, generated binding/inventory docs (61 bindings), CLI catalog +
react-syntax-highlighter→@octanejs/syntax-highlightermapping, MCP bridge rewrite, an implementation plan, and lockfile hash bumps in shared parity audit metadata where the workspace lockfile changed.Reviewed by Cursor Bugbot for commit 4196abc. Bugbot is set up for automated code reviews on this repo. Configure here.