create-astram-app 0.9.6 → 0.9.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-astram-app",
3
- "version": "0.9.6",
3
+ "version": "0.9.8",
4
4
  "license": "MIT",
5
5
  "description": "Scaffolder for a new Astram app — emits a running, framework-enforced NestJS server (deny-by-default, built-in auth/identity to switch on) and, with --with-frontend, a React admin/auth UI, over the immutable @astram/* framework packages.",
6
6
  "type": "module",
@@ -31,12 +31,35 @@ NODE_ENV=development
31
31
  # POOL_MAX_CORE=10
32
32
  # POOL_MAX_APP_CRUD=10
33
33
  # POOL_MAX_SCHEMA_SVC=5
34
+ # Engine pool (identity/RecordEngine). Unset ⇒ APP_DB_MAX_CONNECTIONS, else 10; set it explicitly.
35
+ # POOL_MAX_ENGINE=10
34
36
 
35
37
  # --- OPTIONAL: real authentication (only if you set ShieldModule.forRoot({ auth: true })) ---
36
38
  # Auth needs a live MariaDB + Redis and a refresh-token HMAC key. These are
37
39
  # REQUIRED once auth is enabled (the app fails closed without the HMAC key) — but
38
40
  # irrelevant (unread) while auth is off.
39
41
  #
42
+ # Framework database namespace (ADR-0037). Unset ⇒ `shield`: databases shield_app,
43
+ # shield_identity, shield_authz, shield_audit and accounts shield_core, shield_migrate, ….
44
+ # Set one per environment to run several on one MariaDB server (`beta` ⇒ beta_* databases and
45
+ # accounts; provision them with the framework's `db-provision --namespace beta`). Letters and
46
+ # digits only. Use the SAME value for the server and `npm run migration:run`. With it set, the
47
+ # account and database defaults below follow it (APP_DB_USER ⇒ <ns>_core, APP_DB_NAME ⇒
48
+ # <ns>_identity, DDL_DB_USER ⇒ <ns>_migrate) and the migration ledger is <ns>_app. APP_DB_NAME must
49
+ # always be one of the four framework database names. Each namespace needs its own passwords.
50
+ # SHIELD_DB_NAMESPACE=beta
51
+ #
52
+ # Single-database layout (ADR-0041, opt-in, REDUCED ISOLATION): for hosts that give one database
53
+ # per account. All framework tables (unprefixed) and your app tables live in SHIELD_DB_NAME.
54
+ # Requires the ack below (exactly 1, every environment); SHIELD_DB_NAMESPACE must stay unset and
55
+ # APP_DB_USER must be set. Unset DDL_DB_* fall back to APP_DB_* (one account migrates and runs).
56
+ # Boot logs a warning listing the protections lost (append-only audit, no runtime DDL, …). Set
57
+ # POOL_MAX_ENGINE explicitly: unset, the engine pool falls back to APP_DB_MAX_CONNECTIONS and the
58
+ # single-layout pool budget fails. Framework table names are reserved for your object types.
59
+ # SHIELD_DB_LAYOUT=single
60
+ # SHIELD_DB_NAME=naes_beta
61
+ # SHIELD_DB_LAYOUT_ACK_REDUCED_ISOLATION=1
62
+ #
40
63
  # Runtime app DB account (DML — the running server uses this):
41
64
  # APP_DB_HOST=127.0.0.1
42
65
  # APP_DB_PORT=3306
@@ -20,12 +20,12 @@
20
20
  "postinstall": "node scripts/sync-astram-guide.mjs"
21
21
  },
22
22
  "dependencies": {
23
- "@astram/core": "^1.6.0",
24
- "@astram/engine": "^0.7.0",
25
- "@astram/guard": "^0.14.0",
26
- "@astram/guide": "^0.2.5",
27
- "@astram/identity": "^0.11.0",
28
- "@astram/migrate": "^0.4.0",
23
+ "@astram/core": "^1.8.0",
24
+ "@astram/engine": "^0.9.0",
25
+ "@astram/guard": "^0.16.0",
26
+ "@astram/guide": "^0.2.7",
27
+ "@astram/identity": "^0.13.0",
28
+ "@astram/migrate": "^0.6.0",
29
29
  "@astram/sdk": "^0.2.0",
30
30
  "@nestjs/common": "^11.2.7",
31
31
  "@nestjs/core": "^11.2.7",