@williamthorsen/toolbelt.numbers 4.3.0 → 4.3.2

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