@supacloud/compiler 0.28.0 → 0.29.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.
- package/LICENSE +202 -661
- package/NOTICE +8 -13
- package/README.md +1 -1
- package/dist/api-source.d.ts +11 -0
- package/dist/cli.js +11220 -913
- package/dist/delivery-bundle-worker.js +10607 -654
- package/dist/diagnostics.d.ts +39 -0
- package/dist/diagnostics.js +73 -0
- package/dist/http-provider-migration.d.ts +6 -0
- package/dist/index.js +11552 -1245
- package/dist/reactive-analysis.d.ts +4 -0
- package/dist/types.d.ts +4 -0
- package/package.json +9 -4
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as ts from "@typescript/typescript6";
|
|
2
|
+
import type { Diagnostic } from "./types";
|
|
3
|
+
/** Checks statically identifiable callbacks, not arbitrary side effects or a whole-program call graph. */
|
|
4
|
+
export declare function scanReactiveSource(input: ts.SourceFile, file: string): Diagnostic[];
|
package/dist/types.d.ts
CHANGED
|
@@ -164,6 +164,8 @@ export interface ProviderNode {
|
|
|
164
164
|
providedIn?: "root";
|
|
165
165
|
/** Class implements OnDestroy interface or onDestroy method. */
|
|
166
166
|
hasOnDestroy?: boolean;
|
|
167
|
+
/** Class exposes an application startup hook. */
|
|
168
|
+
hasOnInit?: boolean;
|
|
167
169
|
exported: boolean;
|
|
168
170
|
file: string;
|
|
169
171
|
line: number;
|
|
@@ -245,6 +247,8 @@ export interface ControllerNode {
|
|
|
245
247
|
deps: string[];
|
|
246
248
|
/** Class implements OnDestroy interface or onDestroy method. */
|
|
247
249
|
hasOnDestroy?: boolean;
|
|
250
|
+
/** Class exposes an application startup hook. */
|
|
251
|
+
hasOnInit?: boolean;
|
|
248
252
|
/** Parameter tokens marked @Optional(). */
|
|
249
253
|
optionalDeps?: string[];
|
|
250
254
|
selfDeps?: string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supacloud/compiler",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.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",
|
|
@@ -14,6 +14,11 @@
|
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"import": "./dist/index.js",
|
|
16
16
|
"default": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./diagnostics": {
|
|
19
|
+
"types": "./dist/diagnostics.d.ts",
|
|
20
|
+
"import": "./dist/diagnostics.js",
|
|
21
|
+
"default": "./dist/diagnostics.js"
|
|
17
22
|
}
|
|
18
23
|
},
|
|
19
24
|
"files": [
|
|
@@ -25,7 +30,7 @@
|
|
|
25
30
|
],
|
|
26
31
|
"scripts": {
|
|
27
32
|
"build": "bun run clean && bun run build:js && bun run build:types",
|
|
28
|
-
"build:js": "bun build src/index.ts src/cli.ts src/delivery-bundle-worker.ts --outdir dist --target node --conditions=supacloud-source --external @typescript/typescript6 --external graphql --external '@graphql-codegen/*'",
|
|
33
|
+
"build:js": "bun build src/index.ts src/diagnostics.ts src/cli.ts src/delivery-bundle-worker.ts --outdir dist --target node --conditions=supacloud-source --external @typescript/typescript6 --external graphql --external '@graphql-codegen/*'",
|
|
29
34
|
"build:types": "tsc -p tsconfig.json --emitDeclarationOnly",
|
|
30
35
|
"clean": "rm -rf dist",
|
|
31
36
|
"prepublishOnly": "bun run build && bun run test:package",
|
|
@@ -42,14 +47,14 @@
|
|
|
42
47
|
"codegen",
|
|
43
48
|
"elysia"
|
|
44
49
|
],
|
|
45
|
-
"license": "
|
|
50
|
+
"license": "Apache-2.0",
|
|
46
51
|
"repository": {
|
|
47
52
|
"type": "git",
|
|
48
53
|
"url": "https://github.com/vibeunion/supacloud.git",
|
|
49
54
|
"directory": "packages/compiler"
|
|
50
55
|
},
|
|
51
56
|
"dependencies": {
|
|
52
|
-
"@supacloud/delivery": "0.
|
|
57
|
+
"@supacloud/delivery": "0.4.0",
|
|
53
58
|
"typebox": "1.3.34",
|
|
54
59
|
"@graphql-codegen/core": "^6.2.0",
|
|
55
60
|
"@graphql-codegen/typed-document-node": "^7.1.0",
|