@memoized-dom/compiler 0.0.5 → 0.0.6

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.
Files changed (186) hide show
  1. package/README.md +106 -78
  2. package/dist/analysis/access-table.d.ts +1 -1
  3. package/dist/analysis/access-table.d.ts.map +1 -1
  4. package/dist/analysis/component-graph.d.ts +16 -1
  5. package/dist/analysis/component-graph.d.ts.map +1 -1
  6. package/dist/analysis/component-reads.d.ts +1 -1
  7. package/dist/analysis/component-reads.d.ts.map +1 -1
  8. package/dist/analysis/computed.d.ts +9 -5
  9. package/dist/analysis/computed.d.ts.map +1 -1
  10. package/dist/analysis/instance-control-flow.d.ts +1 -1
  11. package/dist/analysis/instance-control-flow.d.ts.map +1 -1
  12. package/dist/analysis/instance.d.ts +3 -4
  13. package/dist/analysis/instance.d.ts.map +1 -1
  14. package/dist/analysis/module-discovery.d.ts +27 -0
  15. package/dist/analysis/module-discovery.d.ts.map +1 -0
  16. package/dist/analysis/opaque-volatility.d.ts +1 -1
  17. package/dist/analysis/opaque-volatility.d.ts.map +1 -1
  18. package/dist/analysis/runtime-pattern.d.ts +3 -4
  19. package/dist/analysis/runtime-pattern.d.ts.map +1 -1
  20. package/dist/analysis/type-candidates.d.ts +15 -3
  21. package/dist/analysis/type-candidates.d.ts.map +1 -1
  22. package/dist/analysis.d.ts +7 -4
  23. package/dist/analysis.d.ts.map +1 -1
  24. package/dist/ast/builders.d.ts +108 -0
  25. package/dist/ast/builders.d.ts.map +1 -0
  26. package/dist/ast/compiler-types.d.ts +196 -0
  27. package/dist/ast/compiler-types.d.ts.map +1 -0
  28. package/dist/ast/factory.d.ts +139 -0
  29. package/dist/ast/factory.d.ts.map +1 -0
  30. package/dist/ast/index.d.ts +15 -0
  31. package/dist/ast/index.d.ts.map +1 -0
  32. package/dist/ast/mutate.d.ts +17 -0
  33. package/dist/ast/mutate.d.ts.map +1 -0
  34. package/dist/ast/normalize.d.ts +9 -0
  35. package/dist/ast/normalize.d.ts.map +1 -0
  36. package/dist/ast/parser.d.ts +72 -0
  37. package/dist/ast/parser.d.ts.map +1 -0
  38. package/dist/ast/printer.d.ts +23 -0
  39. package/dist/ast/printer.d.ts.map +1 -0
  40. package/dist/ast/scope.d.ts +44 -0
  41. package/dist/ast/scope.d.ts.map +1 -0
  42. package/dist/ast/strip-typescript.d.ts +9 -0
  43. package/dist/ast/strip-typescript.d.ts.map +1 -0
  44. package/dist/ast/transform.d.ts +21 -0
  45. package/dist/ast/transform.d.ts.map +1 -0
  46. package/dist/ast/tsrx/frontend.d.ts +8 -0
  47. package/dist/ast/tsrx/frontend.d.ts.map +1 -0
  48. package/dist/ast/tsrx/index.d.ts +5 -0
  49. package/dist/ast/tsrx/index.d.ts.map +1 -0
  50. package/dist/ast/tsrx/lower.d.ts +8 -0
  51. package/dist/ast/tsrx/lower.d.ts.map +1 -0
  52. package/dist/ast/tsrx/style.d.ts +8 -0
  53. package/dist/ast/tsrx/style.d.ts.map +1 -0
  54. package/dist/ast/tsrx/types.d.ts +50 -0
  55. package/dist/ast/tsrx/types.d.ts.map +1 -0
  56. package/dist/ast/types.d.ts +478 -0
  57. package/dist/ast/types.d.ts.map +1 -0
  58. package/dist/ast/walk.d.ts +22 -0
  59. package/dist/ast/walk.d.ts.map +1 -0
  60. package/dist/cells.d.ts +10 -0
  61. package/dist/cells.d.ts.map +1 -0
  62. package/dist/compile.d.ts +14 -20
  63. package/dist/compile.d.ts.map +1 -1
  64. package/dist/components/callback-props.d.ts +1 -1
  65. package/dist/components/callback-props.d.ts.map +1 -1
  66. package/dist/components/calls.d.ts +1 -1
  67. package/dist/components/calls.d.ts.map +1 -1
  68. package/dist/components/children.d.ts +3 -2
  69. package/dist/components/children.d.ts.map +1 -1
  70. package/dist/components/declarations.d.ts +10 -3
  71. package/dist/components/declarations.d.ts.map +1 -1
  72. package/dist/components/jsx-values.d.ts +2 -4
  73. package/dist/components/jsx-values.d.ts.map +1 -1
  74. package/dist/components/local-derived.d.ts +1 -1
  75. package/dist/components/local-derived.d.ts.map +1 -1
  76. package/dist/components/manifest.d.ts +2 -3
  77. package/dist/components/manifest.d.ts.map +1 -1
  78. package/dist/components/prop-effects.d.ts.map +1 -1
  79. package/dist/components/prop-linker.d.ts.map +1 -1
  80. package/dist/components/prop-origins.d.ts +2 -0
  81. package/dist/components/prop-origins.d.ts.map +1 -1
  82. package/dist/components/prop-projections.d.ts.map +1 -1
  83. package/dist/components/prop-shape.d.ts +11 -0
  84. package/dist/components/prop-shape.d.ts.map +1 -0
  85. package/dist/components/props.d.ts +9 -1
  86. package/dist/components/props.d.ts.map +1 -1
  87. package/dist/components/ref-props.d.ts.map +1 -1
  88. package/dist/components/render-callbacks.d.ts +7 -3
  89. package/dist/components/render-callbacks.d.ts.map +1 -1
  90. package/dist/components/render-functions.d.ts +1 -0
  91. package/dist/components/render-functions.d.ts.map +1 -1
  92. package/dist/components/render-prelude.d.ts +1 -1
  93. package/dist/components/render-prelude.d.ts.map +1 -1
  94. package/dist/components/return-plan.d.ts +13 -7
  95. package/dist/components/return-plan.d.ts.map +1 -1
  96. package/dist/conds.d.ts +6 -3
  97. package/dist/conds.d.ts.map +1 -1
  98. package/dist/context/ast.d.ts +11 -2
  99. package/dist/context/ast.d.ts.map +1 -1
  100. package/dist/context/model.d.ts +111 -7
  101. package/dist/context/model.d.ts.map +1 -1
  102. package/dist/data-sources.d.ts +78 -0
  103. package/dist/data-sources.d.ts.map +1 -0
  104. package/dist/diagnostics.d.ts +2 -0
  105. package/dist/diagnostics.d.ts.map +1 -1
  106. package/dist/effects.d.ts +13 -5
  107. package/dist/effects.d.ts.map +1 -1
  108. package/dist/emission/component.d.ts +3 -3
  109. package/dist/emission/component.d.ts.map +1 -1
  110. package/dist/emission/conditional-region.d.ts +6 -5
  111. package/dist/emission/conditional-region.d.ts.map +1 -1
  112. package/dist/emission/dom-template.d.ts.map +1 -1
  113. package/dist/emission/list-region.d.ts +5 -4
  114. package/dist/emission/list-region.d.ts.map +1 -1
  115. package/dist/emission/node-emitter.d.ts +4 -3
  116. package/dist/emission/node-emitter.d.ts.map +1 -1
  117. package/dist/emission/render-callback.d.ts +4 -3
  118. package/dist/emission/render-callback.d.ts.map +1 -1
  119. package/dist/emission/route-region.d.ts +4 -3
  120. package/dist/emission/route-region.d.ts.map +1 -1
  121. package/dist/emission/scope.d.ts +13 -1
  122. package/dist/emission/scope.d.ts.map +1 -1
  123. package/dist/emit.d.ts +5 -4
  124. package/dist/emit.d.ts.map +1 -1
  125. package/dist/errors.d.ts +15 -0
  126. package/dist/errors.d.ts.map +1 -0
  127. package/dist/handler-commits.d.ts +6 -1
  128. package/dist/handler-commits.d.ts.map +1 -1
  129. package/dist/handler-origin.d.ts +1 -1
  130. package/dist/handler-origin.d.ts.map +1 -1
  131. package/dist/handlers/analyze.d.ts +1 -1
  132. package/dist/handlers/analyze.d.ts.map +1 -1
  133. package/dist/handlers/local-calls.d.ts +2 -2
  134. package/dist/handlers/local-calls.d.ts.map +1 -1
  135. package/dist/handlers.d.ts +6 -5
  136. package/dist/handlers.d.ts.map +1 -1
  137. package/dist/helper-summaries.d.ts +2 -3
  138. package/dist/helper-summaries.d.ts.map +1 -1
  139. package/dist/identifiers.d.ts +13 -8
  140. package/dist/identifiers.d.ts.map +1 -1
  141. package/dist/index.d.ts +4 -1
  142. package/dist/index.d.ts.map +1 -1
  143. package/dist/index.js +3 -1
  144. package/dist/jsx/attributes.d.ts +1 -1
  145. package/dist/jsx/attributes.d.ts.map +1 -1
  146. package/dist/jsx/children.d.ts +1 -1
  147. package/dist/jsx/children.d.ts.map +1 -1
  148. package/dist/jsx/conditional-directives.d.ts +12 -3
  149. package/dist/jsx/conditional-directives.d.ts.map +1 -1
  150. package/dist/jsx/dom-attributes.d.ts +1 -1
  151. package/dist/jsx/dom-attributes.d.ts.map +1 -1
  152. package/dist/jsx/dynamic-tags.d.ts +9 -15
  153. package/dist/jsx/dynamic-tags.d.ts.map +1 -1
  154. package/dist/jsx/events.d.ts +2 -2
  155. package/dist/jsx/events.d.ts.map +1 -1
  156. package/dist/jsx/refs.d.ts +5 -4
  157. package/dist/jsx/refs.d.ts.map +1 -1
  158. package/dist/jsx/svg.d.ts +2 -2
  159. package/dist/jsx/svg.d.ts.map +1 -1
  160. package/dist/jsx-types.d.ts +4 -1
  161. package/dist/jsx-types.d.ts.map +1 -1
  162. package/dist/lifecycle.d.ts +10 -5
  163. package/dist/lifecycle.d.ts.map +1 -1
  164. package/dist/linker.d.ts +7 -1
  165. package/dist/linker.d.ts.map +1 -1
  166. package/dist/lists/calculated-sources.d.ts +1 -1
  167. package/dist/lists/calculated-sources.d.ts.map +1 -1
  168. package/dist/lists/map-site.d.ts +11 -5
  169. package/dist/lists/map-site.d.ts.map +1 -1
  170. package/dist/lists/source-shapes.d.ts +12 -3
  171. package/dist/lists/source-shapes.d.ts.map +1 -1
  172. package/dist/lists/static-derived.d.ts +37 -0
  173. package/dist/lists/static-derived.d.ts.map +1 -0
  174. package/dist/lists/targeted-refresh.d.ts +9 -2
  175. package/dist/lists/targeted-refresh.d.ts.map +1 -1
  176. package/dist/module-control-flow.d.ts +7 -6
  177. package/dist/module-control-flow.d.ts.map +1 -1
  178. package/dist/mutation-analysis.d.ts +22 -8
  179. package/dist/mutation-analysis.d.ts.map +1 -1
  180. package/dist/plugin.d.ts +10 -6
  181. package/dist/plugin.d.ts.map +1 -1
  182. package/dist/router.d.ts +8 -4
  183. package/dist/router.d.ts.map +1 -1
  184. package/dist/server-functions.d.ts +49 -0
  185. package/dist/server-functions.d.ts.map +1 -0
  186. package/package.json +34 -36
