qrcode breaking changes
qrcode 1.0.0 (November 8, 2017) is its newest release with breaking changes, 44 of them. The first: Removed QRCodeSegment.data. Every breaking API change we have recorded in qrcode on npm: 44 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 1.5.4, released August 5, 2024.
Packages on npm run on Node.js. Node.js end of life dates.
qrcode 1.0.0 breaking changes
- Removed
QRCodeSegment.data
QRCodeSegment.data was removed in qrcode 1.0.0 npmjs.com - Removed
QRCodeSegment.mode
QRCodeSegment.mode was removed in qrcode 1.0.0 npmjs.com - Removed
QRCodeToDataURLOptions.color
QRCodeToDataURLOptions.color was removed in qrcode 1.0.0 npmjs.com - Removed
QRCodeToDataURLOptions.errorCorrectionLevel
QRCodeToDataURLOptions.errorCorrectionLevel was removed in qrcode 1.0.0 npmjs.com - Removed
QRCodeToDataURLOptions.margin
QRCodeToDataURLOptions.margin was removed in qrcode 1.0.0 npmjs.com - Removed
QRCodeToDataURLOptions.rendererOpts
QRCodeToDataURLOptions.rendererOpts was removed in qrcode 1.0.0 npmjs.com - Removed
QRCodeToDataURLOptions.scale
QRCodeToDataURLOptions.scale was removed in qrcode 1.0.0 npmjs.com - Removed
QRCodeToDataURLOptions.toSJISFunc
QRCodeToDataURLOptions.toSJISFunc was removed in qrcode 1.0.0 npmjs.com - Removed
QRCodeToDataURLOptions.type
QRCodeToDataURLOptions.type was removed in qrcode 1.0.0 npmjs.com - Removed
QRCodeToDataURLOptions.version
QRCodeToDataURLOptions.version was removed in qrcode 1.0.0 npmjs.com - Removed
QRCodeToFileOptions.color
QRCodeToFileOptions.color was removed in qrcode 1.0.0 npmjs.com - Removed
QRCodeToFileOptions.errorCorrectionLevel
QRCodeToFileOptions.errorCorrectionLevel was removed in qrcode 1.0.0 npmjs.com - Removed
QRCodeToFileOptions.margin
QRCodeToFileOptions.margin was removed in qrcode 1.0.0 npmjs.com - Removed
QRCodeToFileOptions.rendererOpts
QRCodeToFileOptions.rendererOpts was removed in qrcode 1.0.0 npmjs.com - Removed
QRCodeToFileOptions.scale
QRCodeToFileOptions.scale was removed in qrcode 1.0.0 npmjs.com - Removed
QRCodeToFileOptions.toSJISFunc
QRCodeToFileOptions.toSJISFunc was removed in qrcode 1.0.0 npmjs.com - Removed
QRCodeToFileOptions.type
QRCodeToFileOptions.type was removed in qrcode 1.0.0 npmjs.com - Removed
QRCodeToFileOptions.version
QRCodeToFileOptions.version was removed in qrcode 1.0.0 npmjs.com - Removed
QRCodeToStringOptions.errorCorrectionLevel
QRCodeToStringOptions.errorCorrectionLevel was removed in qrcode 1.0.0 npmjs.com - Removed
QRCodeToStringOptions.toSJISFunc
QRCodeToStringOptions.toSJISFunc was removed in qrcode 1.0.0 npmjs.com - Removed
QRCodeToStringOptions.type
QRCodeToStringOptions.type was removed in qrcode 1.0.0 npmjs.com - Removed
QRCodeToStringOptions.version
QRCodeToStringOptions.version was removed in qrcode 1.0.0 npmjs.com - Signature changed
create
Was function create(text: string | QRCodeSegment[], options: QRCodeOptions): QRCode; now function create(text: string | QRCodeSegment[], options?: QRCodeOptions): QRCode. npmjs.com - Signature changed
QRCode.errorCorrectionLevel
Was errorCorrectionLevel: number; now errorCorrectionLevel: ErrorCorrectionLevel. npmjs.com - Signature changed
QRCode.maskPattern
Was maskPattern: any; now maskPattern: QRCodeMaskPattern | undefined. npmjs.com - Signature changed
QRCode.modules
Was modules: any; now modules: BitMatrix. npmjs.com - Signature changed
QRCode.segments
Was segments: QRCodeSegment[]; now segments: GeneratedQRCodeSegment[]. npmjs.com - Signature changed
QRCodeOptions.errorCorrectionLevel
Was errorCorrectionLevel?: "low" | "medium" | "quartile" | "high" | "L" | "M" | "Q" | "H"; now errorCorrectionLevel?: QRCodeErrorCorrectionLevel | undefined. npmjs.com - Signature changed
QRCodeOptions.toSJISFunc
Was toSJISFunc?: Function; now toSJISFunc?: QRCodeToSJISFunc | undefined. npmjs.com - Signature changed
QRCodeOptions.version
Was version?: number; now version?: number | undefined. npmjs.com - Signature changed
QRCodeRenderersOptions.color
Was color?: {dark?: string; light?: string;}; now color?: | {dark?: string | undefined; light?: string | undefined;} | undefined. npmjs.com - Signature changed
QRCodeRenderersOptions.color.dark
Was dark?: string; now dark?: string | undefined. npmjs.com - Signature changed
QRCodeRenderersOptions.color.light
Was light?: string; now light?: string | undefined. npmjs.com - Signature changed
QRCodeRenderersOptions.margin
Was margin?: number; now margin?: number | undefined. npmjs.com - Signature changed
QRCodeRenderersOptions.scale
Was scale?: number; now scale?: number | undefined. npmjs.com - Signature changed
QRCodeSegment
Was interface QRCodeSegment; now type QRCodeSegment = | QRCodeNumericSegment | QRCodeAlphanumericSegment | QRCodeByteSegment | QRCodeKanjiSegment | {mode?: never; data: string | Buffer | Uint8ClampedArray | Uint8Array;}. npmjs.com - Signature changed
QRCodeToDataURLOptions
Was interface QRCodeToDataURLOptions extends QRCodeRenderersOptions; now type QRCodeToDataURLOptions = QRCodeToDataURLOptionsJpegWebp | QRCodeToDataURLOptionsOther. npmjs.com - Signature changed
QRCodeToFileOptions
Was interface QRCodeToFileOptions extends QRCodeRenderersOptions; now type QRCodeToFileOptions = QRCodeToFileOptionsPng | QRCodeToFileOptionsOther. npmjs.com - Signature changed
QRCodeToStringOptions
Was interface QRCodeToStringOptions extends QRCodeOptions; now type QRCodeToStringOptions = QRCodeToStringOptionsTerminal | QRCodeToStringOptionsOther. npmjs.com - Signature changed
toCanvas
Was function toCanvas(canvas: any, text: string | QRCodeSegment[]): Promise<any> function toCanvas(canvas: any, text: string | QRCodeSegment[], callback: (error: Error) => void): void function toCanvas(canvas: any, text: string |... npmjs.com - Signature changed
toDataURL
Was function toDataURL(canvasElement: HTMLCanvasElement, text: string | QRCodeSegment[]): Promise<any> function toDataURL(canvasElement: HTMLCanvasElement, text: string | QRCodeSegment[], callback: (error: Error, url: string) => void)... npmjs.com - Signature changed
toFile
Was function toFile(path: string, text: string | QRCodeSegment[]): Promise<any> function toFile(path: string, text: string | QRCodeSegment[], callback: (error: Error) => void): void function toFile(path: string, text: string |... npmjs.com - Signature changed
toFileStream
Was function toFileStream(stream: stream.Writable, text: string | QRCodeSegment[]): Promise<any> function toFileStream(stream: stream.Writable, text: string | QRCodeSegment[], callback: (error: Error) => void): void function... npmjs.com - Signature changed
toString
Was function toString(text: string | QRCodeSegment[]): Promise<any> function toString(text: string | QRCodeSegment[], callback: (error: Error, string: string) => void): void function toString(text: string | QRCodeSegment[], options... 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.