@supacloud/compiler 0.45.1 → 0.46.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/dist/inspect.d.ts CHANGED
@@ -22,6 +22,11 @@ export interface ContextPack {
22
22
  eventComposition: "rxjs";
23
23
  angularHost: "@supacloud/app/angular";
24
24
  cancellation: "explicit-owner-signal";
25
+ readTransport: "postgrest-supabase-js";
26
+ writeTransport: "command-rpc";
27
+ writeRetry: "disabled";
28
+ externalOutcome: "receipt-reconcile";
29
+ databaseSource: "drizzle-append-only";
25
30
  };
26
31
  relatedModules: {
27
32
  importedBy: string[];
@@ -1 +1 @@
1
- export declare const MIGRATION_APP_VERSION = "0.26.1";
1
+ export declare const MIGRATION_APP_VERSION = "0.27.0";
@@ -1 +1 @@
1
- export declare const MIGRATION_ELYSIA_VERSION = "0.29.2";
1
+ export declare const MIGRATION_ELYSIA_VERSION = "0.30.0";
@@ -13,6 +13,12 @@ export declare const SOURCE_SEMANTIC_DIAGNOSTIC_CODES: {
13
13
  readonly errorCode: "SC6011";
14
14
  readonly docsUrl: "https://supacloud.dev/errors/SC6011";
15
15
  };
16
+ readonly "source-alternative-library": {
17
+ readonly errorCode: "SC6012";
18
+ readonly docsUrl: "https://supacloud.dev/errors/SC6012";
19
+ };
16
20
  };
17
21
  /** Inspect values at use sites, including types resolved through imported declarations. */
18
- export declare function scanSourceSemantics(source: ts.SourceFile, checker: ts.TypeChecker, file: string, rootDir: string): Diagnostic[];
22
+ export declare function scanSourceSemantics(source: ts.SourceFile, checker: ts.TypeChecker, file: string, rootDir: string, options?: {
23
+ allowAlternativeLibraries?: readonly string[];
24
+ }): Diagnostic[];
@@ -36,6 +36,10 @@ export declare const TYPE_SAFETY_DIAGNOSTIC_CODES: {
36
36
  readonly errorCode: "SC6011";
37
37
  readonly docsUrl: "https://supacloud.dev/errors/SC6011";
38
38
  };
39
+ readonly "source-alternative-library": {
40
+ readonly errorCode: "SC6012";
41
+ readonly docsUrl: "https://supacloud.dev/errors/SC6012";
42
+ };
39
43
  readonly "sql-result-assertion": {
40
44
  readonly errorCode: "SC6007";
41
45
  readonly docsUrl: "https://supacloud.dev/errors/SC6007";
package/dist/types.d.ts CHANGED
@@ -536,6 +536,8 @@ export interface TypeSafetyOptions {
536
536
  scanProductionSource?: boolean;
537
537
  /** Additional relative glob patterns excluded from the production-source scan. */
538
538
  exclude?: string[];
539
+ /** Explicitly approved alternatives to the default client/stream libraries. */
540
+ allowAlternativeLibraries?: string[];
539
541
  }
540
542
  export interface DatabaseGovernanceOptions {
541
543
  /** Off for existing callers; check validates sources offline, enforce also checks SQL and Catalog. */
@@ -590,6 +592,7 @@ export interface CommandExecutionCapabilities {
590
592
  rpc?: Record<string, {
591
593
  audit?: boolean;
592
594
  idempotency?: boolean;
595
+ reconcile?: boolean;
593
596
  transaction?: boolean;
594
597
  boundary?: "database" | "external";
595
598
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supacloud/compiler",
3
- "version": "0.45.1",
3
+ "version": "0.46.1",
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.16.2",
61
- "@supacloud/delivery": "0.16.0",
60
+ "@supacloud/db": "0.17.0",
61
+ "@supacloud/delivery": "0.18.0",
62
62
  "typebox": "1.3.36",
63
63
  "@graphql-codegen/core": "^6.2.2",
64
64
  "@graphql-codegen/typed-document-node": "^7.1.1",
@@ -68,7 +68,7 @@
68
68
  "graphql": "^16"
69
69
  },
70
70
  "overrides": {
71
- "@supacloud/contracts": "0.8.1",
71
+ "@supacloud/contracts": "0.9.0",
72
72
  "@graphql-tools/utils": "^12.0.3",
73
73
  "@whatwg-node/promise-helpers": "1.3.2"
74
74
  },