@utoo/pack-shared 1.4.0-alpha.4 → 1.4.0-alpha.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.
package/cjs/config.d.ts CHANGED
@@ -243,6 +243,8 @@ export interface ConfigComplete {
243
243
  nodePolyfill?: boolean;
244
244
  devServer?: DevServerConfig;
245
245
  server?: {
246
+ /** Entry point for the server runtime (e.g. "src/server.ts") */
247
+ entry?: string;
246
248
  output?: {
247
249
  /** Output path for server chunks, relative to project root. */
248
250
  path?: string;
@@ -251,9 +253,11 @@ export interface ConfigComplete {
251
253
  /** Non-entry chunk filename template. Supports [name] and [contenthash:N]. */
252
254
  chunkFilename?: string;
253
255
  };
254
- functions?: {
255
- /** Module that exports `callServer(actionId, args)` for client-side transport. */
256
- callServerModule: string;
256
+ function?: {
257
+ /** Module that exports `createServerReference(actionId, name)` for client-side proxy generation. */
258
+ clientProxy?: string;
259
+ /** Module that exports `registerServerReference(action, actionId, name)` for the server bundle. */
260
+ serverRegister?: string;
257
261
  };
258
262
  };
259
263
  }
@@ -317,11 +321,6 @@ export interface BundleOptions {
317
321
  * The build id.
318
322
  */
319
323
  buildId?: string;
320
- /**
321
- * Whether to enable default utoopack tracing logs.
322
- * Defaults to true.
323
- */
324
- tracing?: boolean;
325
324
  /**
326
325
  * Absolute path for `@utoo/pack`.
327
326
  */
@@ -332,7 +331,7 @@ export interface BundleOptions {
332
331
  * Bundler options (entry, output, define, ...) at top level,
333
332
  * plus optional CLI/runtime options (processEnv, watch, dev, ...).
334
333
  */
335
- export type UserConfig = ConfigComplete & Partial<Pick<BundleOptions, "processEnv" | "watch" | "dev" | "buildId" | "tracing" | "packPath">> & {
334
+ export type UserConfig = ConfigComplete & Partial<Pick<BundleOptions, "processEnv" | "watch" | "dev" | "buildId" | "packPath">> & {
336
335
  rootPath?: string;
337
336
  projectPath?: string;
338
337
  };
package/esm/config.d.ts CHANGED
@@ -243,6 +243,8 @@ export interface ConfigComplete {
243
243
  nodePolyfill?: boolean;
244
244
  devServer?: DevServerConfig;
245
245
  server?: {
246
+ /** Entry point for the server runtime (e.g. "src/server.ts") */
247
+ entry?: string;
246
248
  output?: {
247
249
  /** Output path for server chunks, relative to project root. */
248
250
  path?: string;
@@ -251,9 +253,11 @@ export interface ConfigComplete {
251
253
  /** Non-entry chunk filename template. Supports [name] and [contenthash:N]. */
252
254
  chunkFilename?: string;
253
255
  };
254
- functions?: {
255
- /** Module that exports `callServer(actionId, args)` for client-side transport. */
256
- callServerModule: string;
256
+ function?: {
257
+ /** Module that exports `createServerReference(actionId, name)` for client-side proxy generation. */
258
+ clientProxy?: string;
259
+ /** Module that exports `registerServerReference(action, actionId, name)` for the server bundle. */
260
+ serverRegister?: string;
257
261
  };
258
262
  };
259
263
  }
@@ -317,11 +321,6 @@ export interface BundleOptions {
317
321
  * The build id.
318
322
  */
319
323
  buildId?: string;
320
- /**
321
- * Whether to enable default utoopack tracing logs.
322
- * Defaults to true.
323
- */
324
- tracing?: boolean;
325
324
  /**
326
325
  * Absolute path for `@utoo/pack`.
327
326
  */
@@ -332,7 +331,7 @@ export interface BundleOptions {
332
331
  * Bundler options (entry, output, define, ...) at top level,
333
332
  * plus optional CLI/runtime options (processEnv, watch, dev, ...).
334
333
  */
335
- export type UserConfig = ConfigComplete & Partial<Pick<BundleOptions, "processEnv" | "watch" | "dev" | "buildId" | "tracing" | "packPath">> & {
334
+ export type UserConfig = ConfigComplete & Partial<Pick<BundleOptions, "processEnv" | "watch" | "dev" | "buildId" | "packPath">> & {
336
335
  rootPath?: string;
337
336
  projectPath?: string;
338
337
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utoo/pack-shared",
3
- "version": "1.4.0-alpha.4",
3
+ "version": "1.4.0-alpha.6",
4
4
  "main": "cjs/index.js",
5
5
  "module": "esm/index.js",
6
6
  "types": "esm/index.d.ts",