Skip to content

feat: support TaxItem alongside Tax after pricing-client bump - #289

Merged
paulofph merged 1 commit into
mainfrom
feat/bump-pricing-client
Aug 4, 2026
Merged

feat: support TaxItem alongside Tax after pricing-client bump#289
paulofph merged 1 commit into
mainfrom
feat/bump-pricing-client

Conversation

@paulofph

@paulofph paulofph commented Aug 4, 2026

Copy link
Copy Markdown
Member

Bumps @epilot/pricing-client to ^3.55.1, which introduced TaxItem: an ad-hoc tax rate with no backing entity, for custom/composite line items with no product or price reference to resolve tax from. Widens every tax parameter/return type from Tax to Tax | TaxItem across the computation chain.

TaxItem has no _id (by design — it isn't persisted and can't be deduplicated by identity), which compute-totals.ts's tax-bucket aggregation previously assumed always existed. Added a small getTaxId() helper that only reads _id when present, instead of widening _id itself into an unsafe optional everywhere.

Bumps @epilot/pricing-client to ^3.55.1, which introduced TaxItem: an
ad-hoc tax rate with no backing entity, for custom/composite line
items with no product or price reference to resolve tax from. Widens
every tax parameter/return type from Tax to Tax | TaxItem across the
computation chain.

TaxItem has no _id (by design — it isn't persisted and can't be
deduplicated by identity), which compute-totals.ts's tax-bucket
aggregation previously assumed always existed. Added a small
getTaxId() helper that only reads _id when present, instead of
widening _id itself into an unsafe optional everywhere.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Aug 4, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ecc5e54

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@epilot/pricing Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@paulofph
paulofph merged commit 1dc1c7f into main Aug 4, 2026
3 checks passed
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