@supacloud/compiler 0.21.1 → 0.23.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.
@@ -0,0 +1,17 @@
1
+ import * as ts from "@typescript/typescript6";
2
+ import type { Diagnostic } from "./types";
3
+ export declare const SQL_SAFETY_DIAGNOSTIC_CODES: {
4
+ readonly "sql-result-assertion": {
5
+ readonly errorCode: "SC6007";
6
+ readonly docsUrl: "https://supacloud.dev/errors/SC6007";
7
+ };
8
+ readonly "sql-raw-dynamic": {
9
+ readonly errorCode: "SC6008";
10
+ readonly docsUrl: "https://supacloud.dev/errors/SC6008";
11
+ };
12
+ };
13
+ /**
14
+ * Check Drizzle SQL operations using resolved symbols, including aliases and
15
+ * re-exports. This is a type-escape guard, not an SQL parser or injection proof.
16
+ */
17
+ export declare function scanDrizzleSql(sourceFile: ts.SourceFile, checker: ts.TypeChecker, file: string, strict: boolean): Diagnostic[];
@@ -0,0 +1,4 @@
1
+ import * as ts from "@typescript/typescript6";
2
+ import type { Diagnostic } from "./types";
3
+ /** Reject runtime DI imports even in constructors, factory functions and aliased imports. */
4
+ export declare function scanRuntimeDi(source: ts.SourceFile, file: string): Diagnostic[];
@@ -24,6 +24,14 @@ export declare const TYPE_SAFETY_DIAGNOSTIC_CODES: {
24
24
  readonly errorCode: "SC6006";
25
25
  readonly docsUrl: "https://supacloud.dev/errors/SC6006";
26
26
  };
27
+ readonly "sql-result-assertion": {
28
+ readonly errorCode: "SC6007";
29
+ readonly docsUrl: "https://supacloud.dev/errors/SC6007";
30
+ };
31
+ readonly "sql-raw-dynamic": {
32
+ readonly errorCode: "SC6008";
33
+ readonly docsUrl: "https://supacloud.dev/errors/SC6008";
34
+ };
27
35
  };
28
36
  export interface TypeSafetyScanOptions extends TypeSafetyOptions {
29
37
  rootDir: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supacloud/compiler",
3
- "version": "0.21.1",
3
+ "version": "0.23.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",
@@ -56,6 +56,8 @@
56
56
  "graphql": "^16"
57
57
  },
58
58
  "devDependencies": {
59
+ "@supabase/supabase-js": "2.115.0",
60
+ "drizzle-orm": "1.0.0-rc.4",
59
61
  "@types/bun": "^1.4.2",
60
62
  "typescript": "^7.0.2"
61
63
  }