@utoo/pack 1.1.11-rc.0 → 1.1.12
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/core/hmr.d.ts +10 -2
- package/esm/core/hmr.d.ts +10 -2
- package/package.json +16 -18
package/cjs/core/hmr.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IncomingMessage } from "http";
|
|
2
2
|
import { Duplex } from "stream";
|
|
3
|
-
import type webpack from "webpack";
|
|
4
3
|
import { BundleOptions, Project, Update as TurbopackUpdate } from "./types";
|
|
5
4
|
export declare const enum HMR_ACTIONS_SENT_TO_BROWSER {
|
|
6
5
|
RELOAD = "reload",
|
|
@@ -53,9 +52,18 @@ export interface ReloadAction {
|
|
|
53
52
|
data: string;
|
|
54
53
|
}
|
|
55
54
|
export type HMR_ACTION_TYPES = TurbopackMessageAction | TurbopackConnectedAction | BuildingAction | SyncAction | BuiltAction | ReloadAction;
|
|
55
|
+
export interface WebpackStats {
|
|
56
|
+
hash?: string;
|
|
57
|
+
startTime?: number;
|
|
58
|
+
endTime?: number;
|
|
59
|
+
hasErrors(): boolean;
|
|
60
|
+
hasWarnings(): boolean;
|
|
61
|
+
toJson(options?: any): any;
|
|
62
|
+
toString(options?: any): string;
|
|
63
|
+
}
|
|
56
64
|
export interface HotReloaderInterface {
|
|
57
65
|
turbopackProject?: Project;
|
|
58
|
-
serverStats:
|
|
66
|
+
serverStats: WebpackStats | null;
|
|
59
67
|
setHmrServerError(error: Error | null): void;
|
|
60
68
|
clearHmrServerError(): void;
|
|
61
69
|
start(): Promise<void>;
|
package/esm/core/hmr.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IncomingMessage } from "http";
|
|
2
2
|
import { Duplex } from "stream";
|
|
3
|
-
import type webpack from "webpack";
|
|
4
3
|
import { BundleOptions, Project, Update as TurbopackUpdate } from "./types";
|
|
5
4
|
export declare const enum HMR_ACTIONS_SENT_TO_BROWSER {
|
|
6
5
|
RELOAD = "reload",
|
|
@@ -53,9 +52,18 @@ export interface ReloadAction {
|
|
|
53
52
|
data: string;
|
|
54
53
|
}
|
|
55
54
|
export type HMR_ACTION_TYPES = TurbopackMessageAction | TurbopackConnectedAction | BuildingAction | SyncAction | BuiltAction | ReloadAction;
|
|
55
|
+
export interface WebpackStats {
|
|
56
|
+
hash?: string;
|
|
57
|
+
startTime?: number;
|
|
58
|
+
endTime?: number;
|
|
59
|
+
hasErrors(): boolean;
|
|
60
|
+
hasWarnings(): boolean;
|
|
61
|
+
toJson(options?: any): any;
|
|
62
|
+
toString(options?: any): string;
|
|
63
|
+
}
|
|
56
64
|
export interface HotReloaderInterface {
|
|
57
65
|
turbopackProject?: Project;
|
|
58
|
-
serverStats:
|
|
66
|
+
serverStats: WebpackStats | null;
|
|
59
67
|
setHmrServerError(error: Error | null): void;
|
|
60
68
|
clearHmrServerError(): void;
|
|
61
69
|
start(): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@utoo/pack",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.12",
|
|
4
4
|
"main": "cjs/index.js",
|
|
5
5
|
"module": "esm/index.js",
|
|
6
6
|
"types": "esm/index.d.ts",
|
|
@@ -39,21 +39,22 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@babel/code-frame": "7.22.5",
|
|
41
41
|
"@swc/helpers": "0.5.15",
|
|
42
|
-
"@utoo/pack-shared": "1.1.
|
|
42
|
+
"@utoo/pack-shared": "1.1.12",
|
|
43
43
|
"@utoo/style-loader": "^1.0.0",
|
|
44
44
|
"domparser-rs": "^0.0.5",
|
|
45
45
|
"find-up": "4.1.0",
|
|
46
|
-
"less": "^4.0.0",
|
|
47
|
-
"less-loader": "^12.0.0",
|
|
48
|
-
"loader-runner": "^4.3.0",
|
|
49
46
|
"nanoid": "^3.3.11",
|
|
50
47
|
"picocolors": "^1.1.1",
|
|
48
|
+
"send": "0.17.1",
|
|
49
|
+
"ws": "^8.18.1"
|
|
50
|
+
},
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"less": "^4.0.0",
|
|
53
|
+
"less-loader": "^12.0.0",
|
|
51
54
|
"postcss": "8.4.31",
|
|
52
55
|
"resolve-url-loader": "^5.0.0",
|
|
53
56
|
"sass": "1.54.0",
|
|
54
|
-
"sass-loader": "^13.2.0"
|
|
55
|
-
"send": "0.17.1",
|
|
56
|
-
"ws": "^8.18.1"
|
|
57
|
+
"sass-loader": "^13.2.0"
|
|
57
58
|
},
|
|
58
59
|
"devDependencies": {
|
|
59
60
|
"@napi-rs/cli": "^2.18.0",
|
|
@@ -66,9 +67,6 @@
|
|
|
66
67
|
"styled-jsx": "^5.1.6",
|
|
67
68
|
"typescript": "^5.8.3"
|
|
68
69
|
},
|
|
69
|
-
"peerDependencies": {
|
|
70
|
-
"@types/webpack": "^5.28.5"
|
|
71
|
-
},
|
|
72
70
|
"engines": {
|
|
73
71
|
"node": ">= 20"
|
|
74
72
|
},
|
|
@@ -88,12 +86,12 @@
|
|
|
88
86
|
},
|
|
89
87
|
"repository": "git@github.com:utooland/utoo.git",
|
|
90
88
|
"optionalDependencies": {
|
|
91
|
-
"@utoo/pack-darwin-arm64": "1.1.
|
|
92
|
-
"@utoo/pack-darwin-x64": "1.1.
|
|
93
|
-
"@utoo/pack-linux-arm64-gnu": "1.1.
|
|
94
|
-
"@utoo/pack-linux-arm64-musl": "1.1.
|
|
95
|
-
"@utoo/pack-linux-x64-gnu": "1.1.
|
|
96
|
-
"@utoo/pack-linux-x64-musl": "1.1.
|
|
97
|
-
"@utoo/pack-win32-x64-msvc": "1.1.
|
|
89
|
+
"@utoo/pack-darwin-arm64": "1.1.12",
|
|
90
|
+
"@utoo/pack-darwin-x64": "1.1.12",
|
|
91
|
+
"@utoo/pack-linux-arm64-gnu": "1.1.12",
|
|
92
|
+
"@utoo/pack-linux-arm64-musl": "1.1.12",
|
|
93
|
+
"@utoo/pack-linux-x64-gnu": "1.1.12",
|
|
94
|
+
"@utoo/pack-linux-x64-musl": "1.1.12",
|
|
95
|
+
"@utoo/pack-win32-x64-msvc": "1.1.12"
|
|
98
96
|
}
|
|
99
97
|
}
|