@thi.ng/arrays 2.10.12 → 2.10.13
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 +3 -165
- package/package.json +9 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2025-01-
|
|
3
|
+
- **Last updated**: 2025-01-23T13:39:11Z
|
|
4
4
|
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
5
|
|
|
6
6
|
All notable changes to this project will be documented in this file.
|
|
7
|
+
Only versions published since **2022-01-01** are listed here.
|
|
8
|
+
Please consult the Git history for older version information.
|
|
7
9
|
See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
|
|
8
10
|
|
|
9
11
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
@@ -113,167 +115,3 @@ and/or version bumps of transitive dependencies.
|
|
|
113
115
|
#### 🚀 Features
|
|
114
116
|
|
|
115
117
|
- add argSort() ([4b65c36](https://github.com/thi-ng/umbrella/commit/4b65c36))
|
|
116
|
-
|
|
117
|
-
### [2.1.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/arrays@2.1.3) (2021-12-13)
|
|
118
|
-
|
|
119
|
-
#### 🩹 Bug fixes
|
|
120
|
-
|
|
121
|
-
- off-by-one error in shuffleRange() ([f832d2f](https://github.com/thi-ng/umbrella/commit/f832d2f))
|
|
122
|
-
- existing shuffle would keep some indices untouched, resulting in
|
|
123
|
-
still perceivable ordering
|
|
124
|
-
- update tests
|
|
125
|
-
|
|
126
|
-
## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/arrays@2.1.0) (2021-11-17)
|
|
127
|
-
|
|
128
|
-
#### 🚀 Features
|
|
129
|
-
|
|
130
|
-
- Using workspaces for local tools ([bf7a404](https://github.com/thi-ng/umbrella/commit/bf7a404))
|
|
131
|
-
Improving the overall build ergonomics
|
|
132
|
-
- introduced a tools workspaces
|
|
133
|
-
- imported it in all needed packages/examples
|
|
134
|
-
- inclusive project root
|
|
135
|
-
|
|
136
|
-
#### ♻️ Refactoring
|
|
137
|
-
|
|
138
|
-
- testrunner to binary ([4ebbbb2](https://github.com/thi-ng/umbrella/commit/4ebbbb2))
|
|
139
|
-
this commit reverts (partly) changes made in:
|
|
140
|
-
ef346d7a8753590dc9094108a3d861a8dbd5dd2c
|
|
141
|
-
overall purpose is better testament ergonomics:
|
|
142
|
-
instead of having to pass NODE_OPTIONS with every invocation
|
|
143
|
-
having a binary to handle this for us.
|
|
144
|
-
|
|
145
|
-
### [2.0.8](https://github.com/thi-ng/umbrella/tree/@thi.ng/arrays@2.0.8) (2021-11-10)
|
|
146
|
-
|
|
147
|
-
#### ♻️ Refactoring
|
|
148
|
-
|
|
149
|
-
- update all countdown loops ([a5f374b](https://github.com/thi-ng/umbrella/commit/a5f374b))
|
|
150
|
-
|
|
151
|
-
### [2.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/arrays@2.0.1) (2021-10-13)
|
|
152
|
-
|
|
153
|
-
#### ♻️ Refactoring
|
|
154
|
-
|
|
155
|
-
- update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
|
|
156
|
-
- add .js suffix for all relative imports
|
|
157
|
-
- update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
|
|
158
|
-
|
|
159
|
-
# [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/arrays@2.0.0) (2021-10-12)
|
|
160
|
-
|
|
161
|
-
#### 🛑 Breaking changes
|
|
162
|
-
|
|
163
|
-
- major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
|
|
164
|
-
- BREAKING CHANGE: discontinue CommonJS & UMD versions
|
|
165
|
-
- only ESM modules will be published from now on
|
|
166
|
-
- CJS obsolete due to ESM support in recent versions of node:
|
|
167
|
-
- i.e. launch NodeJS via:
|
|
168
|
-
- `node --experimental-specifier-resolution=node --experimental-repl-await`
|
|
169
|
-
- in the node REPL use `await import(...)` instead of `require()`
|
|
170
|
-
- UMD obsolete due to widespread browser support for ESM
|
|
171
|
-
Also:
|
|
172
|
-
- normalize/restructure/reorg all package.json files
|
|
173
|
-
- cleanup all build scripts, remove obsolete
|
|
174
|
-
- switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
|
|
175
|
-
|
|
176
|
-
#### ♻️ Refactoring
|
|
177
|
-
|
|
178
|
-
- update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
|
|
179
|
-
- update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
|
|
180
|
-
- update imports ([ad3c3af](https://github.com/thi-ng/umbrella/commit/ad3c3af))
|
|
181
|
-
- update deps & imports in various pkgs ([e1cf29e](https://github.com/thi-ng/umbrella/commit/e1cf29e))
|
|
182
|
-
- largely related to recent updates/restructuring of these packages:
|
|
183
|
-
- api
|
|
184
|
-
- defmulti
|
|
185
|
-
- errors
|
|
186
|
-
- logger
|
|
187
|
-
|
|
188
|
-
## [0.10.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/arrays@0.10.0) (2021-01-21)
|
|
189
|
-
|
|
190
|
-
#### 🚀 Features
|
|
191
|
-
|
|
192
|
-
- add insert/insertUnsafe() ([2a78598](https://github.com/thi-ng/umbrella/commit/2a78598))
|
|
193
|
-
|
|
194
|
-
#### 🩹 Bug fixes
|
|
195
|
-
|
|
196
|
-
- fixed-length binarySearch2/4/8/16/32 ([39e5c37](https://github.com/thi-ng/umbrella/commit/39e5c37))
|
|
197
|
-
- add binarySearch2()
|
|
198
|
-
- fix results for not-found values, make compatible w/ binarySearch()
|
|
199
|
-
|
|
200
|
-
## [0.9.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/arrays@0.9.0) (2021-01-02)
|
|
201
|
-
|
|
202
|
-
#### 🚀 Features
|
|
203
|
-
|
|
204
|
-
- add bisect(), bisectWith() ([17d06a4](https://github.com/thi-ng/umbrella/commit/17d06a4))
|
|
205
|
-
- add into(), sortByCachedKey() ([b94f64c](https://github.com/thi-ng/umbrella/commit/b94f64c))
|
|
206
|
-
- update sortByCachedKey(), add tests ([64e8f6e](https://github.com/thi-ng/umbrella/commit/64e8f6e))
|
|
207
|
-
- add support for pre-cached key array instead of key fn
|
|
208
|
-
|
|
209
|
-
## [0.8.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/arrays@0.8.0) (2020-09-13)
|
|
210
|
-
|
|
211
|
-
#### 🚀 Features
|
|
212
|
-
|
|
213
|
-
- add first() ([3f5f722](https://github.com/thi-ng/umbrella/commit/3f5f722))
|
|
214
|
-
|
|
215
|
-
#### ♻️ Refactoring
|
|
216
|
-
|
|
217
|
-
- update imports, use new function aliases ([136482e](https://github.com/thi-ng/umbrella/commit/136482e))
|
|
218
|
-
- update imports, use new Fn types ([1e3b6ac](https://github.com/thi-ng/umbrella/commit/1e3b6ac))
|
|
219
|
-
|
|
220
|
-
## [0.7.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/arrays@0.7.0) (2020-08-28)
|
|
221
|
-
|
|
222
|
-
#### 🚀 Features
|
|
223
|
-
|
|
224
|
-
- add non-recursive binary search fns ([29a4ee4](https://github.com/thi-ng/umbrella/commit/29a4ee4))
|
|
225
|
-
- add fixed size binarySearch4/8/16/32()
|
|
226
|
-
|
|
227
|
-
## [0.6.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/arrays@0.6.0) (2020-03-28)
|
|
228
|
-
|
|
229
|
-
#### 🚀 Features
|
|
230
|
-
|
|
231
|
-
- add fillRange() & levenshtein() ([2f98225](https://github.com/thi-ng/umbrella/commit/2f98225))
|
|
232
|
-
|
|
233
|
-
### [0.5.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/arrays@0.5.2) (2020-02-25)
|
|
234
|
-
|
|
235
|
-
#### ♻️ Refactoring
|
|
236
|
-
|
|
237
|
-
- update imports ([35765a8](https://github.com/thi-ng/umbrella/commit/35765a8))
|
|
238
|
-
|
|
239
|
-
## [0.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/arrays@0.5.0) (2020-01-24)
|
|
240
|
-
|
|
241
|
-
#### 🚀 Features
|
|
242
|
-
|
|
243
|
-
- add binary search predicates, tests, update readme ([b8f421e](https://github.com/thi-ng/umbrella/commit/b8f421e))
|
|
244
|
-
|
|
245
|
-
## [0.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/arrays@0.4.0) (2019-11-30)
|
|
246
|
-
|
|
247
|
-
#### 🚀 Features
|
|
248
|
-
|
|
249
|
-
- add binarySearchNumeric() ([7b38202](https://github.com/thi-ng/umbrella/commit/7b38202))
|
|
250
|
-
- add arraySeq(), arrayIterator() & tests ([d94df57](https://github.com/thi-ng/umbrella/commit/d94df57))
|
|
251
|
-
|
|
252
|
-
#### ♻️ Refactoring
|
|
253
|
-
|
|
254
|
-
- remove arraySeq() (migrated to [@thi.ng/seq](https://github.com/thi-ng/umbrella/tree/main/packages/seq)) ([779c433](https://github.com/thi-ng/umbrella/commit/779c433))
|
|
255
|
-
|
|
256
|
-
## [0.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/arrays@0.3.0) (2019-11-09)
|
|
257
|
-
|
|
258
|
-
#### 🚀 Features
|
|
259
|
-
|
|
260
|
-
- add shuffleRange(), refactor shuffle(), add tests ([1924a05](https://github.com/thi-ng/umbrella/commit/1924a05))
|
|
261
|
-
- add types, quickSort(), swap(), multiSwap(), update readme ([b834722](https://github.com/thi-ng/umbrella/commit/b834722))
|
|
262
|
-
- add isSorted() ([65b29f4](https://github.com/thi-ng/umbrella/commit/65b29f4))
|
|
263
|
-
|
|
264
|
-
## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/arrays@0.2.0) (2019-07-07)
|
|
265
|
-
|
|
266
|
-
#### 🚀 Features
|
|
267
|
-
|
|
268
|
-
- enable TS strict compiler flags (refactor) ([8724f9e](https://github.com/thi-ng/umbrella/commit/8724f9e))
|
|
269
|
-
|
|
270
|
-
## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/arrays@0.1.0) (2019-02-15)
|
|
271
|
-
|
|
272
|
-
#### 🚀 Features
|
|
273
|
-
|
|
274
|
-
- extract as new package ([361ba37](https://github.com/thi-ng/umbrella/commit/361ba37))
|
|
275
|
-
- add find/findIndex() ([0007152](https://github.com/thi-ng/umbrella/commit/0007152))
|
|
276
|
-
|
|
277
|
-
#### ♻️ Refactoring
|
|
278
|
-
|
|
279
|
-
- update arg order, fix shuffle() ([b01abaa](https://github.com/thi-ng/umbrella/commit/b01abaa))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/arrays",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.13",
|
|
4
4
|
"description": "Array / Arraylike utilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -40,18 +40,17 @@
|
|
|
40
40
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@thi.ng/api": "^8.11.
|
|
44
|
-
"@thi.ng/checks": "^3.6.
|
|
45
|
-
"@thi.ng/compare": "^2.4.
|
|
46
|
-
"@thi.ng/equiv": "^2.1.
|
|
47
|
-
"@thi.ng/errors": "^2.5.
|
|
48
|
-
"@thi.ng/random": "^4.1.
|
|
43
|
+
"@thi.ng/api": "^8.11.18",
|
|
44
|
+
"@thi.ng/checks": "^3.6.21",
|
|
45
|
+
"@thi.ng/compare": "^2.4.10",
|
|
46
|
+
"@thi.ng/equiv": "^2.1.74",
|
|
47
|
+
"@thi.ng/errors": "^2.5.24",
|
|
48
|
+
"@thi.ng/random": "^4.1.9"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@microsoft/api-extractor": "^7.48.1",
|
|
52
51
|
"esbuild": "^0.24.2",
|
|
53
52
|
"typedoc": "^0.27.6",
|
|
54
|
-
"typescript": "^5.7.
|
|
53
|
+
"typescript": "^5.7.3"
|
|
55
54
|
},
|
|
56
55
|
"keywords": [
|
|
57
56
|
"aos",
|
|
@@ -172,5 +171,5 @@
|
|
|
172
171
|
"thi.ng": {
|
|
173
172
|
"year": 2018
|
|
174
173
|
},
|
|
175
|
-
"gitHead": "
|
|
174
|
+
"gitHead": "b92b48abda9941d608be8a2e1c83447e679a6f79\n"
|
|
176
175
|
}
|