fix(deps): update dependency tesseract.js to v6
This PR contains the following updates:
| Package | Change | Age | Confidence |
|---|---|---|---|
| tesseract.js | ^5.1.1 -> ^6.0.0 |
Release Notes
naptha/tesseract.js (tesseract.js)
v6.0.1
What's Changed
- Switched from using
node-fetchto using built-infetchimplementation for Node.js v18 and newer.- This resolves a nuisance dependency-related warning message reported in #876
- Various minor updates
Full Changelog: https://github.com/naptha/tesseract.js/compare/v6.0.0...v6.0.1
v6.0.0
What's Changed
- Fixed memory leaks (#977)
- This version fixed a long-standing issue where memory would rise over time, eventually leading to a crash.
- Reduced runtime and memory usage for most users by updating default formats (#916).
- Fixed compatibility with Electron main process (#925)
- Fixed bug where user-provided parameters were overwritten by defaults (#975).
Breaking Changes
- All outputs formats other than
textare now disabled by default.- To re-enable the
hocroutput (for example), set the following:worker.recognize(image, {}, { hocr: true })- See here for a list of possible output formats.
- To re-enable the
- The JavaScript object output format (
blocks) was tweaked.- Only the array of blocks (
blocks) is returned.- Previous versions would automatically generate lists of every unit of text (
words,symbols, etc.).- If needed, these should now be generated by the user.
- Previous versions would automatically generate lists of every unit of text (
- Only text-based blocks are reported.
- Previous versions reported non-text blocks when detected by Tesseract (e.g. line segments).
- The shape of some objects were changed.
- See the type declarations for reference on properties.
- The main properties--
textandbbox--are unchanged.
- Only the array of blocks (
- Various functions and options marked as depreciated previously have been removed.
- This includes
worker.initializeandworker.loadLanguage, along with several depreciated options from v2.
- This includes
See #993 for additional discussion about this release.
New Contributors
- @IgorAufricht made their first contribution in #971
Full Changelog: https://github.com/naptha/tesseract.js/compare/v5.1.1...v6.0.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| it-tools | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 10, 2025 1:53pm |