Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/olive-pugs-jam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@epilot/pricing': minor
---

Bump the `@epilot/sdk` peer dependency to `^2.19.3` and source `PriceTierEnhanced` from it.

The SDK now ships the legacy "additional types" (carried over from `@epilot/pricing-client`) on the `@epilot/sdk/pricing` entrypoint, so the local `PriceTierEnhanced` declaration this package added during the SDK migration is no longer needed. It is re-exported from the SDK instead — the type shape is unchanged, so this is a no-op for consumers other than the raised minimum peer version.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@
"dinero.js": "^1.9.1"
},
"peerDependencies": {
"@epilot/sdk": "^2.18.31",
"@epilot/sdk": "^2.19.3",
"i18next": "^25.1.2"
},
"devDependencies": {
"@changesets/cli": "^2.30.0",
"@epilot/eslint-config": "^3.0.5",
"@epilot/sdk": "^2.18.31",
"@epilot/sdk": "^2.19.3",
"@types/dinero.js": "^1.9.4",
"@vitest/coverage-v8": "^1.6.1",
"concurrently": "^9.1.2",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 1 addition & 12 deletions src/shared/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export type {
PriceInputMappings,
PriceInputMapping,
PriceTier,
PriceTierEnhanced,
PriceTierDisplayMode,
CashbackAmount,
RedeemedPromo,
Expand All @@ -31,17 +32,5 @@ export type {
CompositePriceItem,
} from '@epilot/sdk/pricing';
export type { Currency, Dinero } from 'dinero.js';
import type { PriceTier } from '@epilot/sdk/pricing';
import type { i18n } from 'i18next';
export type I18n = Pick<i18n, 't' | 'language'>;

/**
* Legacy type formerly exported by @epilot/pricing-client. The gross fields
* were removed from the OpenAPI specification, so it lives here now.
*/
export interface PriceTierEnhanced extends PriceTier {
unit_amount_gross?: number;
unit_amount_gross_decimal?: string;
flat_fee_amount_gross?: number;
flat_fee_amount_gross_decimal?: string;
}
Loading