⚠️ Breaking Changes
Package Consolidation (RFC #722)
All @dinero.js/* packages have been removed. The library is now distributed as a single dinero.js package with subpath exports.
Before (alpha.15 and earlier):
import { dinero, add } from '@dinero.js/core';
import { USD } from '@dinero.js/currencies';
import { calculator } from '@dinero.js/calculator-bigint';After (alpha.16+):
import { dinero, add } from 'dinero.js';
import { USD } from 'dinero.js/currencies';
import { dinero as dineroBigint } from 'dinero.js/bigint';Migration steps:
- Uninstall all
@dinero.js/*packages - Install
dinero.js - Update imports as shown above
Type Renaming
All public types now use a Dinero prefix to avoid naming conflicts:
Calculator→DineroCalculatorCurrency→DineroCurrencySnapshot→DineroSnapshotOptions→DineroOptions- etc.
Features
- dinero.js: consolidate packages with subpath exports (16b0ad8)
- dinero.js: add granular UMD bundles per RFC #722 (aea9dc2)
- bigint: include bigint currencies in UMD bundle (1054497)
- currencies: add bigint currency definitions (0e4aef8), closes #582
- currencies: add SLE, VED, XAD, XCG, ZWG (amendments 172-179)
- currencies: remove HRK, SLL, CUC, ANG, ZWL (amendments 172-179)