Skip to content

chore(deps): bump @polar-sh/sdk from 0.42.5 to 0.46.1#429

Open
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/polar-sh/sdk-0.46.1
Open

chore(deps): bump @polar-sh/sdk from 0.42.5 to 0.46.1#429
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/polar-sh/sdk-0.46.1

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Mar 3, 2026

Bumps @polar-sh/sdk from 0.42.5 to 0.46.1.

Release notes

Sourced from @​polar-sh/sdk's releases.

typescript - v0.46.1 - 2026-03-03 09:34:03

Generated by Speakeasy CLI

@​polar-sh/sdk 0.46.1

Typescript SDK Changes:

  • polar.checkouts.clientConfirm(): response.customerSessionToken Changed (Breaking ⚠️)
  • polar.customers.update():
    • request.customerUpdate.taxId[].union(TaxIDFormat).enum(mkVat) Added
    • response.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.customers.list(): response.items[].taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.subscriptions.revoke(): response.customer.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.subscriptions.update(): response.customer.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.benefits.grants(): response.items[].customer.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.benefitGrants.list(): response.items[].customer.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.orders.list(): response.items[].customer.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.orders.get(): response.customer.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.orders.update(): response.customer.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.subscriptions.create(): response.customer.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.licenseKeys.list(): response.items[].customer.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.licenseKeys.get(): response.customer.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.licenseKeys.update(): response.customer.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.licenseKeys.getActivation(): response.licenseKey.customer.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.licenseKeys.validate(): response.customer.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.licenseKeys.activate(): response.licenseKey.customer.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.subscriptions.list(): response.items[].customer.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.customers.create():
    • request.taxId[].union(TaxIDFormat).enum(mkVat) Added
    • response.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.subscriptions.get(): response.customer.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.customers.get(): response.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.customers.getStateExternal(): response.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.customers.updateExternal():
    • request.customerUpdateExternalId.taxId[].union(TaxIDFormat).enum(mkVat) Added
    • response.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.customers.getState(): response.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.customers.getExternal(): response.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.customerPortal.benefitGrants.list(): response.items[].union(CustomerBenefitGrantMeterCredit).customer.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.customerPortal.benefitGrants.get(): response.union(CustomerBenefitGrantLicenseKeys).customer.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.customerPortal.benefitGrants.update(): response.union(CustomerBenefitGrantCustom).customer.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.customerPortal.customers.get(): response.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.customerPortal.customers.update(): response.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.customerPortal.licenseKeys.list(): response.items[].customer.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.customerPortal.licenseKeys.get(): response.customer.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.customerPortal.licenseKeys.validate(): response.customer.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.customerPortal.licenseKeys.activate(): response.licenseKey.customer.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.customerSessions.create(): response.customer.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.memberSessions.create(): response.customer.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.events.list(): response.union(ListResource_Event_).items[].union(SystemEvent).union(benefit.cycled).customer.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.events.get(): response.union(SystemEvent).union(balance.credit_order).customer.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.customerMeters.list(): response.items[].customer.taxId[].union(TaxIDFormat).enum(mkVat) Added
  • polar.customerMeters.get(): response.customer.taxId[].union(TaxIDFormat).enum(mkVat) Added

... (truncated)

Changelog

Sourced from @​polar-sh/sdk's changelog.

2024-09-02 09:49:03

Changes

Based on:

Generated

  • [typescript v0.6.1] .

Releases

2024-09-04 00:24:19

Changes

Based on:

Generated

  • [typescript v0.7.0] .

Releases

2024-09-05 00:24:10

Changes

Based on:

Generated

  • [typescript v0.7.1] .

Releases

2024-09-13 00:24:28

Changes

Based on:

Generated

  • [typescript v0.8.0] .

Releases

2024-09-16 00:26:12

Changes

Based on:

Generated

  • [typescript v0.8.1] .

Releases

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Summary by cubic

Upgrade @polar-sh/sdk from 0.42.5 to 0.46.1 to align with latest Polar API changes. Includes a breaking change to checkouts.clientConfirm customerSessionToken and new mkVat tax ID format in customer data.

  • Dependencies

    • @polar-sh/sdk: ^0.46.1
    • Lockfile updates for related packages (e.g., better-auth, fast-xml-parser)
  • Migration

    • Update any usage of polar.checkouts.clientConfirm() to handle the changed customerSessionToken.
    • If you store or validate customer.taxId, allow the new mkVat format in schemas and type checks.

Written for commit a9a102f. Summary will update on new commits. Review in cubic

Bumps [@polar-sh/sdk](https://github.com/polarsource/polar-js) from 0.42.5 to 0.46.1.
- [Release notes](https://github.com/polarsource/polar-js/releases)
- [Changelog](https://github.com/polarsource/polar-js/blob/main/RELEASES.md)
- [Commits](polarsource/polar-js@v0.42.5...v0.46.1)

---
updated-dependencies:
- dependency-name: "@polar-sh/sdk"
  dependency-version: 0.46.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies javascript Pull requests that update javascript code labels Mar 3, 2026
@vercel
Copy link
Contributor

vercel bot commented Mar 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
domainstack Ready Ready Preview, Comment Mar 3, 2026 2:47pm

Request Review

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.
Architecture diagram
sequenceDiagram
    participant UI as Client Frontend
    participant Srv as Backend (packages/polar)
    participant SDK as Polar SDK (v0.46.1)
    participant API as Polar API

    Note over UI,API: Checkout Flow
    UI->>Srv: Initiate Checkout/Confirmation
    Srv->>SDK: polar.checkouts.clientConfirm()
    SDK->>API: Request confirmation
    API-->>SDK: Return response
    Note right of SDK: CHANGED: customerSessionToken<br/>structure updated (Breaking)
    SDK-->>Srv: Return updated confirmation object
    Srv-->>UI: 200 OK

    Note over Srv,API: Resource Management (Customers, Orders, Subscriptions)
    Srv->>SDK: polar.customers.get() / list()
    SDK->>API: Fetch customer resources
    API-->>SDK: Return data with Tax metadata
    Note right of SDK: NEW: Response includes<br/>taxId (mkVat format support)
    SDK-->>Srv: Return resource with taxId field

    opt NEW: Update Customer Tax ID
        Srv->>SDK: polar.customers.update()
        SDK->>API: PATCH /v1/customers (with taxId)
        API-->>SDK: 200 OK
        SDK-->>Srv: Success
    end
Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants