@statedelta-actions/rules 0.5.0 → 0.5.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.
Files changed (4) hide show
  1. package/CHANGELOG.md +103 -0
  2. package/LICENSE +21 -0
  3. package/README.md +316 -316
  4. package/package.json +16 -4
package/CHANGELOG.md ADDED
@@ -0,0 +1,103 @@
1
+ # @statedelta-actions/rules
2
+
3
+ ## 0.5.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 5af0d89: Translate package docs to PT-BR
8
+
9
+ `rules/README.md` (the npm-published README) was translated from English to PT-BR
10
+ to match the rest of the ecosystem; `rules/docs/ARCHITECTURE.md` section
11
+ headers/ToC and `sdk/README.md` headers were normalized to PT-BR as well. Code
12
+ blocks, API names and identifiers are unchanged.
13
+
14
+ - Updated dependencies [fc436a7]
15
+ - @statedelta-actions/actions@0.7.0
16
+
17
+ ## 0.5.1
18
+
19
+ ### Patch Changes
20
+
21
+ - 26c579a: Polish published package metadata and READMEs
22
+ - `@statedelta-actions/core` now ships a README (was missing on npm).
23
+ - `@statedelta-actions/analyzer` README: fixed pervasive missing accents.
24
+ - `graph` and `events` READMEs: titles are now the package name (`# @statedelta-actions/graph` / `# @statedelta-actions/events`) instead of a conceptual name.
25
+ - All packages: added `keywords`, `homepage`, `bugs`; package.json keys reordered to a canonical layout.
26
+ - 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.
27
+
28
+ - Updated dependencies [26c579a]
29
+ - Updated dependencies [a3a818b]
30
+ - @statedelta-actions/core@0.5.1
31
+ - @statedelta-actions/actions@0.6.0
32
+
33
+ ## 0.5.0
34
+
35
+ ### Minor Changes
36
+
37
+ - f8c2b4a: Fail-fast register errors, controlled `action-not-found`, atomic registration, and events async/interactive modes
38
+ - **actions** — A missing handler for a directive type now throws at register
39
+ time (was a collected error) — fail-fast for typos and forgotten handlers.
40
+ Invoking an unknown action id returns `aborted: true, abortedBy:
41
+ "action-not-found"` instead of a soft failure. `isActionAsync` is exposed on
42
+ the engine ref handed to handlers (symmetric with `isActionInteractive`).
43
+ - **rules** — `register()` is atomic: it builds a staging set, delegates to the
44
+ ActionEngine, then indexes locally only on success. Structural errors from the
45
+ ActionEngine propagate as a throw with no local state mutated.
46
+ - **events** — `register()`/`defineEvents()` are atomic the same way.
47
+ Async detection is now per-listener transitive via the ActionEngine mini-graph,
48
+ so hybrid engines keep `processEvents`/`processEventsAsync` viable for
49
+ listeners whose subtree is fully sync. New `processEventsInteractive()` returns
50
+ a drainable iterator (sync or async generator) — pauses from `type:"pause"` or
51
+ an interactive handler flow via `yield*` up to the consumer; halt scoping is
52
+ preserved (a pause stops the listeners of that event, following events
53
+ continue). New `isInteractive` getter.
54
+ - **core** — `ActionEngineRef` gains an optional `isActionAsync?` accessor.
55
+ - **sdk** — re-exports the new event types/surface; barrel deps moved to
56
+ `dependencies` (`workspace:^`).
57
+
58
+ ### Patch Changes
59
+
60
+ - Updated dependencies [f8c2b4a]
61
+ - @statedelta-actions/actions@0.5.0
62
+ - @statedelta-actions/core@0.5.0
63
+
64
+ ## 0.3.0
65
+
66
+ ### Minor Changes
67
+
68
+ - Split types em definitions + engine em cada package; novo subpath sdk/definitions
69
+ - core: RegisterWarning movido pra core/types/engine.ts (tipo shared entre packages)
70
+ - actions: types.ts → types/definitions.ts + types/engine.ts
71
+ - rules: types.ts → types/definitions.ts + types/engine.ts
72
+ - events: types.ts → types/definitions.ts + types/engine.ts
73
+ - sdk: novo subpath ./definitions com re-export de definition types puros (zero runtime)
74
+
75
+ ### Patch Changes
76
+
77
+ - Updated dependencies []:
78
+ - @statedelta-actions/core@0.3.0
79
+ - @statedelta-actions/actions@0.3.0
80
+
81
+ ## 0.2.0
82
+
83
+ ### Minor Changes
84
+
85
+ - Sync all packages to 0.2.0 (match SDK version)
86
+
87
+ ### Patch Changes
88
+
89
+ - Updated dependencies []:
90
+ - @statedelta-actions/core@0.2.0
91
+ - @statedelta-actions/actions@0.2.0
92
+
93
+ ## 0.3.0
94
+
95
+ ### Minor Changes
96
+
97
+ - Sync all packages to 0.2.0 (match SDK version)
98
+
99
+ ### Patch Changes
100
+
101
+ - Updated dependencies []:
102
+ - @statedelta-actions/core@0.3.0
103
+ - @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.