@utoo/pack-shared 1.4.0-alpha.1 → 1.4.0-alpha.10

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,6 +321,11 @@ export interface BundleOptions {
317
321
  * The build id.
318
322
  */
319
323
  buildId?: string;
324
+ /**
325
+ * Whether to enable default utoopack tracing logs.
326
+ * Defaults to true.
327
+ */
328
+ tracing?: boolean;
320
329
  /**
321
330
  * Absolute path for `@utoo/pack`.
322
331
  */
@@ -327,7 +336,7 @@ export interface BundleOptions {
327
336
  * Bundler options (entry, output, define, ...) at top level,
328
337
  * plus optional CLI/runtime options (processEnv, watch, dev, ...).
329
338
  */
330
- export type UserConfig = ConfigComplete & Partial<Pick<BundleOptions, "processEnv" | "watch" | "dev" | "buildId" | "packPath">> & {
339
+ export type UserConfig = ConfigComplete & Partial<Pick<BundleOptions, "processEnv" | "watch" | "dev" | "buildId" | "tracing" | "packPath">> & {
331
340
  rootPath?: string;
332
341
  projectPath?: string;
333
342
  };
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,6 +321,11 @@ export interface BundleOptions {
317
321
  * The build id.
318
322
  */
319
323
  buildId?: string;
324
+ /**
325
+ * Whether to enable default utoopack tracing logs.
326
+ * Defaults to true.
327
+ */
328
+ tracing?: boolean;
320
329
  /**
321
330
  * Absolute path for `@utoo/pack`.
322
331
  */
@@ -327,7 +336,7 @@ export interface BundleOptions {
327
336
  * Bundler options (entry, output, define, ...) at top level,
328
337
  * plus optional CLI/runtime options (processEnv, watch, dev, ...).
329
338
  */
330
- export type UserConfig = ConfigComplete & Partial<Pick<BundleOptions, "processEnv" | "watch" | "dev" | "buildId" | "packPath">> & {
339
+ export type UserConfig = ConfigComplete & Partial<Pick<BundleOptions, "processEnv" | "watch" | "dev" | "buildId" | "tracing" | "packPath">> & {
331
340
  rootPath?: string;
332
341
  projectPath?: string;
333
342
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utoo/pack-shared",
3
- "version": "1.4.0-alpha.1",
3
+ "version": "1.4.0-alpha.10",
4
4
  "main": "cjs/index.js",
5
5
  "module": "esm/index.js",
6
6
  "types": "esm/index.d.ts",