From 455b315a252938da588cd35b5df9f4e40488a675 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 14 Oct 2026 10:18:11 +0000 Subject: [PATCH] chore: version packages --- .changeset/batch-set-field-value.md | 11 ----------- .changeset/leaner-agent-requests.md | 12 ------------ embed/CHANGELOG.md | 16 ++++++++++++++++ embed/package.json | 2 +- react/CHANGELOG.md | 22 ++++++++++++++++++++++ react/package.json | 4 ++-- web/CHANGELOG.md | 22 ++++++++++++++++++++++ web/package.json | 4 ++-- 8 files changed, 65 insertions(+), 28 deletions(-) delete mode 100644 .changeset/batch-set-field-value.md delete mode 100644 .changeset/leaner-agent-requests.md diff --git a/.changeset/batch-set-field-value.md b/.changeset/batch-set-field-value.md deleted file mode 100644 index 187d397c..00000000 --- a/.changeset/batch-set-field-value.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@simplepdf/embed": minor -"@simplepdf/react-embed-pdf": minor -"@simplepdf/web-embed-pdf": minor ---- - -**Fill several fields in one call: `batchSetFieldValues` sets every value at once, or none of them.** -- `batchSetFieldValues({ updates: [{ fieldId, value }] })` applies every update in one step, reverted by a single undo in the editor, and resolves with no data. -- If any update is rejected (an unknown field, an invalid option, a read-only field, an unreadable signature URL, the same field twice), nothing changes: the result fails with `bad_request:batch_validation_failed` and `error.details.failures` lists every rejected update with its `fieldId`, `code` and `message` (typed as `BatchValidationFailedDetails`). -- Values follow the `setFieldValue` rules and are never typed out. -- Available everywhere the editor operations are: `embed.actions.batchSetFieldValues`, `useEmbed().actions.batchSetFieldValues`, the `batchSetFieldValues` agentic tool on every tool subpath, and the `simplepdf_embed_batch_set_field_values` WebMCP tool, including on pages using `@simplepdf/web-embed-pdf`. diff --git a/.changeset/leaner-agent-requests.md b/.changeset/leaner-agent-requests.md deleted file mode 100644 index f2fa4b38..00000000 --- a/.changeset/leaner-agent-requests.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"@simplepdf/embed": minor -"@simplepdf/react-embed-pdf": patch -"@simplepdf/web-embed-pdf": patch ---- - -**Smaller installs, leaner agent requests, readable stack traces.** -- The agentic tools no longer repeat each tool's description inside its input schema: with the shorter descriptions below, a model request carrying all the AI SDK or TanStack AI tools sends about 3 KB less (24%) even with the new `batchSetFieldValues` tool, and the agentic entry points are 28 to 29% smaller. -- Tool descriptions are about 24% shorter (900 fewer characters across the 16 tools of the previous release): they state behavior and leave the details to each parameter, permission notes are gone (a refused call answers with its error code), and they name no tool or key whose spelling differs between surfaces, so they read true whether your agent sees camelCase (AI SDK, TanStack AI) or snake_case (WebMCP). The signature `value` documents that plain text is drawn as a typed signature. `getAnnotatedPage` states that the WebMCP tool returns the render as an image block and the rest of the result as a text block. -- Smaller installs: no source maps, so `@simplepdf/embed` unpacks to 248 KB instead of 596 KB and `@simplepdf/react-embed-pdf` to 74 KB instead of 110 KB. `@simplepdf/react-embed-pdf` is no longer minified, so an error inside it shows readable code in your devtools and error tracker; your bundler still minifies your app. -- `@simplepdf/web-embed-pdf` drops its `browser` field, so bundlers resolve the readable `dist/index.js`; the script-tag build on unpkg stays minified. -- The `/schemas` input schemas no longer carry the operation description at their root; read it from `SIMPLEPDF_TOOLS[name].description`, or from `OPERATIONS` in `@simplepdf/embed/protocol` for every operation including `loadDocument`. diff --git a/embed/CHANGELOG.md b/embed/CHANGELOG.md index c1cd2e78..a9b7b5af 100644 --- a/embed/CHANGELOG.md +++ b/embed/CHANGELOG.md @@ -1,5 +1,21 @@ # @simplepdf/embed +## 0.9.0 + +### Minor Changes + +- c225115: **Fill several fields in one call: `batchSetFieldValues` sets every value at once, or none of them.** + - `batchSetFieldValues({ updates: [{ fieldId, value }] })` applies every update in one step, reverted by a single undo in the editor, and resolves with no data. + - If any update is rejected (an unknown field, an invalid option, a read-only field, an unreadable signature URL, the same field twice), nothing changes: the result fails with `bad_request:batch_validation_failed` and `error.details.failures` lists every rejected update with its `fieldId`, `code` and `message` (typed as `BatchValidationFailedDetails`). + - Values follow the `setFieldValue` rules and are never typed out. + - Available everywhere the editor operations are: `embed.actions.batchSetFieldValues`, `useEmbed().actions.batchSetFieldValues`, the `batchSetFieldValues` agentic tool on every tool subpath, and the `simplepdf_embed_batch_set_field_values` WebMCP tool, including on pages using `@simplepdf/web-embed-pdf`. +- c225115: **Smaller installs, leaner agent requests, readable stack traces.** + - The agentic tools no longer repeat each tool's description inside its input schema: with the shorter descriptions below, a model request carrying all the AI SDK or TanStack AI tools sends about 3 KB less (24%) even with the new `batchSetFieldValues` tool, and the agentic entry points are 28 to 29% smaller. + - Tool descriptions are about 24% shorter (900 fewer characters across the 16 tools of the previous release): they state behavior and leave the details to each parameter, permission notes are gone (a refused call answers with its error code), and they name no tool or key whose spelling differs between surfaces, so they read true whether your agent sees camelCase (AI SDK, TanStack AI) or snake_case (WebMCP). The signature `value` documents that plain text is drawn as a typed signature. `getAnnotatedPage` states that the WebMCP tool returns the render as an image block and the rest of the result as a text block. + - Smaller installs: no source maps, so `@simplepdf/embed` unpacks to 248 KB instead of 596 KB and `@simplepdf/react-embed-pdf` to 74 KB instead of 110 KB. `@simplepdf/react-embed-pdf` is no longer minified, so an error inside it shows readable code in your devtools and error tracker; your bundler still minifies your app. + - `@simplepdf/web-embed-pdf` drops its `browser` field, so bundlers resolve the readable `dist/index.js`; the script-tag build on unpkg stays minified. + - The `/schemas` input schemas no longer carry the operation description at their root; read it from `SIMPLEPDF_TOOLS[name].description`, or from `OPERATIONS` in `@simplepdf/embed/protocol` for every operation including `loadDocument`. + ## 0.8.0 ### Minor Changes diff --git a/embed/package.json b/embed/package.json index 26b7eb14..ff1d6998 100644 --- a/embed/package.json +++ b/embed/package.json @@ -1,6 +1,6 @@ { "name": "@simplepdf/embed", - "version": "0.8.0", + "version": "0.9.0", "description": "Embed and programmatically drive the SimplePDF editor over its iframe bridge", "type": "module", "private": false, diff --git a/react/CHANGELOG.md b/react/CHANGELOG.md index 50d51d5c..d65d917b 100644 --- a/react/CHANGELOG.md +++ b/react/CHANGELOG.md @@ -1,5 +1,27 @@ # @simplepdf/react-embed-pdf +## 1.14.0 + +### Minor Changes + +- c225115: **Fill several fields in one call: `batchSetFieldValues` sets every value at once, or none of them.** + - `batchSetFieldValues({ updates: [{ fieldId, value }] })` applies every update in one step, reverted by a single undo in the editor, and resolves with no data. + - If any update is rejected (an unknown field, an invalid option, a read-only field, an unreadable signature URL, the same field twice), nothing changes: the result fails with `bad_request:batch_validation_failed` and `error.details.failures` lists every rejected update with its `fieldId`, `code` and `message` (typed as `BatchValidationFailedDetails`). + - Values follow the `setFieldValue` rules and are never typed out. + - Available everywhere the editor operations are: `embed.actions.batchSetFieldValues`, `useEmbed().actions.batchSetFieldValues`, the `batchSetFieldValues` agentic tool on every tool subpath, and the `simplepdf_embed_batch_set_field_values` WebMCP tool, including on pages using `@simplepdf/web-embed-pdf`. + +### Patch Changes + +- c225115: **Smaller installs, leaner agent requests, readable stack traces.** + - The agentic tools no longer repeat each tool's description inside its input schema: with the shorter descriptions below, a model request carrying all the AI SDK or TanStack AI tools sends about 3 KB less (24%) even with the new `batchSetFieldValues` tool, and the agentic entry points are 28 to 29% smaller. + - Tool descriptions are about 24% shorter (900 fewer characters across the 16 tools of the previous release): they state behavior and leave the details to each parameter, permission notes are gone (a refused call answers with its error code), and they name no tool or key whose spelling differs between surfaces, so they read true whether your agent sees camelCase (AI SDK, TanStack AI) or snake_case (WebMCP). The signature `value` documents that plain text is drawn as a typed signature. `getAnnotatedPage` states that the WebMCP tool returns the render as an image block and the rest of the result as a text block. + - Smaller installs: no source maps, so `@simplepdf/embed` unpacks to 248 KB instead of 596 KB and `@simplepdf/react-embed-pdf` to 74 KB instead of 110 KB. `@simplepdf/react-embed-pdf` is no longer minified, so an error inside it shows readable code in your devtools and error tracker; your bundler still minifies your app. + - `@simplepdf/web-embed-pdf` drops its `browser` field, so bundlers resolve the readable `dist/index.js`; the script-tag build on unpkg stays minified. + - The `/schemas` input schemas no longer carry the operation description at their root; read it from `SIMPLEPDF_TOOLS[name].description`, or from `OPERATIONS` in `@simplepdf/embed/protocol` for every operation including `loadDocument`. +- Updated dependencies [c225115] +- Updated dependencies [c225115] + - @simplepdf/embed@0.9.0 + ## 1.13.1 ### Patch Changes diff --git a/react/package.json b/react/package.json index 19a66ee9..acc5145b 100644 --- a/react/package.json +++ b/react/package.json @@ -1,6 +1,6 @@ { "name": "@simplepdf/react-embed-pdf", - "version": "1.13.1", + "version": "1.14.0", "description": "SimplePDF straight into your React app", "repository": { "type": "git", @@ -49,7 +49,7 @@ "check:api": "node ../scripts/check-api.mjs ." }, "dependencies": { - "@simplepdf/embed": "0.8.0" + "@simplepdf/embed": "0.9.0" }, "peerDependencies": { "@tanstack/ai": "^0.38.0", diff --git a/web/CHANGELOG.md b/web/CHANGELOG.md index 0277c666..260dfb5d 100644 --- a/web/CHANGELOG.md +++ b/web/CHANGELOG.md @@ -1,5 +1,27 @@ # @simplepdf/web-embed-pdf +## 1.10.0 + +### Minor Changes + +- c225115: **Fill several fields in one call: `batchSetFieldValues` sets every value at once, or none of them.** + - `batchSetFieldValues({ updates: [{ fieldId, value }] })` applies every update in one step, reverted by a single undo in the editor, and resolves with no data. + - If any update is rejected (an unknown field, an invalid option, a read-only field, an unreadable signature URL, the same field twice), nothing changes: the result fails with `bad_request:batch_validation_failed` and `error.details.failures` lists every rejected update with its `fieldId`, `code` and `message` (typed as `BatchValidationFailedDetails`). + - Values follow the `setFieldValue` rules and are never typed out. + - Available everywhere the editor operations are: `embed.actions.batchSetFieldValues`, `useEmbed().actions.batchSetFieldValues`, the `batchSetFieldValues` agentic tool on every tool subpath, and the `simplepdf_embed_batch_set_field_values` WebMCP tool, including on pages using `@simplepdf/web-embed-pdf`. + +### Patch Changes + +- c225115: **Smaller installs, leaner agent requests, readable stack traces.** + - The agentic tools no longer repeat each tool's description inside its input schema: with the shorter descriptions below, a model request carrying all the AI SDK or TanStack AI tools sends about 3 KB less (24%) even with the new `batchSetFieldValues` tool, and the agentic entry points are 28 to 29% smaller. + - Tool descriptions are about 24% shorter (900 fewer characters across the 16 tools of the previous release): they state behavior and leave the details to each parameter, permission notes are gone (a refused call answers with its error code), and they name no tool or key whose spelling differs between surfaces, so they read true whether your agent sees camelCase (AI SDK, TanStack AI) or snake_case (WebMCP). The signature `value` documents that plain text is drawn as a typed signature. `getAnnotatedPage` states that the WebMCP tool returns the render as an image block and the rest of the result as a text block. + - Smaller installs: no source maps, so `@simplepdf/embed` unpacks to 248 KB instead of 596 KB and `@simplepdf/react-embed-pdf` to 74 KB instead of 110 KB. `@simplepdf/react-embed-pdf` is no longer minified, so an error inside it shows readable code in your devtools and error tracker; your bundler still minifies your app. + - `@simplepdf/web-embed-pdf` drops its `browser` field, so bundlers resolve the readable `dist/index.js`; the script-tag build on unpkg stays minified. + - The `/schemas` input schemas no longer carry the operation description at their root; read it from `SIMPLEPDF_TOOLS[name].description`, or from `OPERATIONS` in `@simplepdf/embed/protocol` for every operation including `loadDocument`. +- Updated dependencies [c225115] +- Updated dependencies [c225115] + - @simplepdf/embed@0.9.0 + ## 1.9.1 ### Patch Changes diff --git a/web/package.json b/web/package.json index 7787b356..b0677383 100644 --- a/web/package.json +++ b/web/package.json @@ -1,6 +1,6 @@ { "name": "@simplepdf/web-embed-pdf", - "version": "1.9.1", + "version": "1.10.0", "description": "SimplePDF straight into your website", "repository": { "type": "git", @@ -52,6 +52,6 @@ "pdf" ], "dependencies": { - "@simplepdf/embed": "0.8.0" + "@simplepdf/embed": "0.9.0" } }