pdfjs-dist breaking changes
Updated December 4, 2026
On this page
Latest version 6.5.438, released November 1, 2026. Source repository
Its 5.7.284 release requires Node.js 22 or later. Node.js end of life dates.
- From 5.7.284 to 6.5.438: 74 breaking changes in 6 versions.
- From 4.0.189 to 6.5.438: 272 breaking changes in 29 versions.
pdfjs-dist 6.5.438 breaking changes
- Behavior changed
Canvas drawing operations now run in a renderer worker, which changes how rendering is executed. Code that depends on main-thread canvas drawing may need to be checked. github.com - Behavior changed
textLayer
The textLayer is no longer re-laid out when it is updated. Code that relies on the re-layout after an update may need to trigger it another way. github.com - Signature changed
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
PDFPageProxy.render
Was render({canvasContext, canvas, viewport, intent, annotationMode, transform, background, optionalContentConfigPromise, annotationCanvasMap, pageColors, printAnnotationStorage, isEditing, recordImages, recordOperations... npmjs.com - Signature changed
TextLayer.update
Was update({viewport, onBefore}: TextLayerUpdateParameters): undefined; now update({viewport}: TextLayerUpdateParameters): undefined. npmjs.com
pdfjs-dist 6.4.299 breaking changes
- Removed
Font.ascent
The Font ascent is no longer exported by default, so code that reads it from the exports will break. github.com - Removed
Font.defaultVMetrics
The Font defaultVMetrics is no longer exported by default, so code that reads it from the exports will break. github.com - Removed
Font.defaultWidth
The Font defaultWidth is no longer exported by default, so code that reads it from the exports will break. github.com - Removed
Font.descent
The Font descent is no longer exported by default, so code that reads it from the exports will break. github.com - Removed
Font.name
The Font name is no longer exported by default, so code that reads it from the exports will break. github.com - Removed
ViewHistory.prototype.get
The ViewHistory.prototype.get method was removed in this release. Code that calls it must be changed. github.com - Removed
ViewHistory.prototype.set
The ViewHistory.prototype.set method was removed in this release. Code that calls it must be changed. github.com - Behavior changed
The Worker no longer sends a separate "test" message during loading. Code that depends on that message will need to change. github.com - Signature changed
AnnotationEditorLayer.addCommands
Was addCommands(params: Object): void; now addCommands(params: object): void. npmjs.com - Signature changed
AnnotationEditorLayer.createAndAddNewEditor
Was createAndAddNewEditor(event: PointerEvent, isCentered: boolean, data?: {}): AnnotationEditor; now createAndAddNewEditor(event: PointerEvent, isCentered: boolean, data?: object): AnnotationEditor. npmjs.com
And 23 more in this version. Sign up to see every change
pdfjs-dist 6.3.289 breaking changes
- Removed
PDFDocumentProxy.getRawData
The getRawData API methods are no longer defined in the public build, so code calling them outside the internal viewer will fail. npmjs.com - Renamed
ColorPicker.updateColor
Use ColorPicker.update instead. npmjs.com - Behavior changed
documentInfo
The documentInfo result now returns any Custom data in a Map instead of its previous form. Code that reads the Custom entries must be updated to use Map methods. github.com - Behavior changed
getFieldObjects
The getFieldObjects method now returns a Map instead of its previous return type. Code that reads its result as a plain object must be updated to use Map methods. github.com - Behavior changed
getJSActions
The getJSActions method now returns a Map instead of its previous return type. Code that reads its result as a plain object must be updated to use Map methods. github.com - Behavior changed
getPermissions
The getPermissions method now returns a Set instead of its previous return type. Code that reads its result as an array or object must be updated to use Set methods. github.com - Behavior changed
markInfo
The markInfo method now returns a Map instead of its previous return type. Code that reads its result as a plain object must be updated to use Map methods. github.com - Signature changed
PDFDocumentProxy.extractPages
Was extractPages(pageInfos: Array<{document?: Uint8Array<ArrayBufferLike> | null | undefined; image?: ImageBitmap | undefined; includePages?: (number | number[])[] | undefined; excludePages?: (number | number[])[] | undefined... npmjs.com - Signature changed
PDFDocumentProxy.getFieldObjects
Was getFieldObjects(): Promise<{[x: string]: Array<Object>;} | null>; now getFieldObjects(): Promise<Map<string, Array<Object>> | null>. npmjs.com - Signature changed
PDFDocumentProxy.getJSActions
Was getJSActions(): Promise<Object | null>; now getJSActions(): Promise<Map<any, any> | null>. npmjs.com
And 3 more in this version. Sign up to see every change
pdfjs-dist 6.2.108 breaking changes
- Behavior changed
getDestinations
The getDestinations method now returns a Map instead of a plain object. Code that reads its result with object property access or Object.keys must be updated to use Map methods. github.com - Behavior changed
getOpenAction
The getOpenAction method now returns a Map instead of a plain object. Code that reads its result with object property access or Object.keys must be updated to use Map methods. github.com - Behavior changed
getViewerPreferences
The getViewerPreferences method now returns a Map instead of a plain object. Code that reads its result with object property access or Object.keys must be updated to use Map methods. github.com - Signature changed
PDFDocumentProxy.getDestinations
Was getDestinations(): Promise<{[x: string]: Array<any>;}>; now getDestinations(): Promise<Map<string, Array<any>>>. npmjs.com - Signature changed
PDFDocumentProxy.getOpenAction
Was getOpenAction(): Promise<any | null>; now getOpenAction(): Promise<Map<any, any> | null>. npmjs.com - Signature changed
PDFDocumentProxy.getViewerPreferences
Was getViewerPreferences(): Promise<Object | null>; now getViewerPreferences(): Promise<Map<any, any> | null>. npmjs.com
pdfjs-dist 6.1.200 breaking changes
- Removed
AnnotationEditorUIManager.isSelected
AnnotationEditorUIManager.isSelected was removed in pdfjs-dist 6.1.200 npmjs.com - Removed
PageViewport.convertToViewportRectangle
The convertToViewportRectangle method was removed from the PageViewport class. Code that calls it must stop using it. npmjs.com - Behavior changed
getAttachments
The getAttachments method now returns attachment data in a Map instead of its previous return format. Code that reads the old return value must be updated to use the Map. github.com - Signature changed
PDFDocumentProxy.getAttachments
Was getAttachments(): Promise<any>; now getAttachments(): Promise<Map<string, CatalogAttachment> | null>. npmjs.com
pdfjs-dist 6.0.227 breaking changes
- Removed
FeatureTest.isCSSRoundSupported
FeatureTest.isCSSRoundSupported was removed in pdfjs-dist 6.0.227 npmjs.com - Removed
getXfaPageViewport
The getXfaPageViewport helper was moved into the XfaLayer class, so code calling it as a standalone helper must change. npmjs.com - Removed
PDFDocumentProxy.destroy
The PDFDocumentProxy.prototype.destroy method was removed. npmjs.com - Removed
Util.domMatrixToTransform
The Util.domMatrixToTransform method was removed. npmjs.com - Removed
Util.scaleMinMax
Util.scaleMinMax was removed in pdfjs-dist 6.0.227 npmjs.com - Behavior changed
The ImageDecoder is now used by default on Chrome, which can change image decoding behavior. github.com - Behavior changed
The minimum supported browsers were updated and no longer needed polyfills were removed, so older browsers may no longer work. github.com - Behavior changed
TextLayer
The TextLayer hiddenCanvasElement is now layout-neutral by default, which can change rendering layout. github.com - Signature changed
AnnotationEditorLayer.viewport
Was viewport: import("../display_utils.js").PageViewport; now viewport: import("../page_viewport.js").PageViewport. npmjs.com - Signature changed
AnnotationLayer.update
Was update({viewport}: AnnotationLayerParameters): void; now update({viewport, optionalContentConfig}: AnnotationLayerParameters): void. npmjs.com
And 3 more in this version. Sign up to see every change
Older versions
24 older versions, each with its first changes. Sign up to see every change
Show 24 older versions
pdfjs-dist 5.7.284 breaking changes
- Removed
The Node.js build no longer uses the node-readable-to-web-readable-stream polyfill. github.com - Removed
FeatureTest.isEvalSupported
FeatureTest.isEvalSupported was removed in pdfjs-dist 5.7.284 npmjs.com
And 11 more in this version.
pdfjs-dist 5.6.205 breaking changes
- Removed
AnnotationEditorLayer.getNextId
AnnotationEditorLayer.getNextId was removed in pdfjs-dist 5.6.205 npmjs.com - Removed
AnnotationEditorLayer.setClonedFrom
AnnotationEditorLayer.setClonedFrom was removed in pdfjs-dist 5.6.205 npmjs.com
And 15 more in this version.
pdfjs-dist 5.5.207 breaking changes
- Removed
AnnotationEditorUIManager.onPagesEdited
AnnotationEditorUIManager.onPagesEdited was removed in pdfjs-dist 5.5.207 npmjs.com - Removed
PagesMapper
PagesMapper was removed in pdfjs-dist 5.5.207 npmjs.com
And 6 more in this version.
pdfjs-dist 5.4.624 breaking changes
- Removed
DrawLayer.constructor
new DrawLayer() was removed in pdfjs-dist 5.4.624 npmjs.com - Removed
DrawLayer.pageIndex
DrawLayer.pageIndex was removed in pdfjs-dist 5.4.624 npmjs.com
pdfjs-dist 5.4.530 breaking changes
- Signature changed
AnnotationEditorUIManager.updateMode
Was updateMode(mode: number, editId?: string | null, isFromKeyboard?: boolean, mustEnterInEditMode?: boolean, editComment?: boolean): Promise<void>; now updateMode(mode: number, editId?: string | null, isFromUser?: boolean... npmjs.com
pdfjs-dist 5.4.449 breaking changes
- Configuration changed
The GitHub Actions release workflow now publishes using OIDC trusted publishing instead of the previous method, which affects only the project's release process rather than user code. github.com
pdfjs-dist 5.4.296 breaking changes
- Removed
PDFPageProxy.recordedGroups
PDFPageProxy.recordedGroups was removed in pdfjs-dist 5.4.296 npmjs.com - Behavior changed
scrollIntoView
Viewer scrollIntoView and goToXY gain an option to center the point in pdfjs-dist 5.4.296 github.com
And 6 more in this version.
pdfjs-dist 5.4.149 breaking changes
- Signature changed
AnnotationEditorUIManager.highlightSelection
Was highlightSelection(methodOfCreation?: string): void; now highlightSelection(methodOfCreation?: string, comment?: boolean): void. npmjs.com - Signature changed
AnnotationType.POPUP
Was let POPUP: number; now let POPUP_1: number. npmjs.com
And 1 more in this version.
pdfjs-dist 5.4.54 breaking changes
- Removed
AnnotationEditorParamsType.HIGHLIGHT_DEFAULT_COLOR
AnnotationEditorParamsType.HIGHLIGHT_DEFAULT_COLOR was removed in pdfjs-dist 5.4.54 npmjs.com - Signature changed
AnnotationEditorUIManager.constructor
Was constructor(container: any, viewer: any, viewerAlert: any, altTextManager: any, signatureManager: any, eventBus: any, pdfDocument: any, pageColors: any, highlightColors: any, enableHighlightFloatingButton: any, enableUpdatedAddImage... npmjs.com
And 2 more in this version.
pdfjs-dist 5.3.93 breaking changes
- Signature changed
AnnotationEditorUIManager.constructor
Was constructor(container: any, viewer: any, altTextManager: any, signatureManager: any, eventBus: any, pdfDocument: any, pageColors: any, highlightColors: any, enableHighlightFloatingButton: any, enableUpdatedAddImage: any... npmjs.com - Signature changed
AnnotationEditorUIManager.updateMode
Was updateMode(mode: number, editId?: string | null, isFromKeyboard?: boolean): Promise<void>; now updateMode(mode: number, editId?: string | null, isFromKeyboard?: boolean, mustEnterInEditMode?: boolean): Promise<void>. npmjs.com
pdfjs-dist 5.3.31 breaking changes
- Removed
PDFDataRangeTransport._progressiveDoneListeners
PDFDataRangeTransport._progressiveDoneListeners was removed in pdfjs-dist 5.3.31 npmjs.com - Removed
PDFDataRangeTransport._progressiveReadListeners
PDFDataRangeTransport._progressiveReadListeners was removed in pdfjs-dist 5.3.31 npmjs.com
And 15 more in this version.
pdfjs-dist 5.2.133 breaking changes
- Removed
Util.getAxialAlignedBoundingBox
Util.getAxialAlignedBoundingBox was removed in pdfjs-dist 5.2.133 npmjs.com - Behavior changed
Util.applyTransform
The point argument is modified in place, so code that expects it to stay unchanged must copy it first or read the result from the argument. github.com
And 4 more in this version.
pdfjs-dist 5.1.91 breaking changes
- Removed
PDFDocumentLoadingTask._capability
PDFDocumentLoadingTask._capability was removed in pdfjs-dist 5.1.91 npmjs.com - Removed
PDFDocumentLoadingTask._transport
PDFDocumentLoadingTask._transport was removed in pdfjs-dist 5.1.91 npmjs.com
And 8 more in this version.
pdfjs-dist 5.0.375 breaking changes
- Removed
ColorSpaceUtils.parseAsync
The parseAsync method was removed along with simplification of the ColorSpace API. github.com - Removed
MissingPDFException
The two exception classes were merged into one; code catching either class must be updated. npmjs.com
And 18 more in this version.
pdfjs-dist 4.10.38 breaking changes
- Removed
getDocument
Deprecated options of getDocument were removed in this release. Code that passes those options must stop using them; the release notes do not name which options were removed. github.com - Behavior changed
PageViewport
The PageViewport class now takes the page's userUnit into account, so viewport dimensions can differ for documents that set a userUnit. github.com
And 1 more in this version.
pdfjs-dist 4.9.155 breaking changes
- Signature changed
AnnotationEditorUIManager.constructor
Was constructor(container: any, viewer: any, altTextManager: any, eventBus: any, pdfDocument: any, pageColors: any, highlightColors: any, enableHighlightFloatingButton: any, enableUpdatedAddImage: any, enableNewAltTextWhenAddingImage: any... npmjs.com
pdfjs-dist 4.9.124 breaking changes
- Removed
AnnotationEditorLayer.addInkEditorIfNeeded
AnnotationEditorLayer.addInkEditorIfNeeded was removed in pdfjs-dist 4.9.124 npmjs.com - Removed
DrawLayer.addClass
DrawLayer.addClass was removed in pdfjs-dist 4.9.124 npmjs.com
And 25 more in this version.
pdfjs-dist 4.8.69 breaking changes
- Removed
AnnotationEditorLayer.isSelected
AnnotationEditorLayer.isSelected was removed in pdfjs-dist 4.8.69 npmjs.com - Removed
CMapCompressionType
The CMapCompressionType enumeration is no longer exported. Code that references it must be updated to stop using it. npmjs.com
And 3 more in this version.
pdfjs-dist 4.7.76 breaking changes
- Behavior changed
The minimum supported Google Chrome version is now 103. Users on older Chrome versions are no longer supported. github.com - Behavior changed
pageColorsBackground
The pageColorsBackground option is now used as the background-color for pages that are not yet loaded. Users relying on the previous background may see different colors. github.com
And 6 more in this version.
pdfjs-dist 4.6.82 breaking changes
- Removed
AnnotationEditorLayer._signal
AnnotationEditorLayer._signal was removed in pdfjs-dist 4.6.82 npmjs.com - Removed
AnnotationEditorUIManager.isMLEnabledFor
AnnotationEditorUIManager.isMLEnabledFor was removed in pdfjs-dist 4.6.82 npmjs.com
And 6 more in this version.
pdfjs-dist 4.5.136 breaking changes
- Removed
AnnotationEditorUIManager.hasMLManager
AnnotationEditorUIManager.hasMLManager was removed in pdfjs-dist 4.5.136 npmjs.com - Removed
enableStamp
The enableStamp option is removed, so code that sets it no longer has an effect. github.com
And 9 more in this version.
pdfjs-dist 4.4.168 breaking changes
- Removed
DownloadManager.downloadUrl
The DownloadManager.downloadUrl method was removed in this release. Use DownloadManager.download instead. github.com - Behavior changed
Documents with more than 10000 pages now open in page-scrolling mode. github.com
And 6 more in this version.
pdfjs-dist 4.3.136 breaking changes
- Removed
Font.spaceWidth
The Font.prototype.spaceWidth getter was removed. Code reading it will no longer get a value. github.com - Removed
FontFaceObject.ignoreErrors
The ignoreErrors option was removed from FontFaceObject. Code passing this option should drop it. github.com
And 13 more in this version.
pdfjs-dist 4.0.189 breaking changes
- Removed
AnnotationLayer.l10n
AnnotationLayer.l10n was removed in pdfjs-dist 4.0.189 npmjs.com - Removed
loadScript
loadScript was removed in pdfjs-dist 4.0.189 npmjs.com
And 5 more in this version.
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.