Skip to content

Commit d47e3e4

Browse files
committed
Update changesets for new version
1 parent 6d15037 commit d47e3e4

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.changeset/ninety-cobras-care.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"vn-number": minor
3+
---
4+
5+
Simplify the internal `formatNumber` helper by removing the `invalidValue` parameter. The function now directly checks if the parsed number is `NaN` and returns the fallback value, making the code more straightforward and easier to maintain.

.changeset/slick-crabs-help.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"vn-number": minor
3+
---
4+
5+
Improve performance by reusing shared `Intl.NumberFormat` instances. The formatter instances for Vietnamese number, currency, and percent formats are now created once and reused across all function calls, reducing memory allocation and improving execution speed.

.changeset/some-places-check.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@
22
"vn-number": patch
33
---
44

5-
- Fix currency formatting to use Unicode non-breaking space (U+00A0) between number and currency symbol. This ensures consistent spacing that won't break across lines and matches the standard Intl.NumberFormat behavior.
6-
- Improve performance by reusing shared Intl.NumberFormat instances. The formatter instances for Vietnamese number, currency, and percent formats are now created once and reused across all function calls, reducing memory allocation and improving execution speed.
7-
- Simplify internal formatNumber helper by removing the invalidValue parameter. The function now directly checks if the parsed number is NaN and returns the fallback value, making the code more straightforward and easier to maintain.
5+
Fix currency formatting to use Unicode non-breaking space (`U+00A0`) between number and currency symbol. This ensures consistent spacing that won't break across lines and matches the standard `Intl.NumberFormat` behavior.

0 commit comments

Comments
 (0)