@williamthorsen/toolbelt.arrays 3.3.1 → 3.3.3
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 +68 -62
- package/dist/esm/.cache +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,98 +1,104 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Changelog
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
## [strings-v3.1.1] - 2026-03-10
|
|
4
6
|
|
|
5
7
|
### Dependencies
|
|
6
8
|
|
|
7
|
-
-
|
|
8
|
-
- @williamthorsen/toolbelt.numbers@4.3.0
|
|
9
|
+
- #6 deps: Adapt to dependency upgrades and bump Node engine to >=24 (#8)
|
|
9
10
|
|
|
10
|
-
|
|
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.
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
Commit details:
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
- Renamed `getDuplicates` to `getDuplicateItems` for consistency with other function names
|
|
15
|
+
* root|deps: Upgrade all deps to latest version
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
* root|refactor: Fix lint
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
* root|deps: Upgrade all deps to latest minor version
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
- Simplified `Range` class to accept two arguments instead of object
|
|
21
|
+
* root|deps: Allow unpatchable vulns in dev deps
|
|
23
22
|
|
|
24
|
-
|
|
23
|
+
* root|refactor: Adapt to dependency upgrades and bump Node engine to >=24
|
|
25
24
|
|
|
26
|
-
|
|
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
|
|
27
30
|
|
|
28
|
-
|
|
31
|
+
* datetime|tests: Fix locale mismatch in Timestamp test
|
|
29
32
|
|
|
30
|
-
|
|
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.
|
|
31
37
|
|
|
32
|
-
|
|
38
|
+
* root|refactor: Replace toThrow with toThrowError across all tests
|
|
33
39
|
|
|
34
|
-
-
|
|
35
|
-
|
|
40
|
+
The vitest/no-alias-methods rule in strict-lint requires the canonical
|
|
41
|
+
toThrowError() name instead of the toThrow() alias.
|
|
36
42
|
|
|
37
|
-
|
|
43
|
+
* root|refactor: Fix remaining strict-lint errors
|
|
38
44
|
|
|
39
|
-
|
|
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
|
|
40
48
|
|
|
41
|
-
|
|
42
|
-
- @williamthorsen/toolbelt.numbers@4.1.0
|
|
49
|
+
* root|tooling: Use ws runner to fix recursive build command
|
|
43
50
|
|
|
44
|
-
|
|
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.
|
|
45
52
|
|
|
46
|
-
###
|
|
53
|
+
### Features
|
|
54
|
+
|
|
55
|
+
- Arrays|feat: Range class
|
|
56
|
+
- Arrays|feat: Simplify Range API
|
|
57
|
+
- Arrays|feat: Add getUniqueItems
|
|
47
58
|
|
|
48
|
-
|
|
59
|
+
### Refactoring
|
|
49
60
|
|
|
50
|
-
|
|
61
|
+
- Arrays|refactor: Rename getDuplicates to getDuplicateItems
|
|
51
62
|
|
|
52
63
|
### Tooling
|
|
53
64
|
|
|
54
|
-
-
|
|
65
|
+
- *|tooling: Change package registry from github to npmjs
|
|
55
66
|
|
|
56
|
-
## 3.0.
|
|
67
|
+
## [3.0.2] - 2025-05-22
|
|
57
68
|
|
|
58
|
-
###
|
|
69
|
+
### Bug fixes
|
|
59
70
|
|
|
60
|
-
-
|
|
61
|
-
For example, some functions have been moved to `/candidate` or `/draft`.
|
|
71
|
+
- Arrays|fix: Replace Node.js assert with library assert
|
|
62
72
|
|
|
63
|
-
|
|
73
|
+
## [3.0.1] - 2025-05-20
|
|
74
|
+
|
|
75
|
+
### Tooling
|
|
64
76
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
#### Stage 3: Candidate
|
|
71
|
-
|
|
72
|
-
- Added:
|
|
73
|
-
- `arraify`
|
|
74
|
-
- `extractWeights`
|
|
75
|
-
- `findOrThrow`
|
|
76
|
-
- `getAtIndexOrThrow`
|
|
77
|
-
- `getDuplicates`
|
|
78
|
-
- `getWeightedIndex`
|
|
79
|
-
- `includes`
|
|
80
|
-
- `makeNullishCompare`
|
|
81
|
-
- `makePickWeightedItemFromDistribution`
|
|
82
|
-
- `nullishCompare`
|
|
83
|
-
- `pickItem`
|
|
84
|
-
- `pickItems`
|
|
85
|
-
- `pickWeightedIndex`
|
|
86
|
-
- `pickWeightedItem`
|
|
87
|
-
- `shuffle`
|
|
88
|
-
- `shuffleInPlace`
|
|
89
|
-
- `toCumulativeValues`
|
|
77
|
+
- *|tooling: Enable incremental type generation
|
|
78
|
+
- *|tooling: Rename publish script to avoid recursion
|
|
79
|
+
|
|
80
|
+
## [3.0.0] - 2025-05-16
|
|
90
81
|
|
|
91
82
|
### Dependencies
|
|
92
83
|
|
|
93
|
-
-
|
|
94
|
-
|
|
84
|
+
- Arrays|deps: Add toolbelt.numbers to prod deps
|
|
85
|
+
|
|
86
|
+
### Features
|
|
87
|
+
|
|
88
|
+
- Strings|feat: Add string functions
|
|
89
|
+
- Arrays|feat: Migrate from toolbelt-deno
|
|
90
|
+
- Objects|feat: Add legacy TypedObject and objectMap
|
|
91
|
+
|
|
92
|
+
### Refactoring
|
|
93
|
+
|
|
94
|
+
- *|refactor: Rename functions
|
|
95
|
+
|
|
96
|
+
### Tests
|
|
97
|
+
|
|
98
|
+
- Strings|tests: Adapt Deno tests to Vitest
|
|
99
|
+
|
|
100
|
+
### Tooling
|
|
95
101
|
|
|
96
|
-
|
|
102
|
+
- Arrays|tooling: Scaffold the arrays workspace
|
|
97
103
|
|
|
98
|
-
|
|
104
|
+
<!-- generated by git-cliff -->
|
package/dist/esm/.cache
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
120737769e223a66a9d47692fa9ab599ecbc60ceb7cd4b10ec03e2ae955697ca
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@williamthorsen/toolbelt.arrays",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.3",
|
|
4
4
|
"description": "API",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"homepage": "https://github.com/williamthorsen/toolbelt/tree/main/packages/arrays#readme",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"CHANGELOG.md"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@williamthorsen/toolbelt.guards": "3.1.
|
|
33
|
-
"@williamthorsen/toolbelt.numbers": "4.3.
|
|
32
|
+
"@williamthorsen/toolbelt.guards": "3.1.2",
|
|
33
|
+
"@williamthorsen/toolbelt.numbers": "4.3.2"
|
|
34
34
|
},
|
|
35
35
|
"engines": {
|
|
36
36
|
"node": ">=24.0.0"
|