Skip to content

Bump unpdf from 1.9.0 to 2.1.0 in /app - #38

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bun/app/unpdf-1.9.1
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bun/app/unpdf-1.9.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Bumps unpdf from 1.9.0 to 2.1.0.

Release notes

Sourced from unpdf's releases.

v2.1.0

   🚀 Features

   🐞 Bug Fixes

    View changes on GitHub

v2.0.1

   🐞 Bug Fixes

    View changes on GitHub

v2.0.0

unpdf 2.0 is here! 🎉

This major release extracts every image on a page, adds page inspection and more rendering formats, and trims the API. unpdf now ships as ESM only and requires Node.js 24.

🔥 What's New

  • Complete image extraction – extractImages returns inline images and image masks too, as RGBA pixels or as PNG with format: 'png', each with its position on the page in bounds.
  • Page inspection – inspectPages measures text and image coverage per page, e.g. to tell scanned pages from born-digital ones.
  • JPEG and WebP rendering – renderPageAsImage takes format: 'png' | 'jpeg' | 'webp' and a quality.
  • CMaps and standard fonts in Node.js – with pdfjs-dist installed, both load from that package, so CJK text without embedded mappings extracts correctly.
  • Typed metadata – getMeta types the /Info dictionary as PDFInfo.

🚀 How to Upgrade

pnpm add unpdf@^2

unpdf 2 requires Node.js 24 or later. CommonJS builds are gone – replace require('unpdf') with import. The steps below cover every other breaking change.

1. Define PDF.js Without await

definePDFJSModule stores the loader and loads PDF.js on first use. configureUnPDF and resolvePDFJSImport are removed.

- await configureUnPDF({ pdfjs: () => import('pdfjs-dist/legacy/build/pdf.mjs') })
+ definePDFJSModule(() => import('pdfjs-dist/legacy/build/pdf.mjs'))

A loader that fails now throws on the first call of another method. To load PDF.js up front, call await getResolvedPDFJS() where you used resolvePDFJSImport().

... (truncated)

Commits
  • c612f83 chore: release v2.1.0
  • d049048 fix: hand pdfjs-dist its image decoders in getDocumentProxy
  • ea398d6 feat: export registerImageDecoders and keep the image decoders out of text-...
  • 94d6425 chore: release v2.0.1
  • 2a3d514 fix: decode CCITT, JBIG2, and JPEG 2000 images in every runtime (#72)
  • 2cc485c test: load @napi-rs/canvas before any test times out
  • ce13da0 chore: release v2.0.0
  • 173112a chore: update dependencies
  • bcf5270 fix: accept RenderPageAsImageOptions in renderPageAsImage and export `Met...
  • 1a382ad refactor: trim single-use helpers and dead code
  • Additional commits viewable in compare view

@dependabot
dependabot Bot requested a review from jazztong as a code owner November 9, 2026 10:15
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 9, 2026
Bumps [unpdf](https://github.com/unjs/unpdf) from 1.9.0 to 2.1.0.
- [Release notes](https://github.com/unjs/unpdf/releases)
- [Commits](unjs/unpdf@v1.9.0...v2.1.0)

---
updated-dependencies:
- dependency-name: unpdf
  dependency-version: 1.9.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot changed the title Bump unpdf from 1.9.0 to 1.9.1 in /app Bump unpdf from 1.9.0 to 2.1.0 in /app Nov 14, 2026
@dependabot
dependabot Bot force-pushed the dependabot/bun/app/unpdf-1.9.1 branch from 31dddd8 to 243f88a Compare November 14, 2026 17:08
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants