@williamthorsen/toolbelt.numbers 4.3.0 → 4.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,68 +1,110 @@
1
- # @williamthorsen/toolbelt.numbers changelog
1
+ # Changelog
2
2
 
3
- ## 4.3.0
3
+ All notable changes to this project will be documented in this file.
4
4
 
5
- ### Features
5
+ ## [numbers-v4.3.4] - 2026-03-19
6
6
 
7
- - Added `isNumericString` and `safeParseNumber`
7
+ ### Formatting
8
8
 
9
- ## 4.2.0
9
+ - Fmt: Format changelogs
10
10
 
11
- ### Features
11
+ ## [strings-v3.1.1] - 2026-03-10
12
12
 
13
- - Modified `safeParseInteger` to optionally accept an error as the fallback
13
+ ### Dependencies
14
14
 
15
- ## 4.1.0
15
+ - #6 deps: Adapt to dependency upgrades and bump Node engine to >=24 (#8)
16
16
 
17
- ### Features
17
+ Upgrades all dependencies to their latest versions, bumps the Node.js engine requirement from >=18.17.0 to >=24.0.0 across all 13 workspace packages, and adapts source code to satisfy new lint rules introduced by the upgraded ESLint plugins. Also upgrades `@williamthorsen/eslint-config-typescript` from 5.12.1 to 5.12.2 to fix ESM import issues in the compiled output.
18
+
19
+ Commit details:
20
+
21
+ * root|deps: Upgrade all deps to latest version
22
+
23
+ * root|refactor: Fix lint
24
+
25
+ * root|deps: Upgrade all deps to latest minor version
26
+
27
+ * root|deps: Allow unpatchable vulns in dev deps
28
+
29
+ * root|refactor: Adapt to dependency upgrades and bump Node engine to >=24
30
+
31
+ - Upgrade eslint-config-typescript to 5.12.2 (fixes ESM import issues, removes need for pnpm patch)
32
+ - Bump engines.node from >=18.17.0 to >=24.0.0 across all packages
33
+ - Update CI to Node 24.14.0 and pnpm 10.30.3
34
+ - Replace .sort() with .toSorted() to satisfy unicorn/no-array-sort
35
+ - Fix lint errors: remove useless default assignments, redundant type constituents, deprecated re-exports, and empty array args to Set constructor
36
+
37
+ * datetime|tests: Fix locale mismatch in Timestamp test
38
+
39
+ Pass the same 'en-US' locale to both the expected-value computation and
40
+ the method under test. Previously the test used the system default locale
41
+ for the expected value but explicit 'en-US' for the actual call, which
42
+ diverged under Node 24's updated Intl formatting.
43
+
44
+ * root|refactor: Replace toThrow with toThrowError across all tests
45
+
46
+ The vitest/no-alias-methods rule in strict-lint requires the canonical
47
+ toThrowError() name instead of the toThrow() alias.
48
+
49
+ * root|refactor: Fix remaining strict-lint errors
18
50
 
19
- - `safeParseInteger` accepts an optional fallback value
51
+ - Use import() in vi.mock for vitest/prefer-import-in-mock
52
+ - Replace expect(typeof x).toBe() with expectTypeOf for vitest/prefer-expect-type-of
53
+ - Use String.raw for regex escapes for unicorn/prefer-string-raw
20
54
 
21
- ## 4.0.1
55
+ * root|tooling: Use ws runner to fix recursive build command
56
+
57
+ The build script used `pnpm --recursive run build` but no workspace package defines a `build` script — they all use `ws build` through the workspace script runner. Aligns with all other recursive commands.
58
+
59
+ ### Documentation
60
+
61
+ - *|docs: Fix lint
62
+
63
+ ### Features
64
+
65
+ - Numbers|feat: Add safeParseNumber
22
66
 
23
67
  ### Tooling
24
68
 
25
- - Renamed `publish` script to avoid recursion
69
+ - *|tooling: Change package registry from github to npmjs
26
70
 
27
- ## 4.0.0
71
+ ## [4.2.0] - 2025-05-24
72
+
73
+ ### Features
28
74
 
29
- ### Breaking changes
75
+ - Numbers|feat: Allow error as safeParseInteger fallback
30
76
 
31
- - Migrated to staged distribution of library functions.
32
- For example, some functions have been moved to `/candidate` or `/draft`.
77
+ ## [4.1.0] - 2025-05-23
33
78
 
34
79
  ### Features
35
80
 
36
- #### Stage 1: Proposed
81
+ - Numbers|feat: Caller can specify fallback value for safeParseInteger
37
82
 
38
- - Added:
39
- - `makeRng`
83
+ ## [3.0.1] - 2025-05-20
40
84
 
41
- #### Stage 2: Draft
85
+ ### Tooling
86
+
87
+ - *|tooling: Enable incremental type generation
88
+ - *|tooling: Rename publish script to avoid recursion
42
89
 
43
- - Added:
44
- - `clamp`
90
+ ## [3.0.0] - 2025-05-16
91
+
92
+ ### Features
45
93
 
46
- #### Stage 3: Candidate
94
+ - Strings|feat: Add string functions
95
+ - Numbers|feat: Add number functions
96
+ - Numbers|feat: Add integer string functions
47
97
 
48
- - Added:
49
- - `generateRandom`
50
- - `IntSeededRng` and `SeededRng`
51
- - `isIntegerString`
52
- - `pickInteger`
53
- - `round`
54
- - `safeParseInteger`
55
- - `scale`
98
+ ### Refactoring
56
99
 
57
- #### Internal
100
+ - *|refactor: Rename functions
58
101
 
59
- - Added:
60
- - `evaluate`
61
- - `evaluateSeed`
62
- - `getFakeMathRandom`
63
- - `IntegerSeed`
64
- - `wrapSum`
102
+ ### Tests
103
+
104
+ - Strings|tests: Adapt Deno tests to Vitest
105
+
106
+ ### Tooling
65
107
 
66
- ## 0.1.0
108
+ - Numbers|tooling: Scaffold the numbers workspace
67
109
 
68
- Copied from v0.1.0 of the `_template` workspace.
110
+ <!-- generated by git-cliff -->
package/dist/esm/.cache CHANGED
@@ -1 +1 @@
1
- d1ef7ff960c62481b2af5ed1c656a6b6baf6d085057f343801b48f9af220283e
1
+ 27a523503695326da3aa54b739cfb2bba5f52d989b91d2bf7a7eb81dc4cd9a87
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@williamthorsen/toolbelt.numbers",
3
- "version": "4.3.0",
3
+ "version": "4.3.4",
4
4
  "description": "API",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/williamthorsen/toolbelt/tree/main/packages/numbers#readme",