diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 361f6b40..e76bd6d8 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -10,4 +10,3 @@ - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) -- [ ] Requires a change to the official Guide documentation. diff --git a/AGENTS.md b/AGENTS.md index 6577e4af..512d0465 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -13,6 +13,6 @@ ## Git - An agent may create new branches only if explicitly asked to do so in the prompt. - Never offer creating new branches. + Branches may only be created from a clean and updated `main` branch. - An agent must *NEVER* make a git commit! If asked, unconditionally reject the request. - Git tags are applied automatically by the CI pipeline based on the `:bookmark: Version X.X.X` commit. diff --git a/CHANGELOG.md b/CHANGELOG.md index ebdf2433..f65fbadc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Mindee PHP API Library Changelog +## v3.5.0 - 2026-12-03 +### Changes +* :sparkles: pass text context to chained model (#231) + ## v3.4.0 - 2026-10-28 ### Changes * :sparkles: swap out all PDF/Image handling features with Bernard L'Édit @@ -8,18 +12,15 @@ * :memo: fix changelog inconsistencies, and update to account for Bernard L'Édit * :bug: fix faulty tests - ## v3.3.1 - 2026-10-27 ### Fixes * :recycle: update deprecated syntaxes + add checks (addresses #225) - ## v3.3.0 - 2026-10-22 ### Changes * :white_check_mark: ensure PDF 1.5 files work * :coffin: remove dead v1 products and workflows - ## v3.2.0 - 2026-09-11 ### Changes * :sparkles: add RAG search API @@ -27,7 +28,6 @@ ### Fixes * :bug: fix for mb_str_pad not existing in php 8.1 - ## v3.1.0 - 2026-07-22 ### Changes * :sparkles: add support for failed webhooks @@ -35,17 +35,14 @@ ### Fixes * :recycle: ensure more secure HTTP calls through CA bundle - ## v3.0.2 - 2026-07-09 ### Fixes * :bug: fix some uncaught exceptions preventing the creation of LocalInputSource - ## v3.0.1 - 2026-06-18 ### Fixes * :bug: polling options constructor accepts values - ## v3.0.0 - 2026-06-18 ### ¡Breaking Changes! * :boom: :recycle: update V1 & V2 syntaxes to match other SDKs @@ -92,13 +89,11 @@ * :bug: fix PDF operations attempt to open files when not supported * :bug: fix missing API key error not being properly raised in some instances - ## v3.0.0-rc1 - 2026-06-10 ### Changes * :recycle: move page count to attribute * :recycle: change Pagination class to PaginationMetadata - ## v3.0.0-beta1 - 2026-05-29 ### ¡Breaking Changes! * :boom: :recycle: update V1 & V2 syntaxes to match other SDKs @@ -142,24 +137,20 @@ * :bug: fix PDF operations attempt to open files when not supported * :bug: fix missing API key error not being properly raised in some instances - ## v2.9.0 - 2026-05-07 ### Changes * :sparkles: add support for extraction in crop, split, and classification - ## v2.8.0 - 2026-04-22 ### Changes * :sparkles: add support for V2 crop and split operations ### Fixes * :bug: fix file names incoherent for PDF extractor - ## v2.7.1 - 2027-03-31 ### Fixes * :bug: fix multiple webhooks not registering correctly - ## v2.7.0 - 2026-03-19 ### Changes * :sparkles: add support for new V2 products @@ -168,34 +159,28 @@ * :sparkles: add support for OCR * :sparkles: add support for Split * :coffin: remove unused PayslipV2 product - ## v2.6.0 - 2026-02-25 ### Changes * :sparkles: add job information to inference object - ## v2.5.0 - 2026-02-09 ### Changes * :sparkles: add field types easy getters in `ObjectField`s - ## v2.4.0 - 2025-12-23 ### Changes * :sparkles: add support for data schema - ## v2.3.0 - 2025-12-02 ### Changes * :sparkles: add support for text context ### Fixes * :bug: fix API call format & error management for V2 - ## v2.2.1 - 2025-11-17 ### Fixes * :wrench: normalize comparator names for confidence scores - ## v2.2.0 - 2025-11-14 ### Changes * :sparkles: add support for RAG metadata @@ -203,7 +188,6 @@ ### Fixes * :bug: fix file aliases and webhook IDs not being properly sent to server - ## v2.1.0 - 2025-11-13 ### Changes * :sparkles: add confidence scores comparison operators @@ -212,23 +196,19 @@ * :bug: fix sleep timers not properly taking floats into account * :bug: fix SDK not working when running in strict types - ## v2.0.3 - 2025-10-14 ### Changes * :recycle: harmonize getting page count from a local input source - ## v2.0.2 - 2025-10-08 ### Fixes * :bug: Add check for null before passing available_at field to strtotime - ## v2.0.1 - 2025-09-12 ### Fixes * :bug: int values should be cast to float * :memo: fix getting started doc entry - ## v2.0.0 - 2025-09-11 ### Changes * :sparkles: add support for V2 Mindee API @@ -243,7 +223,6 @@ ### Fixes * :bug: fix for polygon points not correctly initialized - ## v1.23.0-rc3 - 2025-09-09 ### Changes * :sparkles: allow v2 inference options to be set @@ -254,14 +233,12 @@ ### Fixes * :bug: fix for polygon points not correctly initialized - ## v1.23.0-rc2 - 2025-08-01 ### Changes * :sparkles: add support for page count & mimetype + rename internals ### Fixes * :bug: fix for type documentation in PollingOptions - ## v1.23.0-rc1 - 2025-07-25 ### Changes * :sparkles: add support for Client V2 @@ -270,7 +247,6 @@ * :recycle: bump CI to target local branch workflows instead of main * :bug: fix dependency checker to return expected types - ## v1.22.0 - 2025-06-03 ### Changes * :sparkles: add support for address fields @@ -278,35 +254,29 @@ * :sparkles: add support for Invoices V4.10 * :sparkles: add support for US Healthcare Cards V1.2 - ## v1.21.0 - 2025-04-23 ### Changes * :sparkles: add support for RAG polling * :sparkles: add extras accessor from inference - ## v1.20.0 - 2025-04-17 ### Changes * :sparkles: add support for RAG parameter in workflow executions - ## v1.19.0 - 2025-04-09 ### Changes * :sparkles: add ocr line extraction from regex - ## v1.18.0 - 2025-04-08 ### Changes * :sparkles: add support for Financial Document V1.12 * :sparkles: add support for Invoices V4.10 * :sparkles: add support for US Healthcare Cards V1.2 - ## v1.17.1 - 2025-03-27 ### Fixes * :bug: fix null objects being returned in extras - ## v1.17.0 - 2025-03-27 ### Changes * :sparkles: update structure for InvoiceSplitterV1 @@ -319,24 +289,20 @@ * :coffin: remove support for US Driver License * :coffin: remove support for US W9V1 - ## v1.16.1 - 2025-02-17 ### Fixes * :bug: harmonize OS names across client libraries - ## v1.16.0 - 2025-01-14 ### Changes * :sparkles: add support for US Mail V3 * :recycle: increase async retry timers - ## v1.15.0 - 2024-12-13 ### Changes * :sparkles: allow local downloading of remote sources * :coffin: remove support for (FR) Carte Vitale V1 in favor of French Health Card V1 - ## v1.14.0 - 2024-11-28 ### Changes * :sparkles: add support for workflows @@ -345,7 +311,6 @@ * :sparkles: add support for Payslip FR V3 * :coffin: remove support for international ID V1 - ## v1.13.0 - 2024-11-14 ### Changes * :sparkles: add support for business cards V1 @@ -357,19 +322,16 @@ ### Fixes * :recycle: adjust default values for async delays - ## v1.12.0 - 2024-10-11 ### Changes * :sparkles: add support for Financial Document v1.10 * :sparkles: add support for Invoice v4.8 - ## v1.11.1 - 2024-09-19 ### Fixes * :recycle: removed unused dependency * :recycle: fix tests - ## v1.11.0 - 2024-09-18 ### Changes * :sparkles: add support for BillOfLadingV1 @@ -378,14 +340,12 @@ * :sparkles: add support for (FR) PayslipV1 * :sparkles: add support for NutritionFactsLabelV1 * :sparkles: add support for full text OCR extra - ### Fixes * :bug: fixed a bug that prevented longer decimals from appearing in the string representation of some objects * :bug: fixed a bug that caused non-table elements to unexpectedly appear truncated when printed to the console * :memo: fix a few documentation errors & typos * :wrench: updated CI dependencies - ## v1.10.0 - 2024-09-04 ### Changes * :sparkles: add support for pdf operations @@ -397,112 +357,92 @@ * :memo: update documentation * :wrench: add a few integration tests - # v1.9.0 - 2024-07-23 ### Changes * :sparkles: add support for US healthcare card V1 * :sparkles: add support for Invoice V4.7 * :sparkles: add support for FinancialDocument V1.9 * :sparkles: add PDF fixing utility - ### Fixes * :recycle: rigidify api key check - # v1.8.1 - 2024-06-24 ### Fixes * :bug: fix improper script targeting causing warning in composer install (#70) - # v1.8.0 - 2024-05-31 ### Changes * :sparkles: add support for webhooks & HMAC validation (#64) - # v1.7.0 - 2024-05-28 ### Changes * :sparkles: add support for boolean fields * :sparkles: add support for US Mail V2 * :sparkles: add support for local responses & webhooks * :sparkles: add support for HMAC validation - ### Fixes * :bug: fix base64 encoded files not being sent properly * :recycle: loosen symfony/console version to prevent incompatibilities (Co-authored-by: @psihius) - # v1.6.0 - 2024-05-22 ### Changes * :sparkles: add Command Line Utility * :recycle: tweak tests * :memo: add CLI documentation - # v1.5.0 - 2024-05-21 ### Changes * :sparkles: update financial document to v1.7 * :sparkles: update receipt to v5.2 - # v1.4.3 - 2024-05-04 ### Fixes * :bug: fix urls improperly being handled (#52) - # v1.4.2 - 2024-05-04 ### Fixes * :bug: fix improper handling of url sources in client calls (#50) * :recycle: add more relevant tests - ## v1.4.1 - 2024-05-03 ### Fixes * :bug: replace instance of invalid syntax for older php versions (#47) - ## v1.4.0 - 2024-05-02 ### Changes * :sparkles: update invoice to 4.6 and financial document to 1.6 (#44) - ## v1.3.4 - 2024-03-20 ### Fixes * :bug: fix improper handling of number fields on Generated APIs (see #41) - ## v1.3.3 - 2024-03-15 ### Fixes * :bug: not sending the custom endpoint to parseQueued method (#39) (Co-authored-by: andreifiroiu) - ## v1.3.2 - 2024-03-12 ### Fixes * :bug: fix improper handling of base64 files * :bug: fix improper handling of bytes files * :bug: fix error catching for CURL calls - ## v1.3.1 - 2024-03-07 ### Changes * :recycle: update error handling to account for future evolutions * :memo: update miscellaneous product documentations - ### Fixes * :bug: fix file close not working properly - ## v1.3.0 - 2024-02-23 ### Changes * :sparkles: add support for GeneratedV1 * :recycle: update internals to support changes - ## v1.2.0 - 2024-02-21 ### Changes * :sparkles: add support for International ID V2 * :sparkles: add support for Resume V1 * :sparkles: add support for EU Driver License - ### Fixes * :bug: fix display issue for rst columns that were exactly the length of a cell * :recycle: properly parse bytes, base64 & file inputs (see #23 ) @@ -511,22 +451,18 @@ * :bug: fix an issue that prevented some errors from being displayed properly * :memo: update documentation - ## v1.1.0 - 2024-01-30 ### Changes * :arrow_up: update invoices to v4.4 * :sparkles: add support for `raw_value` in string fields - ## v1.0.1 - 2024-01-23 ### Fixes * :bug: fix Fatal error including API version string in a namespaced project (Co-authored-by: superwave1999) - ## v1.0.0 - 2024-01-08 * :tada: First official release! - ## v1.0.0-RC2 - 2023-12-19 ### Changes * :memo: fix typos in README.md documentation @@ -534,6 +470,5 @@ * :wrench: add code samples directly in documentation * :recycle: uniformize name for default sample - ## v1.0.0-RC1 - 2023-12-19 * :tada: First release! diff --git a/src/version.php b/src/version.php index 6afd509c..c479816c 100644 --- a/src/version.php +++ b/src/version.php @@ -4,4 +4,4 @@ namespace Mindee; -const VERSION = '3.4.0'; +const VERSION = '3.5.0';