@cloudflare/vite-plugin 1.68.0 → 1.69.0

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.
@@ -1,16 +1,16 @@
1
- import { r as __name } from "./chunk-U6NEESU5-WjWnfQLn.mjs";
1
+ import { r as __name } from "./chunk-U6NEESU5-BwoIZAaT.mjs";
2
2
  import { createRequire } from "node:module";
3
3
  import fs2 from "node:fs";
4
4
  import path__default from "node:path";
5
5
  import os from "node:os";
6
6
  import { promisify } from "node:util";
7
- import process5 from "node:process";
7
+ import process from "node:process";
8
8
  import { fileURLToPath } from "node:url";
9
9
  import { Buffer } from "node:buffer";
10
- import fs4, { constants as constants$1 } from "node:fs/promises";
10
+ import fs, { constants as constants$1 } from "node:fs/promises";
11
11
  import childProcess, { execFile } from "node:child_process";
12
12
 
13
- //#region ../../node_modules/.pnpm/@cloudflare+workers-utils@0.51.1_vitest@5.0.4_@opentelemetry+api@1.9.1_@types+node@22.1_c9b039e4a760058050f2dc3711b5575a/node_modules/@cloudflare/workers-utils/dist/open-PCXX3ZDZ.mjs
13
+ //#region ../../node_modules/.pnpm/@cloudflare+workers-utils@0.53.0_vitest@5.0.4_@opentelemetry+api@1.9.1_@types+node@22.1_dccf70b6c9730ef30ad05bcacf8c8eff/node_modules/@cloudflare/workers-utils/dist/open-PCXX3ZDZ.mjs
14
14
  createRequire(import.meta.url || (typeof __filename === "string" ? __filename : "/"));
15
15
  var isDockerCached;
