Releases: ericblade/quagga2
1.0.3
Bug Fixes
-
Major overhaul of test system, should not affect code outside of very minor changes to accommodate new tests (#188)
-
Add deprecated video constraint maxAspectRatio (#188)
-
Add test to ensure that Quagga.CameraAccess exists (#188)
-
Make some rather noisy console logs only run in development configuration (#188)
1.0.2
Bug Fixes
-
Add tests for import/require in Node (fix #119) (#184)
Add test:require and test:import npm scripts, which test require for CJS modules and import for ESM modules. Add running them to all pull request tests on Github Actions.
-
Update core-js 3.6.4=>3.6.5 (#184)
-
Drop requirement for async module for running tests (fix #12) (#184)
This satisifies the requirements for #12, as we no longer need to upgrade async module
-
Rewrite test runner that required async module using async javascript (#184)
-
Upgrade mocha to 5.2.0, close #15 (#184)
Mocha cannot be upgraded beyond 5.2.0 without rebuilding test suite without PhantomJS. Therefore, this will close issue #15 in favor of #75.
-
Warn and ignore on invalid calls to on*, setReaders, registerReader (fix #47) (#184)
Calls to onProcessed, onDetected, setReaders, and registerReader with invalid parameters will no longer generate errors later during the run, and will drop a console.trace output to help you find the place where you've incorrectly called the library.
-
Minor upgrade several other dev-deps (#184)
1.0.1
1.0.0
Breaking Changes
-
Major restructuring, may cause breaking changes (#171)
-
Calls to decodeSingle no longer populate values inside the Quagga object (#171)
- I have doubts that anyone is presently using both decodeSingle and start/stop interfaces intended for LiveStream in the same Quagga unit, but if you are -- this will be a functional change.
-
Parallel operation of multiple calls to decodeSingle works (#171)
- In previous versions of quagga, calling decodeSingle several times would result in all callbacks being called with the first result that came back.
- This has only been tested reasonably thoroughly in Node, not in Browser, so far.
Refactorings
-
Separate much of the global Quagga unit out to a separate class (#171)
- Add src/quagga/quagga.ts
- This was done to make it significantly easier to make parallel execution and allow for future refactor of multi-threaded execution
-
Minor cleanups to src/common/typedefs (#171)
Bug Fixes
- Remove restriction on making parallel runs of decodeSingle (#171)
Fix access to canvas from Quagga object
Fixed access to Quagga.canvas attributes
remove injected clearfix, export BarcodeDecoder, lots of dependency upgrades, internal rework
- No longer inserts a
tag into your document, preventing weird content reflows.
If you used floating to position your things before, you'll need to either add your own clearfix, or preferably, find a better way to layout your page.
See 592a5d0 - Internal BarcodeDecoder component is now exported to the public. See 153289e
- A ton of internal work has been performed converting a lot of code to TypeScript. All tests pass, but YMMV, so if you have any new problems, please reach out.
offDetected/offProcessed works with no arg, fix node functioning
- This release works in Node again
- offDetected() and offProcessed() may be called with no args to remove all handlers.
Fix working with Angular, bundle size, etc
- Fix problem noted in #130 failing to work with Angular
- Fix this by removing polyfills from the package
- This also returns our bundle size back to something more sane, like 160k or so for browser, and 1mb-ish for node (node is not minified.. i guess that's something we should maybe look into)
- Fix for calling 'stop' before 'init', it no longer throws a runtime error
- Fix inputstream.target definition in typescript declarations
Fix require('...').default to work again
fully fix #108
Previous release did not fully fix the problem, this one does