package/dist/router.d.ts CHANGED
@@ -5,8 +5,7 @@
5
5
  * before ordinary JSX prop analysis, leaving no DOM attributes or component
6
6
  * props behind.
7
7
  */
8
- import type { NodePath } from '@babel/traverse';
9
- import * as t from '@babel/types';
8
+ import type * as t from './ast/compiler-types';
10
9
  import type { Ctx } from './context';
11
10
  export interface CompilerRouteDefinition {
12
11
  readonly id: string;
@@ -19,10 +18,15 @@ export interface CompilerRouteDefinition {
19
18
  }
20
19
  export interface CompilerRouteElement extends CompilerRouteDefinition {
21
20
  }
21
+ interface ProgramContainer {
22
+ node: t.Program;
23
+ buildCodeFrameError(message: string, at?: t.Node): Error;
24
+ }
22
25
  export declare function validateCompilerRoutePattern(pattern: string): string;
23
- export declare function collectCompilerRoutes(file: t.File, moduleId: string): CompilerRouteDefinition[];
26
+ export declare function collectCompilerRoutes(root: t.File | t.Program, moduleId: string): CompilerRouteDefinition[];
24
27
  export declare function validateCompilerRouteGraph(definitions: readonly CompilerRouteDefinition[]): void;
25
28
  /** Analyze, validate, and erase compiler-owned route properties. */
26
- export declare function analyzeRouterJsx(ctx: Ctx, programPath: NodePath<t.Program>): void;
29
+ export declare function analyzeRouterJsx(ctx: Ctx, programPath: ProgramContainer): void;
27
30
  export declare function routeManifestStatements(ctx: Ctx): t.Statement[];
31
+ export {};
28
32
  //# sourceMappingURL=router.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../src/router.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAMrC,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,oBAAqB,SAA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,CAAC,CAAC,IAAI,GAAG,KAAK,CAAC;CAC1D;AAqED,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAmCpE;AAsGD,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,OAAO,EACxB,QAAQ,EAAE,MAAM,GACf,uBAAuB,EAAE,CAG3B;AAqBD,wBAAgB,0BAA0B,CACxC,WAAW,EAAE,SAAS,uBAAuB,EAAE,GAC9C,IAAI,CAsBN;AAsQD,oEAAoE;AACpE,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,GAAG,EACR,WAAW,EAAE,gBAAgB,GAC5B,IAAI,CA0GN;AAED,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,GAAG,GAAG,CAAC,CAAC,SAAS,EAAE,CAqC/D"}
@@ -0,0 +1,49 @@
1
+ import { type EstreeFrontend } from './ast';
2
+ export type ServerFunctionMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
3
+ export type ServerFunctionQueryKind = 'string' | 'number' | 'boolean' | 'string[]' | 'number[]' | 'boolean[]';
4
+ export interface ServerFunctionParameter {
5
+ readonly name: string;
6
+ readonly optional: boolean;
7
+ /** Present only for GET query decoding; mutation bodies retain JSON types. */
8
+ readonly queryKind?: ServerFunctionQueryKind;
9
+ }
10
+ export interface ServerFunctionDefinition {
11
+ readonly exported: string;
12
+ readonly local: string;
13
+ readonly method: ServerFunctionMethod;
14
+ readonly path: string;
15
+ readonly parameters: readonly ServerFunctionParameter[];
16
+ }
17
+ export interface ServerFunctionModule {
18
+ readonly moduleId: string;
19
+ readonly moduleName: string;
20
+ readonly middlewareExport: boolean;
21
+ readonly functions: readonly ServerFunctionDefinition[];
22
+ }
23
+ export interface AnalyzeServerFunctionOptions {
24
+ readonly moduleId: string;
25
+ readonly functionsRoot?: string;
26
+ readonly frontend?: EstreeFrontend;
27
+ }
28
+ export declare function serverFunctionModuleName(moduleId: string, functionsRoot?: string): string;
29
+ export declare function analyzeServerFunctionModule(source: string, options: AnalyzeServerFunctionOptions): ServerFunctionModule;
30
+ export declare function generateServerFunctionClient(module: ServerFunctionModule, dataModule?: string): string;
31
+ export interface ServerFunctionDeclarationOptions {
32
+ /**
33
+ * Resolves each analyzed module id to the specifier the generated file uses
34
+ * to type-import its real implementation. Type-only, so it erases at runtime
35
+ * and never pulls the server dependency graph into a client build.
36
+ */
37
+ readonly resolveImplementation: (moduleId: string) => string;
38
+ readonly dataModule?: string;
39
+ }
40
+ /**
41
+ * Emit the client-facing declaration barrel for the application's server
42
+ * functions. Signatures reference the real implementations through
43
+ * `Parameters`/`ReturnType`, so server builds keep their ordinary async
44
+ * TypeScript types while client imports see the colorless `ResolvedValue<T>`
45
+ * contract (readable as `T`, `$track`-able). Exported names must be unique
46
+ * across modules because the barrel is one flat module.
47
+ */
48
+ export declare function generateServerFunctionDeclarations(modules: readonly ServerFunctionModule[], options: ServerFunctionDeclarationOptions): string;
49
+ //# sourceMappingURL=server-functions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server-functions.d.ts","sourceRoot":"","sources":["../src/server-functions.ts"],"names":[],"mappings":"AAGA,OAAO,EAIL,KAAK,cAAc,EACpB,MAAM,OAAO,CAAC;AAIf,MAAM,MAAM,oBAAoB,GAC5B,KAAK,GACL,MAAM,GACN,KAAK,GACL,OAAO,GACP,QAAQ,CAAC;AAEb,MAAM,MAAM,uBAAuB,GAC/B,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,UAAU,GACV,UAAU,GACV,WAAW,CAAC;AAEhB,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,8EAA8E;IAC9E,QAAQ,CAAC,SAAS,CAAC,EAAE,uBAAuB,CAAC;CAC9C;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,QAAQ,EAAE,MAAM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oized-dom/compiler",
3
- "version": "0.0.5",
4
- "description": "Binding-aware TypeScript and JSX compiler for memoized-dom",
5
- "type": "module",
6
- "engines": {
7
- "node": ">=24.11.0"
8
- },
9
- "sideEffects": false,
10
- "files": [
11
- "dist"
12
- ],
13
- "exports": {
14
- ".": {
15
- "types": "./dist/index.d.ts",
16
- "import": "./dist/index.js",
17
- "default": "./dist/index.js"
18
- },
19
- "./jsx": {
20
- "types": "./dist/jsx-types.d.ts"
21
- }
22
- },
23
- "scripts": {
24
- "build": "bun run ./scripts/clean.ts && esbuild ./src/index.ts --bundle --outfile=./dist/index.js --platform=node --format=esm --target=node24 --packages=external --minify && tsc -p tsconfig.build.json"
25
- },
26
- "dependencies": {
27
- "@babel/core": "^8.0.1",
28
- "@babel/plugin-syntax-jsx": "^8.0.1",
29
- "@babel/plugin-transform-typescript": "^8.0.1",
30
- "@babel/traverse": "^8.0.4",
31
- "@babel/types": "^8.0.4"
32
- },
33
- "publishConfig": {
34
- "access": "public"
35
- }
36
- }
1
+ {
2
+ "name": "@memoized-dom/compiler",
3
+ "version": "0.0.6",
4
+ "description": "Binding-aware TypeScript and JSX compiler for memoized-dom",
5
+ "type": "module",
6
+ "engines": {
7
+ "node": ">=24.11.0"
8
+ },
9
+ "sideEffects": false,
10
+ "files": [
11
+ "dist"
12
+ ],
13
+ "exports": {
14
+ ".": {
15
+ "types": "./dist/index.d.ts",
16
+ "import": "./dist/index.js",
17
+ "default": "./dist/index.js"
18
+ },
19
+ "./jsx": {
20
+ "types": "./dist/jsx-types.d.ts"
21
+ }
22
+ },
23
+ "scripts": {
24
+ "build": "bun run ./scripts/clean.ts && rolldown -c rolldown.config.ts && tsc -p tsconfig.build.json"
25
+ },
26
+ "dependencies": {
27
+ "@tsrx/core": "0.1.63",
28
+ "esrap": "^2.3.6",
29
+ "yuku-parser": "^0.9.3"
30
+ },
31
+ "publishConfig": {
32
+ "access": "public"
33
+ }
34
+ }