From 7a5311f1b720225c69306f2e3d9d98e63c2696c0 Mon Sep 17 00:00:00 2001 From: Munjal Dhamecha Date: Sun, 23 Aug 2026 22:24:24 +0530 Subject: [PATCH 1/2] chore(release): 6.0.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 13 +++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 68f9449d..a3a12f49 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "5.7.0" + ".": "6.0.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 29fb5f7e..461b526d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,19 @@ All notable changes to this project are documented here. Releases and this changelog are managed by [Release Please](https://github.com/googleapis/release-please). +## [6.0.0](https://github.com/mastermunj/to-words/compare/v5.7.0...v6.0.0) (2026-08-23) + + +### ⚠ BREAKING CHANGES + +* locale defaults, config mutability, utilities, and CLI semantics have changed. + +### Bug Fixes + +* enforce deterministic conversion contracts ([#2435](https://github.com/mastermunj/to-words/issues/2435)) ([cedf6f6](https://github.com/mastermunj/to-words/commit/cedf6f6d53cf31d2c4c2fbe369a0bb7d2a68b113)) +* preserve numeric precision without slowing hot paths ([#2432](https://github.com/mastermunj/to-words/issues/2432)) ([4a37512](https://github.com/mastermunj/to-words/commit/4a375123ef1e3f4f3bcdcb52b16128fc47882bc8)) +* reset formal locale and preserve decimal signs ([#2434](https://github.com/mastermunj/to-words/issues/2434)) ([552d4bd](https://github.com/mastermunj/to-words/commit/552d4bd86eec68415613f24c8f82caffe288d260)) + ## [5.7.0](https://github.com/mastermunj/to-words/compare/v5.6.1...v5.7.0) (2026-08-02) ### Features diff --git a/package-lock.json b/package-lock.json index 80e950e5..28925217 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "to-words", - "version": "5.7.0", + "version": "6.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "to-words", - "version": "5.7.0", + "version": "6.0.0", "license": "MIT", "bin": { "to-words": "dist/cjs/cli.js" diff --git a/package.json b/package.json index e39dd69e..915fca9c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "to-words", - "version": "5.7.0", + "version": "6.0.0", "description": "Convert numbers to words in 135 locales with currency, ordinal, and BigInt support (TypeScript, ESM/CJS/UMD).", "keywords": [ "amount in words", From 4552fe76ac8d70bb748b1d58e54d284c63dc397f Mon Sep 17 00:00:00 2001 From: Munjal Dhamecha Date: Sun, 23 Aug 2026 22:42:26 +0530 Subject: [PATCH 2/2] Update CHANGELOG for version 6.0.0 Updated CHANGELOG for version 6.0.0 with breaking changes, new features, bug fixes, performance improvements, and release quality details. --- CHANGELOG.md | 47 +++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 43 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 461b526d..827fe48d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,15 +5,54 @@ All notable changes to this project are documented here. Releases and this chang ## [6.0.0](https://github.com/mastermunj/to-words/compare/v5.7.0...v6.0.0) (2026-08-23) +## [6.0.0](https://github.com/mastermunj/to-words/compare/v5.7.0...v6.0.0) (2026-08-23) + ### ⚠ BREAKING CHANGES -* locale defaults, config mutability, utilities, and CLI semantics have changed. +- Language-only locale tags now resolve to explicit regional defaults, including + `en` → `en-US`, `es` → `es-ES`, `pt` → `pt-BR`, and `sw` → `sw-KE`. +- Initialized locale configurations are recursively frozen. Applications can + inspect locale configuration, but can no longer mutate it after initialization. +- Public numeric utilities now use stricter, decimal-safe semantics for + `toFixed()`, `isFloat()`, and `isNumberZero()`. +- The CLI now rejects unknown options, repeated locale options, and conflicting + conversion modes. +- `LocaleManifestEntry` now requires generated numbering-system and named-range + metadata. +- Invalid custom locale configurations that violate conversion invariants are + now rejected. + +See the [v6 migration guide](https://github.com/mastermunj/to-words/blob/main/MIGRATION.md) +for upgrade instructions. + +### Features + +- Add a compact locale capability manifest without loading conversion tables. +- Add public locale-contract validation for custom locale authors. +- Add generated numbering-system, grouping, named-range, and capability metadata. +- Add executable locale conformance and quality gates. +- Generate locale capability and quality documentation from shipped configuration. ### Bug Fixes -* enforce deterministic conversion contracts ([#2435](https://github.com/mastermunj/to-words/issues/2435)) ([cedf6f6](https://github.com/mastermunj/to-words/commit/cedf6f6d53cf31d2c4c2fbe369a0bb7d2a68b113)) -* preserve numeric precision without slowing hot paths ([#2432](https://github.com/mastermunj/to-words/issues/2432)) ([4a37512](https://github.com/mastermunj/to-words/commit/4a375123ef1e3f4f3bcdcb52b16128fc47882bc8)) -* reset formal locale and preserve decimal signs ([#2434](https://github.com/mastermunj/to-words/issues/2434)) ([552d4bd](https://github.com/mastermunj/to-words/commit/552d4bd86eec68415613f24c8f82caffe288d260)) +- Preserve exact large-number input and decimal precision without slowing hot paths. +- Apply decimal-safe currency rounding and preserve negative sub-unit signs. +- Correct Spanish ordinal gender behavior. +- Reset formal locale state between conversions. +- Enforce deterministic locale-table and conversion contracts. + +### Performance Improvements + +- Initialize per-locale functional helper instances lazily. +- Mark package modules as side-effect free for better tree-shaking. +- Reduce the full UMD bundle from 69.72 KiB to 68.46 KiB gzip. +- Add enforced gzip size budgets for the full and per-locale bundles. + +### Release Quality + +- Verify generated documentation, ESM and CommonJS entry points, runtime behavior, + package contents, and bundle-size budgets before publishing. +- Preserve 100% test coverage across the complete test suite. ## [5.7.0](https://github.com/mastermunj/to-words/compare/v5.6.1...v5.7.0) (2026-08-02)