@thi.ng/interceptors 3.0.7 → 3.1.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,161 +1,277 @@
1
1
  # Change Log
2
2
 
3
+ - **Last updated**: 2021-11-21T17:09:28Z
4
+ - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
+
3
6
  All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
7
+ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
8
+
9
+ **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
+ and/or version bumps of transitive dependencies.
11
+
12
+ ## [3.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/interceptors@3.1.0) (2021-11-17)
13
+
14
+ #### 🚀 Features
15
+
16
+ - Using workspaces for local tools ([bf7a404](https://github.com/thi-ng/umbrella/commit/bf7a404))
17
+ Improving the overall build ergonomics
18
+ - introduced a tools workspaces
19
+ - imported it in all needed packages/examples
20
+ - inclusive project root
21
+
22
+ #### ♻️ Refactoring
23
+
24
+ - testrunner to binary ([4ebbbb2](https://github.com/thi-ng/umbrella/commit/4ebbbb2))
25
+ this commit reverts (partly) changes made in:
26
+ ef346d7a8753590dc9094108a3d861a8dbd5dd2c
27
+ overall purpose is better testament ergonomics:
28
+ instead of having to pass NODE_OPTIONS with every invocation
29
+ having a binary to handle this for us.
30
+
31
+ ### [3.0.8](https://github.com/thi-ng/umbrella/tree/@thi.ng/interceptors@3.0.8) (2021-11-10)
32
+
33
+ #### ♻️ Refactoring
34
+
35
+ - update all countdown loops ([a5f374b](https://github.com/thi-ng/umbrella/commit/a5f374b))
36
+
37
+ ### [3.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/interceptors@3.0.1) (2021-10-13)
38
+
39
+ #### ♻️ Refactoring
40
+
41
+ - update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
42
+ - update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
43
+ - add .js suffix for all relative imports
44
+
45
+ # [3.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/interceptors@3.0.0) (2021-10-12)
46
+
47
+ #### 🛑 Breaking changes
5
48
 
6
- ## [3.0.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/interceptors@3.0.6...@thi.ng/interceptors@3.0.7) (2021-11-03)
49
+ - major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
50
+ - BREAKING CHANGE: discontinue CommonJS & UMD versions
51
+ - only ESM modules will be published from now on
52
+ - CJS obsolete due to ESM support in recent versions of node:
53
+ - i.e. launch NodeJS via:
54
+ - `node --experimental-specifier-resolution=node --experimental-repl-await`
55
+ - in the node REPL use `await import(...)` instead of `require()`
56
+ - UMD obsolete due to widespread browser support for ESM
57
+ Also:
58
+ - normalize/restructure/reorg all package.json files
59
+ - cleanup all build scripts, remove obsolete
60
+ - switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
7
61
 
8
- **Note:** Version bump only for package @thi.ng/interceptors
62
+ #### ♻️ Refactoring
9
63
 
64
+ - update deps & imports in various pkgs ([e1cf29e](https://github.com/thi-ng/umbrella/commit/e1cf29e))
65
+ - largely related to recent updates/restructuring of these packages:
66
+ - api
67
+ - defmulti
68
+ - errors
69
+ - logger
70
+ - update imports ([138571a](https://github.com/thi-ng/umbrella/commit/138571a))
71
+ - update all test stubs ([f2d6d53](https://github.com/thi-ng/umbrella/commit/f2d6d53))
72
+ - update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
73
+ - update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
10
74
 
75
+ ### [2.2.35](https://github.com/thi-ng/umbrella/tree/@thi.ng/interceptors@2.2.35) (2020-12-07)
11
76
 
77
+ #### ♻️ Refactoring
12
78
 
79
+ - update type-only imports in various tests/pkgs ([3fd9c24](https://github.com/thi-ng/umbrella/commit/3fd9c24))
13
80
 
14
- # [3.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/interceptors@2.2.53...@thi.ng/interceptors@3.0.0) (2021-10-12)
81
+ ### [2.2.31](https://github.com/thi-ng/umbrella/tree/@thi.ng/interceptors@2.2.31) (2020-09-13)
15
82
 
83
+ #### ♻️ Refactoring
16
84
 
17
- ### Build System
85
+ - update imports ([eebc4b4](https://github.com/thi-ng/umbrella/commit/eebc4b4))
18
86
 
19
- * major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
87
+ ### [2.2.10](https://github.com/thi-ng/umbrella/tree/@thi.ng/interceptors@2.2.10) (2020-03-28)
20
88
 
89
+ #### ♻️ Refactoring
21
90
 
22
- ### BREAKING CHANGES
91
+ - update to new [@thi.ng/paths](https://github.com/thi-ng/umbrella/tree/main/packages/paths) API ([4fce623](https://github.com/thi-ng/umbrella/commit/4fce623))
23
92
 
24
- * discontinue CommonJS & UMD versions
93
+ ### [2.2.6](https://github.com/thi-ng/umbrella/tree/@thi.ng/interceptors@2.2.6) (2020-02-25)
25
94
 
26
- - only ESM modules will be published from now on
27
- - CJS obsolete due to ESM support in recent versions of node:
28
- - i.e. launch NodeJS via:
29
- - `node --experimental-specifier-resolution=node --experimental-repl-await`
30
- - in the node REPL use `await import(...)` instead of `require()`
31
- - UMD obsolete due to widespread browser support for ESM
95
+ #### ♻️ Refactoring
32
96
 
33
- Also:
34
- - normalize/restructure/reorg all package.json files
35
- - cleanup all build scripts, remove obsolete
36
- - switch from mocha to @thi.ng/testament for all tests
97
+ - update imports ([04b054b](https://github.com/thi-ng/umbrella/commit/04b054b))
37
98
 
99
+ ### [2.2.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/interceptors@2.2.3) (2019-11-30)
38
100
 
101
+ #### ♻️ Refactoring
39
102
 
103
+ - re-use `Path` from [@thi.ng/api](https://github.com/thi-ng/umbrella/tree/main/packages/api) ([9f66693](https://github.com/thi-ng/umbrella/commit/9f66693))
40
104
 
105
+ ## [2.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/interceptors@2.2.0) (2019-08-21)
41
106
 
107
+ #### 🚀 Features
42
108
 
43
- # [2.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/interceptors@2.1.3...@thi.ng/interceptors@2.2.0) (2019-08-21)
109
+ - add module logger, setLogger() ([17f050d](https://github.com/thi-ng/umbrella/commit/17f050d))
44
110
 
45
- ### Features
111
+ #### ♻️ Refactoring
46
112
 
47
- - **interceptors:** add module logger, setLogger() ([17f050d](https://github.com/thi-ng/umbrella/commit/17f050d))
113
+ - update ensureStateXXX() iceps (re-use) ([80ea335](https://github.com/thi-ng/umbrella/commit/80ea335))
114
+ - simplify addHandler, split processXXX, add logger ([b7455ab](https://github.com/thi-ng/umbrella/commit/b7455ab))
48
115
 
49
- # [2.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/interceptors@2.0.12...@thi.ng/interceptors@2.1.0) (2019-07-07)
116
+ ## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/interceptors@2.1.0) (2019-07-07)
50
117
 
51
- ### Bug Fixes
118
+ #### 🚀 Features
52
119
 
53
- - **interceptors:** update EventBus ctor args ([557a78f](https://github.com/thi-ng/umbrella/commit/557a78f))
120
+ - enable TS strict compiler flags (refactor) ([13bea8f](https://github.com/thi-ng/umbrella/commit/13bea8f))
54
121
 
55
- ### Features
122
+ #### 🩹 Bug fixes
56
123
 
57
- - **interceptors:** enable TS strict compiler flags (refactor) ([13bea8f](https://github.com/thi-ng/umbrella/commit/13bea8f))
124
+ - update EventBus ctor args ([557a78f](https://github.com/thi-ng/umbrella/commit/557a78f))
58
125
 
59
- # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/interceptors@1.9.2...@thi.ng/interceptors@2.0.0) (2019-01-21)
126
+ #### ♻️ Refactoring
60
127
 
61
- ### Build System
128
+ - address TS strictNullChecks flag, minor update types ([105b5e9](https://github.com/thi-ng/umbrella/commit/105b5e9))
129
+
130
+ ### [2.0.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/interceptors@2.0.5) (2019-03-10)
131
+
132
+ #### ♻️ Refactoring
133
+
134
+ - re-use Fn type aliases ([9ebe677](https://github.com/thi-ng/umbrella/commit/9ebe677))
135
+ - update Fn args in various packages ([e453ac3](https://github.com/thi-ng/umbrella/commit/e453ac3))
136
+
137
+ # [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/interceptors@2.0.0) (2019-01-21)
138
+
139
+ #### 🛑 Breaking changes
62
140
 
63
141
  - update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
142
+ - BREAKING CHANGE: enabled multi-outputs (ES6 modules, CJS, UMD)
143
+ - build scripts now first build ES6 modules in package root, then call
144
+ `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
145
+ - all imports MUST be updated to only refer to package level
146
+ (not individual files anymore). tree shaking in user land will get rid of
147
+ all unused imported symbols.
148
+
149
+ ## [1.9.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/interceptors@1.9.0) (2018-11-13)
150
+
151
+ #### 🚀 Features
152
+
153
+ - update forwardSideFx(), refactor iceps as arrow fns ([9334f83](https://github.com/thi-ng/umbrella/commit/9334f83))
154
+ - assign `true` to target side fx if no event body
155
+
156
+ ### [1.8.9](https://github.com/thi-ng/umbrella/tree/@thi.ng/interceptors@1.8.9) (2018-08-01)
157
+
158
+ #### ♻️ Refactoring
159
+
160
+ - TS3.0 PropertyKey handling ([38372cc](https://github.com/thi-ng/umbrella/commit/38372cc))
161
+
162
+ ### [1.8.7](https://github.com/thi-ng/umbrella/tree/@thi.ng/interceptors@1.8.7) (2018-07-11)
163
+
164
+ #### ⏱ Performance improvements
165
+
166
+ - update valueSetter()/valueUpdater() ([73c7b8a](https://github.com/thi-ng/umbrella/commit/73c7b8a))
167
+ - both functions now use pre-built setters/updaters
64
168
 
65
- ### BREAKING CHANGES
169
+ ## [1.8.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/interceptors@1.8.0) (2018-05-14)
66
170
 
67
- - enabled multi-outputs (ES6 modules, CJS, UMD)
68
- - build scripts now first build ES6 modules in package root, then call `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
69
- - all imports MUST be updated to only refer to package level (not individual files anymore). tree shaking in user land will get rid of all unused imported symbols.
171
+ #### 🚀 Features
70
172
 
71
- # [1.9.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/interceptors@1.8.17...@thi.ng/interceptors@1.9.0) (2018-11-13)
173
+ - update dispatch() / dispatchNow() ([5e72970](https://github.com/thi-ng/umbrella/commit/5e72970))
174
+ - add support for mutliple events to be dispatched
175
+ - update doc strings
72
176
 
73
- ### Features
177
+ ### [1.7.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/interceptors@1.7.1) (2018-05-10)
74
178
 
75
- - **interceptors:** update forwardSideFx(), refactor iceps as arrow fns ([9334f83](https://github.com/thi-ng/umbrella/commit/9334f83))
179
+ #### ♻️ Refactoring
76
180
 
77
- ## [1.8.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/interceptors@1.8.6...@thi.ng/interceptors@1.8.7) (2018-07-11)
181
+ - update deps & imports in all packages due to [@thi.ng/api](https://github.com/thi-ng/umbrella/tree/main/packages/api) split ([bc45636](https://github.com/thi-ng/umbrella/commit/bc45636))
78
182
 
79
- ### Performance Improvements
183
+ ## [1.7.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/interceptors@1.7.0) (2018-05-09)
80
184
 
81
- - **interceptors:** update valueSetter()/valueUpdater() ([73c7b8a](https://github.com/thi-ng/umbrella/commit/73c7b8a))
185
+ #### 🚀 Features
82
186
 
83
- # [1.8.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/interceptors@1.7.4...@thi.ng/interceptors@1.8.0) (2018-05-14)
187
+ - add dispatch/dispatchNow() helper interceptors ([6748515](https://github.com/thi-ng/umbrella/commit/6748515))
84
188
 
85
- ### Features
189
+ ### [1.6.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/interceptors@1.6.1) (2018-04-28)
86
190
 
87
- - **interceptors:** update dispatch() / dispatchNow() ([5e72970](https://github.com/thi-ng/umbrella/commit/5e72970))
191
+ #### 🩹 Bug fixes
88
192
 
89
- # [1.7.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/interceptors@1.6.2...@thi.ng/interceptors@1.7.0) (2018-05-09)
193
+ - multiple sidefx value assignment ([c4d8851](https://github.com/thi-ng/umbrella/commit/c4d8851))
90
194
 
91
- ### Features
195
+ ## [1.6.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/interceptors@1.6.0) (2018-04-27)
92
196
 
93
- - **interceptors:** add dispatch/dispatchNow() helper interceptors ([6748515](https://github.com/thi-ng/umbrella/commit/6748515))
197
+ #### 🚀 Features
94
198
 
95
- ## [1.6.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/interceptors@1.6.0...@thi.ng/interceptors@1.6.1) (2018-04-28)
199
+ - add dispatchLater() ([f4a095a](https://github.com/thi-ng/umbrella/commit/f4a095a))
96
200
 
97
- ### Bug Fixes
201
+ ## [1.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/interceptors@1.5.0) (2018-04-19)
98
202
 
99
- - **interceptors:** multiple sidefx value assignment ([c4d8851](https://github.com/thi-ng/umbrella/commit/c4d8851))
203
+ #### 🚀 Features
100
204
 
101
- # [1.6.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/interceptors@1.5.3...@thi.ng/interceptors@1.6.0) (2018-04-27)
205
+ - add EV_TOGGLE_VALUE handler, update EV_UNDO/REDO ([87e3b48](https://github.com/thi-ng/umbrella/commit/87e3b48))
206
+ - add EV_TOGGLE_VALUE handler for boolean switches
207
+ - extend EV_UNDO/REDO to trigger success/fail events post action
208
+ - extract undoHelper() as shared impl
102
209
 
103
- ### Features
210
+ ## [1.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/interceptors@1.4.0) (2018-04-17)
104
211
 
105
- - **interceptors:** add dispatchLater() ([f4a095a](https://github.com/thi-ng/umbrella/commit/f4a095a))
212
+ #### 🚀 Features
106
213
 
107
- # [1.5.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/interceptors@1.4.1...@thi.ng/interceptors@1.5.0) (2018-04-19)
214
+ - add event handler instrumentation ([1a6ac54](https://github.com/thi-ng/umbrella/commit/1a6ac54))
108
215
 
109
- ### Features
216
+ ### [1.3.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/interceptors@1.3.3) (2018-04-17)
110
217
 
111
- - **interceptors:** add EV_TOGGLE_VALUE handler, update EV_UNDO/REDO ([87e3b48](https://github.com/thi-ng/umbrella/commit/87e3b48))
218
+ #### 🩹 Bug fixes
112
219
 
113
- # [1.4.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/interceptors@1.3.3...@thi.ng/interceptors@1.4.0) (2018-04-17)
220
+ - filter out undefined sidefx vals ([d7ff997](https://github.com/thi-ng/umbrella/commit/d7ff997))
221
+ - only when assigning array of multiple vals to a single side fx
114
222
 
115
- ### Features
223
+ ### [1.3.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/interceptors@1.3.1) (2018-04-16)
116
224
 
117
- - **interceptors:** add event handler instrumentation ([1a6ac54](https://github.com/thi-ng/umbrella/commit/1a6ac54))
225
+ #### 🩹 Bug fixes
118
226
 
119
- ## [1.3.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/interceptors@1.3.2...@thi.ng/interceptors@1.3.3) (2018-04-17)
227
+ - update undo handling to support history cursors ([9a83d4e](https://github.com/thi-ng/umbrella/commit/9a83d4e))
120
228
 
121
- ### Bug Fixes
229
+ ## [1.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/interceptors@1.3.0) (2018-04-15)
122
230
 
123
- - **interceptors:** filter out undefined sidefx vals ([d7ff997](https://github.com/thi-ng/umbrella/commit/d7ff997))
231
+ #### 🚀 Features
124
232
 
125
- ## [1.3.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/interceptors@1.3.0...@thi.ng/interceptors@1.3.1) (2018-04-16)
233
+ - add undo/redo handlers/fx & snapshot() interceptor ([3c92f7e](https://github.com/thi-ng/umbrella/commit/3c92f7e))
234
+ - add default FX_UNDO/REDO side fx ([a102eb7](https://github.com/thi-ng/umbrella/commit/a102eb7))
235
+ - update processQueue(), expose full ctx to handlers ([183af61](https://github.com/thi-ng/umbrella/commit/183af61))
236
+ - update InterceptorFn / InterceptorPredicate to pass ctx as opt last arg
126
237
 
127
- ### Bug Fixes
238
+ #### ♻️ Refactoring
128
239
 
129
- - **interceptors:** update undo handling to support history cursors ([9a83d4e](https://github.com/thi-ng/umbrella/commit/9a83d4e))
240
+ - refactor undo handling ([a1d9ae6](https://github.com/thi-ng/umbrella/commit/a1d9ae6))
241
+ - update EV_UNDO/REDO handlers & docs
242
+ - remove FX_UNDO/REDO
243
+ - also pass ctx to sidefx handlers ([ba0c876](https://github.com/thi-ng/umbrella/commit/ba0c876))
130
244
 
131
- # [1.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/interceptors@1.2.0...@thi.ng/interceptors@1.3.0) (2018-04-15)
245
+ ## [1.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/interceptors@1.2.0) (2018-04-13)
132
246
 
133
- ### Features
247
+ #### 🚀 Features
134
248
 
135
- - **interceptors:** add default FX_UNDO/REDO side fx ([a102eb7](https://github.com/thi-ng/umbrella/commit/a102eb7))
136
- - **interceptors:** add undo/redo handlers/fx & snapshot() interceptor ([3c92f7e](https://github.com/thi-ng/umbrella/commit/3c92f7e))
137
- - **interceptors:** update processQueue(), expose full ctx to handlers ([183af61](https://github.com/thi-ng/umbrella/commit/183af61))
249
+ - add ensureStateRange() & ensureParamRange() iceps ([86883e3](https://github.com/thi-ng/umbrella/commit/86883e3))
250
+ - rename existing ensureXXX() interceptors:
251
+ - ensureLessThan => ensureStateLessThan
252
+ - ensureGreaterThan => ensureStateGreaterThan
138
253
 
139
- # [1.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/interceptors@1.1.5...@thi.ng/interceptors@1.2.0) (2018-04-13)
254
+ ### [1.1.4](https://github.com/thi-ng/umbrella/tree/@thi.ng/interceptors@1.1.4) (2018-04-08)
140
255
 
141
- ### Features
256
+ #### ♻️ Refactoring
142
257
 
143
- - **interceptors:** add ensureStateRange() & ensureParamRange() iceps ([86883e3](https://github.com/thi-ng/umbrella/commit/86883e3))
258
+ - update Event id type (string => PropertyKey) ([c1c81bd](https://github.com/thi-ng/umbrella/commit/c1c81bd))
144
259
 
145
- # [1.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/interceptors@1.0.5...@thi.ng/interceptors@1.1.0) (2018-03-21)
260
+ ## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/interceptors@1.1.0) (2018-03-21)
146
261
 
147
- ### Features
262
+ #### 🚀 Features
148
263
 
149
- - **interceptors:** update error handling, add [@thi](https://github.com/thi).ng/api dep ([501d56f](https://github.com/thi-ng/umbrella/commit/501d56f))
264
+ - update error handling, add [@thi.ng/api](https://github.com/thi-ng/umbrella/tree/main/packages/api) dep ([501d56f](https://github.com/thi-ng/umbrella/commit/501d56f))
150
265
 
151
- ## [1.0.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/interceptors@1.0.4...@thi.ng/interceptors@1.0.5) (2018-03-19)
266
+ ### [1.0.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/interceptors@1.0.5) (2018-03-19)
152
267
 
153
- ### Bug Fixes
268
+ #### 🩹 Bug fixes
154
269
 
155
- - **interceptors:** InterceptorPredicate args ([76c5e0a](https://github.com/thi-ng/umbrella/commit/76c5e0a))
270
+ - InterceptorPredicate args ([76c5e0a](https://github.com/thi-ng/umbrella/commit/76c5e0a))
271
+ - last arg is bus, same as w/ InterceptorFn
156
272
 
157
- # 1.0.0 (2018-03-17)
273
+ ### [1.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/interceptors@1.0.1) (2018-03-17)
158
274
 
159
- ### Documentation
275
+ #### 🚀 Features
160
276
 
161
- - **interceptors:** add/extract @thi.ng/interceptors package from @th.ng/atom ([195a6ff](https://github.com/thi-ng/umbrella/commit/195a6ff))
277
+ - add/extract [@thi.ng/interceptors](https://github.com/thi-ng/umbrella/tree/main/packages/interceptors) package from [@thi.ng/atom](https://github.com/thi-ng/umbrella/tree/main/packages/atom) ([195a6ff](https://github.com/thi-ng/umbrella/commit/195a6ff))
package/README.md CHANGED
@@ -150,7 +150,7 @@ node --experimental-repl-await
150
150
  > const interceptors = await import("@thi.ng/interceptors");
151
151
  ```
152
152
 
153
- Package sizes (gzipped, pre-treeshake): ESM: 2.21 KB
153
+ Package sizes (gzipped, pre-treeshake): ESM: 2.23 KB
154
154
 
155
155
  ## Dependencies
156
156
 
package/event-bus.js CHANGED
@@ -401,7 +401,7 @@ export class StatelessEventBus {
401
401
  return hasPost;
402
402
  }
403
403
  processReverse(ctx, iceps, e) {
404
- for (let i = iceps.length; --i >= 0 && !ctx[FX_CANCEL];) {
404
+ for (let i = iceps.length; i-- > 0 && !ctx[FX_CANCEL];) {
405
405
  const icep = iceps[i];
406
406
  if (icep.post) {
407
407
  this.mergeEffects(ctx, icep.post(ctx[FX_STATE], e, this, ctx));
package/package.json CHANGED
@@ -1,90 +1,95 @@
1
1
  {
2
- "name": "@thi.ng/interceptors",
3
- "version": "3.0.7",
4
- "description": "Interceptor based event bus, side effect & immutable state handling",
5
- "type": "module",
6
- "module": "./index.js",
7
- "typings": "./index.d.ts",
8
- "sideEffects": false,
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/thi-ng/umbrella.git"
2
+ "name": "@thi.ng/interceptors",
3
+ "version": "3.1.2",
4
+ "description": "Interceptor based event bus, side effect & immutable state handling",
5
+ "type": "module",
6
+ "module": "./index.js",
7
+ "typings": "./index.d.ts",
8
+ "sideEffects": false,
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/thi-ng/umbrella.git"
12
+ },
13
+ "homepage": "https://github.com/thi-ng/umbrella/tree/develop/packages/interceptors#readme",
14
+ "funding": [
15
+ {
16
+ "type": "github",
17
+ "url": "https://github.com/sponsors/postspectacular"
12
18
  },
13
- "homepage": "https://github.com/thi-ng/umbrella/tree/develop/packages/interceptors#readme",
14
- "funding": [
15
- {
16
- "type": "github",
17
- "url": "https://github.com/sponsors/postspectacular"
18
- },
19
- {
20
- "type": "patreon",
21
- "url": "https://patreon.com/thing_umbrella"
22
- }
23
- ],
24
- "author": "Karsten Schmidt <k+npm@thi.ng>",
25
- "license": "Apache-2.0",
26
- "scripts": {
27
- "build": "yarn clean && tsc --declaration",
28
- "clean": "rimraf *.js *.d.ts *.map doc",
29
- "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
30
- "doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose",
31
- "doc:readme": "yarn doc:stats && ../../scripts/node-esm ../../tools/src/readme.ts",
32
- "doc:stats": "../../scripts/node-esm ../../tools/src/module-stats.ts",
33
- "pub": "yarn build && yarn publish --access public",
34
- "test": "testament test"
35
- },
36
- "dependencies": {
37
- "@thi.ng/api": "^8.1.0",
38
- "@thi.ng/atom": "^5.0.7",
39
- "@thi.ng/checks": "^3.0.6",
40
- "@thi.ng/errors": "^2.0.6",
41
- "@thi.ng/logger": "^1.0.6",
42
- "@thi.ng/paths": "^5.0.7"
43
- },
44
- "devDependencies": {
45
- "@thi.ng/testament": "^0.1.6"
19
+ {
20
+ "type": "patreon",
21
+ "url": "https://patreon.com/thing_umbrella"
22
+ }
23
+ ],
24
+ "author": "Karsten Schmidt <k+npm@thi.ng>",
25
+ "license": "Apache-2.0",
26
+ "scripts": {
27
+ "build": "yarn clean && tsc --declaration",
28
+ "clean": "rimraf '*.js' '*.d.ts' '*.map' doc",
29
+ "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
30
+ "doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
31
+ "doc:readme": "yarn doc:stats && tools:readme",
32
+ "doc:stats": "tools:module-stats",
33
+ "pub": "yarn npm publish --access public",
34
+ "test": "testament test"
35
+ },
36
+ "dependencies": {
37
+ "@thi.ng/api": "^8.3.2",
38
+ "@thi.ng/atom": "^5.1.2",
39
+ "@thi.ng/checks": "^3.1.2",
40
+ "@thi.ng/errors": "^2.1.2",
41
+ "@thi.ng/logger": "^1.1.2",
42
+ "@thi.ng/paths": "^5.1.2"
43
+ },
44
+ "devDependencies": {
45
+ "@microsoft/api-extractor": "^7.18.19",
46
+ "@thi.ng/testament": "^0.2.2",
47
+ "rimraf": "^3.0.2",
48
+ "tools": "^0.0.1",
49
+ "typedoc": "^0.22.9",
50
+ "typescript": "^4.5.2"
51
+ },
52
+ "keywords": [
53
+ "async",
54
+ "browser",
55
+ "event",
56
+ "functional",
57
+ "queue",
58
+ "side-effect",
59
+ "typescript"
60
+ ],
61
+ "publishConfig": {
62
+ "access": "public"
63
+ },
64
+ "engines": {
65
+ "node": ">=12.7"
66
+ },
67
+ "files": [
68
+ "*.js",
69
+ "*.d.ts"
70
+ ],
71
+ "exports": {
72
+ ".": {
73
+ "import": "./index.js"
46
74
  },
47
- "keywords": [
48
- "async",
49
- "browser",
50
- "event",
51
- "functional",
52
- "queue",
53
- "side-effect",
54
- "typescript"
55
- ],
56
- "publishConfig": {
57
- "access": "public"
75
+ "./api": {
76
+ "import": "./api.js"
58
77
  },
59
- "engines": {
60
- "node": ">=12.7"
78
+ "./event-bus": {
79
+ "import": "./event-bus.js"
61
80
  },
62
- "files": [
63
- "*.js",
64
- "*.d.ts"
81
+ "./interceptors": {
82
+ "import": "./interceptors.js"
83
+ }
84
+ },
85
+ "thi.ng": {
86
+ "related": [
87
+ "atom",
88
+ "hdom",
89
+ "rdom"
65
90
  ],
66
- "exports": {
67
- ".": {
68
- "import": "./index.js"
69
- },
70
- "./api": {
71
- "import": "./api.js"
72
- },
73
- "./event-bus": {
74
- "import": "./event-bus.js"
75
- },
76
- "./interceptors": {
77
- "import": "./interceptors.js"
78
- }
79
- },
80
- "thi.ng": {
81
- "related": [
82
- "atom",
83
- "hdom",
84
- "rdom"
85
- ],
86
- "status": "deprecated",
87
- "year": 2016
88
- },
89
- "gitHead": "852cd2450617c86d15d18477dc634f17f04202eb"
90
- }
91
+ "status": "deprecated",
92
+ "year": 2016
93
+ },
94
+ "gitHead": "e8a7c2a40191b391cef182c2978e5a6c85987a87\n"
95
+ }