@thi.ng/interceptors 3.2.55 → 3.2.57
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 +7 -1
- package/README.md +2 -2
- package/event-bus.d.ts +4 -4
- package/package.json +9 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2024-04-
|
|
3
|
+
- **Last updated**: 2024-04-23T07:02:18Z
|
|
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
|
+
### [3.2.56](https://github.com/thi-ng/umbrella/tree/@thi.ng/interceptors@3.2.56) (2024-04-20)
|
|
13
|
+
|
|
14
|
+
#### ♻️ Refactoring
|
|
15
|
+
|
|
16
|
+
- update type usage ([d051405](https://github.com/thi-ng/umbrella/commit/d051405))
|
|
17
|
+
|
|
12
18
|
### [3.2.42](https://github.com/thi-ng/umbrella/tree/@thi.ng/interceptors@3.2.42) (2024-02-16)
|
|
13
19
|
|
|
14
20
|
#### ♻️ Refactoring
|
package/README.md
CHANGED
|
@@ -150,10 +150,10 @@ import * as iceps from "@thi.ng/interceptors";
|
|
|
150
150
|
Browser ESM import:
|
|
151
151
|
|
|
152
152
|
```html
|
|
153
|
-
<script type="module" src="https://
|
|
153
|
+
<script type="module" src="https://esm.run/@thi.ng/interceptors"></script>
|
|
154
154
|
```
|
|
155
155
|
|
|
156
|
-
[
|
|
156
|
+
[JSDelivr documentation](https://www.jsdelivr.com/)
|
|
157
157
|
|
|
158
158
|
Package sizes (brotli'd, pre-treeshake): ESM: 2.14 KB
|
|
159
159
|
|
package/event-bus.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IDeref, IObjectOf } from "@thi.ng/api";
|
|
1
|
+
import type { IDeref, IObjectOf, Maybe } from "@thi.ng/api";
|
|
2
2
|
import type { IAtom } from "@thi.ng/atom";
|
|
3
3
|
import { type EffectDef, type EffectPriority, type Event, type EventDef, type IDispatch, type Interceptor, type InterceptorContext, type InterceptorFn, type SideEffect } from "./api.js";
|
|
4
4
|
/**
|
|
@@ -58,8 +58,8 @@ import { type EffectDef, type EffectPriority, type Event, type EventDef, type ID
|
|
|
58
58
|
export declare class StatelessEventBus implements IDispatch {
|
|
59
59
|
state: any;
|
|
60
60
|
protected eventQueue: Event[];
|
|
61
|
-
protected currQueue: Event[]
|
|
62
|
-
protected currCtx: InterceptorContext
|
|
61
|
+
protected currQueue: Maybe<Event[]>;
|
|
62
|
+
protected currCtx: Maybe<InterceptorContext>;
|
|
63
63
|
protected handlers: IObjectOf<Interceptor[]>;
|
|
64
64
|
protected effects: IObjectOf<SideEffect>;
|
|
65
65
|
protected priorities: EffectPriority[];
|
|
@@ -163,7 +163,7 @@ export declare class StatelessEventBus implements IDispatch {
|
|
|
163
163
|
* If called during event processing, returns current side effect
|
|
164
164
|
* accumulator / interceptor context. Otherwise returns nothing.
|
|
165
165
|
*/
|
|
166
|
-
context(): InterceptorContext
|
|
166
|
+
context(): Maybe<InterceptorContext>;
|
|
167
167
|
/**
|
|
168
168
|
* Adds given events to event queue to be processed by
|
|
169
169
|
* {@link StatelessEventBus.processQueue} later on.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/interceptors",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.57",
|
|
4
4
|
"description": "Interceptor based event bus, side effect & immutable state handling",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"build": "yarn build:esbuild && yarn build:decl",
|
|
31
31
|
"build:decl": "tsc --declaration --emitDeclarationOnly",
|
|
32
32
|
"build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
|
|
33
|
-
"clean": "
|
|
33
|
+
"clean": "bun ../../tools/src/clean-package.ts",
|
|
34
34
|
"doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
|
|
35
35
|
"doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
|
|
36
36
|
"doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
|
|
@@ -39,17 +39,16 @@
|
|
|
39
39
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@thi.ng/api": "^8.
|
|
43
|
-
"@thi.ng/atom": "^5.2.
|
|
44
|
-
"@thi.ng/checks": "^3.6.
|
|
45
|
-
"@thi.ng/errors": "^2.5.
|
|
46
|
-
"@thi.ng/logger": "^3.0.
|
|
47
|
-
"@thi.ng/paths": "^5.1.
|
|
42
|
+
"@thi.ng/api": "^8.11.1",
|
|
43
|
+
"@thi.ng/atom": "^5.2.45",
|
|
44
|
+
"@thi.ng/checks": "^3.6.3",
|
|
45
|
+
"@thi.ng/errors": "^2.5.6",
|
|
46
|
+
"@thi.ng/logger": "^3.0.11",
|
|
47
|
+
"@thi.ng/paths": "^5.1.80"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@microsoft/api-extractor": "^7.43.0",
|
|
51
51
|
"esbuild": "^0.20.2",
|
|
52
|
-
"rimraf": "^5.0.5",
|
|
53
52
|
"typedoc": "^0.25.12",
|
|
54
53
|
"typescript": "^5.4.3"
|
|
55
54
|
},
|
|
@@ -96,5 +95,5 @@
|
|
|
96
95
|
"status": "completed",
|
|
97
96
|
"year": 2016
|
|
98
97
|
},
|
|
99
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "5dd66c18a3862a3af69a5b2f49563f7cbdd960c2\n"
|
|
100
99
|
}
|