@utoo/pack 1.4.12-alpha.2 → 1.4.12-alpha.5

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/binding.d.ts CHANGED
@@ -243,11 +243,6 @@ export interface NapiSourcePos {
243
243
  line: number
244
244
  column: number
245
245
  }
246
- export interface NapiDiagnostic {
247
- category: string
248
- name: string
249
- payload: Record<string, string>
250
- }
251
246
  /**
252
247
  * Initialize tracing subscriber to emit traces. This configures subscribers
253
248
  * for Trace Event Format <https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU/preview>.
package/cjs/core/hmr.js CHANGED
@@ -155,7 +155,6 @@ async function createHotReloader(bundleOptions, projectPath, rootPath) {
155
155
  const sendEnqueuedMessagesDebounce = (0, common_1.debounce)(sendEnqueuedMessages, 2);
156
156
  function sendTurbopackMessage(payload) {
157
157
  var _a;
158
- payload.diagnostics = [];
159
158
  payload.issues = [];
160
159
  for (const client of clients) {
161
160
  (_a = clientStates.get(client)) === null || _a === void 0 ? void 0 : _a.turbopackUpdates.push(payload);
@@ -40,7 +40,6 @@ export declare function projectFactory(): (options: Required<ProjectOptions>, tu
40
40
  appPaths: NapiWrittenEndpoint[] | undefined;
41
41
  libraryPaths: NapiWrittenEndpoint[] | undefined;
42
42
  issues: binding.NapiIssue[];
43
- diagnostics: binding.NapiDiagnostic[];
44
43
  }, void, unknown>;
45
44
  hmrEvents(identifier: string): AsyncIterableIterator<TurbopackResult<Update>>;
46
45
  hmrIdentifiersSubscribe(): AsyncIterableIterator<TurbopackResult<HmrIdentifiers>>;
@@ -493,7 +493,6 @@ function projectFactory() {
493
493
  appPaths: entrypoints.appPaths,
494
494
  libraryPaths: entrypoints.libraryPaths,
495
495
  issues: entrypoints.issues,
496
- diagnostics: entrypoints.diagnostics,
497
496
  };
498
497
  }
499
498
  return async function createProject(options, turboEngineOptions) {
@@ -1,9 +1,8 @@
1
- import { HmrIdentifiers, NapiDiagnostic, NapiIssue, NapiUpdateMessage, NapiWrittenEndpoint, StackFrame } from "../binding";
1
+ import { HmrIdentifiers, NapiIssue, NapiUpdateMessage, NapiWrittenEndpoint, StackFrame } from "../binding";
2
2
  import { BundleOptions } from "../config/types";
3
3
  declare global {
4
4
  export type TurbopackResult<T = {}> = T & {
5
5
  issues: NapiIssue[];
6
- diagnostics: NapiDiagnostic[];
7
6
  };
8
7
  export type RefCell = {
9
8
  readonly __tag: unique symbol;
@@ -18,7 +17,6 @@ export interface BaseUpdate {
18
17
  headers: unknown;
19
18
  path: string;
20
19
  };
21
- diagnostics: unknown[];
22
20
  issues: NapiIssue[];
23
21
  }
24
22
  export interface IssuesUpdate extends BaseUpdate {
package/esm/binding.d.ts CHANGED
@@ -243,11 +243,6 @@ export interface NapiSourcePos {
243
243
  line: number
244
244
  column: number
245
245
  }
246
- export interface NapiDiagnostic {
247
- category: string
248
- name: string
249
- payload: Record<string, string>
250
- }
251
246
  /**
252
247
  * Initialize tracing subscriber to emit traces. This configures subscribers
253
248
  * for Trace Event Format <https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU/preview>.
package/esm/core/hmr.js CHANGED
@@ -150,7 +150,6 @@ export async function createHotReloader(bundleOptions, projectPath, rootPath) {
150
150
  const sendEnqueuedMessagesDebounce = debounce(sendEnqueuedMessages, 2);
151
151
  function sendTurbopackMessage(payload) {
152
152
  var _a;
153
- payload.diagnostics = [];
154
153
  payload.issues = [];
155
154
  for (const client of clients) {
156
155
  (_a = clientStates.get(client)) === null || _a === void 0 ? void 0 : _a.turbopackUpdates.push(payload);
@@ -40,7 +40,6 @@ export declare function projectFactory(): (options: Required<ProjectOptions>, tu
40
40
  appPaths: NapiWrittenEndpoint[] | undefined;
41
41
  libraryPaths: NapiWrittenEndpoint[] | undefined;
42
42
  issues: binding.NapiIssue[];
43
- diagnostics: binding.NapiDiagnostic[];
44
43
  }, void, unknown>;
45
44
  hmrEvents(identifier: string): AsyncIterableIterator<TurbopackResult<Update>>;
46
45
  hmrIdentifiersSubscribe(): AsyncIterableIterator<TurbopackResult<HmrIdentifiers>>;
@@ -454,7 +454,6 @@ export function projectFactory() {
454
454
  appPaths: entrypoints.appPaths,
455
455
  libraryPaths: entrypoints.libraryPaths,
456
456
  issues: entrypoints.issues,
457
- diagnostics: entrypoints.diagnostics,
458
457
  };
459
458
  }
460
459
  return async function createProject(options, turboEngineOptions) {
@@ -1,9 +1,8 @@
1
- import { HmrIdentifiers, NapiDiagnostic, NapiIssue, NapiUpdateMessage, NapiWrittenEndpoint, StackFrame } from "../binding";
1
+ import { HmrIdentifiers, NapiIssue, NapiUpdateMessage, NapiWrittenEndpoint, StackFrame } from "../binding";
2
2
  import { BundleOptions } from "../config/types";
3
3
  declare global {
4
4
  export type TurbopackResult<T = {}> = T & {
5
5
  issues: NapiIssue[];
6
- diagnostics: NapiDiagnostic[];
7
6
  };
8
7
  export type RefCell = {
9
8
  readonly __tag: unique symbol;
@@ -18,7 +17,6 @@ export interface BaseUpdate {
18
17
  headers: unknown;
19
18
  path: string;
20
19
  };
21
- diagnostics: unknown[];
22
20
  issues: NapiIssue[];
23
21
  }
24
22
  export interface IssuesUpdate extends BaseUpdate {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utoo/pack",
3
- "version": "1.4.12-alpha.2",
3
+ "version": "1.4.12-alpha.5",
4
4
  "main": "cjs/index.js",
5
5
  "module": "esm/index.js",
6
6
  "types": "esm/index.d.ts",
@@ -41,7 +41,7 @@
41
41
  "@hono/node-server": "^1.19.11",
42
42
  "@hono/node-ws": "^1.3.0",
43
43
  "@swc/helpers": "0.5.15",
44
- "@utoo/pack-shared": "1.4.12-alpha.2",
44
+ "@utoo/pack-shared": "1.4.12-alpha.5",
45
45
  "domparser-rs": "^0.0.7",
46
46
  "find-up": "4.1.0",
47
47
  "get-port": "5.1.1",
@@ -96,12 +96,12 @@
96
96
  "directory": "packages/pack"
97
97
  },
98
98
  "optionalDependencies": {
99
- "@utoo/pack-darwin-arm64": "1.4.12-alpha.2",
100
- "@utoo/pack-darwin-x64": "1.4.12-alpha.2",
101
- "@utoo/pack-linux-arm64-gnu": "1.4.12-alpha.2",
102
- "@utoo/pack-linux-arm64-musl": "1.4.12-alpha.2",
103
- "@utoo/pack-linux-x64-gnu": "1.4.12-alpha.2",
104
- "@utoo/pack-linux-x64-musl": "1.4.12-alpha.2",
105
- "@utoo/pack-win32-x64-msvc": "1.4.12-alpha.2"
99
+ "@utoo/pack-darwin-arm64": "1.4.12-alpha.5",
100
+ "@utoo/pack-darwin-x64": "1.4.12-alpha.5",
101
+ "@utoo/pack-linux-arm64-gnu": "1.4.12-alpha.5",
102
+ "@utoo/pack-linux-arm64-musl": "1.4.12-alpha.5",
103
+ "@utoo/pack-linux-x64-gnu": "1.4.12-alpha.5",
104
+ "@utoo/pack-linux-x64-musl": "1.4.12-alpha.5",
105
+ "@utoo/pack-win32-x64-msvc": "1.4.12-alpha.5"
106
106
  }
107
107
  }