---
title: "unpdf 2.2.0 Breaking Changes on npm | Since.dev"
description: "What each unpdf release removed, renamed or changed: 123 breaking changes in 5 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/unpdf
last_updated: 2026-12-04
---

# unpdf breaking changes

unpdf 2.2.0 (November 14, 2026) is its newest release with breaking changes, 3 of them. The first: Signature changed pdfjs:AnnotationEditorUIManager.constructor. Every breaking API change we have recorded in unpdf on npm: 123 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `2.2.3`, released November 26, 2026. [Source repository](https://github.com/unjs/unpdf)

Its 2.0.0 release requires [Node.js 24](https://since.dev/calendar/nodejs/24.md) or later. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [1.9.0](#v-1-9-0) to [2.2.0](#v-2-2-0): 23 breaking changes in 2 versions.
- From [0.12.0](#v-0-12-0) to [2.2.0](#v-2-2-0): 111 breaking changes in 4 versions.

## unpdf 2.2.0 breaking changes

unpdf 2.2.0, released November 14, 2026: 3 breaking changes.

- **Signature changed** `pdfjs:AnnotationEditorUIManager.constructor`  

Was constructor(container: any, viewer: any, viewerAlert: any, altTextManager: any, commentManager: any, signatureManager: any, eventBus: any, pdfDocument: any, pageColors: any, highlightColors: any, enableHighlightFloatingButton: any... [npmjs.com](https://www.npmjs.com/package/unpdf/v/2.2.0)
- **Signature changed** `pdfjs:PDFPageProxy.render`  

Was render({canvasContext, canvas, viewport, intent, annotationMode, transform, background, optionalContentConfigPromise, annotationCanvasMap, pageColors, printAnnotationStorage, isEditing, recordImages, recordOperations... [npmjs.com](https://www.npmjs.com/package/unpdf/v/2.2.0)
- **Signature changed** `pdfjs:TextLayer.update`  

Was update({viewport, onBefore}: TextLayerUpdateParameters): undefined; now update({viewport}: TextLayerUpdateParameters): undefined. [npmjs.com](https://www.npmjs.com/package/unpdf/v/2.2.0)

## unpdf 2.0.0 breaking changes

unpdf 2.0.0, released October 28, 2026: 20 breaking changes.

- **Removed**  

Replace require('unpdf') with import. CommonJS builds are no longer published. [github.com](https://github.com/unjs/unpdf/releases/tag/v2.0.0)
- **Removed** `configureUnPDF`  

Pass the PDF.js loader to definePDFJSModule without await instead. [npmjs.com](https://www.npmjs.com/package/unpdf/v/2.0.0)
- **Removed** `createIsomorphicCanvasFactory`  

Each document now carries PDF.js' own canvas factory as pdf.canvasFactory. [npmjs.com](https://www.npmjs.com/package/unpdf/v/2.0.0)
- **Removed** `ExtractedImage.channels`  

Data always holds four bytes per pixel, so read channels as 4 or drop it. [github.com](https://github.com/unjs/unpdf/releases/tag/v2.0.0)
- **Removed** `resolvePDFJSImport`  

To load PDF.js up front, await getResolvedPDFJS() instead. [npmjs.com](https://www.npmjs.com/package/unpdf/v/2.0.0)
- **Renamed** `ExtractedImageObject`  

Update type references to the new ExtractedImage name. [github.com](https://github.com/unjs/unpdf/releases/tag/v2.0.0)
- **Behavior changed** `definePDFJSModule`  

The loader is stored and PDF.js loads on first use. A failing loader now throws on the first call of another method. [github.com](https://github.com/unjs/unpdf/releases/tag/v2.0.0)
- **Behavior changed** `extractImages`  

Data is always RGBA, key is null for small inline images, inline images and masks are counted, and images in soft masks and hidden layers are skipped. [github.com](https://github.com/unjs/unpdf/releases/tag/v2.0.0)
- **Behavior changed** `getMeta`  

metadata is typed as Metadata | null, so use optional chaining, and non-standard /Info entries sit in info.Custom. [github.com](https://github.com/unjs/unpdf/releases/tag/v2.0.0)
- **Behavior changed** `renderPageAsImage`  

The rendered image is now a Uint8Array, so wrapping it in new Uint8Array() is no longer needed. [github.com](https://github.com/unjs/unpdf/releases/tag/v2.0.0)

And 10 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## unpdf 1.9.0 breaking changes

unpdf 1.9.0, released October 15, 2026: 34 breaking changes.

- **Removed** `pdfjs:PDFDocumentProxy.getRawData`  

PDFDocumentProxy.getRawData was removed in unpdf 1.9.0 [npmjs.com](https://www.npmjs.com/package/unpdf/v/1.9.0)
- **Renamed** `pdfjs:ColorPicker.updateColor`  

Use ColorPicker.update instead. [npmjs.com](https://www.npmjs.com/package/unpdf/v/1.9.0)
- **Signature changed** `pdfjs:AnnotationEditorLayer.addCommands`  

Was addCommands(params: Object): void; now addCommands(params: object): void. [npmjs.com](https://www.npmjs.com/package/unpdf/v/1.9.0)
- **Signature changed** `pdfjs:AnnotationEditorLayer.createAndAddNewEditor`  

Was createAndAddNewEditor(event: PointerEvent, isCentered: boolean, data?: {}): AnnotationEditor; now createAndAddNewEditor(event: PointerEvent, isCentered: boolean, data?: object): AnnotationEditor. [npmjs.com](https://www.npmjs.com/package/unpdf/v/1.9.0)
- **Signature changed** `pdfjs:AnnotationEditorLayer.deserialize`  

Was deserialize(data: Object): Promise\<AnnotationEditor | null>; now deserialize(data: object): Promise\<AnnotationEditor | null>. [npmjs.com](https://www.npmjs.com/package/unpdf/v/1.9.0)
- **Signature changed** `pdfjs:AnnotationEditorLayer.pageDimensions`  

Was readonly pageDimensions: Object; now readonly pageDimensions: object. [npmjs.com](https://www.npmjs.com/package/unpdf/v/1.9.0)
- **Signature changed** `pdfjs:AnnotationEditorLayer.pasteEditor`  

Was pasteEditor(options: Object, params: Object): Promise\<void>; now pasteEditor(options: object, params: object): Promise\<void>. [npmjs.com](https://www.npmjs.com/package/unpdf/v/1.9.0)
- **Signature changed** `pdfjs:AnnotationEditorLayer.updateToolbar`  

Was updateToolbar(options: Object): void; now updateToolbar(options: object): void. [npmjs.com](https://www.npmjs.com/package/unpdf/v/1.9.0)
- **Signature changed** `pdfjs:AnnotationEditorUIManager.addCommands`  

Was addCommands(params: Object): void; now addCommands(params: object): void. [npmjs.com](https://www.npmjs.com/package/unpdf/v/1.9.0)
- **Signature changed** `pdfjs:AnnotationEditorUIManager.deleteComment`  

Was deleteComment(editor: AnnotationEditor, savedData: Object): void; now deleteComment(editor: AnnotationEditor, savedData: object): void. [npmjs.com](https://www.npmjs.com/package/unpdf/v/1.9.0)

And 24 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## unpdf 1.0.0 breaking changes

unpdf 1.0.0, released April 30, 2025: 54 breaking changes.

- **Removed** `createIsomorphicCanvasFactory`  

createIsomorphicCanvasFactory was removed in unpdf 1.0.0 [npmjs.com](https://www.npmjs.com/package/unpdf/v/1.0.0)
- **Removed** `pdfjs:AnnotationEditorLayer.addInkEditorIfNeeded`  

AnnotationEditorLayer.addInkEditorIfNeeded was removed in unpdf 1.0.0 [npmjs.com](https://www.npmjs.com/package/unpdf/v/1.0.0)
- **Removed** `pdfjs:AnnotationEditorLayer.isSelected`  

AnnotationEditorLayer.isSelected was removed in unpdf 1.0.0 [npmjs.com](https://www.npmjs.com/package/unpdf/v/1.0.0)
- **Removed** `pdfjs:CMapCompressionType`  

CMapCompressionType was removed in unpdf 1.0.0 [npmjs.com](https://www.npmjs.com/package/unpdf/v/1.0.0)
- **Removed** `pdfjs:DrawLayer.addClass`  

DrawLayer.addClass was removed in unpdf 1.0.0 [npmjs.com](https://www.npmjs.com/package/unpdf/v/1.0.0)
- **Removed** `pdfjs:DrawLayer.changeColor`  

DrawLayer.changeColor was removed in unpdf 1.0.0 [npmjs.com](https://www.npmjs.com/package/unpdf/v/1.0.0)
- **Removed** `pdfjs:DrawLayer.changeOpacity`  

DrawLayer.changeOpacity was removed in unpdf 1.0.0 [npmjs.com](https://www.npmjs.com/package/unpdf/v/1.0.0)
- **Removed** `pdfjs:DrawLayer.finalizeLine`  

DrawLayer.finalizeLine was removed in unpdf 1.0.0 [npmjs.com](https://www.npmjs.com/package/unpdf/v/1.0.0)
- **Removed** `pdfjs:DrawLayer.highlight`  

DrawLayer.highlight was removed in unpdf 1.0.0 [npmjs.com](https://www.npmjs.com/package/unpdf/v/1.0.0)
- **Removed** `pdfjs:DrawLayer.highlightOutline`  

DrawLayer.highlightOutline was removed in unpdf 1.0.0 [npmjs.com](https://www.npmjs.com/package/unpdf/v/1.0.0)

And 44 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## unpdf 0.12.0 breaking changes

unpdf 0.12.0, released October 2, 2024: 12 breaking changes.

- **Removed** `pdfjs:AnnotationEditorUIManager.hasMLManager`  

AnnotationEditorUIManager.hasMLManager was removed in unpdf 0.12.0 [npmjs.com](https://www.npmjs.com/package/unpdf/v/0.12.0)
- **Removed** `pdfjs:AnnotationEditorUIManager.mlGuess`  

AnnotationEditorUIManager.mlGuess was removed in unpdf 0.12.0 [npmjs.com](https://www.npmjs.com/package/unpdf/v/0.12.0)
- **Removed** `pdfjs:Outliner`  

Outliner was removed in unpdf 0.12.0 [npmjs.com](https://www.npmjs.com/package/unpdf/v/0.12.0)
- **Removed** `pdfjs:renderTextLayer`  

renderTextLayer was removed in unpdf 0.12.0 [npmjs.com](https://www.npmjs.com/package/unpdf/v/0.12.0)
- **Removed** `pdfjs:updateTextLayer`  

updateTextLayer was removed in unpdf 0.12.0 [npmjs.com](https://www.npmjs.com/package/unpdf/v/0.12.0)
- **Signature changed** `pdfjs:AnnotationEditorUIManager.constructor`  

Was constructor(container: any, viewer: any, altTextManager: any, eventBus: any, pdfDocument: any, pageColors: any, highlightColors: any, enableHighlightFloatingButton: any, mlManager: any); now constructor(container: any, viewer: any... [npmjs.com](https://www.npmjs.com/package/unpdf/v/0.12.0)
- **Signature changed** `pdfjs:AnnotationEditorUIManager.editAltText`  

Was editAltText(editor: any): void; now editAltText(editor: any, firstTime?: boolean): void. [npmjs.com](https://www.npmjs.com/package/unpdf/v/0.12.0)
- **Signature changed** `pdfjs:AnnotationEditorUIManager.isActive`  

Was isActive(editor: AnnotationEditor): boolean; now isActive(editor: AnnotationEditor): editor is never. [npmjs.com](https://www.npmjs.com/package/unpdf/v/0.12.0)
- **Signature changed** `pdfjs:getDocument`  

Was function getDocument(src: string | URL | TypedArray | ArrayBuffer | DocumentInitParameters): PDFDocumentLoadingTask; now function getDocument(src?: string | URL | TypedArray | ArrayBuffer | DocumentInitParameters)... [npmjs.com](https://www.npmjs.com/package/unpdf/v/0.12.0)
- **Signature changed** `pdfjs:PDFDocumentProxy.getOutline`  

Was getOutline(): Promise<{title: string; bold: boolean; italic: boolean; color: Uint8ClampedArray; dest: string | Array\<any> | null; url: string | null; unsafeUrl: string | undefined; newWindow: boolean | undefined; count: number |... [npmjs.com](https://www.npmjs.com/package/unpdf/v/0.12.0)

And 2 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
