@thi.ng/interceptors 3.2.54 → 3.2.56

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**: 2024-04-08T14:59:29Z
3
+ - **Last updated**: 2024-04-20T14:42:45Z
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
@@ -7,7 +7,7 @@
7
7
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  > [!NOTE]
10
- > This is one of 191 standalone projects, maintained as part
10
+ > This is one of 192 standalone projects, maintained as part
11
11
  > of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
12
12
  > and anti-framework.
13
13
  >
@@ -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://cdn.skypack.dev/@thi.ng/interceptors"></script>
153
+ <script type="module" src="https://esm.run/@thi.ng/interceptors"></script>
154
154
  ```
155
155
 
156
- [Skypack documentation](https://docs.skypack.dev/)
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[] | undefined;
62
- protected currCtx: InterceptorContext | undefined;
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 | undefined;
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.54",
3
+ "version": "3.2.56",
4
4
  "description": "Interceptor based event bus, side effect & immutable state handling",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -39,12 +39,12 @@
39
39
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
40
  },
41
41
  "dependencies": {
42
- "@thi.ng/api": "^8.10.0",
43
- "@thi.ng/atom": "^5.2.42",
44
- "@thi.ng/checks": "^3.6.0",
45
- "@thi.ng/errors": "^2.5.3",
46
- "@thi.ng/logger": "^3.0.8",
47
- "@thi.ng/paths": "^5.1.77"
42
+ "@thi.ng/api": "^8.11.0",
43
+ "@thi.ng/atom": "^5.2.44",
44
+ "@thi.ng/checks": "^3.6.2",
45
+ "@thi.ng/errors": "^2.5.5",
46
+ "@thi.ng/logger": "^3.0.10",
47
+ "@thi.ng/paths": "^5.1.79"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@microsoft/api-extractor": "^7.43.0",
@@ -96,5 +96,5 @@
96
96
  "status": "completed",
97
97
  "year": 2016
98
98
  },
99
- "gitHead": "85ac4bd4d6d89f8e3689e2863d5bea0cecdb371c\n"
99
+ "gitHead": "8339d05ecc857e529c7325a9839c0063b89e728d\n"
100
100
  }