16
16
  function hasDockerEnv() {
@@ -50,7 +50,7 @@ function isInsideContainer() {
50
50
  }
51
51
  __name(isInsideContainer, "isInsideContainer");
52
52
  var isWsl = /* @__PURE__ */ __name(() => {
53
- if (process5.platform !== "linux") return false;
53
+ if (process.platform !== "linux") return false;
54
54
  if (os.release().toLowerCase().includes("microsoft")) {
55
55
  if (isInsideContainer()) return false;
56
56
  return true;
@@ -61,9 +61,9 @@ var isWsl = /* @__PURE__ */ __name(() => {
61
61
  return false;
62
62
  }
63
63
  }, "isWsl");
64
- var is_wsl_default = process5.env.__IS_WSL_TEST__ ? isWsl : isWsl();
64
+ var is_wsl_default = process.env.__IS_WSL_TEST__ ? isWsl : isWsl();
65
65
  var execFile$1 = promisify(childProcess.execFile);
66
- var powerShellPath = /* @__PURE__ */ __name(() => `${process5.env.SYSTEMROOT || process5.env.windir || String.raw`C:\Windows`}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`, "powerShellPath");
66
+ var powerShellPath = /* @__PURE__ */ __name(() => `${process.env.SYSTEMROOT || process.env.windir || String.raw`C:\Windows`}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`, "powerShellPath");
67
67
  var executePowerShell = /* @__PURE__ */ __name(async (command, options = {}) => {
68
68
  const { powerShellPath: psPath,...execFileOptions } = options;
69
69
  const encodedCommand = executePowerShell.encodeCommand(command);
@@ -99,11 +99,11 @@ var wslDrivesMountPoint = /* @__PURE__ */ (() => {
99
99
  const configFilePath = "/etc/wsl.conf";
100
100
  let isConfigFileExists = false;
101
101
  try {
102
- await fs4.access(configFilePath, constants$1.F_OK);
102
+ await fs.access(configFilePath, constants$1.F_OK);
103
103
  isConfigFileExists = true;
104
104
  } catch {}
105
105
  if (!isConfigFileExists) return defaultMountPoint;
106
- const parsedMountPoint = parseMountPointFromConfig(await fs4.readFile(configFilePath, { encoding: "utf8" }));
106
+ const parsedMountPoint = parseMountPointFromConfig(await fs.readFile(configFilePath, { encoding: "utf8" }));
107
107
  if (parsedMountPoint === void 0) return defaultMountPoint;
108
108
  mountPoint = parsedMountPoint;
109
109
  mountPoint = mountPoint.endsWith("/") ? mountPoint : `${mountPoint}/`;
@@ -118,7 +118,7 @@ var canAccessPowerShell = /* @__PURE__ */ __name(async () => {
118
118
  canAccessPowerShellPromise ??= (async () => {
119
119
  try {
120
120
  const psPath = await powerShellPath2();
121
- await fs4.access(psPath, constants$1.X_OK);
121
+ await fs.access(psPath, constants$1.X_OK);
122
122
  return true;
123
123
  } catch {
124
124
  return false;
@@ -163,7 +163,7 @@ function defineLazyProperty(object, propertyName, valueGetter) {
163
163
  __name(defineLazyProperty, "defineLazyProperty");
164
164
  var execFileAsync = promisify(execFile);
165
165
  async function defaultBrowserId() {
166
- if (process5.platform !== "darwin") throw new Error("macOS only");
166
+ if (process.platform !== "darwin") throw new Error("macOS only");
167
167
  const { stdout: stdout$1 } = await execFileAsync("defaults", [
168
168
  "read",
169
169
  "com.apple.LaunchServices/com.apple.launchservices.secure",
@@ -176,7 +176,7 @@ async function defaultBrowserId() {
176
176
  __name(defaultBrowserId, "defaultBrowserId");
177
177
  var execFileAsync2 = promisify(execFile);
178
178
  async function runAppleScript(script, { humanReadableOutput = true, signal } = {}) {
179
- if (process5.platform !== "darwin") throw new Error("macOS only");
179
+ if (process.platform !== "darwin") throw new Error("macOS only");
180
180
  const outputArguments = humanReadableOutput ? [] : ["-ss"];
181
181
  const execOptions = {};
182
182
  if (signal) execOptions.signal = signal;
@@ -284,14 +284,14 @@ __name(defaultBrowser, "defaultBrowser");
284
284
  var execFileAsync4 = promisify(execFile);
285
285
  var titleize = /* @__PURE__ */ __name((string) => string.toLowerCase().replaceAll(/(?:^|\s|-)\S/g, (x) => x.toUpperCase()), "titleize");
286
286
  async function defaultBrowser2() {
287
- if (process5.platform === "darwin") {
287
+ if (process.platform === "darwin") {
288
288
  const id = await defaultBrowserId();
289
289
  return {
290
290
  name: await bundleName(id),
291
291
  id
292
292
  };
293
293
  }
294
- if (process5.platform === "linux") {
294
+ if (process.platform === "linux") {
295
295
  const { stdout: stdout$1 } = await execFileAsync4("xdg-mime", [
296
296
  "query",
297
297
  "default",
@@ -303,15 +303,15 @@ async function defaultBrowser2() {
303
303
  id
304
304
  };
305
305
  }
306
- if (process5.platform === "win32") return defaultBrowser();
306
+ if (process.platform === "win32") return defaultBrowser();
307
307
  throw new Error("Only macOS, Linux, and Windows are supported");
308
308
  }
309
309
  __name(defaultBrowser2, "defaultBrowser");
310
- var is_in_ssh_default = Boolean(process5.env.SSH_CONNECTION || process5.env.SSH_CLIENT || process5.env.SSH_TTY);
310
+ var is_in_ssh_default = Boolean(process.env.SSH_CONNECTION || process.env.SSH_CLIENT || process.env.SSH_TTY);
311
311
  var fallbackAttemptSymbol = Symbol("fallbackAttempt");
312
312
  var __dirname$1 = import.meta.url ? path__default.dirname(fileURLToPath(import.meta.url)) : "";
313
313
  var localXdgOpenPath = path__default.join(__dirname$1, "xdg-open");
314
- var { platform, arch: arch$1 } = process5;
314
+ var { platform, arch: arch$1 } = process;
315
315
  var tryEachApp = /* @__PURE__ */ __name(async (apps2, opener) => {
316
316
  if (apps2.length === 0) return;
317
317
  const errors = [];
@@ -421,10 +421,10 @@ var baseOpen = /* @__PURE__ */ __name(async (options) => {
421
421
  const isBundled = !__dirname$1 || __dirname$1 === "/";
422
422
  let exeLocalXdgOpen = false;
423
423
  try {
424
- await fs4.access(localXdgOpenPath, constants$1.X_OK);
424
+ await fs.access(localXdgOpenPath, constants$1.X_OK);
425
425
  exeLocalXdgOpen = true;
426
426
  } catch {}
427
- command = process5.versions.electron ?? (platform === "android" || isBundled || !exeLocalXdgOpen) ? "xdg-open" : localXdgOpenPath;
427
+ command = process.versions.electron ?? (platform === "android" || isBundled || !exeLocalXdgOpen) ? "xdg-open" : localXdgOpenPath;
428
428
  }
429
429
  if (appArguments.length > 0) cliArguments.push(...appArguments);
430
430
  if (!options.wait) {
@@ -1,7 +1,7 @@
1
1
  //#region package.json
2
2
  var package_default = {
3
3
  name: "@cloudflare/vite-plugin",
4
- version: "1.68.0",
4
+ version: "1.69.0",
5
5
  description: "Cloudflare plugin for Vite",
6
6
  keywords: [
7
7
  "cloudflare",
@@ -39,19 +39,19 @@ var package_default = {
39
39
  },
40
40
  dependencies: {
41
41
  "@cloudflare/unenv-preset": "2.16.2",
42
- "miniflare": "5.20261103.0-beta",
42
+ "miniflare": "5.20261110.0-beta",
43
43
  "unenv": "2.0.0-rc.24",
44
- "wrangler": "4.157.0",
44
+ "wrangler": "4.160.0",
45
45
  "ws": "8.22.0"
46
46
  },
47
47
  devDependencies: {
48
- "@cloudflare/containers-shared": "0.23.8",
48
+ "@cloudflare/containers-shared": "0.25.0",
49
49
  "@cloudflare/mock-npm-registry": "workspace:*",
50
50
  "@cloudflare/remote-bindings": "workspace:*",
51
51
  "@cloudflare/workers-shared": "workspace:*",
52
52
  "@cloudflare/workers-tsconfig": "workspace:*",
53
- "@cloudflare/workers-types": "5.20261103.1",
54
- "@cloudflare/workers-utils": "0.51.1",
53
+ "@cloudflare/workers-types": "5.20261110.1",
54
+ "@cloudflare/workers-utils": "0.53.0",
55
55
  "@remix-run/node-fetch-server": "1.0.0",
56
56
  "@types/node": "22.15.17",
57
57
  "@types/semver": "7.8.0",
@@ -75,7 +75,7 @@ var package_default = {
75
75
  },
76
76
  peerDependencies: {
77
77
  "vite": "^6.1.0 || ^7.0.0 || ^8.0.0",
78
- "wrangler": "^4.157.0"
78
+ "wrangler": "^4.160.0"
79
79
  },
80
80
  "workers-sdk": { "prerelease": true }
81
81
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudflare/vite-plugin",
3
- "version": "1.68.0",
3
+ "version": "1.69.0",
4
4
  "description": "Cloudflare plugin for Vite",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -37,15 +37,15 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@cloudflare/unenv-preset": "2.16.2",
40
- "miniflare": "5.20261103.0-beta",
40
+ "miniflare": "5.20261110.0-beta",
41
41
  "unenv": "2.0.0-rc.24",
42
- "wrangler": "4.157.0",
42
+ "wrangler": "4.160.0",
43
43
  "ws": "8.22.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@cloudflare/containers-shared": "0.23.8",
47
- "@cloudflare/workers-types": "5.20261103.1",
48
- "@cloudflare/workers-utils": "0.51.1",
46
+ "@cloudflare/containers-shared": "0.25.0",
47
+ "@cloudflare/workers-types": "5.20261110.1",
48
+ "@cloudflare/workers-utils": "0.53.0",
49
49
  "@remix-run/node-fetch-server": "1.0.0",
50
50
  "@types/node": "22.15.17",
51
51
  "@types/semver": "7.8.0",
@@ -66,14 +66,14 @@
66
66
  "vite": "8.3.4",
67
67
  "vite-legacy": "npm:vite@7.1.12",
68
68
  "vitest": "5.0.4",
69
- "@cloudflare/remote-bindings": "0.0.47",
70
69
  "@cloudflare/mock-npm-registry": "0.0.0",
70
+ "@cloudflare/workers-shared": "0.20.1",
71
71
  "@cloudflare/workers-tsconfig": "0.0.0",
72
- "@cloudflare/workers-shared": "0.20.1"
72
+ "@cloudflare/remote-bindings": "0.0.47"
73
73
  },
74
74
  "peerDependencies": {
75
75
  "vite": "^6.1.0 || ^7.0.0 || ^8.0.0",
76
- "wrangler": "^4.157.0"
76
+ "wrangler": "^4.160.0"
77
77
  },
78
78
  "workers-sdk": {
79
79
  "prerelease": true