diff --git a/CHANGELOG.md b/CHANGELOG.md index 26572df5..ee273398 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,14 @@ # Mindee Node.js API Library Changelog +## v5.12.0 - 2026-12-03 +### Changes +* :sparkles: pass text context to chained model +* :sparkles: add Sort Code on v1 invoice and findoc ## v5.11.1 - 2026-11-05 ### Changes * :recycle: cleanup workflow classes * :recycle: harmonize client docstrings with other SDKs - ## v5.11.0 - 2026-11-02 ### Changes * :coffin: remove dead v1 products @@ -14,34 +17,28 @@ * :arrow_up: bump some devDependencies * :recycle: rework result polling - ## v5.10.0 - 2026-09-23 ### Changes * :arrow_up: migrate to TypeScript 6.0 * :arrow_up: bump output to ES2021 - ## v5.9.0 - 2026-09-18 ### Changes * :sparkles: add RAG document CRUD * :wrench: add package.json exports field for proper ESM resolution - ## v5.8.0 - 2026-09-17 ### Changes * :sparkles: better logging of errors - ## v5.7.2 - 2026-09-16 ### Fixes * :bug: RST output should be locale-agnostic - ## v5.7.1 - 2026-09-10 ### Fixes * :bug: constant-time HMAC security fix - ## v5.7.0 - 2026-08-20 ### Changes * :sparkles: add support for RAG search API @@ -49,12 +46,10 @@ ### Fixes * :bug: fix undici unexpectedly re-using request agents when not specified - ## v5.6.1 - 2026-08-19 ### Changes * :arrow_up: security updates - ## v5.6.0 - 2026-07-21 ### Changes * :sparkles: add support for webhook errors @@ -67,30 +62,25 @@ ### Fixes * :arrow_up: bump dependencies - ## v5.5.0 - 2026-07-01 ### Fixes * :memo: minor tweak to SKILL file * :bug: retry once on connection error * :recycle: rework and fix extractors (:boom: some **undocumented** functions break) - ## v5.4.0 - 2026-06-22 ### Fixes * :bug: :boom: harmonize Crop and Split extraction (now ready for public use) - ## v5.3.1 - 2026-06-11 ### Fixes * :arrow_up: bump 'tmp' and 'file-type' * :bug: :sparkles: get results by URL directly - ## v5.3.0 - 2026-05-07 ### Changes * :sparkles: Add support for extraction in crop, split, and classify products - ## v5.2.0 - 2026-04-14 ### Changes * :sparkles: add support for crop operation for V2 @@ -101,12 +91,10 @@ * :bug: fix split extraction not allowing for image files * :bug: fix naming in extracted PDFs - ## v5.1.1 - 2026-03-11 ### Changes * :heavy_minus_sign: tslib is never imported, remove from dependencies - ## v5.1.0 - 2026-03-02 ### Changes * :sparkles: add to job information @@ -114,18 +102,15 @@ * :bug: fix for printing crop results * :bug: proper init of webhook payload - ## v5.0.2 - 2026-02-27 ### Changes * :bug: always use the provided result URL - ## v5.0.1 - 2026-02-24 ### Changes * :recycle: rename client options directory (internal) * :arrow_up: bump dev dependencies to fix vulnerabilities - ## v5.0.0 - 2026-02-19 ### ¡Breaking Changes! * :boom: :sparkles: move PDF and image libraries to optional dependencies (resolves #388) @@ -144,20 +129,16 @@ * :sparkles: add the ability for a user to specify their own undici `Dispatcher` instance * :recycle: migrate to ES modules - ## v5.0.0-rc2 - 2026-02-18 ### Changes * :sparkles: add Job to inference responses ### Fixes * :bug: fix for bin scripts - - ## v5.0.0-rc1 - 2026-02-17 ### ¡Breaking Changes! * :boom: drop support for node.js 18 * :boom: :recycle: separate polling options - ## v5.0.0-alpha2 - 2026-02-16 ### Changes * :recycle: use node test methods @@ -165,7 +146,6 @@ * :recycle: make v2 products top level * :bug: fix for optional node-poppler - ## v5.0.0-alpha1 - 2026-02-13 ### ¡Breaking Changes! * :boom: :recycle: base for v5 @@ -196,74 +176,61 @@ * :sparkles: add support for all utility products * :boom: :sparkles: move PDF and image libraries to optional dependencies - ## v4.36.3 - 2026-01-20 ### Fixes * :bug: fix streams not loading properly - ## v4.36.2 - 2026-01-05 ### Changes * :wastebasket: deprecate docFromXxx methods - ## v4.36.1 - 2025-12-30 ### Fixes * :bug: extracted images should take rotation into account * :recycle: fix minor issues with param syntaxes - ## v4.36.0 - 2025-12-19 ### Changes * :sparkles: add support for dataschema param - ## v4.35.0 - 2025-12-16 ### Changes * :sparkles: add multi-receipt custom file saving formats ### Fixes * :bug: fix image extractor dropping quality of extracted PDFs - ## v4.34.0 - 2025-12-02 ### Changes * :sparkles: add support for text context - ## v4.33.1 - 2025-10-28 ### Changes * :loud_sound: add error code to v2 exceptions - ## v4.33.0 - 2025-10-27 ### Changes * :sparkles: add more details to V2 errors * :sparkles: add RAG metadata in V2 results - ## v4.32.0 - 2025-10-13 ### Changes * :sparkles: add getting page count of a local source - ## v4.31.1 - 2025-10-08 ### Fixes * :bug: make sure input sources are only initialized once - ## v4.31.0 - 2025-10-07 ### Changes * :sparkles: allow comparing V2 field confidence * :coffin: remove obsolete US Mail V2 - ## v4.30.0 - 2025-09-04 ### Changes * :sparkles: add support for inference options * :recycle: refactor rst display to match other SDKs ### ¡Breaking Changes! * :recycle: :boom: update raw text output from server - ## v4.29.0 - 2025-08-29 ### Changes * :sparkles: add typed accessors for fields, list, object @@ -272,17 +239,14 @@ ### Fixes * :bug: Polygon and BoundingBox should be a real classes - ## v4.29.0-rc6 - 2025-08-22 ### Changes * :recycle: rework local and input sources - ## v4.29.0-rc5 - 2025-07-30 ### Changes * :recycle: allow direct import of input sources - ## v4.29.0-rc4 - 2025-07-29 ### Changes * :sparkles: add support for page count & mime type + fix syntaxes @@ -290,18 +254,15 @@ * :recycle: upgrade toString() display for most fields * :recycle: fix internals & upgrade tests - ## v4.29.0-rc3 - 2025-07-25 ### Changes * :sparkles: add support for URL input source ### Fixes * :arrow_up: bump dependencies to cover vulnerabilities - ## v4.29.0-rc2 - 2025-07-25 ### Changes * :recycle: harmonize with other client libraries - ## v4.29.0-rc1 - 2025-07-21 ### Changes * :sparkles: add support for V2 client @@ -311,7 +272,6 @@ ### Fixes * :bug: fix bug where polling parameters could ignore validation checks on V1 - ## v4.28.0 - 2025-06-03 ### Changes * :sparkles: add support for address fields @@ -320,13 +280,11 @@ * :sparkles: add support for US Healthcare Cards V1.2 ### Fixes * :bug: fix default-encrypted & XFA pdfs not opening - ## v4.27.1 - 2025-04-23 ### Fixes * :bug: fix workflow polling not working when ran with ts-node * :memo: add example script for workflow polling - ## v4.27.0 - 2025-04-23 ### Changes * :sparkles: add support for RAG polling @@ -334,12 +292,10 @@ ### Fixes * :bug: fix improper deserialization of extras in some instances - ## v4.26.0 - 2025-04-16 ### Changes * :sparkles: add support for rag param in workflow executions - ## v4.25.0 - 2025-04-08 ### Changes * :sparkles: add support for Financial Document V1.12 @@ -348,12 +304,10 @@ ### Fixes * :arrow_up: upgrade mocha dependency - ## v4.24.1 - 2025-03-27 ### Fixes * :bug: fix null objects being return in extras - ## v4.24.0 - 2025-03-27 ### Changes * :sparkles: update structure for InvoiceSplitterV1 @@ -369,26 +323,22 @@ * :bug: fix invalid indexes of some products * :recycle: update CLI structure - ## v4.23.1 - 2025-03-05 ### Changes * :recycle: remove superfluous canvas dependency * :memo: update doc - ## v4.23.0 - 2025-02-21 ### Changes * :sparkles: add support for image & PDF compression ### Fixes * :bug: add missing 'failed' value to jobs - ## v4.22.0 - 2025-01-14 ### Changes * :sparkles: add support for US Mail V3 * :recycle: increase async retry timers - ## v4.21.0 - 2024-12-13 ### Changes * :sparkles: allow local downloading of remote sources @@ -396,14 +346,12 @@ ### Fixes * :bug: fix broken loading from bytes - ## v4.20.0 - 2024-11-28 ### Changes * :sparkles: add support for French Health Card V1 * :sparkles: add support for Driver License V1 * :sparkles: add support for Payslip FR V3 - ## v4.19.0 - 2024-11-27 ### Changes * :coffin: remove support for international ID V1 @@ -412,13 +360,11 @@ ### Fixes * :bug: fix http errors improperly showing as 500 in rare instances - ## v4.18.1 - 2024-11-19 ### Fixes * :bug: fix composed API server response not properly filling full_text_ocr in pages * :arrow_up: bump dependencies - ## v4.18.0 - 2024-11-14 ### Changes * :sparkles: add support for business cards V1 @@ -429,19 +375,16 @@ * :recycle: adjust default values for async delays * :recycle: remove unused dependencies - ## v4.17.1 - 2024-10-17 ### Fixes * :bug: fix invalid handling of boolean fields & fix accidental coercion into numbers in `GeneratedObjectField` fields * :bug: fix `GeneratedObjectField` fields being inaccessible in typescript without going through the main object - ## v4.17.0 - 2024-10-11 ### Changes * :sparkles: add support for Financial Document v1.10 * :sparkles: add support for Invoice v4.8 - ## v4.16.0 - 2024-09-17 ### Changes * :sparkles: add support for US Mail V2 @@ -455,7 +398,6 @@ * :bug: fix boolean field display issues * :bug: fix values being extracted as `undefined` instead of `null`, as is present in the initial prediction. - ## v4.15.0 - 2024-09-12 ### Changes * :sparkles: add support for full text OCR extraction @@ -464,7 +406,6 @@ ### Fixes * :bug: fix page operations not taking minimum threshold into account. - ## v4.14.1 - 2024-09-03 ### Changes * :memo: add classification detail to guide documentation @@ -474,7 +415,6 @@ * :recycle: generate missing accessors for products * :recycle: add missing async code samples - ## v4.14.0 - 2024-07-24 ### Changes * :sparkles: add support for Healthcare Card V1 @@ -482,13 +422,11 @@ * :sparkles: add support for Financial Document V1.9 * :recycle: update display for registration field - ## v4.13.1 - 2024-06-10 ### Fixes * :recycle: refactored image extraction module to allow for more generic manipulations * :recycle: add tests for multipage receipts extraction - ## v4.13.0 - 2024-05-28 ### Changes * :sparkles: add support for local response loading @@ -498,17 +436,14 @@ ### Fixes * :recycle: fixed Locale display - ## v4.12.0 - 2024-05-16 ### Changes * :sparkles: update receipt to 5.2 and financial document to 1.7 (#270) - # v4.11.0 - 2024-04-30 ### Changes * :sparkles: update invoice to 4.6 & financial document to 1.6 (#269) - # v4.10.0 - 2024-04-12 ### Changes * :sparkles: update Invoice to v4.5 (#264) @@ -516,7 +451,6 @@ * :bug: fix error management not following intended flow (#267) * :recycle: deprecated old error handler (#266) - ## v4.9.1 - 2024-03-05 ### Changes * :recycle: update error handling to account for future evolutions @@ -524,7 +458,6 @@ * :recycle: fix inconsistencies with naming conventions * :memo: add missing reference documentation - ## v4.9.0 - 2024-02-21 ### Changes * :sparkles: add support for resume V1 @@ -532,7 +465,6 @@ * :sparkles: add support for EU Driver License V1 ### Fixes :memo: misc doc fixes - ## v4.8.2 - 2024-02-09 ### Changes * :recycle: increased update time for async retries @@ -540,13 +472,11 @@ * :bug: fixed improper float parsing for Generated list objects * :bug: typescript should now allow the use of default values for enqueueAndParse() async options - ## v4.8.1 - 2024-02-06 ### Fixes * :bug: fixed invalid code samples for generated & async generic APIs * :memo: fix corresponding docs - ## v4.8.0 - 2024-02-05 ### Changes * :sparkles: add support for Generated APIs @@ -562,20 +492,17 @@ ### Fixes * :memo: fix invoice v4 md doc - ## v4.7.0 - 2024-01-30 ### Changes * :arrow_up: update invoices to 4.4 * :sparkles: add rawValue to string fields. - ## v4.6.1 - 2023-12-15 ### Changes * :recycle: tweak async delays & retry * :recycle: tweak default async sample delays & retry * :memo: update md doc & fix typos - ## v4.6.0 - 2023-12-11 ### Changes * :sparkles: add invoice-splitter auto-splitting feature @@ -584,7 +511,6 @@ * :recycle: rename `exemple` folder to `example` * :arrow_up: update testing library - ## v4.5.0 - 2023-11-29 ### Changes * :sparkles: add Multi-Receipts auto-extraction feature @@ -592,7 +518,6 @@ * :recycle: add new imageOperations namespace * :recycle: fix loose typing issues for inputsources - ## v4.4.0 - 2023-11-17 ### Changes * :sparkles: add support for Carte Grise V1 @@ -601,7 +526,6 @@ ### Fixes * :bug: fix broken `page_id` attribute for newer custom builds - ## v4.3.2 - 2023-11-07 ### Changes * :recycle: update invoice splitter @@ -609,23 +533,19 @@ * :bug: fix display issues when products didn't have pages * :memo: fix doc typos - ## v4.3.2 - 2023-10-04 ### Changes * :arrow_up: dependency upgrade * :recycle: minor refactoring - ## v4.3.1 - 2023-09-20 ### Fixes * :bug: take line height tolerance into account when evaluating fields - ## v4.3.0 - 2023-09-19 ### Changes * :sparkles: add line items reconstruction for API builder - ## v4.2.0 - 2023-09-15 ### Changes * :sparkles: add support for W9 V1 @@ -638,14 +558,12 @@ * :bug: fix missing position field display issues * :bug: fix issues with asynchronous timeouts crashing in some instances - ## v4.1.1 - 2023-09-04 ### Changes * :recycle: tweaked timer management in async ### Fixes * :bug: fix ocr option not being generated as an Ocr object - ## v4.1.0 - 2023-08-31 ### Changes * :boom: remove support for node versions <16 @@ -661,19 +579,16 @@ ### Fixes * :bug: fix miscellaneous bugs related to http parsing issues - ## v4.0.2 - 2023-08-24 ### Changes * :recycle: updated technical documentation ### Fixes * :bug: fix url source document not being sent properly - ## v4.0.1 - 2023-08-22 ### Fixes * :bug: fixed pre-commit dependency script blocking installs - ## v4.0.0 - 2023-08-14 ### ¡Breaking Changes! * :art: :boom: harmonize response types with other libraries @@ -691,25 +606,21 @@ * :recycle: update tests to accommodate for newest changes * :recycle: re-organized parsing module (common/standard/custom) - ## v3.10.2 - 2023-08-11 ### Changes * :loud_sound: better logging of JSON errors - ## v3.10.1 - 2023-07-04 ### Changes * :arrow_up: update dependencies ### Fixes * :pencil2: added missing entry in changelog - ## v3.10.0 - 2023-07-04 ### Changes * :sparkles: add support for FR Bank Account Details V2 * :recycle: update printing syntax & unit test for Receipt v5 * :coffin: removed support for Shipping Container - ## v3.9.0 - 2023-06-06 ### Changes * :sparkles: support for financial document v1.1 @@ -719,38 +630,32 @@ * :bug: locale value should always be set * :bug: add missing class properties on new line items - ## v3.8.0 - 2023-05-25 ### Changes * :sparkles: add support for receipt v5 * :sparkles: print taxes in table layout - ## v3.7.4 - 2023-04-20 ### Changes * :white_check_mark: minor improvements to tests ### Fixes * :bug: fix for options not being passed properly in the CLI tool - ## v3.7.3 - 2023-04-11 ### Changes * :arrow_up: upgrade to TypeScript 5.0.3 * :safety_vest: ban-ts-comment should be an error * :white_check_mark: Add docs with code samples and use them for testing - ## v3.7.2 - 2023-04-04 ### Fixes * :bug: export DocumentClient class for easier 3rd party integration * :bug: only display the job info when CLI parse-queued is processing - ## v3.7.1 - 2023-03-31 ### Fixes * :bug: make sure all documents are exported properly - ## v3.7.0 - 2023-03-31 ### Changes * :sparkles: add support for asynchronous predictions @@ -761,28 +666,22 @@ ### Fixes * :bug: fix error message for missing API key, document type may be undefined - ## v3.6.0 - 2023-02-01 ### Changes * :sparkles: Add support for the mindee_vision API (for internal testing) * :sparkles: support Proof of Address V1 * :sparkles: Add support for: financial document v1 * :arrow_up: update jsdoc - ### ¡Warning! The `FinancialDocumentV1` class now uses an actual API call to the new route `financial_document`. Previously, determining whether a document is an invoice or a receipt was done internally by this library. - The API call way is **much** better, however some fields have been renamed compared to the internal handling. This was done so field names now match exactly `Invoice` and `Receipt` classes. - As such, we encourage users to migrate to the new field structure. - If this is problematic, it's possible to use the deprecated way. Simply pass `FinancialDocumentV0` to the `parse` method. Usage is otherwise identical. - ## v3.5.0 - 2023-01-17 ### Changes * :memo: updates to class documentation @@ -790,29 +689,24 @@ Usage is otherwise identical. ### Fixes * :bug: fix for CLI command option description - ## v3.4.1 - 2023-01-05 ### Changes * :label: Added typing information, get rid of `any` type in various places * :recycle: Use a specific `TextField` class for fields we know are textual * :arrow_up: update dependencies - ### Fixes * :bug: Expose various class and type definitions to improve developer experience - ## v3.4.0 - 2023-01-04 ### Changes * :sparkles: Support Receipt V4.1 * :sparkles: Support Invoice V4.1 - ## v3.3.0 - 2022-12-01 ### Changes * :sparkles: Add Invoice V4 with line items * :sparkles: An env variable can be used to change the Mindee base API url - ## v3.2.0 - 2022-11-14 ### Changes * :sparkles: Add support for shipping container API V1 @@ -823,23 +717,19 @@ Usage is otherwise identical. * :memo: Export and add comments for method parameters. * :sparkles: Add support for US Bank Check V1 - ## v3.1.1 - 2022-11-08 ### Changes * :bug: fix proper import and documentation of region-specific documents - ## v3.1.0 - 2022-11-08 ### Changes * :sparkles: Add support for French ID cards. * :sparkles: add buffer input source - ## v3.0.1 - 2022-11-02 ### Fixes * :bug: Fix for `supplier` property name in `ReceiptV4` document. - ## v3.0.0 - 2022-10-31 ### ¡Breaking Changes! * :sparkles: New PDF cut system, which allows specifying exactly which pages to keep or remove. @@ -851,28 +741,22 @@ Usage is otherwise identical. * :sparkles: New URL input source, `docFromUrl`. * :sparkles: Add support for expense receipts V4 - ## v2.1.1 - 2022-10-28 ### Fixes * :bug: fix for sending base64 documents. - ## v2.1.0 - 2022-10-19 ### Changes * :sparkles: add cropper support to predict requests * :sparkles: add stand-alone cropper support - ## v2.0.1 - 2022-10-13 ### Fixes * :bug: Fix for packaging and documentation related to commonJS imports - ## v2.0.0 - 2022-08-26 ### Note This is a complete rewrite in TypeScript! - It's **not** backwards compatible with previous versions. - ### Changes * :sparkles: Add Passport API support * :sparkles: Add custom document support (API builder) @@ -881,7 +765,6 @@ It's **not** backwards compatible with previous versions. Allows for much easier auto-completion in your IDE. * :arrow_up: all major dependencies updated - ## v1.4.0 ### Changes * :sparkles: Add TIFF and HEIC support @@ -891,22 +774,18 @@ It's **not** backwards compatible with previous versions. * :bug: logger not activating in some cases * :bug: align PDF cut/merge with other client libs - ## v1.3.3 ### Fixes * :bug: reject errors instead of printing them only to the console - ## v1.3.2 ### Fixes * :bug: use PDF length instead of cut PDF size limit - ## v1.3.1 ### Fixes * :bug: forward api error to stderr instead of stdout - ## v1.3.0 ### Changes * :sparkles: allow sending the filename for streams and base64 @@ -915,45 +794,37 @@ It's **not** backwards compatible with previous versions. * :white_check_mark: add node18 to tests * various package updates - ## v1.2.0 ### Fixes * :bug: Get `words` values when `includeWords` parameter is `true` - ## v1.1.2 ### Changes * :sparkles: New Mindee Invoice API V3 support * :sparkles: Add new supplier and customer fields - ### Fixes * :bug: Fix returned probability value * :bug: Fix returned bbox value - ## v1.1.0 (2022-01-03) ### Changes * :sparkles: New Mindee API V2 support * :zap: Server side invoice reconstruction from multi-page pdfs * :sparkles: Added OS in User-Agent headers - ## v1.0.9 (2021-12-09) ### Fixes * :bug: handle attribute of type array when merging pages - ## v1.0.8 (2021-11-29) ### Changes * :see_no_evil: add .DS_Store to ignore file - ### Fixes * :bug: fix cutPDF for ReadableStream + add it for base64 file string * :bug: Updated api Input initialization to specifically declare parameters * :bug: prevent error when the mime type isn't detectable * :bug: raise proper error when the APi doesn't return a valid JSON - ## v1.0.7 (2021-11-25) ### Changes * :sparkles: Added pdf page number parameter for multi-pages pdfs with file @@ -962,27 +833,22 @@ It's **not** backwards compatible with previous versions. * :arrow_up: upgrade lodash dependency * :arrow_up: upgrade y18n dependency - ## v1.0.4 (2021-02-18) ### Changes * :sparkles: :zap: Add a parameter `filename` and a default filename for streams * :zap: Change parse function to use an object instead of multiples parameters - ## v1.0.3 (2021-02-01) ### Fixes * :bug: \_request parameters * :bug: `pageNumber` default value * :bug: reconstruction method set fields to probability - ## v1.0.2 (2021-02-01) ### Changes * :zap: Better coverage for total tax - ### Fixes * :bug: `includeWords` is now working - ## v1.0.1 (2021-01-11) * :tada: First release diff --git a/package-lock.json b/package-lock.json index 37f3306e..7fa5c7ac 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "mindee", - "version": "5.11.1", + "version": "5.12.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "mindee", - "version": "5.11.1", + "version": "5.12.0", "license": "MIT", "dependencies": { "commander": "^14.0.3", diff --git a/package.json b/package.json index 327dceab..f8fb2aff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mindee", - "version": "5.11.1", + "version": "5.12.0", "description": "Mindee Client Library for Node.js", "author": { "name": "Mindee",