@supacloud/compiler 0.42.1 → 0.43.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.24.1";
1
+ export declare const MIGRATION_APP_VERSION = "0.25.0";
@@ -0,0 +1,18 @@
1
+ import * as ts from "@typescript/typescript6";
2
+ import type { Diagnostic } from "./types";
3
+ export declare const SOURCE_SEMANTIC_DIAGNOSTIC_CODES: {
4
+ readonly "source-unsafe-any": {
5
+ readonly errorCode: "SC6009";
6
+ readonly docsUrl: "https://supacloud.dev/errors/SC6009";
7
+ };
8
+ readonly "source-floating-promise": {
9
+ readonly errorCode: "SC6010";
10
+ readonly docsUrl: "https://supacloud.dev/errors/SC6010";
11
+ };
12
+ readonly "source-non-exhaustive-switch": {
13
+ readonly errorCode: "SC6011";
14
+ readonly docsUrl: "https://supacloud.dev/errors/SC6011";
15
+ };
16
+ };
17
+ /** 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[];
@@ -24,6 +24,18 @@ 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 "source-unsafe-any": {
28
+ readonly errorCode: "SC6009";
29
+ readonly docsUrl: "https://supacloud.dev/errors/SC6009";
30
+ };
31
+ readonly "source-floating-promise": {
32
+ readonly errorCode: "SC6010";
33
+ readonly docsUrl: "https://supacloud.dev/errors/SC6010";
34
+ };
35
+ readonly "source-non-exhaustive-switch": {
36
+ readonly errorCode: "SC6011";
37
+ readonly docsUrl: "https://supacloud.dev/errors/SC6011";
38
+ };
27
39
  readonly "sql-result-assertion": {
28
40
  readonly errorCode: "SC6007";
29
41
  readonly docsUrl: "https://supacloud.dev/errors/SC6007";
package/dist/types.d.ts CHANGED
@@ -425,7 +425,7 @@ export interface CompileOptions {
425
425
  disallowControllerDirectDb?: boolean;
426
426
  /** Detect modules declared in the project that are unreachable from any root module. */
427
427
  detectOrphanModules?: boolean;
428
- /** Explicit unsafe opt-in to emit artifacts with errors (default: false). */
428
+ /** Emit artifacts with governance errors (default: false). Type errors always prevent emission. */
429
429
  writeOnError?: boolean;
430
430
  /** Generate typed API client in client.ts (default: false). */
431
431
  generateClient?: boolean;
@@ -528,9 +528,9 @@ export interface GraphqlContractSummary {
528
528
  }>;
529
529
  }
530
530
  export interface TypeSafetyOptions {
531
- /** Reject the `any` keyword in generated TypeScript artifacts. */
531
+ /** @deprecated Generated `any` checks are mandatory; false no longer disables them. */
532
532
  noAnyInGenerated?: boolean;
533
- /** Scan non-test production source for unsafe type escapes and widening. */
533
+ /** @deprecated Production type checks are mandatory; false no longer disables them. */
534
534
  scanProductionSource?: boolean;
535
535
  /** Additional relative glob patterns excluded from the production-source scan. */
536
536
  exclude?: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supacloud/compiler",
3
- "version": "0.42.1",
3
+ "version": "0.43.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",