@evjs/build-tools 0.0.27 → 0.0.29

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/README.md CHANGED
@@ -51,8 +51,8 @@ const clientStub = await transformServerFile(source, {
51
51
 
52
52
  `transformServerFile()` parses the source with SWC, extracts exported function names via AST traversal, then delegates to the appropriate transform:
53
53
 
54
- - **Client transform** — replaces function bodies with `__fn_call(fnId, args)` transport stubs and registers them via `__fn_register()` for query cache keys.
55
- - **Server transform** — keeps original source, prepends the `registerServerFn` import, and appends registration calls for each export.
54
+ - **Client transform** — replaces function bodies with `createServerReference()` transport stubs.
55
+ - **Server transform** — keeps original source, prepends the `registerServerReference` import, and appends registration calls for each export.
56
56
 
57
57
  ### Entry Generation
58
58
 
@@ -70,9 +70,9 @@ All runtime identifiers (module paths, function names, property names) are centr
70
70
  RUNTIME.serverModule // "@evjs/server/register"
71
71
  RUNTIME.appModule // "@evjs/server"
72
72
  RUNTIME.clientTransportModule // "@evjs/client/transport"
73
- RUNTIME.registerServerFn // "registerServerFn"
74
- RUNTIME.clientCall // "__fn_call"
75
- RUNTIME.clientRegister // "__fn_register"
73
+ RUNTIME.registerServerReference // "registerServerReference"
74
+ RUNTIME.createServerReference // "createServerReference"
75
+ RUNTIME.callServer // "callServer"
76
76
  ```
77
77
 
78
78
  ## Bundler Adapter Pattern
@@ -7,8 +7,8 @@ export interface TransformResult {
7
7
  * Transform a "use server" file for either client or server builds.
8
8
  * This is a pure function with no bundler dependency.
9
9
  *
10
- * - **Server**: keeps original source + appends `registerServerFn()` calls
11
- * - **Client**: replaces function bodies with `__fn_call()` transport stubs
10
+ * - **Server**: keeps original source + appends `registerServerReference()` calls
11
+ * - **Client**: replaces function bodies with `createServerReference()` transport stubs
12
12
  */
13
13
  export declare function transformServerFile(source: string, options: TransformOptions): Promise<TransformResult>;
14
14
  //# sourceMappingURL=index.d.ts.map
@@ -7,8 +7,8 @@ import { extractExportNames } from "./utils.js";
7
7
  * Transform a "use server" file for either client or server builds.
8
8
  * This is a pure function with no bundler dependency.
9
9
  *
10
- * - **Server**: keeps original source + appends `registerServerFn()` calls
11
- * - **Client**: replaces function bodies with `__fn_call()` transport stubs
10
+ * - **Server**: keeps original source + appends `registerServerReference()` calls
11
+ * - **Client**: replaces function bodies with `createServerReference()` transport stubs
12
12
  */
13
13
  export async function transformServerFile(source, options) {
14
14
  if (!detectUseServer(source)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evjs/build-tools",
3
- "version": "0.0.27",
3
+ "version": "0.0.29",
4
4
  "description": "Bundler-agnostic build utilities for the ev framework",
5
5
  "type": "module",
6
6
  "publishConfig": {