Skip to content

release: v1.0.0-alpha.23 - #55

Merged
cativo23 merged 5 commits into
mainfrom
release/v1.0.0-alpha.23
Sep 29, 2026
Merged

cativo23 merged 5 commits into
mainfrom
release/v1.0.0-alpha.23

Conversation

@cativo23

Copy link
Copy Markdown
Owner

Fixed

  • PDF extraction crash (missing pdfjs-dist worker file) — every analysis was failing. See CHANGELOG.

Deploy notes

Third same-day hotfix, following v1.0.0-alpha.20/21/22.

…ction crash

Every PDF analysis in production failed with "Setting up fake worker
failed: Cannot find module '.../pdfjs-dist/legacy/build/pdf.worker.mjs'"
(discovered live during plan 13-04's LAUNCH-01 end-to-end verification).

Same root cause class as the @napi-rs/canvas fix in 13-01: pdfjs-dist
resolves its worker script by path at runtime rather than through a
static import/require, so Nitro's node-file-trace never follows it and
silently omits it from .output. Rather than cherry-picking individual
missing files as the tracer's gaps in this package keep surfacing one
at a time, replace the whole traced (partial) pdfjs-dist directory with
the real, complete package copied straight from the deps stage.

Verified locally: built the image with this fix and ran pdf-parse's
actual PDFParse().getText() against the repo's test fixture PDF inside
the container — extracted 8969 characters (previously threw
MODULE_NOT_FOUND / fake-worker-setup failure).
fix(deploy): copy full pdfjs-dist to fix PDF extraction crash
@cativo23
cativo23 merged commit 2fe6536 into main Sep 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant