@fabricorg/platform 0.2.1 → 0.2.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 (2) hide show
  1. package/CHANGELOG.md +68 -0
  2. package/package.json +2 -1
package/CHANGELOG.md ADDED
@@ -0,0 +1,68 @@
1
+ # @fabricorg/platform
2
+
3
+ ## 0.2.2 — 2026-05-06
4
+
5
+ ### Patch
6
+
7
+ - Ship `CHANGELOG.md` in the published tarball (added to `files` field).
8
+ - Documentation-only release; no runtime changes.
9
+
10
+ ## 0.2.1 — 2026-05-06
11
+
12
+ ### Patch
13
+
14
+ - Rewrite `README.md` quickstart-first (was architecture-first).
15
+ - Add 64 unit + integration tests across 9 test files (was 1 test, 1 file). Covers ids, events, state machines, actions, policies, adapters, projections, modules.
16
+ - Add `CHANGELOG.md` (this file).
17
+ - Add GitHub Actions CI workflow (build + test + type-check on PR).
18
+ - Add `examples/minimal-vertical/` runnable end-to-end demo.
19
+ - No runtime changes; same exports as 0.2.0.
20
+
21
+ ## 0.2.0 — 2026-05-06
22
+
23
+ ### Minor
24
+
25
+ - **Dual ESM + CJS distribution.** The package now ships both formats so it can be consumed by CommonJS projects (`require()`), ESM projects (`import`), Jest without ESM config, ts-node default mode, and `tsx` from a CJS host package. The 0.1.x line was ESM-only and produced `ERR_PACKAGE_PATH_NOT_EXPORTED` for CJS consumers.
26
+ - **Conditional types.** Exports map now uses proper conditional `import` / `require` blocks with separate `.d.ts` and `.d.cts` type declarations so TypeScript resolves correctly under both `moduleResolution: node` and `node16`/`nodenext`.
27
+
28
+ ### Internal
29
+
30
+ - `tsup.config.ts`: `format: ["esm", "cjs"]`
31
+ - `package.json`: `main: ./dist/index.cjs`, `exports.*` updated for dual format
32
+
33
+ ## 0.1.2 — 2026-05-06
34
+
35
+ ### Patch
36
+
37
+ - Republish under `@fabricorg/*` scope. (No code changes.)
38
+
39
+ ## 0.1.1 — 2026-05-06
40
+
41
+ ### Patch
42
+
43
+ - Republish to confirm scope ownership. (No code changes.)
44
+
45
+ ## 0.1.0 — 2026-05-06
46
+
47
+ ### Initial release
48
+
49
+ The portable runtime for ontology-based, agent-native business applications.
50
+
51
+ - **Action pipeline** — single mutation entry point (`invokeAction`) with three call paths: authenticated session, verified external token, and system/agent/scheduled.
52
+ - **Policy evaluation** — pluggable policy registry checked at every pipeline checkpoint.
53
+ - **State machines** — declarative entity state transitions with policy-gated guards.
54
+ - **Events** — immutable `AssetEvent` schema; events are evidence, not logs.
55
+ - **Projections** — derive read models from events; replay rebuilds them.
56
+ - **Adapters** — registered side-effects (db writes, external API calls) with retry + circuit-breaker primitives.
57
+ - **Modules** — `FabricModule<TDb>` manifest registers a vertical's actions, policies, state machines, events, and adapters with the platform.
58
+ - **Privacy & evidence** — first-class data-policy + audit-trail contracts.
59
+ - **Testing helpers** — deterministic ID factory, fake action context, in-memory adapter registry.
60
+
61
+ **Subpath exports:** `./actions`, `./adapters`, `./displays`, `./events`, `./evidence`, `./ids`, `./modules`, `./objects`, `./policies`, `./privacy`, `./projections`, `./state-machines`, `./testing`.
62
+
63
+ **Design constraints (boundary-tested in `boundary.test.ts`):**
64
+
65
+ - Zero runtime dependencies.
66
+ - No database client. No ORM.
67
+ - No vertical vocabulary in the core.
68
+ - Every contract parameterized by `TDb` so consumers bind their own persistence client.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fabricorg/platform",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Generic, vertical-agnostic runtime for ontology-based business applications. Provides actions, modules, events, policies, state machines, adapters, displays, projections, privacy, and evidence contracts. Zero runtime dependencies; portable across any database client and any vertical (lending, insurance, healthcare, legal, etc.).",
5
5
  "keywords": [
6
6
  "fabric",
@@ -172,6 +172,7 @@
172
172
  "files": [
173
173
  "dist",
174
174
  "README.md",
175
+ "CHANGELOG.md",
175
176
  "LICENSE"
176
177
  ],
177
178
  "scripts": {