create-substrat 0.10.0 → 0.10.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/index.js CHANGED
@@ -36,11 +36,11 @@ const TEMPLATE = join(HERE, 'template');
36
36
  // The runtime packages release together off one version line (the changesets `fixed`
37
37
  // group), so one constant is right for all of them. Engines do NOT share a line —
38
38
  // each versions on its own, so one pin per engine, deliberately.
39
- const SUBSTRAT = '^0.124.0';
40
- const ENGINE_WORKORDER = '^0.12.8';
41
- const ENGINE_INVOICING = '^0.11.8';
42
- const BOUNDARY_LINT = '^0.5.0';
43
- const DEV_ISSUER = '^0.2.6';
39
+ const SUBSTRAT = '^0.126.0';
40
+ const ENGINE_WORKORDER = '^0.12.10';
41
+ const ENGINE_INVOICING = '^0.11.10';
42
+ const BOUNDARY_LINT = '^0.6.0';
43
+ const DEV_ISSUER = '^0.2.8';
44
44
 
45
45
  const DOCS = 'https://substrat.net';
46
46
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-substrat",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "Scaffold a Substrat vertical — `npm create substrat <dir>`.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -76,9 +76,9 @@ Every vertical gets this whether or not it uses a single engine:
76
76
  an operation narrows a permission it already holds onto one entity, and withdraws it,
77
77
  with `ctx.grant(principal, perm, entityRef)` / `ctx.revoke(principal, perm, entityRef)`
78
78
  — entity-required, delegating (re-checks the caller's own decision), transactional with
79
- the operation. Neither alternative is this: a `ctx.link` edge is permanent (not
80
- revocable at all), and org membership is revocable but coarse-grained. Never mint an
81
- org per domain row to get a revoke.
79
+ the operation. Neither alternative is this: a `ctx.link` edge can be moved
80
+ (`ctx.relink`) but never removed, so it is not a revoke, and org membership is
81
+ revocable but coarse-grained. Never mint an org per domain row to get a revoke.
82
82
  - **Events + audit** — every mutation emits a kernel-stamped event. Origin fields (tenant,
83
83
  scope, actor, time) are stamped by the kernel; your code cannot mislabel one.
84
84
  - **Migrations** — journaled per module, applied lazily per scope.
@@ -302,8 +302,9 @@ more than it holds), and transactional with the operation. Every later `ctx.chec
302
302
  the grant, so nothing else has to remember who may touch what.
303
303
 
304
304
  Neither alternative is this, so you can tell a real absence from this one: a `ctx.link`
305
- edge is **not revocable at all** — it is permanent — and org membership is revocable but
306
- coarse-grained — a whole org, not one record. Never mint an org per domain row, or a
305
+ edge **can be moved but never removed** (`ctx.relink` replaces one parent with another), so
306
+ it is not a revoke, and org membership is revocable but coarse-grained — a whole org, not
307
+ one record. Never mint an org per domain row, or a
307
308
  membership table consulted by hand in every handler, to get a revoke. The two-line
308
309
  reference is the [todo demo](https://github.com/substrat-run/substrat/tree/main/demos/todo)
309
310
  (`src/module.ts`, `todo/share-list` and `todo/revoke-share`).