@cloudflare/vite-plugin 2.0.0-beta.v.5 → 2.0.0-beta.v.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/dist/index.mjs
CHANGED
|
@@ -89072,7 +89072,7 @@ __name(createWorkerUploadForm, "createWorkerUploadForm");
|
|
|
89072
89072
|
//#endregion
|
|
89073
89073
|
//#region ../remote-bindings/dist/index.mjs
|
|
89074
89074
|
var import_undici = require_undici();
|
|
89075
|
-
var version$1 = "0.0.
|
|
89075
|
+
var version$1 = "0.0.54";
|
|
89076
89076
|
var NoDefaultValueProvided = class extends UserError {
|
|
89077
89077
|
constructor() {
|
|
89078
89078
|
super("This command cannot be run in a non-interactive context", { telemetryMessage: "remote bindings prompt default missing" });
|
|
@@ -89887,7 +89887,7 @@ async function startRemoteProxySession(bindings, options) {
|
|
|
89887
89887
|
cliDisplayName: options.cliDisplayName,
|
|
89888
89888
|
entrypointSource: ProxyServerWorker_default,
|
|
89889
89889
|
compatibilityDate: "2025-04-28",
|
|
89890
|
-
compatibilityFlags: [],
|
|
89890
|
+
compatibilityFlags: ["enhanced_error_serialization"],
|
|
89891
89891
|
complianceRegion: options.complianceRegion,
|
|
89892
89892
|
bindings: rawBindings,
|
|
89893
89893
|
auth: getRemoteBindingsAuthHook(options.auth, void 0, void 0, options.logger),
|
|
@@ -90878,8 +90878,9 @@ function handleWebSocket(httpServer, miniflare, entryWorkerName) {
|
|
|
90878
90878
|
const base = /^https?:\/\//i.test(rawHost) ? rawHost : `${protocol}//${rawHost}`;
|
|
90879
90879
|
const url$2 = new URL(request$2.url ?? "", base);
|
|
90880
90880
|
const isViteRequest = request$2.headers["sec-websocket-protocol"]?.startsWith("vite");
|
|
90881
|
+
const isDevToolsRequest = url$2.pathname === "/__devtools/__ws";
|
|
90881
90882
|
const isSandboxRequest = hasSandboxOrigin(url$2.origin);
|
|
90882
|
-
if (isViteRequest && !isSandboxRequest) return;
|
|
90883
|
+
if ((isViteRequest || isDevToolsRequest) && !isSandboxRequest) return;
|
|
90883
90884
|
const headers = createHeadersForIncomingMessage(request$2);
|
|
90884
90885
|
if (entryWorkerName) headers.set(CoreHeaders.ROUTE_OVERRIDE, entryWorkerName);
|
|
90885
90886
|
const response = await miniflare.dispatchFetch(url$2, {
|
|
@@ -90891,6 +90892,7 @@ function handleWebSocket(httpServer, miniflare, entryWorkerName) {
|
|
|
90891
90892
|
socket.destroy();
|
|
90892
90893
|
return;
|
|
90893
90894
|
}
|
|
90895
|
+
if (socket.destroyed) return;
|
|
90894
90896
|
workerResponseHeaders.set(request$2, response.headers);
|
|
90895
90897
|
nodeWebSocket.handleUpgrade(request$2, socket, head, async (clientWebSocket) => {
|
|
90896
90898
|
coupleWebSocket(clientWebSocket, workerWebSocket);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudflare/vite-plugin",
|
|
3
|
-
"version": "2.0.0-beta.v.
|
|
3
|
+
"version": "2.0.0-beta.v.6",
|
|
4
4
|
"description": "Cloudflare plugin for Vite",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"unenv": "2.0.0-rc.24",
|
|
44
44
|
"ws": "8.21.0",
|
|
45
45
|
"@cloudflare/build-output-utils": "0.9.5",
|
|
46
|
+
"@cloudflare/runtime-types": "0.1.17",
|
|
46
47
|
"@cloudflare/config": "0.28.1",
|
|
47
|
-
"@cloudflare/runtime-types": "0.1.16",
|
|
48
48
|
"@cloudflare/unenv-preset": "2.16.2",
|
|
49
|
-
"miniflare": "5.20261023.
|
|
49
|
+
"miniflare": "5.20261023.1-beta"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@cloudflare/workers-types": "^5.20261023.1",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@cloudflare/cli-shared-helpers": "0.2.9",
|
|
74
74
|
"@cloudflare/containers-shared": "0.23.3",
|
|
75
75
|
"@cloudflare/mock-npm-registry": "0.0.0",
|
|
76
|
-
"@cloudflare/remote-bindings": "0.0.
|
|
76
|
+
"@cloudflare/remote-bindings": "0.0.54",
|
|
77
77
|
"@cloudflare/workers-auth": "0.15.1",
|
|
78
78
|
"@cloudflare/workers-shared": "0.20.2",
|
|
79
79
|
"@cloudflare/workers-tsconfig": "0.0.0",
|