chore: upgrade dinero.js from v2 alpha to v2 stable#4501
chore: upgrade dinero.js from v2 alpha to v2 stable#4501ScriptedAlchemy merged 8 commits intomodule-federation:mainfrom
Conversation
Migrate the next-app-router example apps from dinero.js 2.0.0-alpha.10 to dinero.js 2.0.0 stable. Breaking API changes addressed: - `toUnit()` → `toDecimal()` with transformer - `toFormat()` → `toSnapshot()` for currency code access - Removed `up` rounding import (using `Math.ceil` instead) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
✅ Deploy Preview for module-federation-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0ee4f17880
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
# Conflicts: # pnpm-lock.yaml
@module-federation/devtools
@module-federation/cli
create-module-federation
@module-federation/data-prefetch
@module-federation/dts-plugin
@module-federation/enhanced
@module-federation/error-codes
@module-federation/esbuild
@module-federation/managers
@module-federation/manifest
@module-federation/metro
@module-federation/metro-plugin-rnc-cli
@module-federation/metro-plugin-rnef
@module-federation/modern-js
@module-federation/modern-js-v3
@module-federation/native-federation-tests
@module-federation/native-federation-typescript
@module-federation/nextjs-mf
@module-federation/node
@module-federation/retry-plugin
@module-federation/rsbuild-plugin
@module-federation/rspack
@module-federation/rspress-plugin
@module-federation/runtime
@module-federation/runtime-core
@module-federation/runtime-tools
@module-federation/sdk
@module-federation/storybook-addon
@module-federation/third-party-dts-extractor
@module-federation/treeshake-frontend
@module-federation/treeshake-server
@module-federation/typescript
@module-federation/utilities
@module-federation/webpack-bundler-runtime
@module-federation/bridge-react
@module-federation/bridge-react-webpack-plugin
@module-federation/bridge-shared
@module-federation/bridge-vue3
@module-federation/inject-external-runtime-core-plugin
commit: |
Bundle Size Report3 package(s) changed, 38 unchanged.
Total dist: 10.66 MB (+31 B (+0.0%)) |
Description
Upgrades
dinero.jsfrom2.0.0-alpha.10to2.0.0(stable release) in bothnext-app-router-4000andnext-app-router-4001example apps.The stable v2 release includes a few breaking API changes from the alpha:
toUnit(d)toDecimal(d, ({ value }) => Number(value))toUnitwas removed;toDecimalreturns a string by default, transformer converts to numbertoUnit(d, { digits: 0, round: up })toDecimal(d, ({ value }) => Math.ceil(Number(value)))Math.ceilin transformertoFormat(d, ({ currency }) => currency.code)toSnapshot(d).currency.codetoFormatwas removed;toSnapshotgives direct access to currency metadataOther APIs used by this project (
dinero,multiply,allocate,Dinero<number>,DineroSnapshot<number>) remain unchanged.Related Issue
N/A — upstream dependency upgrade.
Types of changes
Checklist