@thi.ng/api 8.4.4 → 8.4.6

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,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2022-10-28T19:08:39Z
3
+ - **Last updated**: 2022-11-23T22:46:54Z
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.
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
9
9
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
10
  and/or version bumps of transitive dependencies.
11
11
 
12
+ ### [8.4.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/api@8.4.5) (2022-11-01)
13
+
14
+ #### 🩹 Bug fixes
15
+
16
+ - off-by-one error for BIT_SHIFTS LUT (f64) ([dae2279](https://github.com/thi-ng/umbrella/commit/dae2279))
17
+
12
18
  ## [8.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/api@8.4.0) (2022-08-15)
13
19
 
14
20
  #### 🚀 Features
@@ -60,33 +66,21 @@ and/or version bumps of transitive dependencies.
60
66
 
61
67
  #### 🚀 Features
62
68
 
63
- - add asInt() coercion helper ([49cd772](https://github.com/thi-ng/umbrella/commit/49cd772))
64
69
  - add IGrid2D/3D interfaces ([e57ad7e](https://github.com/thi-ng/umbrella/commit/e57ad7e))
70
+ - add asInt() coercion helper ([49cd772](https://github.com/thi-ng/umbrella/commit/49cd772))
65
71
 
66
72
  ### [8.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/api@8.0.1) (2021-10-13)
67
73
 
68
74
  #### ♻️ Refactoring
69
75
 
70
- - update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
71
76
  - update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
72
77
  - add .js suffix for all relative imports
78
+ - update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
73
79
 
74
80
  # [8.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/api@8.0.0) (2021-10-12)
75
81
 
76
82
  #### 🛑 Breaking changes
77
83
 
78
- - major pkg restructure ([98e286d](https://github.com/thi-ng/umbrella/commit/98e286d))
79
- - BREAKING CHANGE: major pkg restructure, migrations
80
- - migrate logging related types/classes to new [@thi.ng/logger](https://github.com/thi-ng/umbrella/tree/main/packages/logger) pkg
81
- - see [e0399a8f6](https://github.com/thi-ng/umbrella/commit/e0399a8f6) for details
82
- - migrate `exposeGlobal()` to new [@thi.ng/expose](https://github.com/thi-ng/umbrella/tree/main/packages/expose) pkg
83
- - see [323995fd7](https://github.com/thi-ng/umbrella/commit/323995fd7) for details
84
- - lift /api source files to main /src folder for easier import
85
- - this pkg now only contains type defs, constants, decorators and mixins
86
- all other functionality migrated to other packages...
87
- - remove obsolete assert() ([5f6ec5c](https://github.com/thi-ng/umbrella/commit/5f6ec5c))
88
- - BREAKING CHANGE: assert() moved to [@thi.ng/errors](https://github.com/thi-ng/umbrella/tree/main/packages/errors) pkg
89
- - see [7030a6aec](https://github.com/thi-ng/umbrella/commit/7030a6aec) for details
90
84
  - major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
91
85
  - BREAKING CHANGE: discontinue CommonJS & UMD versions
92
86
  - only ESM modules will be published from now on
@@ -99,18 +93,30 @@ and/or version bumps of transitive dependencies.
99
93
  - normalize/restructure/reorg all package.json files
100
94
  - cleanup all build scripts, remove obsolete
101
95
  - switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
96
+ - remove obsolete assert() ([5f6ec5c](https://github.com/thi-ng/umbrella/commit/5f6ec5c))
97
+ - BREAKING CHANGE: assert() moved to [@thi.ng/errors](https://github.com/thi-ng/umbrella/tree/main/packages/errors) pkg
98
+ - see [7030a6aec](https://github.com/thi-ng/umbrella/commit/7030a6aec) for details
99
+ - major pkg restructure ([98e286d](https://github.com/thi-ng/umbrella/commit/98e286d))
100
+ - BREAKING CHANGE: major pkg restructure, migrations
101
+ - migrate logging related types/classes to new [@thi.ng/logger](https://github.com/thi-ng/umbrella/tree/main/packages/logger) pkg
102
+ - see [e0399a8f6](https://github.com/thi-ng/umbrella/commit/e0399a8f6) for details
103
+ - migrate `exposeGlobal()` to new [@thi.ng/expose](https://github.com/thi-ng/umbrella/tree/main/packages/expose) pkg
104
+ - see [323995fd7](https://github.com/thi-ng/umbrella/commit/323995fd7) for details
105
+ - lift /api source files to main /src folder for easier import
106
+ - this pkg now only contains type defs, constants, decorators and mixins
107
+ all other functionality migrated to other packages...
102
108
 
103
109
  #### ♻️ Refactoring
104
110
 
105
- - minor pkg restructure (various) ([47f88d2](https://github.com/thi-ng/umbrella/commit/47f88d2))
111
+ - update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
112
+ - update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
106
113
  - update deps & imports in various pkgs ([e1cf29e](https://github.com/thi-ng/umbrella/commit/e1cf29e))
107
114
  - largely related to recent updates/restructuring of these packages:
108
115
  - api
109
116
  - defmulti
110
117
  - errors
111
118
  - logger
112
- - update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
113
- - update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
119
+ - minor pkg restructure (various) ([47f88d2](https://github.com/thi-ng/umbrella/commit/47f88d2))
114
120
 
115
121
  ## [7.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/api@7.2.0) (2021-09-03)
116
122
 
@@ -153,9 +159,9 @@ and/or version bumps of transitive dependencies.
153
159
 
154
160
  #### 🚀 Features
155
161
 
156
- - more finely grained typedarray types ([8316d05](https://github.com/thi-ng/umbrella/commit/8316d05))
157
- - add typedArrayType() classifier ([5c81fd8](https://github.com/thi-ng/umbrella/commit/5c81fd8))
158
162
  - add Range type ([5d94974](https://github.com/thi-ng/umbrella/commit/5d94974))
163
+ - add typedArrayType() classifier ([5c81fd8](https://github.com/thi-ng/umbrella/commit/5c81fd8))
164
+ - more finely grained typedarray types ([8316d05](https://github.com/thi-ng/umbrella/commit/8316d05))
159
165
 
160
166
  ### [6.13.4](https://github.com/thi-ng/umbrella/tree/@thi.ng/api@6.13.4) (2020-12-07)
161
167
 
@@ -167,8 +173,8 @@ and/or version bumps of transitive dependencies.
167
173
 
168
174
  #### 🚀 Features
169
175
 
170
- - add DeepPartial type ([0d9a0de](https://github.com/thi-ng/umbrella/commit/0d9a0de))
171
176
  - add FnU and FnN function types ([4ba48d0](https://github.com/thi-ng/umbrella/commit/4ba48d0))
177
+ - add DeepPartial type ([0d9a0de](https://github.com/thi-ng/umbrella/commit/0d9a0de))
172
178
 
173
179
  #### 🩹 Bug fixes
174
180
 
@@ -204,13 +210,13 @@ and/or version bumps of transitive dependencies.
204
210
 
205
211
  #### 🚀 Features
206
212
 
213
+ - add Path0-8, PathVal1-8, DeepPath types ([0c76108](https://github.com/thi-ng/umbrella/commit/0c76108))
214
+ - update Path alias, add doc strings ([e2b35bc](https://github.com/thi-ng/umbrella/commit/e2b35bc))
215
+ - add Derefed & DerefedKeys types ([95f1576](https://github.com/thi-ng/umbrella/commit/95f1576))
207
216
  - add optional props in Keys/Val types ([08b88f0](https://github.com/thi-ng/umbrella/commit/08b88f0))
208
217
  - force intermediate props using `Required<T>`
209
218
  - update Keys1-8, Val1-8
210
219
  - update KeysN / ValN
211
- - add Derefed & DerefedKeys types ([95f1576](https://github.com/thi-ng/umbrella/commit/95f1576))
212
- - update Path alias, add doc strings ([e2b35bc](https://github.com/thi-ng/umbrella/commit/e2b35bc))
213
- - add Path0-8, PathVal1-8, DeepPath types ([0c76108](https://github.com/thi-ng/umbrella/commit/0c76108))
214
220
 
215
221
  #### ♻️ Refactoring
216
222
 
@@ -241,28 +247,28 @@ and/or version bumps of transitive dependencies.
241
247
 
242
248
  #### ♻️ Refactoring
243
249
 
244
- - remove obsolete Drop/DropReducer ([5e80c4d](https://github.com/thi-ng/umbrella/commit/5e80c4d))
245
250
  - update IToHiccup, add opt args ([ac35685](https://github.com/thi-ng/umbrella/commit/ac35685))
251
+ - remove obsolete Drop/DropReducer ([5e80c4d](https://github.com/thi-ng/umbrella/commit/5e80c4d))
246
252
 
247
253
  ## [6.7.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/api@6.7.0) (2020-01-24)
248
254
 
249
255
  #### 🚀 Features
250
256
 
251
- - add IReset interface ([d491bd0](https://github.com/thi-ng/umbrella/commit/d491bd0))
252
- - add Drop, TupleLength, update Tuple ([dc79324](https://github.com/thi-ng/umbrella/commit/dc79324))
253
- - added the ReplaceN type ([4da54ae](https://github.com/thi-ng/umbrella/commit/4da54ae))
254
- - added the WithoutN type ([0d13af5](https://github.com/thi-ng/umbrella/commit/0d13af5))
255
- - added the Init type ([f6c333a](https://github.com/thi-ng/umbrella/commit/f6c333a))
256
- - added the Last type ([44ae2f7](https://github.com/thi-ng/umbrella/commit/44ae2f7))
257
- - added the ValN type ([b48623f](https://github.com/thi-ng/umbrella/commit/b48623f))
258
- - added the KeysN type ([e0f0e90](https://github.com/thi-ng/umbrella/commit/e0f0e90))
259
- - added the Reverse type ([88cfaa4](https://github.com/thi-ng/umbrella/commit/88cfaa4))
260
- - added the Prepend type ([7bfe7a8](https://github.com/thi-ng/umbrella/commit/7bfe7a8))
261
- - added the Tail type ([fa59ff3](https://github.com/thi-ng/umbrella/commit/fa59ff3))
262
- - added the Head type ([f000a3d](https://github.com/thi-ng/umbrella/commit/f000a3d))
263
- - add IClear interface ([38f03ff](https://github.com/thi-ng/umbrella/commit/38f03ff))
264
- - add more RangeXX types & RangeValueMap ([654ea53](https://github.com/thi-ng/umbrella/commit/654ea53))
265
257
  - add exposeGlobal(), update assert(), update readme ([7981cc9](https://github.com/thi-ng/umbrella/commit/7981cc9))
258
+ - add more RangeXX types & RangeValueMap ([654ea53](https://github.com/thi-ng/umbrella/commit/654ea53))
259
+ - add IClear interface ([38f03ff](https://github.com/thi-ng/umbrella/commit/38f03ff))
260
+ - added the Head type ([f000a3d](https://github.com/thi-ng/umbrella/commit/f000a3d))
261
+ - added the Tail type ([fa59ff3](https://github.com/thi-ng/umbrella/commit/fa59ff3))
262
+ - added the Prepend type ([7bfe7a8](https://github.com/thi-ng/umbrella/commit/7bfe7a8))
263
+ - added the Reverse type ([88cfaa4](https://github.com/thi-ng/umbrella/commit/88cfaa4))
264
+ - added the KeysN type ([e0f0e90](https://github.com/thi-ng/umbrella/commit/e0f0e90))
265
+ - added the ValN type ([b48623f](https://github.com/thi-ng/umbrella/commit/b48623f))
266
+ - added the Last type ([44ae2f7](https://github.com/thi-ng/umbrella/commit/44ae2f7))
267
+ - added the Init type ([f6c333a](https://github.com/thi-ng/umbrella/commit/f6c333a))
268
+ - added the WithoutN type ([0d13af5](https://github.com/thi-ng/umbrella/commit/0d13af5))
269
+ - added the ReplaceN type ([4da54ae](https://github.com/thi-ng/umbrella/commit/4da54ae))
270
+ - add Drop, TupleLength, update Tuple ([dc79324](https://github.com/thi-ng/umbrella/commit/dc79324))
271
+ - add IReset interface ([d491bd0](https://github.com/thi-ng/umbrella/commit/d491bd0))
266
272
 
267
273
  #### 🩹 Bug fixes
268
274
 
@@ -272,12 +278,12 @@ and/or version bumps of transitive dependencies.
272
278
 
273
279
  #### 🚀 Features
274
280
 
275
- - add WithoutX & ReplaceX types, update KeysX/ValX ([7707370](https://github.com/thi-ng/umbrella/commit/7707370))
276
- - add versions up to arity 8
277
- - add ISeq, ISeqable ([541e9c8](https://github.com/thi-ng/umbrella/commit/541e9c8))
278
281
  - add Uint/Int/FloatType & helpers ([1d3c824](https://github.com/thi-ng/umbrella/commit/1d3c824))
279
282
  - add grouped Type aliases
280
283
  - add uintType() / intType() helpers
284
+ - add ISeq, ISeqable ([541e9c8](https://github.com/thi-ng/umbrella/commit/541e9c8))
285
+ - add WithoutX & ReplaceX types, update KeysX/ValX ([7707370](https://github.com/thi-ng/umbrella/commit/7707370))
286
+ - add versions up to arity 8
281
287
 
282
288
  #### ♻️ Refactoring
283
289
 
@@ -287,16 +293,16 @@ and/or version bumps of transitive dependencies.
287
293
 
288
294
  #### 🚀 Features
289
295
 
290
- - add typedArray() factory, update type mappers, docs ([ac7fa13](https://github.com/thi-ng/umbrella/commit/ac7fa13))
291
- - add RangeXX types ([fc9cf21](https://github.com/thi-ng/umbrella/commit/fc9cf21))
292
296
  - add types, split api.ts into separate files ([b72e664](https://github.com/thi-ng/umbrella/commit/b72e664))
293
297
  - add GLType enum & GL2TYPE / TYPE2GL conversions
294
298
  - add TypedArrayContstructor, TYPEDARRAY_CTORS LUT
299
+ - add RangeXX types ([fc9cf21](https://github.com/thi-ng/umbrella/commit/fc9cf21))
300
+ - add typedArray() factory, update type mappers, docs ([ac7fa13](https://github.com/thi-ng/umbrella/commit/ac7fa13))
295
301
 
296
302
  #### ♻️ Refactoring
297
303
 
298
- - fix [#168](https://github.com/thi-ng/umbrella/issues/168), refactor Range types ([39bf8f1](https://github.com/thi-ng/umbrella/commit/39bf8f1))
299
304
  - update INotifyMixin to clean up listeners ([ed2be64](https://github.com/thi-ng/umbrella/commit/ed2be64))
305
+ - fix [#168](https://github.com/thi-ng/umbrella/issues/168), refactor Range types ([39bf8f1](https://github.com/thi-ng/umbrella/commit/39bf8f1))
300
306
 
301
307
  ## [6.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/api@6.4.0) (2019-09-21)
302
308
 
@@ -314,18 +320,18 @@ and/or version bumps of transitive dependencies.
314
320
 
315
321
  #### 🚀 Features
316
322
 
317
- - add Select2/3/4 conditional types ([a4bfb88](https://github.com/thi-ng/umbrella/commit/a4bfb88))
318
- - update assert() message arg types ([6137b48](https://github.com/thi-ng/umbrella/commit/6137b48))
319
- - add support for supplying message as no-arg fn to delay
320
- execution of template string literals
321
323
  - enable TS strict compiler flags (refactor) ([0430d01](https://github.com/thi-ng/umbrella/commit/0430d01))
322
324
  - add missing return types for IEnable, IGet, IGetIn
323
325
  - update mixins, add private interfaces
326
+ - update assert() message arg types ([6137b48](https://github.com/thi-ng/umbrella/commit/6137b48))
327
+ - add support for supplying message as no-arg fn to delay
328
+ execution of template string literals
329
+ - add Select2/3/4 conditional types ([a4bfb88](https://github.com/thi-ng/umbrella/commit/a4bfb88))
324
330
 
325
331
  #### ♻️ Refactoring
326
332
 
327
- - update IStack return types (TS strictNullChecks flag) ([daf1f4c](https://github.com/thi-ng/umbrella/commit/daf1f4c))
328
333
  - update IEnable mixin (strictNullChecks) ([525ad0d](https://github.com/thi-ng/umbrella/commit/525ad0d))
334
+ - update IStack return types (TS strictNullChecks flag) ([daf1f4c](https://github.com/thi-ng/umbrella/commit/daf1f4c))
329
335
 
330
336
  ## [6.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/api@6.2.0) (2019-05-22)
331
337
 
@@ -343,10 +349,10 @@ and/or version bumps of transitive dependencies.
343
349
 
344
350
  #### 🚀 Features
345
351
 
346
- - update ILogger, freeze NULL_LOGGER ([27ff8de](https://github.com/thi-ng/umbrella/commit/27ff8de))
347
352
  - add common logging types & default impls ([4578604](https://github.com/thi-ng/umbrella/commit/4578604))
348
353
  - add ILogger interface, LogLevel enum
349
354
  - add NULL_LOGGER & ConsoleLogger
355
+ - update ILogger, freeze NULL_LOGGER ([27ff8de](https://github.com/thi-ng/umbrella/commit/27ff8de))
350
356
 
351
357
  # [6.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/api@6.0.0) (2019-03-28)
352
358
 
@@ -369,8 +375,8 @@ and/or version bumps of transitive dependencies.
369
375
 
370
376
  #### 🚀 Features
371
377
 
372
- - add more Fn type aliases, update existing ([3707e61](https://github.com/thi-ng/umbrella/commit/3707e61))
373
378
  - add additional Fn arities ([33c7dfe](https://github.com/thi-ng/umbrella/commit/33c7dfe))
379
+ - add more Fn type aliases, update existing ([3707e61](https://github.com/thi-ng/umbrella/commit/3707e61))
374
380
 
375
381
  #### ♻️ Refactoring
376
382
 
@@ -399,9 +405,9 @@ and/or version bumps of transitive dependencies.
399
405
 
400
406
  #### 🚀 Features
401
407
 
402
- - add NumericArray and TypedArray types ([519394b](https://github.com/thi-ng/umbrella/commit/519394b))
403
408
  - add new/move type aliases into api.ts ([cf30ba2](https://github.com/thi-ng/umbrella/commit/cf30ba2))
404
409
  - Fn, FnAny, Pair, SEMAPHORE
410
+ - add NumericArray and TypedArray types ([519394b](https://github.com/thi-ng/umbrella/commit/519394b))
405
411
 
406
412
  ### [4.0.6](https://github.com/thi-ng/umbrella/tree/@thi.ng/api@4.0.6) (2018-08-01)
407
413
 
package/README.md CHANGED
@@ -13,7 +13,6 @@ This project is part of the
13
13
  - [Status](#status)
14
14
  - [Installation](#installation)
15
15
  - [Dependencies](#dependencies)
16
- - [Usage examples](#usage-examples)
17
16
  - [API](#api)
18
17
  - [Authors](#authors)
19
18
  - [Maintainer](#maintainer)
@@ -67,18 +66,6 @@ Package sizes (gzipped, pre-treeshake): ESM: 2.33 KB
67
66
 
68
67
  None
69
68
 
70
- ## Usage examples
71
-
72
- Several demos in this repo's
73
- [/examples](https://github.com/thi-ng/umbrella/tree/develop/examples)
74
- directory are using this package.
75
-
76
- A selection:
77
-
78
- | Screenshot | Description | Live demo | Source |
79
- |:------------------------------------------------------------------------------------------------------------------|:--------------------------------------------|:-------------------------------------------------|:------------------------------------------------------------------------------|
80
- | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/zig-canvas.png" width="240"/> | Zig-based DOM creation & canvas drawing app | [Demo](https://demo.thi.ng/umbrella/zig-canvas/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/zig-canvas) |
81
-
82
69
  ## API
83
70
 
84
71
  [Generated API docs](https://docs.thi.ng/umbrella/api/)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/api",
3
- "version": "8.4.4",
3
+ "version": "8.4.6",
4
4
  "description": "Common, generic types, interfaces & mixins",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -35,10 +35,10 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@microsoft/api-extractor": "^7.33.5",
38
- "@thi.ng/testament": "^0.3.4",
38
+ "@thi.ng/testament": "^0.3.5",
39
39
  "rimraf": "^3.0.2",
40
40
  "tools": "^0.0.1",
41
- "typedoc": "^0.23.18",
41
+ "typedoc": "^0.23.20",
42
42
  "typescript": "^4.8.4"
43
43
  },
44
44
  "keywords": [
@@ -62,8 +62,8 @@
62
62
  "node": ">=12.7"
63
63
  },
64
64
  "files": [
65
- "*.js",
66
- "*.d.ts",
65
+ "./*.js",
66
+ "./*.d.ts",
67
67
  "decorators",
68
68
  "mixins"
69
69
  ],
@@ -222,5 +222,5 @@
222
222
  "default": "./watch.js"
223
223
  }
224
224
  },
225
- "gitHead": "41e59c7ad9bf24bb0230a5f60d05715e0fc1c1e6\n"
225
+ "gitHead": "044ee6a3895720fc78e115032d4d831b63510929\n"
226
226
  }
package/typedarray.js CHANGED
@@ -78,7 +78,7 @@ export const BIT_SHIFTS = {
78
78
  i64: 3,
79
79
  u64: 3,
80
80
  f32: 2,
81
- f64: 2,
81
+ f64: 3,
82
82
  };
83
83
  export const FLOAT_ARRAY_CTORS = {
84
84
  f32: Float32Array,