Repository navigation
feat(react-pdf): add exact Octane binding - #559
jonkwheeler wants to merge 28 commits into
Conversation
Prove the PDF.js client/server architecture before broad parity work, then add the initial Document, Page, Thumbnail, and Outline contract with real worker, layer, SSR, hydration, React differential, and packaging evidence.
|
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-pdf coverage. Co-authored-by: Cursor <[email protected]>
Regenerate lockfile hashes and inventory for react-pdf. Co-authored-by: Cursor <[email protected]>
Resolve inventory, eval manifest, hook-form parity lockfile, and root package scripts while keeping react-pdf coverage. Co-authored-by: Cursor <[email protected]>
Regenerate lockfile hashes and inventory for react-pdf. Co-authored-by: Cursor <[email protected]>
Resolve inventory, eval manifest, hook-form parity lockfile, and root package scripts while keeping react-pdf coverage.
Regenerate lockfile hashes and inventory for react-pdf.
Resolve inventory and root scripts while keeping react-pdf coverage.
Regenerate lockfile hashes and Vitest evidence for react-pdf.
|
READY FOR REVIEW |
|
REVIEW WITHDRAWN Branch is DIRTY vs main; withdrawing readiness before merging origin/main. |
Resolve inventory, workspace, playground catalog, and lockfile while keeping react-pdf coverage. Co-authored-by: Cursor <[email protected]>
Regenerate lockfile hashes and Vitest evidence for react-pdf. Co-authored-by: Cursor <[email protected]>
|
READY FOR REVIEW |
Add a pristine Vitest browser lane for the full upstream suite, replace collapsed case-map claims with one-for-one or pending dispositions, point type lanes at the upstream and Octane package compile programs, and keep SSR/feasibility/hydration/packed coverage outside parity accounting. Co-authored-by: Cursor <[email protected]>
Resolve currency conflicts with animejs landing on main and refresh parity lockfile evidence hashes. Co-authored-by: Cursor <[email protected]>
|
READY FOR REVIEW |
leonidaz
left a comment
There was a problem hiding this comment.
React parity audit review only; no tests were run.
Record structural adapted-evidence digests and exhaustive authored-test provenance so parity claims fail closed when the evidence drifts. Co-authored-by: Cursor <[email protected]>
|
Addressed the five parity-audit review threads in 544a28f: adapted evidence digests and negative controls, honest repo-authored type lanes, exhaustive test classifications, immutable React oracle documentation, and structured divergences. Validation passed locally; the PR remains draft. |
…nejs#559) Bugbot found selective expect/string digests could miss hollowed-out adapted cases. Digest the full normalized callback body and add negative controls for call-subject and numeric rewrites. Co-authored-by: Cursor <[email protected]>
|
Addressed Cursor Bugbot finding on adapted evidence digests: |
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 d8e9d36. Configure here.
…js#559) Only strip statement terminators outside quotes so data-URI `;base64` / `;filename=` fixture drift still fails the adapted evidence crosswalk. Co-authored-by: Cursor <[email protected]>
|
Addressed Cursor Bugbot finding on digest semicolon stripping: statement terminators are removed only outside quotes, preserving data-URI fixture separators. |
|
READY FOR REVIEW |
|
REVIEW WITHDRAWN |
|
READY FOR REVIEW |
| "environment": "workspace-node", | ||
| "project": "react-pdf", | ||
| "evidenceOrigin": "upstream-suite", | ||
| "notes": "Runs the one-for-one adapted private upstream helpers; remaining upstream identities are explicit pending-adaptation dispositions in audit/case-map.json.", |
There was a problem hiding this comment.
This required adapted lane still covers only 8 of 182 upstream identities; the other 174 are recorded as pending-adaptation. A pending marker is not verified adapted evidence or a genuine not-applicable disposition, so this leaves almost the entire upstream runtime suite unported while the manifest presents the lane as required parity evidence. Please adapt and execute those identities, or give each genuinely inapplicable case a specific allowed disposition and reason before treating this port as review-complete.
There was a problem hiding this comment.
This required adapted lane still covers only 8 of 182 upstream identities; the other 174 are recorded as
pending-adaptation.
Acknowledged and still open. The 8 adapted cases remain the private utility/Ref evidence; the other 174 are still pending-adaptation because one-for-one Octane adaptations of the Vitest browser suite are not landed yet.
Options:
- Adapt and execute all 174 identities under the required adapted-octane lane (large parity scope).
- Give each genuinely inapplicable case a specific allowed disposition + reason (not
pending-adaptation), and adapt the rest. - Keep the port draft until that inventory is complete.
Lean: (1)/(2) — do not treat the port as review-complete while required adapted coverage is mostly pending. Leaving this thread unresolved on purpose.
|
REVIEW WITHDRAWN Withdrawing readiness before merge-currency repair, package rename to |
…ency. Co-authored-by: Cursor <[email protected]>
…js#559 Rename `@octanejs/react-pdf` to `@octanejs/pdf`, wire paired typetest lanes and exhaustive test classifications, and pin a dedicated React oracle catalog. Co-authored-by: Cursor <[email protected]>
|
Thank you for your contribution! This pull request was incorporated into |

