@supacloud/compiler 0.48.0 → 0.50.0

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.
@@ -1 +1 @@
1
- export declare const MIGRATION_APP_VERSION = "0.29.0";
1
+ export declare const MIGRATION_APP_VERSION = "0.31.0";
@@ -1 +1 @@
1
- export declare const MIGRATION_ELYSIA_VERSION = "0.34.0";
1
+ export declare const MIGRATION_ELYSIA_VERSION = "0.35.1";
package/dist/types.d.ts CHANGED
@@ -201,6 +201,10 @@ export interface EffectRouteNode {
201
201
  timeoutMs?: number;
202
202
  }
203
203
  export interface RouteNode {
204
+ /** Transport-level idempotency contract, independent of route command binding. */
205
+ idempotency?: "required" | "none";
206
+ /** Explicit query cache tags exposed to generated clients. */
207
+ tags?: string[];
204
208
  parse?: "none";
205
209
  allowDeleteBody?: true;
206
210
  contract?: {
@@ -355,6 +359,8 @@ export interface FeatureTransitionNode {
355
359
  audit?: string;
356
360
  /** Job that continues the transition after the durable write is committed. */
357
361
  job?: string;
362
+ /** Explicit query tags invalidated after the transition succeeds. */
363
+ invalidateTags?: string[];
358
364
  persistence?: FeaturePersistenceNode;
359
365
  }
360
366
  export interface FeaturePersistenceNode {
@@ -366,9 +372,15 @@ export interface FeaturePersistenceNode {
366
372
  receipt: "required" | "none";
367
373
  reconciliation: "required" | "none";
368
374
  }
375
+ export interface FeatureDatabaseSourceNode {
376
+ source: string;
377
+ table: string;
378
+ rowType: string;
379
+ }
369
380
  export interface FeatureSpecNode {
370
381
  name: string;
371
382
  states: string[];
383
+ database?: FeatureDatabaseSourceNode;
372
384
  tenantField?: string;
373
385
  transitions: FeatureTransitionNode[];
374
386
  file?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supacloud/compiler",
3
- "version": "0.48.0",
3
+ "version": "0.50.0",
4
4
  "description": "Static compiler for @supacloud/app metadata: builds the application graph from AST, validates it, and generates reflection-free factory code",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -57,8 +57,8 @@
57
57
  "directory": "packages/compiler"
58
58
  },
59
59
  "dependencies": {
60
- "@supacloud/db": "0.19.0",
61
- "@supacloud/delivery": "0.20.0",
60
+ "@supacloud/db": "0.20.0",
61
+ "@supacloud/delivery": "0.21.0",
62
62
  "typebox": "1.3.37",
63
63
  "@graphql-codegen/core": "^6.2.2",
64
64
  "@graphql-codegen/typed-document-node": "^7.2.0",
@@ -68,12 +68,12 @@
68
68
  "graphql": "^16"
69
69
  },
70
70
  "overrides": {
71
- "@supacloud/contracts": "0.12.0",
71
+ "@supacloud/contracts": "0.13.0",
72
72
  "@graphql-tools/utils": "^12.0.4",
73
73
  "@whatwg-node/promise-helpers": "2.0.0"
74
74
  },
75
75
  "devDependencies": {
76
- "@supabase/supabase-js": "2.117.3",
76
+ "@supabase/supabase-js": "2.118.0",
77
77
  "drizzle-orm": "1.0.0-rc.5-5935859",
78
78
  "@types/bun": "^1.4.3",
79
79
  "typescript": "^7.0.2"