html2canvas-pro breaking changes
html2canvas-pro 2.6.2 (November 4, 2026) is its newest release with breaking changes. The first: Signature changed PerformanceMonitor.constructor. Every breaking API change we have recorded in html2canvas-pro on npm: 20 breaking changes in 6 versions. Below, its 6 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 2.6.6, released November 30, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
html2canvas-pro 2.6.2 breaking changes
- Signature changed
PerformanceMonitor.constructor
Was constructor(context: Context | null, enabled?: boolean); now constructor(logger: Logger | null, enabled?: boolean). npmjs.com
html2canvas-pro 2.5.2 breaking changes
- Removed
ValidationResult.requiresRuntimeCheck
ValidationResult.requiresRuntimeCheck was removed in html2canvas-pro 2.5.2 npmjs.com - Signature changed
Options
Was type Options = CloneOptions & WindowOptions & RenderOptions & ContextOptions & {backgroundColor: string | null; foreignObjectRendering: boolean; removeContainer?: boolean; cspNonce?: string; validator?: Validator; skipValidation?... npmjs.com
html2canvas-pro 2.2.0 breaking changes
- Removed
IMAGE_RENDERING
IMAGE_RENDERING was removed in html2canvas-pro 2.2.0 npmjs.com - Signature changed
default
Was const html2canvas: {(element: HTMLElement, options?: Partial<Options>, config?: Html2CanvasConfig): Promise<HTMLCanvasElement>; setCspNonce: (nonce: string) => void;}; now const html2canvas: (element: HTMLElement, options?... npmjs.com - Signature changed
html2canvas
Was const html2canvas: {(element: HTMLElement, options?: Partial<Options>, config?: Html2CanvasConfig): Promise<HTMLCanvasElement>; setCspNonce: (nonce: string) => void;}; now const html2canvas: (element: HTMLElement, options?... npmjs.com - Signature changed
Options
Was type Options = CloneOptions & WindowOptions & RenderOptions & ContextOptions & {backgroundColor: string | null; foreignObjectRendering: boolean; removeContainer?: boolean; cspNonce?: string; validator?: Validator; skipValidation?... npmjs.com - Signature changed
PerformanceMonitor.measure
Was measure<T>(name: string, fn: () => T, metadata?: Record<string, any>): T; now measure<T>(name: string, fn: () => T, metadata?: Record<string, unknown>): T. npmjs.com - Signature changed
PerformanceMonitor.measureAsync
Was measureAsync<T>(name: string, fn: () => Promise<T>, metadata?: Record<string, any>): Promise<T>; now measureAsync<T>(name: string, fn: () => Promise<T>, metadata?: Record<string, unknown>): Promise<T>. npmjs.com - Signature changed
PerformanceMonitor.start
Was start(name: string, metadata?: Record<string, any>): void; now start(name: string, metadata?: Record<string, unknown>): void. npmjs.com - Signature changed
ValidationResult.sanitized
Was sanitized?: any; now sanitized?: unknown. npmjs.com - Signature changed
Validator.validateElement
Was validateElement(element: any): ValidationResult; now validateElement(element: unknown): ValidationResult. npmjs.com - Signature changed
Validator.validateOptions
Was validateOptions(options: any): ValidationResult; now validateOptions(options: Record<string, unknown>): ValidationResult. npmjs.com
html2canvas-pro 2.1.0 breaking changes
- Removed
setCspNonce
Use options.cspNonce instead. npmjs.com - Signature changed
Options
Was type Options = CloneOptions & WindowOptions & RenderOptions & ContextOptions & {backgroundColor: string | null; foreignObjectRendering: boolean; removeContainer?: boolean; cspNonce?: string; validator?: Validator; skipValidation?... npmjs.com
html2canvas-pro 2.0.0 breaking changes
- Signature changed
default
Was const html2canvas: {(element: HTMLElement, options?: Partial<Options>): Promise<HTMLCanvasElement>; setCspNonce: (nonce: string) => void;}; now const html2canvas: {(element: HTMLElement, options?: Partial<Options>, config?... npmjs.com - Signature changed
html2canvas
Was const html2canvas: {(element: HTMLElement, options?: Partial<Options>): Promise<HTMLCanvasElement>; setCspNonce: (nonce: string) => void;}; now const html2canvas: {(element: HTMLElement, options?: Partial<Options>, config?... npmjs.com - Signature changed
Options
Was type Options = CloneOptions & WindowOptions & RenderOptions & ContextOptions & {backgroundColor: string | null; foreignObjectRendering: boolean; removeContainer?: boolean;}; now type Options = CloneOptions & WindowOptions &... npmjs.com
html2canvas-pro 1.6.5 breaking changes
- Signature changed
default
Was const html2canvas: (element: HTMLElement, options?: Partial<Options>) => Promise<HTMLCanvasElement>; now const html2canvas: {(element: HTMLElement, options?: Partial<Options>): Promise<HTMLCanvasElement>; setCspNonce: (nonce: string)... npmjs.com - Signature changed
html2canvas
Was const html2canvas: (element: HTMLElement, options?: Partial<Options>) => Promise<HTMLCanvasElement>; now const html2canvas: {(element: HTMLElement, options?: Partial<Options>): Promise<HTMLCanvasElement>; setCspNonce: (nonce: string)... npmjs.com
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.