unpdf breaking changes
Updated December 4, 2026
On this page
Latest version 2.2.3, released November 26, 2026. Source repository
Its 2.0.0 release requires Node.js 24 or later. Node.js end of life dates.
- From 1.9.0 to 2.2.0: 23 breaking changes in 2 versions.
- From 0.12.0 to 2.2.0: 111 breaking changes in 4 versions.
unpdf 2.2.0 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 - Signature changed
pdfjs:PDFPageProxy.render
Was render({canvasContext, canvas, viewport, intent, annotationMode, transform, background, optionalContentConfigPromise, annotationCanvasMap, pageColors, printAnnotationStorage, isEditing, recordImages, recordOperations... npmjs.com - Signature changed
pdfjs:TextLayer.update
Was update({viewport, onBefore}: TextLayerUpdateParameters): undefined; now update({viewport}: TextLayerUpdateParameters): undefined. npmjs.com
unpdf 2.0.0 breaking changes
- Removed
Replace require('unpdf') with import. CommonJS builds are no longer published. github.com - Removed
configureUnPDF
Pass the PDF.js loader to definePDFJSModule without await instead. npmjs.com - Removed
createIsomorphicCanvasFactory
Each document now carries PDF.js' own canvas factory as pdf.canvasFactory. npmjs.com - Removed
ExtractedImage.channels
Data always holds four bytes per pixel, so read channels as 4 or drop it. github.com - Removed
resolvePDFJSImport
To load PDF.js up front, await getResolvedPDFJS() instead. npmjs.com - Renamed
ExtractedImageObject
Update type references to the new ExtractedImage name. github.com - 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 - 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 - Behavior changed
getMeta
metadata is typed as Metadata | null, so use optional chaining, and non-standard /Info entries sit in info.Custom. github.com - Behavior changed
renderPageAsImage
The rendered image is now a Uint8Array, so wrapping it in new Uint8Array() is no longer needed. github.com
And 10 more in this version. Sign up to see every change
unpdf 1.9.0 breaking changes
- Removed
pdfjs:PDFDocumentProxy.getRawData
PDFDocumentProxy.getRawData was removed in unpdf 1.9.0 npmjs.com - Renamed
pdfjs:ColorPicker.updateColor
Use ColorPicker.update instead. npmjs.com - Signature changed
pdfjs:AnnotationEditorLayer.addCommands
Was addCommands(params: Object): void; now addCommands(params: object): void. npmjs.com - Signature changed
pdfjs:AnnotationEditorLayer.createAndAddNewEditor
Was createAndAddNewEditor(event: PointerEvent, isCentered: boolean, data?: {}): AnnotationEditor; now createAndAddNewEditor(event: PointerEvent, isCentered: boolean, data?: object): AnnotationEditor. npmjs.com - Signature changed
pdfjs:AnnotationEditorLayer.deserialize
Was deserialize(data: Object): Promise<AnnotationEditor | null>; now deserialize(data: object): Promise<AnnotationEditor | null>. npmjs.com - Signature changed
pdfjs:AnnotationEditorLayer.pageDimensions
Was readonly pageDimensions: Object; now readonly pageDimensions: object. npmjs.com - Signature changed
pdfjs:AnnotationEditorLayer.pasteEditor
Was pasteEditor(options: Object, params: Object): Promise<void>; now pasteEditor(options: object, params: object): Promise<void>. npmjs.com - Signature changed
pdfjs:AnnotationEditorLayer.updateToolbar
Was updateToolbar(options: Object): void; now updateToolbar(options: object): void. npmjs.com - Signature changed
pdfjs:AnnotationEditorUIManager.addCommands
Was addCommands(params: Object): void; now addCommands(params: object): void. npmjs.com - Signature changed
pdfjs:AnnotationEditorUIManager.deleteComment
Was deleteComment(editor: AnnotationEditor, savedData: Object): void; now deleteComment(editor: AnnotationEditor, savedData: object): void. npmjs.com
And 24 more in this version. Sign up to see every change
unpdf 1.0.0 breaking changes
- Removed
createIsomorphicCanvasFactory
createIsomorphicCanvasFactory was removed in unpdf 1.0.0 npmjs.com - Removed
pdfjs:AnnotationEditorLayer.addInkEditorIfNeeded
AnnotationEditorLayer.addInkEditorIfNeeded was removed in unpdf 1.0.0 npmjs.com - Removed
pdfjs:AnnotationEditorLayer.isSelected
AnnotationEditorLayer.isSelected was removed in unpdf 1.0.0 npmjs.com - Removed
pdfjs:CMapCompressionType
CMapCompressionType was removed in unpdf 1.0.0 npmjs.com - Removed
pdfjs:DrawLayer.addClass
DrawLayer.addClass was removed in unpdf 1.0.0 npmjs.com - Removed
pdfjs:DrawLayer.changeColor
DrawLayer.changeColor was removed in unpdf 1.0.0 npmjs.com - Removed
pdfjs:DrawLayer.changeOpacity
DrawLayer.changeOpacity was removed in unpdf 1.0.0 npmjs.com - Removed
pdfjs:DrawLayer.finalizeLine
DrawLayer.finalizeLine was removed in unpdf 1.0.0 npmjs.com - Removed
pdfjs:DrawLayer.highlight
DrawLayer.highlight was removed in unpdf 1.0.0 npmjs.com - Removed
pdfjs:DrawLayer.highlightOutline
DrawLayer.highlightOutline was removed in unpdf 1.0.0 npmjs.com
And 44 more in this version. Sign up to see every change
unpdf 0.12.0 breaking changes
- Removed
pdfjs:AnnotationEditorUIManager.hasMLManager
AnnotationEditorUIManager.hasMLManager was removed in unpdf 0.12.0 npmjs.com - Removed
pdfjs:AnnotationEditorUIManager.mlGuess
AnnotationEditorUIManager.mlGuess was removed in unpdf 0.12.0 npmjs.com - Removed
pdfjs:Outliner
Outliner was removed in unpdf 0.12.0 npmjs.com - Removed
pdfjs:renderTextLayer
renderTextLayer was removed in unpdf 0.12.0 npmjs.com - Removed
pdfjs:updateTextLayer
updateTextLayer was removed in unpdf 0.12.0 npmjs.com - 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 - Signature changed
pdfjs:AnnotationEditorUIManager.editAltText
Was editAltText(editor: any): void; now editAltText(editor: any, firstTime?: boolean): void. npmjs.com - Signature changed
pdfjs:AnnotationEditorUIManager.isActive
Was isActive(editor: AnnotationEditor): boolean; now isActive(editor: AnnotationEditor): editor is never. npmjs.com - 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 - 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
And 2 more in this version. Sign up to see every change
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.