npm dinero.js 2.0.0-alpha.16
v2.0.0-alpha.16

5 hours ago

⚠️ 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:

  1. Uninstall all @dinero.js/* packages
  2. Install dinero.js
  3. Update imports as shown above

Type Renaming

All public types now use a Dinero prefix to avoid naming conflicts:

  • CalculatorDineroCalculator
  • CurrencyDineroCurrency
  • SnapshotDineroSnapshot
  • OptionsDineroOptions
  • 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)

Bug Fixes

  • currencies: correct UYW to amendment 169 and fix generation (0ea9d7e)
  • docs: correct OG image path and hero animation target (f9a8585)

Don't miss a new dinero.js release

NewReleases is sending notifications on new releases.