@statedelta-actions/events 0.5.0 → 0.5.1

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 ADDED
@@ -0,0 +1,89 @@
1
+ # @statedelta-actions/events
2
+
3
+ ## 0.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 26c579a: Polish published package metadata and READMEs
8
+ - `@statedelta-actions/core` now ships a README (was missing on npm).
9
+ - `@statedelta-actions/analyzer` README: fixed pervasive missing accents.
10
+ - `graph` and `events` READMEs: titles are now the package name (`# @statedelta-actions/graph` / `# @statedelta-actions/events`) instead of a conceptual name.
11
+ - All packages: added `keywords`, `homepage`, `bugs`; package.json keys reordered to a canonical layout.
12
+ - All packages: `CHANGELOG.md` added to `files` so it ships to npm; a `LICENSE` (MIT) file is included in the repo root and in each package.
13
+
14
+ - Updated dependencies [26c579a]
15
+ - Updated dependencies [a3a818b]
16
+ - @statedelta-actions/core@0.5.1
17
+ - @statedelta-actions/actions@0.6.0
18
+
19
+ ## 0.5.0
20
+
21
+ ### Minor Changes
22
+
23
+ - f8c2b4a: Fail-fast register errors, controlled `action-not-found`, atomic registration, and events async/interactive modes
24
+ - **actions** — A missing handler for a directive type now throws at register
25
+ time (was a collected error) — fail-fast for typos and forgotten handlers.
26
+ Invoking an unknown action id returns `aborted: true, abortedBy:
27
+ "action-not-found"` instead of a soft failure. `isActionAsync` is exposed on
28
+ the engine ref handed to handlers (symmetric with `isActionInteractive`).
29
+ - **rules** — `register()` is atomic: it builds a staging set, delegates to the
30
+ ActionEngine, then indexes locally only on success. Structural errors from the
31
+ ActionEngine propagate as a throw with no local state mutated.
32
+ - **events** — `register()`/`defineEvents()` are atomic the same way.
33
+ Async detection is now per-listener transitive via the ActionEngine mini-graph,
34
+ so hybrid engines keep `processEvents`/`processEventsAsync` viable for
35
+ listeners whose subtree is fully sync. New `processEventsInteractive()` returns
36
+ a drainable iterator (sync or async generator) — pauses from `type:"pause"` or
37
+ an interactive handler flow via `yield*` up to the consumer; halt scoping is
38
+ preserved (a pause stops the listeners of that event, following events
39
+ continue). New `isInteractive` getter.
40
+ - **core** — `ActionEngineRef` gains an optional `isActionAsync?` accessor.
41
+ - **sdk** — re-exports the new event types/surface; barrel deps moved to
42
+ `dependencies` (`workspace:^`).
43
+
44
+ ### Patch Changes
45
+
46
+ - Updated dependencies [f8c2b4a]
47
+ - @statedelta-actions/actions@0.5.0
48
+ - @statedelta-actions/core@0.5.0
49
+
50
+ ## 0.3.0
51
+
52
+ ### Minor Changes
53
+
54
+ - Split types em definitions + engine em cada package; novo subpath sdk/definitions
55
+ - core: RegisterWarning movido pra core/types/engine.ts (tipo shared entre packages)
56
+ - actions: types.ts → types/definitions.ts + types/engine.ts
57
+ - rules: types.ts → types/definitions.ts + types/engine.ts
58
+ - events: types.ts → types/definitions.ts + types/engine.ts
59
+ - sdk: novo subpath ./definitions com re-export de definition types puros (zero runtime)
60
+
61
+ ### Patch Changes
62
+
63
+ - Updated dependencies []:
64
+ - @statedelta-actions/core@0.3.0
65
+ - @statedelta-actions/actions@0.3.0
66
+
67
+ ## 0.2.0
68
+
69
+ ### Minor Changes
70
+
71
+ - Sync all packages to 0.2.0 (match SDK version)
72
+
73
+ ### Patch Changes
74
+
75
+ - Updated dependencies []:
76
+ - @statedelta-actions/core@0.2.0
77
+ - @statedelta-actions/actions@0.2.0
78
+
79
+ ## 0.3.0
80
+
81
+ ### Minor Changes
82
+
83
+ - Sync all packages to 0.2.0 (match SDK version)
84
+
85
+ ### Patch Changes
86
+
87
+ - Updated dependencies []:
88
+ - @statedelta-actions/core@0.3.0
89
+ - @statedelta-actions/actions@0.3.0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Anderson D. Rosa
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,7 +1,6 @@
1
- # EventProcessor — Eventos como Actions Deferidas
1
+ # @statedelta-actions/events
2
2
 
3
- > **Módulo:** `events/`
4
- > **Escopo:** Dispatcher de listeners sobre o ActionEngine. Listeners reagem a eventos nomeados, executando diretivas via hidden actions.
3
+ > **EventProcessor** — eventos como actions deferidas. Dispatcher de listeners sobre o ActionEngine: listeners reagem a eventos nomeados, executando diretivas via hidden actions.
5
4
  > **Dependências:** `core/` (tipos, slot analysis), `actions/` (IActionEngine). Zero dependência de `rules/`.
6
5
  >
7
6
  > Para arquitetura interna, pipelines e fluxos, ver [`docs/ARCHITECTURE.md`](./docs/ARCHITECTURE.md).
package/package.json CHANGED
@@ -1,7 +1,14 @@
1
1
  {
2
2
  "name": "@statedelta-actions/events",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Event processing engine with listener dispatch and JIT optimization",
5
+ "keywords": [
6
+ "statedelta",
7
+ "event-processing",
8
+ "listeners",
9
+ "jit",
10
+ "event-driven"
11
+ ],
5
12
  "type": "module",
6
13
  "main": "./dist/index.cjs",
7
14
  "module": "./dist/index.js",
@@ -15,15 +22,16 @@
15
22
  },
16
23
  "files": [
17
24
  "dist",
18
- "README.md"
25
+ "README.md",
26
+ "CHANGELOG.md"
19
27
  ],
20
28
  "dependencies": {
21
- "@statedelta-actions/core": "0.5.0",
22
- "@statedelta-actions/actions": "0.5.0"
29
+ "@statedelta-actions/actions": "0.6.0",
30
+ "@statedelta-actions/core": "0.5.1"
23
31
  },
24
32
  "devDependencies": {
25
- "@statedelta-actions/analyzer": "0.4.1",
26
- "@statedelta-actions/graph": "0.4.1"
33
+ "@statedelta-actions/graph": "0.4.2",
34
+ "@statedelta-actions/analyzer": "0.4.2"
27
35
  },
28
36
  "author": "Anderson D. Rosa <andersondrosa@outlook.com>",
29
37
  "license": "MIT",
@@ -32,6 +40,10 @@
32
40
  "url": "https://github.com/andersondrosa/statedelta-actions.git",
33
41
  "directory": "packages/events"
34
42
  },
43
+ "homepage": "https://github.com/andersondrosa/statedelta-actions/tree/main/packages/events#readme",
44
+ "bugs": {
45
+ "url": "https://github.com/andersondrosa/statedelta-actions/issues"
46
+ },
35
47
  "sideEffects": false,
36
48
  "engines": {
37
49
  "node": ">=18"