@thi.ng/api 7.2.0 → 8.0.0
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 +179 -198
- package/README.md +15 -25
- package/{constants.d.ts → api.d.ts} +1 -1
- package/{constants.js → api.js} +0 -0
- package/{api/assoc.d.ts → assoc.d.ts} +0 -0
- package/{api/assoc.js → assoc.js} +0 -0
- package/{api/bind.d.ts → bind.d.ts} +0 -0
- package/{api/bind.js → bind.js} +0 -0
- package/{api/buffered.d.ts → buffered.d.ts} +0 -0
- package/{api/buffered.js → buffered.js} +0 -0
- package/{api/clear.d.ts → clear.d.ts} +0 -0
- package/{api/clear.js → clear.js} +0 -0
- package/{api/compare.d.ts → compare.d.ts} +0 -0
- package/{api/compare.js → compare.js} +0 -0
- package/{api/contains.d.ts → contains.d.ts} +0 -0
- package/{api/contains.js → contains.js} +0 -0
- package/{api/copy.d.ts → copy.d.ts} +0 -0
- package/{api/copy.js → copy.js} +0 -0
- package/decorators/deprecated.js +3 -2
- package/{api/deref.d.ts → deref.d.ts} +0 -0
- package/{api/deref.js → deref.js} +0 -0
- package/{api/dissoc.d.ts → dissoc.d.ts} +0 -0
- package/{api/dissoc.js → dissoc.js} +0 -0
- package/{api/empty.d.ts → empty.d.ts} +0 -0
- package/{api/empty.js → empty.js} +0 -0
- package/{api/enable.d.ts → enable.d.ts} +0 -0
- package/{api/enable.js → enable.js} +0 -0
- package/{api/equiv.d.ts → equiv.d.ts} +0 -0
- package/{api/equiv.js → equiv.js} +0 -0
- package/{api/event.d.ts → event.d.ts} +0 -0
- package/{api/event.js → event.js} +0 -0
- package/{api/fn.d.ts → fn.d.ts} +0 -0
- package/{api/fn.js → fn.js} +0 -0
- package/{api/get.d.ts → get.d.ts} +0 -0
- package/{api/get.js → get.js} +0 -0
- package/{api/hash.d.ts → hash.d.ts} +0 -0
- package/{api/hash.js → hash.js} +0 -0
- package/{api/hiccup.d.ts → hiccup.d.ts} +0 -0
- package/{api/hiccup.js → hiccup.js} +0 -0
- package/{api/id.d.ts → id.d.ts} +0 -0
- package/{api/id.js → id.js} +0 -0
- package/index.d.ts +39 -43
- package/index.js +39 -43
- package/{api/indexed.d.ts → indexed.d.ts} +0 -0
- package/{api/indexed.js → indexed.js} +0 -0
- package/{api/into.d.ts → into.d.ts} +0 -0
- package/{api/into.js → into.js} +0 -0
- package/{api/keyval.d.ts → keyval.d.ts} +0 -0
- package/{api/keyval.js → keyval.js} +0 -0
- package/{api/length.d.ts → length.d.ts} +0 -0
- package/{api/length.js → length.js} +0 -0
- package/{api/meta.d.ts → meta.d.ts} +0 -0
- package/{api/meta.js → meta.js} +0 -0
- package/mixins/ienable.js +1 -1
- package/mixins/inotify.d.ts +1 -1
- package/mixins/inotify.js +1 -1
- package/{api/null.d.ts → null.d.ts} +0 -0
- package/{api/null.js → null.js} +0 -0
- package/{api/object.d.ts → object.d.ts} +0 -0
- package/{api/object.js → object.js} +0 -0
- package/package.json +169 -24
- package/{api/path.d.ts → path.d.ts} +0 -0
- package/{api/path.js → path.js} +0 -0
- package/{api/predicate.d.ts → predicate.d.ts} +0 -0
- package/{api/predicate.js → predicate.js} +0 -0
- package/{api/prim.d.ts → prim.d.ts} +0 -0
- package/{api/prim.js → prim.js} +0 -0
- package/{api/range.d.ts → range.d.ts} +0 -0
- package/{api/range.js → range.js} +0 -0
- package/{api/release.d.ts → release.d.ts} +0 -0
- package/{api/release.js → release.js} +0 -0
- package/{api/reset.d.ts → reset.d.ts} +0 -0
- package/{api/reset.js → reset.js} +0 -0
- package/{api/select.d.ts → select.d.ts} +0 -0
- package/{api/select.js → select.js} +0 -0
- package/{api/seq.d.ts → seq.d.ts} +0 -0
- package/{api/seq.js → seq.js} +0 -0
- package/{api/set.d.ts → set.d.ts} +0 -0
- package/{api/set.js → set.js} +0 -0
- package/{api/stack.d.ts → stack.d.ts} +0 -0
- package/{api/stack.js → stack.js} +0 -0
- package/{api/tuple.d.ts → tuple.d.ts} +0 -0
- package/{api/tuple.js → tuple.js} +0 -0
- package/{api/typedarray.d.ts → typedarray.d.ts} +0 -0
- package/{api/typedarray.js → typedarray.js} +5 -1
- package/{api/watch.d.ts → watch.d.ts} +0 -0
- package/{api/watch.js → watch.js} +0 -0
- package/api/logger.d.ts +0 -21
- package/api/logger.js +0 -9
- package/assert.d.ts +0 -11
- package/assert.js +0 -23
- package/expose.d.ts +0 -11
- package/expose.js +0 -28
- package/lib/index.js +0 -382
- package/lib/index.js.map +0 -1
- package/lib/index.umd.js +0 -1
- package/lib/index.umd.js.map +0 -1
- package/logger.d.ts +0 -15
- package/logger.js +0 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,376 +3,357 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
# [
|
|
6
|
+
# [8.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@7.2.0...@thi.ng/api@8.0.0) (2021-10-12)
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
###
|
|
9
|
+
### Build System
|
|
10
10
|
|
|
11
|
-
*
|
|
11
|
+
* major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
|
|
12
12
|
|
|
13
13
|
|
|
14
|
+
### chore
|
|
14
15
|
|
|
16
|
+
* **api:** remove obsolete assert() ([5f6ec5c](https://github.com/thi-ng/umbrella/commit/5f6ec5c37d9268c2b40d74011219529e146a0aca))
|
|
15
17
|
|
|
16
18
|
|
|
17
|
-
|
|
19
|
+
### Code Refactoring
|
|
18
20
|
|
|
21
|
+
* **api:** major pkg restructure ([98e286d](https://github.com/thi-ng/umbrella/commit/98e286dbf173dc8fe1daba7113b36bdc69a9bace))
|
|
19
22
|
|
|
20
|
-
### Features
|
|
21
23
|
|
|
22
|
-
|
|
24
|
+
### BREAKING CHANGES
|
|
23
25
|
|
|
26
|
+
* **api:** major pkg restructure, migrations
|
|
24
27
|
|
|
28
|
+
- migrate logging related types/classes to new thi.ng/logger pkg
|
|
29
|
+
- see e0399a8f6 for details
|
|
30
|
+
- migrate `exposeGlobal()` to new thi.ng/expose pkg
|
|
31
|
+
- see 323995fd7 for details
|
|
32
|
+
- lift /api source files to main /src folder for easier import
|
|
33
|
+
- this pkg now only contains type defs, constants, decorators and mixins
|
|
34
|
+
all other functionality migrated to other packages...
|
|
35
|
+
* **api:** assert() moved to thi.ng/errors pkg
|
|
25
36
|
|
|
37
|
+
- see 7030a6aec for details
|
|
38
|
+
* discontinue CommonJS & UMD versions
|
|
26
39
|
|
|
40
|
+
- only ESM modules will be published from now on
|
|
41
|
+
- CJS obsolete due to ESM support in recent versions of node:
|
|
42
|
+
- i.e. launch NodeJS via:
|
|
43
|
+
- `node --experimental-specifier-resolution=node --experimental-repl-await`
|
|
44
|
+
- in the node REPL use `await import(...)` instead of `require()`
|
|
45
|
+
- UMD obsolete due to widespread browser support for ESM
|
|
27
46
|
|
|
28
|
-
|
|
47
|
+
Also:
|
|
48
|
+
- normalize/restructure/reorg all package.json files
|
|
49
|
+
- cleanup all build scripts, remove obsolete
|
|
50
|
+
- switch from mocha to @thi.ng/testament for all tests
|
|
29
51
|
|
|
30
52
|
|
|
31
|
-
### Features
|
|
32
53
|
|
|
33
|
-
* **api:** add Range type ([5d94974](https://github.com/thi-ng/umbrella/commit/5d94974c34ca81513d40743f2a9b9a3ed20146d3))
|
|
34
|
-
* **api:** add typedArrayType() classifier ([5c81fd8](https://github.com/thi-ng/umbrella/commit/5c81fd859514401c2c419b2ed3ec0f12025356c3))
|
|
35
|
-
* **api:** more finely grained typedarray types ([8316d05](https://github.com/thi-ng/umbrella/commit/8316d058f0b5f760afd89e8590619670210a970a))
|
|
36
|
-
* **api:** replace Type enum w/ strings consts ([a333d41](https://github.com/thi-ng/umbrella/commit/a333d418222972373cc1f9b256def2f79610d3fa))
|
|
37
54
|
|
|
38
55
|
|
|
39
|
-
### BREAKING CHANGES
|
|
40
56
|
|
|
41
|
-
|
|
57
|
+
# [7.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@7.1.9...@thi.ng/api@7.2.0) (2021-09-03)
|
|
42
58
|
|
|
43
|
-
|
|
44
|
-
- update GL2TYPE, TYPE2GL, SIZEOF, TYPEDARRAY_CTORS tables
|
|
45
|
-
- add asNativeType(), asGLType() conversions
|
|
46
|
-
- add sizeOf()
|
|
47
|
-
- add uintTypeForBits(), intTypeForBits()
|
|
48
|
-
- update/rename uintTypeForSize(), intTypeForSize()
|
|
59
|
+
### Features
|
|
49
60
|
|
|
61
|
+
- **api:** add DeepArrayValue type ([a309fac](https://github.com/thi-ng/umbrella/commit/a309faca831651f611b9b056d9c7587f85b60087))
|
|
50
62
|
|
|
63
|
+
# [7.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@7.0.0...@thi.ng/api@7.1.0) (2021-03-03)
|
|
51
64
|
|
|
65
|
+
### Features
|
|
52
66
|
|
|
67
|
+
- **api:** add StringOrSym type alias ([fb92c9d](https://github.com/thi-ng/umbrella/commit/fb92c9d93b4e795f60118e1167d5adb1bb108380))
|
|
53
68
|
|
|
54
|
-
#
|
|
69
|
+
# [7.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@6.13.6...@thi.ng/api@7.0.0) (2021-02-20)
|
|
55
70
|
|
|
71
|
+
### Features
|
|
56
72
|
|
|
57
|
-
|
|
73
|
+
- **api:** add Range type ([5d94974](https://github.com/thi-ng/umbrella/commit/5d94974c34ca81513d40743f2a9b9a3ed20146d3))
|
|
74
|
+
- **api:** add typedArrayType() classifier ([5c81fd8](https://github.com/thi-ng/umbrella/commit/5c81fd859514401c2c419b2ed3ec0f12025356c3))
|
|
75
|
+
- **api:** more finely grained typedarray types ([8316d05](https://github.com/thi-ng/umbrella/commit/8316d058f0b5f760afd89e8590619670210a970a))
|
|
76
|
+
- **api:** replace Type enum w/ strings consts ([a333d41](https://github.com/thi-ng/umbrella/commit/a333d418222972373cc1f9b256def2f79610d3fa))
|
|
58
77
|
|
|
59
|
-
|
|
78
|
+
### BREAKING CHANGES
|
|
60
79
|
|
|
80
|
+
- **api:** replace Type enum w/ string consts
|
|
81
|
+
- update Type, UintType, IntType, FloatType aliases
|
|
82
|
+
- update GL2TYPE, TYPE2GL, SIZEOF, TYPEDARRAY_CTORS tables
|
|
83
|
+
- add asNativeType(), asGLType() conversions
|
|
84
|
+
- add sizeOf()
|
|
85
|
+
- add uintTypeForBits(), intTypeForBits()
|
|
86
|
+
- update/rename uintTypeForSize(), intTypeForSize()
|
|
61
87
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
* **api:** add DeepPartial type ([0d9a0de](https://github.com/thi-ng/umbrella/commit/0d9a0de2c3b5029bdc49101727d234a065a94869))
|
|
65
|
-
* **api:** add FnU and FnN function types ([4ba48d0](https://github.com/thi-ng/umbrella/commit/4ba48d0dc4324c79c9e9b11d9e55b04b5c5f54c7))
|
|
88
|
+
# [6.13.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@6.12.3...@thi.ng/api@6.13.0) (2020-09-13)
|
|
66
89
|
|
|
90
|
+
### Bug Fixes
|
|
67
91
|
|
|
92
|
+
- **api:** update assert() & exposeGlobal() detection ([2cdc038](https://github.com/thi-ng/umbrella/commit/2cdc038d5ae3f8efba7c71e708de6eda1d3a4dd5))
|
|
68
93
|
|
|
94
|
+
### Features
|
|
69
95
|
|
|
96
|
+
- **api:** add DeepPartial type ([0d9a0de](https://github.com/thi-ng/umbrella/commit/0d9a0de2c3b5029bdc49101727d234a065a94869))
|
|
97
|
+
- **api:** add FnU and FnN function types ([4ba48d0](https://github.com/thi-ng/umbrella/commit/4ba48d0dc4324c79c9e9b11d9e55b04b5c5f54c7))
|
|
70
98
|
|
|
71
99
|
# [6.12.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@6.11.3...@thi.ng/api@6.12.0) (2020-07-28)
|
|
72
100
|
|
|
73
|
-
|
|
74
101
|
### Features
|
|
75
102
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
103
|
+
- **api:** add Always & ArrayValue types ([dcf9aeb](https://github.com/thi-ng/umbrella/commit/dcf9aebe93d73c06e2bb835b942e83ec6580755f))
|
|
81
104
|
|
|
82
105
|
# [6.11.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@6.10.5...@thi.ng/api@6.11.0) (2020-06-01)
|
|
83
106
|
|
|
84
|
-
|
|
85
107
|
### Features
|
|
86
108
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
109
|
+
- **api:** add deref(), isDeref() fns & MaybeDeref ([722bf3e](https://github.com/thi-ng/umbrella/commit/722bf3e3a368c62575faff26695326dc72954d6d))
|
|
92
110
|
|
|
93
111
|
# [6.10.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@6.9.1...@thi.ng/api@6.10.0) (2020-04-06)
|
|
94
112
|
|
|
95
|
-
|
|
96
113
|
### Features
|
|
97
114
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
115
|
+
- **api:** add LogLevelName type ([25b6c67](https://github.com/thi-ng/umbrella/commit/25b6c6774645eef6606e76b9e81149863e964d71))
|
|
103
116
|
|
|
104
117
|
# [6.9.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@6.8.3...@thi.ng/api@6.9.0) (2020-03-28)
|
|
105
118
|
|
|
106
|
-
|
|
107
119
|
### Features
|
|
108
120
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
121
|
+
- **api:** add Derefed & DerefedKeys types ([95f1576](https://github.com/thi-ng/umbrella/commit/95f15765435e877aa92a66ac64933a962fbd2db5))
|
|
122
|
+
- **api:** add optional props in Keys/Val types ([08b88f0](https://github.com/thi-ng/umbrella/commit/08b88f0e74ffae0e4d8edddfbb5dff17f978a149))
|
|
123
|
+
- **api:** add Path0-8, PathVal1-8, DeepPath types ([0c76108](https://github.com/thi-ng/umbrella/commit/0c761085b60d27849650d51e851afd98f0f2b9ea))
|
|
124
|
+
- **api:** update Path alias, add doc strings ([e2b35bc](https://github.com/thi-ng/umbrella/commit/e2b35bc13cdf286d0e1cd60176eeb207525b064f))
|
|
117
125
|
|
|
118
126
|
# [6.8.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@6.7.1...@thi.ng/api@6.8.0) (2020-02-25)
|
|
119
127
|
|
|
120
|
-
|
|
121
128
|
### Bug Fixes
|
|
122
129
|
|
|
123
|
-
|
|
124
|
-
|
|
130
|
+
- **api:** fix imports ([e3e0cdc](https://github.com/thi-ng/umbrella/commit/e3e0cdc244dd25f33c633e7477e56baf0a9e53e4))
|
|
125
131
|
|
|
126
132
|
### Features
|
|
127
133
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
134
|
+
- **api:** add TypedKeys, NumericKeys, StringKeys ([fab1a5e](https://github.com/thi-ng/umbrella/commit/fab1a5ec800b68c8170f7c9f138781c6e7fd4263))
|
|
133
135
|
|
|
134
136
|
# [6.7.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@6.6.0...@thi.ng/api@6.7.0) (2020-01-24)
|
|
135
137
|
|
|
136
138
|
### Bug Fixes
|
|
137
139
|
|
|
138
|
-
|
|
140
|
+
- **api:** don't use optional chaining, update assert(), exposeGlobal() ([ddfc65e](https://github.com/thi-ng/umbrella/commit/ddfc65eb120d0f509cb18458f65497cb849bd305))
|
|
139
141
|
|
|
140
142
|
### Features
|
|
141
143
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
144
|
+
- **api:** add Drop, TupleLength, update Tuple ([dc79324](https://github.com/thi-ng/umbrella/commit/dc79324fbdc509b9d4dc2567b0a9106a25a62ea7))
|
|
145
|
+
- **api:** add exposeGlobal(), update assert(), update readme ([7981cc9](https://github.com/thi-ng/umbrella/commit/7981cc95703c95800a0346f9111276202c906c75))
|
|
146
|
+
- **api:** add IClear interface ([38f03ff](https://github.com/thi-ng/umbrella/commit/38f03ff205b29cd7819d3b8885c25e6b58a27381))
|
|
147
|
+
- **api:** add IReset interface ([d491bd0](https://github.com/thi-ng/umbrella/commit/d491bd081e3926eabab377085406b8eb93205ba0))
|
|
148
|
+
- **api:** add more RangeXX types & RangeValueMap ([654ea53](https://github.com/thi-ng/umbrella/commit/654ea53d068cc2b830608d6d69ab31df460eab3e))
|
|
149
|
+
- **api:** added the Head type ([f000a3d](https://github.com/thi-ng/umbrella/commit/f000a3d57442963363abd0aab6fe3309e711b1ab))
|
|
150
|
+
- **api:** added the Init type ([f6c333a](https://github.com/thi-ng/umbrella/commit/f6c333a7079a18ec7594a0ceefc2a425eead9d07))
|
|
151
|
+
- **api:** added the KeysN type ([e0f0e90](https://github.com/thi-ng/umbrella/commit/e0f0e9002eac4b4d3e7d39e634929a4c390d1463))
|
|
152
|
+
- **api:** added the Last type ([44ae2f7](https://github.com/thi-ng/umbrella/commit/44ae2f770d33fa1b25f8fc7e14b3caf5bada7bc6))
|
|
153
|
+
- **api:** added the Prepend type ([7bfe7a8](https://github.com/thi-ng/umbrella/commit/7bfe7a8756818b5879d698500fc203c583e185f9))
|
|
154
|
+
- **api:** added the ReplaceN type ([4da54ae](https://github.com/thi-ng/umbrella/commit/4da54aea15d3bd4f33b040e2220a43e1bb95ea11))
|
|
155
|
+
- **api:** added the Reverse type ([88cfaa4](https://github.com/thi-ng/umbrella/commit/88cfaa45bab2f85d176dc6ad9d3551a9f431d68d))
|
|
156
|
+
- **api:** added the Tail type ([fa59ff3](https://github.com/thi-ng/umbrella/commit/fa59ff3a5a30b9b2e226a363a18dedaca512e1db))
|
|
157
|
+
- **api:** added the ValN type ([b48623f](https://github.com/thi-ng/umbrella/commit/b48623fdf539962fff9bd805adf5e6b3d24fc23e))
|
|
158
|
+
- **api:** added the WithoutN type ([0d13af5](https://github.com/thi-ng/umbrella/commit/0d13af539bff270a15cc896515bd4cb5cf39ee0c))
|
|
157
159
|
|
|
158
160
|
# [6.6.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@6.5.0...@thi.ng/api@6.6.0) (2019-11-30)
|
|
159
161
|
|
|
160
162
|
### Features
|
|
161
163
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
164
|
+
- **api:** add ISeq, ISeqable ([541e9c8](https://github.com/thi-ng/umbrella/commit/541e9c8bdf95ece80b74e630eeb428876b7d7bc9))
|
|
165
|
+
- **api:** add Uint/Int/FloatType & helpers ([1d3c824](https://github.com/thi-ng/umbrella/commit/1d3c824f3647cbc7ced7f3289b184474f3281674))
|
|
166
|
+
- **api:** add WithoutX & ReplaceX types, update KeysX/ValX ([7707370](https://github.com/thi-ng/umbrella/commit/7707370741dc0835218f4a9302e6076e70bf8fba))
|
|
165
167
|
|
|
166
168
|
# [6.5.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@6.4.0...@thi.ng/api@6.5.0) (2019-11-09)
|
|
167
169
|
|
|
168
170
|
### Features
|
|
169
171
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
172
|
+
- **api:** add RangeXX types ([fc9cf21](https://github.com/thi-ng/umbrella/commit/fc9cf212ec97a719bca6f3214215f5d0aa479ea8))
|
|
173
|
+
- **api:** add typedArray() factory, update type mappers, docs ([ac7fa13](https://github.com/thi-ng/umbrella/commit/ac7fa13fa602947ae4b30c943d8d8fddcd602381))
|
|
174
|
+
- **api:** add types, split api.ts into separate files ([b72e664](https://github.com/thi-ng/umbrella/commit/b72e6641626314761488122a1bc55bc2e802eb74))
|
|
173
175
|
|
|
174
176
|
# [6.4.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@6.3.3...@thi.ng/api@6.4.0) (2019-09-21)
|
|
175
177
|
|
|
176
178
|
### Features
|
|
177
179
|
|
|
178
|
-
|
|
180
|
+
- **api:** add Nullable ([8366223](https://github.com/thi-ng/umbrella/commit/8366223))
|
|
179
181
|
|
|
180
182
|
# [6.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@6.2.0...@thi.ng/api@6.3.0) (2019-07-07)
|
|
181
183
|
|
|
182
184
|
### Features
|
|
183
185
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
186
|
+
- **api:** add Select2/3/4 conditional types ([a4bfb88](https://github.com/thi-ng/umbrella/commit/a4bfb88))
|
|
187
|
+
- **api:** enable TS strict compiler flags (refactor) ([0430d01](https://github.com/thi-ng/umbrella/commit/0430d01))
|
|
188
|
+
- **api:** update assert() message arg types ([6137b48](https://github.com/thi-ng/umbrella/commit/6137b48))
|
|
187
189
|
|
|
188
190
|
# [6.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@6.1.1...@thi.ng/api@6.2.0) (2019-05-22)
|
|
189
191
|
|
|
190
192
|
### Features
|
|
191
193
|
|
|
192
|
-
|
|
194
|
+
- **api:** add Type enum, IntArray, UIntArray, FloatArray, SIZEOF ([b0c44fe](https://github.com/thi-ng/umbrella/commit/b0c44fe))
|
|
193
195
|
|
|
194
196
|
## [6.1.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@6.1.0...@thi.ng/api@6.1.1) (2019-04-26)
|
|
195
197
|
|
|
196
198
|
### Bug Fixes
|
|
197
199
|
|
|
198
|
-
|
|
200
|
+
- **api:** make LogLevel non-const enum, minor fix ConsoleLogger ([88d5e9d](https://github.com/thi-ng/umbrella/commit/88d5e9d))
|
|
199
201
|
|
|
200
202
|
# [6.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@6.0.1...@thi.ng/api@6.1.0) (2019-04-24)
|
|
201
203
|
|
|
202
204
|
### Features
|
|
203
205
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
+
- **api:** add common logging types & default impls ([4578604](https://github.com/thi-ng/umbrella/commit/4578604))
|
|
207
|
+
- **api:** update ILogger, freeze NULL_LOGGER ([27ff8de](https://github.com/thi-ng/umbrella/commit/27ff8de))
|
|
206
208
|
|
|
207
|
-
#
|
|
209
|
+
# [6.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@5.1.0...@thi.ng/api@6.0.0) (2019-03-28)
|
|
208
210
|
|
|
209
|
-
###
|
|
210
|
-
|
|
211
|
-
* **api:** add new types, update existing ([560eb90](https://github.com/thi-ng/umbrella/commit/560eb90))
|
|
211
|
+
### Features
|
|
212
212
|
|
|
213
|
-
|
|
213
|
+
- **api:** add new types, update existing ([560eb90](https://github.com/thi-ng/umbrella/commit/560eb90))
|
|
214
214
|
|
|
215
|
-
|
|
215
|
+
### BREAKING CHANGES
|
|
216
216
|
|
|
217
|
-
- split
|
|
218
|
-
-
|
|
219
|
-
-
|
|
220
|
-
-
|
|
221
|
-
- update
|
|
222
|
-
- update
|
|
217
|
+
- **api:** split up, remove & update various interfaces
|
|
218
|
+
- split IAssociative => IAssoc, IAssocIn
|
|
219
|
+
- update IDissoc, add IDissocIn
|
|
220
|
+
- split IGet => IGet, IGetIn
|
|
221
|
+
- update IInto generics & return type
|
|
222
|
+
- update ISet, remove IImmutableSet
|
|
223
|
+
- update IStack, remove IImmutableStack
|
|
223
224
|
|
|
224
|
-
#
|
|
225
|
-
|
|
226
|
-
### Features
|
|
225
|
+
# [5.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@5.0.3...@thi.ng/api@5.1.0) (2019-03-10)
|
|
227
226
|
|
|
228
|
-
|
|
229
|
-
* **api:** add more Fn type aliases, update existing ([3707e61](https://github.com/thi-ng/umbrella/commit/3707e61))
|
|
227
|
+
### Features
|
|
230
228
|
|
|
231
|
-
|
|
229
|
+
- **api:** add additional Fn arities ([33c7dfe](https://github.com/thi-ng/umbrella/commit/33c7dfe))
|
|
230
|
+
- **api:** add more Fn type aliases, update existing ([3707e61](https://github.com/thi-ng/umbrella/commit/3707e61))
|
|
232
231
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
* **api:** update assert(), re-export mixin() ([9f91cfa](https://github.com/thi-ng/umbrella/commit/9f91cfa))
|
|
236
|
-
|
|
237
|
-
### Build System
|
|
232
|
+
# [5.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@4.2.4...@thi.ng/api@5.0.0) (2019-01-21)
|
|
238
233
|
|
|
239
|
-
|
|
234
|
+
### Bug Fixes
|
|
240
235
|
|
|
241
|
-
|
|
236
|
+
- **api:** update assert(), re-export mixin() ([9f91cfa](https://github.com/thi-ng/umbrella/commit/9f91cfa))
|
|
242
237
|
|
|
243
|
-
|
|
238
|
+
### Build System
|
|
244
239
|
|
|
245
|
-
|
|
240
|
+
- **api:** update package build scripts / outputs ([f913d7b](https://github.com/thi-ng/umbrella/commit/f913d7b))
|
|
246
241
|
|
|
247
|
-
|
|
242
|
+
### Features
|
|
248
243
|
|
|
249
|
-
-
|
|
250
|
-
- update re-exports of mixins & decorators (no more nested child namespace)
|
|
244
|
+
- **api:** add assert() ([d381ace](https://github.com/thi-ng/umbrella/commit/d381ace))
|
|
251
245
|
|
|
252
|
-
|
|
253
|
-
# [4.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@4.1.1...@thi.ng/api@4.2.0) (2018-09-22)
|
|
246
|
+
### BREAKING CHANGES
|
|
254
247
|
|
|
255
|
-
|
|
248
|
+
- **api:** rename mixins to avoid name clashes, update decorators
|
|
249
|
+
- append `Mixin` suffix to all mixins (i.e. `INotify` => `INotifyMixin`)
|
|
250
|
+
- update re-exports of mixins & decorators (no more nested child namespace)
|
|
256
251
|
|
|
257
|
-
|
|
252
|
+
# [4.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@4.1.1...@thi.ng/api@4.2.0) (2018-09-22)
|
|
258
253
|
|
|
259
|
-
|
|
260
|
-
# [4.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@4.0.6...@thi.ng/api@4.1.0) (2018-08-24)
|
|
254
|
+
### Features
|
|
261
255
|
|
|
262
|
-
|
|
256
|
+
- **api:** add `IToHiccup` interface ([e390a54](https://github.com/thi-ng/umbrella/commit/e390a54))
|
|
263
257
|
|
|
264
|
-
|
|
265
|
-
* **api:** add NumericArray and TypedArray types ([519394b](https://github.com/thi-ng/umbrella/commit/519394b))
|
|
258
|
+
# [4.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@4.0.6...@thi.ng/api@4.1.0) (2018-08-24)
|
|
266
259
|
|
|
267
|
-
|
|
268
|
-
# [4.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@3.0.1...@thi.ng/api@4.0.0) (2018-05-12)
|
|
260
|
+
### Features
|
|
269
261
|
|
|
270
|
-
|
|
262
|
+
- **api:** add new/move type aliases into api.ts ([cf30ba2](https://github.com/thi-ng/umbrella/commit/cf30ba2))
|
|
263
|
+
- **api:** add NumericArray and TypedArray types ([519394b](https://github.com/thi-ng/umbrella/commit/519394b))
|
|
271
264
|
|
|
272
|
-
|
|
265
|
+
# [4.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@3.0.1...@thi.ng/api@4.0.0) (2018-05-12)
|
|
273
266
|
|
|
274
|
-
###
|
|
267
|
+
### Code Refactoring
|
|
275
268
|
|
|
276
|
-
|
|
277
|
-
update IIndexed, IMeta, ISet, IStack
|
|
269
|
+
- **api:** update interfaces, add docs ([9b38860](https://github.com/thi-ng/umbrella/commit/9b38860))
|
|
278
270
|
|
|
279
|
-
|
|
280
|
-
- add IImmutableSet
|
|
281
|
-
- add IImmutableStack
|
|
282
|
-
- minor update IEnabled mixin
|
|
271
|
+
### BREAKING CHANGES
|
|
283
272
|
|
|
284
|
-
|
|
285
|
-
|
|
273
|
+
- **api:** IBind, IEnable now include generics, update IIndexed, IMeta, ISet, IStack
|
|
274
|
+
- add IInto
|
|
275
|
+
- add IImmutableSet
|
|
276
|
+
- add IImmutableStack
|
|
277
|
+
- minor update IEnabled mixin
|
|
286
278
|
|
|
287
|
-
|
|
279
|
+
# [3.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@2.3.2...@thi.ng/api@3.0.0) (2018-05-10)
|
|
288
280
|
|
|
289
|
-
|
|
281
|
+
### Code Refactoring
|
|
290
282
|
|
|
291
|
-
|
|
283
|
+
- **api:** remove obsolete files from package ([f051ca3](https://github.com/thi-ng/umbrella/commit/f051ca3))
|
|
292
284
|
|
|
293
|
-
|
|
294
|
-
decorators and mixins. All other features have been moved
|
|
295
|
-
to new dedicated packages:
|
|
285
|
+
### BREAKING CHANGES
|
|
296
286
|
|
|
297
|
-
- @thi.ng/
|
|
298
|
-
- @thi.ng/
|
|
299
|
-
- @thi.ng/
|
|
300
|
-
- @thi.ng/
|
|
287
|
+
- **api:** @thi.ng/api now only contains type declarations, decorators and mixins. All other features have been moved to new dedicated packages:
|
|
288
|
+
- @thi.ng/bench
|
|
289
|
+
- @thi.ng/compare
|
|
290
|
+
- @thi.ng/equiv
|
|
291
|
+
- @thi.ng/errors
|
|
301
292
|
|
|
302
|
-
|
|
303
|
-
## [2.3.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@2.3.0...@thi.ng/api@2.3.1) (2018-04-29)
|
|
293
|
+
## [2.3.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@2.3.0...@thi.ng/api@2.3.1) (2018-04-29)
|
|
304
294
|
|
|
305
|
-
###
|
|
295
|
+
### Performance Improvements
|
|
306
296
|
|
|
307
|
-
|
|
297
|
+
- **api:** major speedup equivObject(), update equivSet() ([7fdf172](https://github.com/thi-ng/umbrella/commit/7fdf172))
|
|
308
298
|
|
|
309
|
-
|
|
310
|
-
# [2.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@2.2.0...@thi.ng/api@2.3.0) (2018-04-26)
|
|
299
|
+
# [2.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@2.2.0...@thi.ng/api@2.3.0) (2018-04-26)
|
|
311
300
|
|
|
312
|
-
###
|
|
301
|
+
### Features
|
|
313
302
|
|
|
314
|
-
|
|
303
|
+
- **api:** support more types in equiv(), add tests ([2ac8bff](https://github.com/thi-ng/umbrella/commit/2ac8bff))
|
|
315
304
|
|
|
316
|
-
|
|
317
|
-
# [2.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@2.1.3...@thi.ng/api@2.2.0) (2018-04-08)
|
|
305
|
+
# [2.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@2.1.3...@thi.ng/api@2.2.0) (2018-04-08)
|
|
318
306
|
|
|
319
|
-
###
|
|
307
|
+
### Features
|
|
320
308
|
|
|
321
|
-
|
|
309
|
+
- **api:** add bench() & timed() utils ([d310345](https://github.com/thi-ng/umbrella/commit/d310345))
|
|
322
310
|
|
|
323
|
-
|
|
324
|
-
## [2.1.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@2.1.0...@thi.ng/api@2.1.1) (2018-03-28)
|
|
311
|
+
## [2.1.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@2.1.0...@thi.ng/api@2.1.1) (2018-03-28)
|
|
325
312
|
|
|
326
|
-
###
|
|
313
|
+
### Bug Fixes
|
|
327
314
|
|
|
328
|
-
|
|
315
|
+
- **api:** illegalState() creates IllegalStateError ([2b7e99b](https://github.com/thi-ng/umbrella/commit/2b7e99b))
|
|
329
316
|
|
|
330
|
-
|
|
331
|
-
# [2.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@2.0.4...@thi.ng/api@2.1.0) (2018-03-21)
|
|
317
|
+
# [2.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@2.0.4...@thi.ng/api@2.1.0) (2018-03-21)
|
|
332
318
|
|
|
333
|
-
###
|
|
319
|
+
### Features
|
|
334
320
|
|
|
335
|
-
|
|
321
|
+
- **api:** add error types & ctor fns ([4d3785f](https://github.com/thi-ng/umbrella/commit/4d3785f))
|
|
336
322
|
|
|
337
|
-
|
|
338
|
-
## [2.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@2.0.0...@thi.ng/api@2.0.1) (2018-02-02)
|
|
323
|
+
## [2.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@2.0.0...@thi.ng/api@2.0.1) (2018-02-02)
|
|
339
324
|
|
|
340
|
-
###
|
|
325
|
+
### Bug Fixes
|
|
341
326
|
|
|
342
|
-
|
|
327
|
+
- **api:** update compare() & equiv() ([110a9de](https://github.com/thi-ng/umbrella/commit/110a9de))
|
|
343
328
|
|
|
344
|
-
|
|
345
|
-
# [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@1.5.0...@thi.ng/api@2.0.0) (2018-02-01)
|
|
329
|
+
# [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@1.5.0...@thi.ng/api@2.0.0) (2018-02-01)
|
|
346
330
|
|
|
347
|
-
###
|
|
331
|
+
### Bug Fixes
|
|
348
332
|
|
|
349
|
-
|
|
333
|
+
- **api:** fix equiv string handling, update tests ([1354e29](https://github.com/thi-ng/umbrella/commit/1354e29))
|
|
350
334
|
|
|
351
|
-
###
|
|
335
|
+
### Features
|
|
352
336
|
|
|
353
|
-
|
|
337
|
+
- **api:** update equiv() null handling, add tests ([878520e](https://github.com/thi-ng/umbrella/commit/878520e))
|
|
354
338
|
|
|
355
|
-
###
|
|
339
|
+
### BREAKING CHANGES
|
|
356
340
|
|
|
357
|
-
|
|
341
|
+
- **api:** equiv now treats null & undefined as equal
|
|
358
342
|
|
|
359
|
-
|
|
360
|
-
# [1.5.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@1.4.2...@thi.ng/api@1.5.0) (2018-01-31)
|
|
343
|
+
# [1.5.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@1.4.2...@thi.ng/api@1.5.0) (2018-01-31)
|
|
361
344
|
|
|
362
|
-
###
|
|
345
|
+
### Features
|
|
363
346
|
|
|
364
|
-
|
|
347
|
+
- **api:** add Predicate2 & StatefulPredicate2 types ([fbf8453](https://github.com/thi-ng/umbrella/commit/fbf8453))
|
|
365
348
|
|
|
366
|
-
|
|
367
|
-
# [1.4.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@1.3.0...@thi.ng/api@1.4.0) (2018-01-29)
|
|
349
|
+
# [1.4.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@1.3.0...@thi.ng/api@1.4.0) (2018-01-29)
|
|
368
350
|
|
|
369
|
-
###
|
|
351
|
+
### Features
|
|
370
352
|
|
|
371
|
-
|
|
353
|
+
- **api:** update IWatch & mixin, boolean returns ([bddd5ce](https://github.com/thi-ng/umbrella/commit/bddd5ce))
|
|
372
354
|
|
|
373
|
-
|
|
374
|
-
# [1.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@1.2.1...@thi.ng/api@1.3.0) (2018-01-28)
|
|
355
|
+
# [1.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@1.2.1...@thi.ng/api@1.3.0) (2018-01-28)
|
|
375
356
|
|
|
376
|
-
###
|
|
357
|
+
### Features
|
|
377
358
|
|
|
378
|
-
|
|
359
|
+
- **api:** add StatefulPredicate ([c74353b](https://github.com/thi-ng/umbrella/commit/c74353b))
|
package/README.md
CHANGED
|
@@ -14,7 +14,6 @@ This project is part of the
|
|
|
14
14
|
- [Installation](#installation)
|
|
15
15
|
- [Dependencies](#dependencies)
|
|
16
16
|
- [API](#api)
|
|
17
|
-
- [Environment variables](#environment-variables)
|
|
18
17
|
- [Authors](#authors)
|
|
19
18
|
- [Maintainer](#maintainer)
|
|
20
19
|
- [Contributors](#contributors)
|
|
@@ -24,14 +23,12 @@ This project is part of the
|
|
|
24
23
|
|
|
25
24
|
Common, generic types, interfaces & mixins.
|
|
26
25
|
|
|
27
|
-
This package is implicitly used by most other projects in this
|
|
28
|
-
|
|
26
|
+
This package is implicitly used by most other projects in this repository. It
|
|
27
|
+
defines:
|
|
29
28
|
|
|
30
29
|
- Dozens of generic, common interfaces & types
|
|
31
30
|
- Class & method decorators
|
|
32
31
|
- Mixins
|
|
33
|
-
- Logging
|
|
34
|
-
- Assert (can be disabled for production builds)
|
|
35
32
|
- Typedarray utilities
|
|
36
33
|
|
|
37
34
|
### Status
|
|
@@ -46,15 +43,23 @@ repository. It defines:
|
|
|
46
43
|
yarn add @thi.ng/api
|
|
47
44
|
```
|
|
48
45
|
|
|
46
|
+
ES module import:
|
|
47
|
+
|
|
49
48
|
```html
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
<script type="module" src="https://cdn.skypack.dev/@thi.ng/api"></script>
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
[Skypack documentation](https://docs.skypack.dev/)
|
|
53
|
+
|
|
54
|
+
For NodeJS (v14.6+):
|
|
52
55
|
|
|
53
|
-
|
|
54
|
-
|
|
56
|
+
```text
|
|
57
|
+
node --experimental-specifier-resolution=node --experimental-repl-await
|
|
58
|
+
|
|
59
|
+
> const api = await import("@thi.ng/api");
|
|
55
60
|
```
|
|
56
61
|
|
|
57
|
-
Package sizes (gzipped, pre-treeshake): ESM:
|
|
62
|
+
Package sizes (gzipped, pre-treeshake): ESM: 1.73 KB
|
|
58
63
|
|
|
59
64
|
## Dependencies
|
|
60
65
|
|
|
@@ -64,21 +69,6 @@ None
|
|
|
64
69
|
|
|
65
70
|
[Generated API docs](https://docs.thi.ng/umbrella/api/)
|
|
66
71
|
|
|
67
|
-
### Environment variables
|
|
68
|
-
|
|
69
|
-
The following env variables are used to control the behavior of some functions in production builds:
|
|
70
|
-
|
|
71
|
-
- `UMBRELLA_ASSERTS` - if set to `1` the
|
|
72
|
-
[assert](https://github.com/thi-ng/umbrella/tree/develop/packages/api/src/assert.ts)
|
|
73
|
-
function will **always** be enabled. By default, `assert()` is
|
|
74
|
-
disabled for production builds, i.e. if `process.env.NODE_ENV ===
|
|
75
|
-
"production"`.
|
|
76
|
-
- `UMBRELLA_GLOBALS` - if set to `1` the
|
|
77
|
-
[exposeGlobal](https://github.com/thi-ng/umbrella/tree/develop/packages/api/src/expose.ts)
|
|
78
|
-
function will **always** be enabled. By default, `exposeGlobal()` is
|
|
79
|
-
disabled for production builds, i.e. if `process.env.NODE_ENV ===
|
|
80
|
-
"production"`.
|
|
81
|
-
|
|
82
72
|
## Authors
|
|
83
73
|
|
|
84
74
|
### Maintainer
|