Repository navigation
feat(react-markdown): port complete public contract - #543
jonkwheeler wants to merge 40 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-markdown coverage. Co-authored-by: Cursor <[email protected]>
Regenerate lockfile hashes and inventory for react-markdown. Co-authored-by: Cursor <[email protected]>
Resolve inventory, eval manifest, hook-form parity lockfile, and root package scripts while keeping react-markdown coverage. Co-authored-by: Cursor <[email protected]>
Regenerate lockfile hashes and inventory for react-markdown. Co-authored-by: Cursor <[email protected]>
Resolve inventory, eval manifest, hook-form parity lockfile, and root package scripts while keeping react-markdown coverage.
Regenerate lockfile hashes and inventory for react-markdown.
Wire @octanejs/react-markdown into the shared bindings typecheck gate so CI covers package and consumer types. Co-authored-by: Cursor <[email protected]>
|
REVIEW WITHDRAWN |
|
READY FOR REVIEW |
|
Addressing open leonidaz parity-control threads (compiler-program membership + type-fixture classifications) and renaming REVIEW WITHDRAWN |
Rename @octanejs/react-markdown to @octanejs/markdown, verify type-lane compiler-program membership against parsed tsconfigs, and classify the repo-authored type fixtures exactly once. Co-authored-by: Cursor <[email protected]>
Remap adapted runtime ids after the package path move, register react-markdown in the MCP/CLI catalog as @octanejs/markdown, and keep type-lane compiler-program membership checks green. Co-authored-by: Cursor <[email protected]>
|
Renamed READY FOR REVIEW |
Merge origin/main to restore branch currency, add markdown-react-oracle catalog with literal @types/[email protected] and @types/[email protected] pins, and regenerate inventories via pnpm sync. Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
|
Merged latest origin/main, pinned exact type-oracle versions via READY FOR REVIEW |
|
Branch is BEHIND main. Withdrawing readiness until branch currency is restored and Bugbot is clean on the new head. REVIEW WITHDRAWN |
|
Updated branch via gh pr update-branch (merged latest main docs commit). Bugbot is clean on this head with no unresolved threads. READY FOR REVIEW |
|
Thank you for your contribution! This pull request was incorporated into |
Summary
Applications using
react-markdowncan migrate through the ordinary package/import mapping to@octanejs/markdownwithout replacing their Unified plugins, component mappings, URL policy, or sync/async rendering model. The binding covers the pinned[email protected]default export,MarkdownAsync,MarkdownHooks,defaultUrlTransform, and all six public types while preserving the upstream MIT source and license evidence.Parity is fail-closed rather than inferred from a sample: the harness executes all 87 pristine upstream identities, maps every upstream case injectively to maintained Octane evidence, inventories 174 adapted runtime identities across 14 files, and pairs the public type surface with pristine and TSRX-aware compiler lanes. Async SSR replay support landed separately in #506 and is now consumed from
main.Session-settled decisions carried from planning: ship an equivalent mapped package rather than an adjacent Markdown renderer (user-directed); reuse Octane's established HAST projection seam and preserve distinct
react-markdownpolicy (user-approved).Validation
pnpm format:checkpnpm typecheckpnpm testCI=true pnpm --filter @octanejs/markdown test— 87/87 pristine upstream identities and 166/166 package tests passed, including SSR, hydration, async lifecycle, differential, adoption, and crosswalk coverageCI=true pnpm markdown:typecheck— pristine/adapted public consumer types passednode --test scripts/react-parity/harness-lib.test.mjs— 32/32 shared fail-closed harness tests passedCI=true pnpm react-parity:check— 5,345 stable and 5,413 canary cases currentCI=true pnpm packages:pack:check— 70 package tarballs validated; 581 raw TSRX source files preserved; packed SSR/build consumers passedpnpm syncpassedRisk / follow-ups
The highest-risk surface is asynchronous plugin/component rendering. The required evidence covers rejection propagation, stale-run cancellation, unmount safety, SSR replay, hydration adoption, and exact React differential output; the PR remains draft for current-head automated review and maintainer feedback before any readiness promotion.
Provenance
agent-authored)Note
Medium Risk
Large new binding with security-sensitive URL/raw-HTML behavior and async/hooks lifecycle; risk is mitigated by exhaustive parity crosswalks and differential tests, but migration surface and renderer divergences still warrant careful review.
Overview
Introduces
@octanejs/markdown, a source-compatible Octane port of[email protected], so apps can swap the dependency/import (react-markdown→@octanejs/markdown) and keep Unified plugins, component maps, URL transforms, and the sync / async / hooks APIs.The package vendors pinned upstream source and tests, ships
Markdown,MarkdownAsync,MarkdownHooks,defaultUrlTransform, and the public types, and wires fail-closed parity: all 87 upstreamtest.jsxcases map to adapted tests via crosswalk/audit JSON, plus pristine React lanes, differential processor/URL tests, SSR/hydration, and hooks lifecycle coverage. Documented divergences include Octane render types, no React 19 image preload hints on SSR, andMarkdownAsyncreturning an awaitable descriptor instead of throwing on sync render when suspending.Repo integration updates generated binding/package inventories (61 bindings), CLI migration map,
markdown:typecheckin rootbindings:typecheck, react-parity harness hooks, a patch changeset, README/security notes, and an implementation plan underdocs/plans/.Reviewed by Cursor Bugbot for commit ed29198. Bugbot is set up for automated code reviews on this repo. Configure here.