---
title: "@types/qrcode 1.2.0 Breaking Changes on npm | Since.dev"
description: "What each @types/qrcode release removed, renamed or changed: 11 breaking changes in 2 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/@types/qrcode
last_updated: 2026-12-04
---

# @types/qrcode breaking changes

@types/qrcode 1.2.0 (June 11, 2018) is its newest release with breaking changes, 7 of them. The first: Signature changed QRCodeOptions.toSJISFunc. Every breaking API change we have recorded in @types/qrcode on npm: 11 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `1.5.6`, released October 24, 2025. [Source repository](https://github.com/DefinitelyTyped/DefinitelyTyped)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [0.8.0](#v-0-8-0) to [1.2.0](#v-1-2-0): 7 breaking changes in 1 version.

## @types/qrcode 1.2.0 breaking changes

@types/qrcode 1.2.0, released June 11, 2018: 7 breaking changes.

- **Signature changed** `QRCodeOptions.toSJISFunc`  

Was toSJISFunc?: Function; now toSJISFunc?: (codePoint: string) => number. [npmjs.com](https://www.npmjs.com/package/@types/qrcode/v/1.2.0)
- **Signature changed** `QRCodeToStringOptions`  

Was interface QRCodeToStringOptions extends QRCodeOptions; now interface QRCodeToStringOptions extends QRCodeRenderersOptions. [npmjs.com](https://www.npmjs.com/package/@types/qrcode/v/1.2.0)
- **Signature changed** `toCanvas`  

Was function toCanvas(canvas: any, text: string | QRCodeSegment\[\]): Promise\<any> function toCanvas(canvas: any, text: string | QRCodeSegment\[\], options: QRCodeOptions): Promise\<any> function toCanvas(canvasElement: HTMLCanvasElement, text... [npmjs.com](https://www.npmjs.com/package/@types/qrcode/v/1.2.0)
- **Signature changed** `toDataURL`  

Was function toDataURL(canvasElement: HTMLCanvasElement, text: string | QRCodeSegment\[\]): Promise\<any> function toDataURL(canvasElement: HTMLCanvasElement, text: string | QRCodeSegment\[\], options: QRCodeToDataURLOptions): Promise\<any>... [npmjs.com](https://www.npmjs.com/package/@types/qrcode/v/1.2.0)
- **Signature changed** `toFile`  

Was function toFile(path: string, text: string | QRCodeSegment\[\]): Promise\<any> function toFile(path: string, text: string | QRCodeSegment\[\], options: QRCodeToFileOptions): Promise\<any>; now function toFile(path: string, text: string |... [npmjs.com](https://www.npmjs.com/package/@types/qrcode/v/1.2.0)
- **Signature changed** `toFileStream`  

Was function toFileStream(stream: stream.Writable, text: string | QRCodeSegment\[\]): Promise\<any> function toFileStream(stream: stream.Writable, text: string | QRCodeSegment\[\], options: QRCodeOptions): Promise\<any>; now function... [npmjs.com](https://www.npmjs.com/package/@types/qrcode/v/1.2.0)
- **Signature changed** `toString`  

Was function toString(text: string | QRCodeSegment\[\]): Promise\<any> function toString(text: string | QRCodeSegment\[\], options: QRCodeToStringOptions): Promise\<any>; now function toString(text: string | QRCodeSegment\[\], options?... [npmjs.com](https://www.npmjs.com/package/@types/qrcode/v/1.2.0)

## @types/qrcode 0.8.0 breaking changes

@types/qrcode 0.8.0, released June 2, 2017: 4 breaking changes.

- **Removed** `"qrcode"`  

"qrcode" was removed in @types/qrcode 0.8.0 [npmjs.com](https://www.npmjs.com/package/@types/qrcode/v/0.8.0)
- **Removed** `QRCodeLib`  

QRCodeLib was removed in @types/qrcode 0.8.0 [npmjs.com](https://www.npmjs.com/package/@types/qrcode/v/0.8.0)
- **Removed** `QRCodeOptions.errorCorrectLevel`  

QRCodeOptions.errorCorrectLevel was removed in @types/qrcode 0.8.0 [npmjs.com](https://www.npmjs.com/package/@types/qrcode/v/0.8.0)
- **Signature changed** `QRCodeOptions`  

Was type QRCodeOptions = {errorCorrectLevel?: "minimum" | "medium" | "high" | "max";}; now interface QRCodeOptions. [npmjs.com](https://www.npmjs.com/package/@types/qrcode/v/0.8.0)

## Related packages

- [@types/chrome](https://since.dev/packages/npm/@types/chrome.md)
- [@types/node](https://since.dev/packages/npm/@types/node.md)
- [@types/react](https://since.dev/packages/npm/@types/react.md)
- [@types/jqueryui](https://since.dev/packages/npm/@types/jqueryui.md)
- [@types/chrome-remote-interface](https://since.dev/packages/npm/@types/chrome-remote-interface.md)
- [@types/three](https://since.dev/packages/npm/@types/three.md)

## 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.
