Skip to content

chore: version packages#44

Merged
bendersej merged 1 commit into
mainfrom
changeset-release/main
Jun 30, 2026
Merged

chore: version packages#44
bendersej merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@simplepdf/embed@0.6.0

Minor Changes

  • e91b4c7: Add a TanStack AI adapter (the /tanstack-ai subpath) for client-side tool calling, alongside the existing Vercel AI SDK (/ai-sdk) adapter. Both wrap the same generated tool registry + bridge router, so the editor is drivable from either SDK with no duplicated logic.

    • @simplepdf/embed/tanstack-ai: simplePDFToolDefinitions() (server, for chat({ tools })) and createSimplePDFTools({ embed }) (browser .client() tools for clientTools(...) then useChat({ tools })).
    • @simplepdf/react-embed-pdf/tanstack-ai: useEmbedTools(embedRef), the editor-bound client tools. Server definitions stay in the React-free core @simplepdf/embed/tanstack-ai, so a server route never pulls React in.
    • @tanstack/ai is a new optional peer, pulled only by the /tanstack-ai subpath; the package roots stay free of it (and of zod).
    • Public exports trimmed to the strict minimum. These are breaking removals, but the only consumer is copilot (migrated in lockstep), so they ship as a minor rather than a major:
      • @simplepdf/embed root drops the internal helpers buildEditorDomain, encodeContext, isBridgeResultLike.
      • @simplepdf/embed/protocol drops the internal INTERNAL_PROTOCOL / InternalProtocolType (used only by the bridge).
      • @simplepdf/react-embed-pdf root no longer re-exports the whole @simplepdf/embed core or the wire-protocol vocabulary; import those from @simplepdf/embed / @simplepdf/embed/protocol directly.
      • @simplepdf/react-embed-pdf/ai-sdk no longer re-exports simplePDFToolDefinitions (import it from @simplepdf/embed/ai-sdk); the browser-side createSimplePDFExecutor stays. Server tool-definitions now live only in the React-free core, so a server route never pulls React in.

@simplepdf/react-embed-pdf@1.12.0

Minor Changes

  • e91b4c7: Add a TanStack AI adapter (the /tanstack-ai subpath) for client-side tool calling, alongside the existing Vercel AI SDK (/ai-sdk) adapter. Both wrap the same generated tool registry + bridge router, so the editor is drivable from either SDK with no duplicated logic.

    • @simplepdf/embed/tanstack-ai: simplePDFToolDefinitions() (server, for chat({ tools })) and createSimplePDFTools({ embed }) (browser .client() tools for clientTools(...) then useChat({ tools })).
    • @simplepdf/react-embed-pdf/tanstack-ai: useEmbedTools(embedRef), the editor-bound client tools. Server definitions stay in the React-free core @simplepdf/embed/tanstack-ai, so a server route never pulls React in.
    • @tanstack/ai is a new optional peer, pulled only by the /tanstack-ai subpath; the package roots stay free of it (and of zod).
    • Public exports trimmed to the strict minimum. These are breaking removals, but the only consumer is copilot (migrated in lockstep), so they ship as a minor rather than a major:
      • @simplepdf/embed root drops the internal helpers buildEditorDomain, encodeContext, isBridgeResultLike.
      • @simplepdf/embed/protocol drops the internal INTERNAL_PROTOCOL / InternalProtocolType (used only by the bridge).
      • @simplepdf/react-embed-pdf root no longer re-exports the whole @simplepdf/embed core or the wire-protocol vocabulary; import those from @simplepdf/embed / @simplepdf/embed/protocol directly.
      • @simplepdf/react-embed-pdf/ai-sdk no longer re-exports simplePDFToolDefinitions (import it from @simplepdf/embed/ai-sdk); the browser-side createSimplePDFExecutor stays. Server tool-definitions now live only in the React-free core, so a server route never pulls React in.

Patch Changes

  • Updated dependencies [e91b4c7]
    • @simplepdf/embed@0.6.0

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 30, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
simplepdf-webhooks 0b02181 Commit Preview URL

Branch Preview URL
Jun 30 2026, 08:22 AM

@bendersej bendersej merged commit 8231f5d into main Jun 30, 2026
3 checks passed
@bendersej bendersej deleted the changeset-release/main branch June 30, 2026 08:23
bendersej added a commit that referenced this pull request Jun 30, 2026
…ollout) (#45)

## Background

`@simplepdf/react-embed-pdf` depended on `@simplepdf/embed` via a caret
range (`^0.6.0`), so a consumer installing react resolves embed to
whatever `0.6.x` npm offers at install time, not necessarily the build
react was tested against.

## Changes

- Pin react's `@simplepdf/embed` dependency to the exact `0.6.0` (was
`^0.6.0`), so a published `@simplepdf/react-embed-pdf` always installs
the exact embed build it ships with.
- Sync the lockfile.
- Add a `@simplepdf/react-embed-pdf` `patch` changeset.

## Notes

- **Full rollout control:** moving react's embed version becomes a
deliberate release step (changesets updates the exact pin and bumps
react together), not a caret resolved at the consumer's install time.
- This pin depends on `@simplepdf/embed@0.6.0` actually being published
(the `#44` version bump). npm currently still shows `0.5.0`, so confirm
the `0.6.0` publish has landed before/with this release.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant