Skip to content

Releases: zxing-js/browser

v0.2.0

27 Apr 10:55

Choose a tag to compare

0.2.0

Breaking Changes

  • Peer dependency bumped to @zxing/library@^0.22.0 — projects still on 0.21.x must upgrade.
  • BrowserCodeReader.options type narrowed — the protected readonly options property is now typed as Required<IBrowserCodeReaderOptions> instead of IBrowserCodeReaderOptions. TypeScript subclasses that read option
    properties will now receive number instead of number | undefined; runtime behaviour is unchanged.

Bug Fixes

  • Removed invalid --screw-ie8 flag from the Terser minification script, which caused the build:umd:min step to fail with modern Terser.
  • Fixed syntax error in the async dynamic-import example in the README.
  • Corrected BrowserPDF417CodeReaderBrowserPDF417Reader in the README reader list.
  • Corrected the description of BrowserCodeReader in the README (it is a concrete base class, not abstract).

Tooling & Infrastructure

  • Migrated from Yarn to npm. yarn.lock removed; package-lock.json is now the lock file. Install with npm ci.
  • Replaced Cypress with Jest for testing. Tests now run in Node.js via ts-jest and node-canvas, removing the need for a browser or a local HTTP server. Run with npm test.
  • Migrated from TSLint to ESLint (with typescript-eslint). TSLint has been unmaintained since 2019. The new config lives in eslint.config.mjs using the ESLint 10 flat config format.
  • Rollup config renamed rollup.config.jsrollup.config.mjs for explicit ESM; upgraded to Rollup 4. UMD build warnings (circular deps in @zxing/library, this-rewrite) are now suppressed via onwarn and context: 'window'.
  • GitHub Actions modernised:
    • All actions bumped to latest versions (checkout@v4, setup-node@v4, cache@v4, upload-artifact@v4, download-artifact@v4).
    • Node.js upgraded from 18 → 24.
    • Deprecated ::set-output replaced with $GITHUB_OUTPUT.
    • Yarn cache steps replaced with setup-node's built-in cache: npm.

Dependency Updates

Package Before After
typescript 4.5.5 6.0.3
rollup 2.67.0 4.60.2
@rollup/plugin-node-resolve 13.1.3 16.0.3
eslint 8.8.0 10.2.1
terser 5.14.2 5.46.2
shx 0.3.4 0.4.0
tslint (removed) 5.20.1
tslint-no-circular-imports (removed) 0.7.0
cypress (removed) 9.4.1
pm2 (removed) 5.1.2
chai / @types/chai (removed) 4.x
jest (added) 29.7.0
ts-jest (added) 29.3.2
canvas (added) 3.1.0
typescript-eslint (added) 8.0.0

v0.1.5

22 May 13:55
a254f65

Choose a tag to compare

What's Changed

  • fix: Adding willReadFrequently makeBufferFromCanvasImageData method to improve performance by @apolyanov in #135
  • fix: Fixing old peer dependency by @apolyanov in #136
  • Fix: set willReadFrequently attribute for multiple readback operations in scan method. by @gianmarco27 in #134

New Contributors

Full Changelog: v0.1.4...v0.1.5

v0.1.4

09 Jun 18:47
7a05db9

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.1.3...v0.1.4

0.1.3

19 Apr 13:47
9e0ef5e

Choose a tag to compare

Updated some dependencies

0.1.2

19 Apr 13:45
d5020d7

Choose a tag to compare

Using latest zxing-library

Fancy Name 43.5

06 Feb 16:53
94f7695

Choose a tag to compare

What's Changed

Full Changelog: v0.1.0...v0.1.1

Fancy Name 43

06 Feb 16:46
1ea0c63

Choose a tag to compare

What's Changed

  • Fix a typo "BrowserMultiFormatReader" by @kevinhikaruevans in #82
  • Init tempCanvasElement to null by @ale-cci in #79
  • Latest Library version by @werthdavid in #84

New Contributors

  • @kevinhikaruevans made their first contribution in #82
  • @ale-cci made their first contribution in #79
  • @werthdavid made their first contribution in #84

Full Changelog: v0.0.10...v0.1.0

Fancy Name 42

15 Nov 07:50
961aa3c

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.0.9...v0.0.10

Vertigo Shooter - patch 3

16 Apr 17:38

Choose a tag to compare

  • Fix: package entry points generating issues in some module bundlers.
  • Fix: scanner controls method .stop() generating exception due to scope issues.
  • Upgraded underlying library.

This release was sponsored by Timly

Vertigo Shooter - patch 2

25 Feb 21:24
c7ade80

Choose a tag to compare

  • Updated underlying library peer dependecy.