@docling/docling-client 2.142.0 → 2.145.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  # Python client parity
2
2
 
3
- This document compares `@docling/docling-client` with Docling Python 2.142.0
4
- at commit `6aaf87e`, specifically:
3
+ This document compares `@docling/docling-client` with Docling Python 2.145.0
4
+ at commit `45d334e`, specifically:
5
5
 
6
6
  - `DoclingServiceClient`
7
7
  - `AsyncDoclingServiceClient`
@@ -159,6 +159,41 @@ High-level limits match Python:
159
159
  TypeScript restricts limit values to safe integers, which is stricter than
160
160
  Python's unbounded integer type.
161
161
 
162
+ ## Service client changes (v2.145.0)
163
+
164
+ Python v2.145.0 at commit `45d334e` includes two service-facing changes since
165
+ v2.142.0. Everything else in the v2.143.0–v2.145.0 range (OCR, VLM, ASR,
166
+ backend fixes, mixed-format ZIP inputs) is server-side or core-library
167
+ behavior with no service-client or service-datamodel surface.
168
+
169
+ - `ZipArchiveResult` gained an optional `filename` (v2.143.0), a suggested
170
+ download name for the archive:
171
+
172
+ ```
173
+ https://github.com/docling-project/docling/blob/v2.145.0/docling/datamodel/service/responses.py#L122
174
+ ```
175
+
176
+ The TypeScript `ZipArchiveResult` interface exposes `filename?: string | null`.
177
+ Raw ZIP downloads already surfaced the `Content-Disposition` name through
178
+ `RawServiceResult.filename`.
179
+
180
+ - The service client no longer sends the default page range in request options
181
+ (v2.145.0). Python's `_resolve_options()` only writes `page_range` back when
182
+ the effective range differs from the merged options:
183
+
184
+ ```
185
+ https://github.com/docling-project/docling/blob/v2.145.0/docling/service_client/client.py#L454
186
+ ```
187
+
188
+ TypeScript `applyPageLimits()` mirrors this: with no `page_range`, `pageRange`,
189
+ or `maxNumPages`, no `page_range` is sent, and an unset range is never
190
+ materialized as the all-pages default.
191
+
192
+ | Python (v2.145.0) | TypeScript | Wire key |
193
+ | ------------------------------- | --------------------------- | ------------ |
194
+ | `ZipArchiveResult.filename` | `ZipArchiveResult.filename` | `filename` |
195
+ | `_resolve_options()` page range | `applyPageLimits()` | `page_range` |
196
+
162
197
  ## Version bump (v2.142.0)
163
198
 
164
199
  Python v2.142.0 at commit `6aaf87e` is a version-only bump over v2.141.0.
package/dist/index.cjs CHANGED
@@ -1192,6 +1192,9 @@ function applyPageLimits(options, pageRange, maxNumPages) {
1192
1192
  }
1193
1193
  if (effectiveRange !== void 0) {
1194
1194
  validatePageRange(effectiveRange);
1195
+ if (options.page_range === void 0 && effectiveRange[0] === 1 && effectiveRange[1] === Number.MAX_SAFE_INTEGER) {
1196
+ return clone(options);
1197
+ }
1195
1198
  return { ...clone(options), page_range: [...effectiveRange] };
1196
1199
  }
1197
1200
  return clone(options);