Summary
Octane applications can now render PDFs through the published
[email protected]contract without retaining React or a second renderer. The binding preserves the nine root runtime exports, ten root type exports, documented CSS paths, and PDF.js worker integration while adapting only renderer-owned node, ref, event, class, and style types.The implementation uses PDF.js directly for real worker loading, canvas, selectable text, annotation links/forms, structure trees, outlines, thumbnails, navigation, cancellation, and cleanup. Browser evidence runs the same pinned PDF through pristine React and Octane, while SSR covers deterministic loading/no-data shells, streaming, and real-binding hydration. A packed outside-workspace consumer also proves client/server imports, CSS and worker paths, SSR execution, and the absence of a React runtime dependency.
Parity evidence is pinned and fail-closed: 144 upstream tag/npm artifacts, 182 source-test identities, declaration programs, and six negative controls detect missing files, stale checksums, renamed or remapped cases, and public-surface drift.
Validation
pnpm format:checkpnpm typecheckpnpm testpnpm --dir packages/react-pdf test(4 files, 9 tests; audit verifies 144 artifacts and 182 upstream cases)pnpm --dir packages/react-pdf test:typespnpm --dir packages/react-pdf test:ssr(3 tests, including streaming)pnpm bindings:typecheckpnpm react-parity:validatepnpm exec vitest run --project octane-mcp-server(2 files, 37 tests)pnpm --dir playground/octane build(8,449 modules transformed)Risk / follow-ups
Provenance
agent-authored)Note
Medium Risk
Adds a new PDF.js-backed binding with worker, canvas, and SSR/hydration split behavior; scope is large though it is additive with pinned parity evidence and no changes to core auth or data paths.
Overview
Introduces
@octanejs/pdf(packages/pdf) as an Octane port of the published[email protected]root API—Document,Page,Thumbnail,Outline, context hooks,PasswordResponses,pdfjs, root types, documented layer CSS, and PDF.js worker integration—with separate server and browser entry conditions for SSR-safe shells versus worker-backed rendering.Repository wiring updates generated inventories and status docs (61 bindings), adds a changeset for
@octanejs/pdfand@octanejs/mcp-server, registersreact-pdf→@octanejs/pdfin CLI data and the MCP bridge, extendsbindings:typechecktopackages/pdf, and documents the delivery plan indocs/plans/pdf-binding.md. React-parity lockfile hashes and eval manifest overlay hashes are refreshed for the new dependency graph.Reviewed by Cursor Bugbot for commit 01431c0. Bugbot is set up for automated code reviews on this repo. Configure here.