Releases: zxing-js/browser
Releases · zxing-js/browser
v0.2.0
0.2.0
Breaking Changes
- Peer dependency bumped to
@zxing/library@^0.22.0— projects still on0.21.xmust upgrade. BrowserCodeReader.optionstype narrowed — theprotected readonly optionsproperty is now typed asRequired<IBrowserCodeReaderOptions>instead ofIBrowserCodeReaderOptions. TypeScript subclasses that read option
properties will now receivenumberinstead ofnumber | undefined; runtime behaviour is unchanged.
Bug Fixes
- Removed invalid
--screw-ie8flag from the Terser minification script, which caused thebuild:umd:minstep to fail with modern Terser. - Fixed syntax error in the async dynamic-import example in the README.
- Corrected
BrowserPDF417CodeReader→BrowserPDF417Readerin the README reader list. - Corrected the description of
BrowserCodeReaderin the README (it is a concrete base class, not abstract).
Tooling & Infrastructure
- Migrated from Yarn to npm.
yarn.lockremoved;package-lock.jsonis now the lock file. Install withnpm ci. - Replaced Cypress with Jest for testing. Tests now run in Node.js via
ts-jestandnode-canvas, removing the need for a browser or a local HTTP server. Run withnpm test. - Migrated from TSLint to ESLint (with
typescript-eslint). TSLint has been unmaintained since 2019. The new config lives ineslint.config.mjsusing the ESLint 10 flat config format. - Rollup config renamed
rollup.config.js→rollup.config.mjsfor explicit ESM; upgraded to Rollup 4. UMD build warnings (circular deps in@zxing/library,this-rewrite) are now suppressed viaonwarnandcontext: '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-outputreplaced with$GITHUB_OUTPUT. - Yarn cache steps replaced with
setup-node's built-incache: npm.
- All actions bumped to latest versions (
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
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
- @apolyanov made their first contribution in #135
- @gianmarco27 made their first contribution in #134
Full Changelog: v0.1.4...v0.1.5
v0.1.4
What's Changed
- fix: Add missing await by @ddoice in #116
- Bump vm2 from 3.9.17 to 3.9.19 by @dependabot in #114
New Contributors
Full Changelog: v0.1.3...v0.1.4
0.1.3
Updated some dependencies
0.1.2
Using latest zxing-library
Fancy Name 43.5
What's Changed
- fixed type error by @werthdavid in #87
- Bump ws from 7.3.1 to 7.4.6 by @dependabot in #86
- Bump ansi-regex from 5.0.0 to 5.0.1 by @dependabot in #85
- Bump lodash from 4.17.20 to 4.17.21 by @dependabot in #58
- Bump path-parse from 1.0.6 to 1.0.7 by @dependabot in #69
Full Changelog: v0.1.0...v0.1.1
Fancy Name 43
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
What's Changed
- Release/v0.0.9 by @odahcam in #53
- Tracking on created streams by @lazoapostolovski in #73
- README: fix typo by @simon04 in #54
- Fix BrowserQRCodeSvgWriter by @lovasoa in #59
- docs: fix class name in list of browser readers by @bennypowers in #70
- [fix] typos by @rvalitov in #76
- Fix TSLint errors by @rvalitov in #77
New Contributors
- @lazoapostolovski made their first contribution in #73
- @simon04 made their first contribution in #54
- @lovasoa made their first contribution in #59
- @bennypowers made their first contribution in #70
- @rvalitov made their first contribution in #76
Full Changelog: v0.0.9...v0.0.10
Vertigo Shooter - patch 3
Vertigo Shooter - patch 2
- Updated underlying library peer dependecy.
