wrangler 3.114.9 → 3.114.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/package.json +3 -3
- package/wrangler-dist/cli.js +35 -51
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "wrangler",
|
3
|
-
"version": "3.114.
|
3
|
+
"version": "3.114.10",
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
5
5
|
"keywords": [
|
6
6
|
"wrangler",
|
@@ -137,10 +137,10 @@
|
|
137
137
|
"xdg-app-paths": "^8.3.0",
|
138
138
|
"xxhash-wasm": "^1.0.1",
|
139
139
|
"yargs": "^17.7.2",
|
140
|
-
"@cloudflare/eslint-config-worker": "1.1.0",
|
141
|
-
"@cloudflare/workers-shared": "0.15.1",
|
142
140
|
"@cloudflare/cli": "1.1.1",
|
141
|
+
"@cloudflare/eslint-config-worker": "1.1.0",
|
143
142
|
"@cloudflare/pages-shared": "0.13.18",
|
143
|
+
"@cloudflare/workers-shared": "0.15.1",
|
144
144
|
"@cloudflare/workers-tsconfig": "0.0.0"
|
145
145
|
},
|
146
146
|
"peerDependencies": {
|
package/wrangler-dist/cli.js
CHANGED
@@ -81450,7 +81450,7 @@ var import_undici3 = __toESM(require_undici());
|
|
81450
81450
|
|
81451
81451
|
// package.json
|
81452
81452
|
var name = "wrangler";
|
81453
|
-
var version = "3.114.
|
81453
|
+
var version = "3.114.10";
|
81454
81454
|
|
81455
81455
|
// src/environment-variables/misc-variables.ts
|
81456
81456
|
init_import_meta_url();
|
@@ -81561,9 +81561,6 @@ var getBuildConditionsFromEnv = getEnvironmentVariableFactory({
|
|
81561
81561
|
var getBuildPlatformFromEnv = getEnvironmentVariableFactory({
|
81562
81562
|
variableName: "WRANGLER_BUILD_PLATFORM"
|
81563
81563
|
});
|
81564
|
-
var getUnenvResolvePathsFromEnv = getEnvironmentVariableFactory({
|
81565
|
-
variableName: "WRANGLER_UNENV_RESOLVE_PATHS"
|
81566
|
-
});
|
81567
81564
|
var getRegistryPath = getEnvironmentVariableFactory({
|
81568
81565
|
variableName: "WRANGLER_REGISTRY_PATH",
|
81569
81566
|
defaultValue() {
|
@@ -103719,16 +103716,16 @@ var import_node_module2 = require("node:module");
|
|
103719
103716
|
var import_node_path26 = __toESM(require("node:path"));
|
103720
103717
|
var REQUIRED_NODE_BUILT_IN_NAMESPACE = "node-built-in-modules";
|
103721
103718
|
var REQUIRED_UNENV_ALIAS_NAMESPACE = "required-unenv-alias";
|
103722
|
-
|
103723
|
-
const { defineEnv } = await import("unenv");
|
103724
|
-
const { cloudflare } = await import("@cloudflare/unenv-preset");
|
103725
|
-
const { alias, inject, external, polyfill: polyfill2 } = defineEnv({
|
103726
|
-
presets: [cloudflare],
|
103727
|
-
npmShims: true
|
103728
|
-
}).env;
|
103719
|
+
function nodejsHybridPlugin() {
|
103729
103720
|
return {
|
103730
103721
|
name: "hybrid-nodejs_compat",
|
103731
|
-
setup(build5) {
|
103722
|
+
async setup(build5) {
|
103723
|
+
const { defineEnv } = await import("unenv");
|
103724
|
+
const { cloudflare } = await import("@cloudflare/unenv-preset");
|
103725
|
+
const { alias, inject, external, polyfill: polyfill2 } = defineEnv({
|
103726
|
+
presets: [cloudflare],
|
103727
|
+
npmShims: true
|
103728
|
+
}).env;
|
103732
103729
|
errorOnServiceWorkerFormat(build5);
|
103733
103730
|
handleRequireCallsToNodeJSBuiltins(build5);
|
103734
103731
|
handleUnenvAliasedPackages(build5, alias, external);
|
@@ -103990,9 +103987,8 @@ var standardURLPlugin = /* @__PURE__ */ __name(() => ({
|
|
103990
103987
|
}), "standardURLPlugin");
|
103991
103988
|
|
103992
103989
|
// src/deployment-bundle/esbuild-plugins/nodejs-plugins.ts
|
103993
|
-
|
103994
|
-
mode
|
103995
|
-
unenvResolvePaths
|
103990
|
+
function getNodeJSCompatPlugins({
|
103991
|
+
mode
|
103996
103992
|
}) {
|
103997
103993
|
switch (mode) {
|
103998
103994
|
case "als":
|
@@ -104007,7 +104003,7 @@ async function getNodeJSCompatPlugins({
|
|
104007
104003
|
case "v1":
|
104008
104004
|
return [nodejsCompatPlugin(mode)];
|
104009
104005
|
case "v2":
|
104010
|
-
return [
|
104006
|
+
return [nodejsHybridPlugin()];
|
104011
104007
|
case null:
|
104012
104008
|
return [nodejsCompatPlugin(mode)];
|
104013
104009
|
}
|
@@ -104216,7 +104212,6 @@ async function bundleWorker(entry, destination, {
|
|
104216
104212
|
});
|
104217
104213
|
}
|
104218
104214
|
};
|
104219
|
-
const unenvResolvePaths = getUnenvResolvePathsFromEnv()?.split(",");
|
104220
104215
|
const buildOptions2 = {
|
104221
104216
|
// Don't use entryFile here as the file may have been changed when applying the middleware
|
104222
104217
|
entryPoints: [entry.file],
|
@@ -104256,9 +104251,8 @@ async function bundleWorker(entry, destination, {
|
|
104256
104251
|
plugins: [
|
104257
104252
|
aliasPlugin,
|
104258
104253
|
moduleCollector.plugin,
|
104259
|
-
...
|
104260
|
-
mode: nodejsCompatMode ?? null
|
104261
|
-
unenvResolvePaths
|
104254
|
+
...getNodeJSCompatPlugins({
|
104255
|
+
mode: nodejsCompatMode ?? null
|
104262
104256
|
}),
|
104263
104257
|
cloudflareInternalPlugin,
|
104264
104258
|
buildResultPlugin,
|
@@ -104952,6 +104946,23 @@ function logBuildOutput(nodejsCompatMode, onStart, updateBundle) {
|
|
104952
104946
|
}
|
104953
104947
|
__name(logBuildOutput, "logBuildOutput");
|
104954
104948
|
|
104949
|
+
// src/deployment-bundle/no-bundle-worker.ts
|
104950
|
+
init_import_meta_url();
|
104951
|
+
async function noBundleWorker(entry, rules, outDir) {
|
104952
|
+
const modules = await findAdditionalModules(entry, rules);
|
104953
|
+
if (outDir) {
|
104954
|
+
await writeAdditionalModules(modules, outDir);
|
104955
|
+
}
|
104956
|
+
const bundleType = getBundleType(entry.format, entry.file);
|
104957
|
+
return {
|
104958
|
+
modules,
|
104959
|
+
dependencies: {},
|
104960
|
+
resolvedEntryPointPath: entry.file,
|
104961
|
+
bundleType
|
104962
|
+
};
|
104963
|
+
}
|
104964
|
+
__name(noBundleWorker, "noBundleWorker");
|
104965
|
+
|
104955
104966
|
// src/deployment-bundle/node-compat.ts
|
104956
104967
|
init_import_meta_url();
|
104957
104968
|
var import_miniflare16 = require("miniflare");
|
@@ -111376,7 +111387,7 @@ async function fillOpenAPIConfiguration(config, json) {
|
|
111376
111387
|
if (json && err instanceof ApiError) {
|
111377
111388
|
message = JSON.stringify(err);
|
111378
111389
|
}
|
111379
|
-
crash("
|
111390
|
+
crash("Loading account failed: " + message);
|
111380
111391
|
}
|
111381
111392
|
}
|
111382
111393
|
__name(fillOpenAPIConfiguration, "fillOpenAPIConfiguration");
|
@@ -123702,7 +123713,7 @@ var telemetryStatusCommand = createCommand({
|
|
123702
123713
|
logTelemetryStatus(savedConfig.permission?.enabled ?? true);
|
123703
123714
|
}
|
123704
123715
|
logger.log(
|
123705
|
-
"To configure telemetry globally on this machine, you can run `wrangler telemetry disable / enable`.\nYou can override this for individual projects with the environment variable `WRANGLER_SEND_METRICS=true/false`.\nLearn more at https://github.com/cloudflare/workers-sdk/tree/main/telemetry.md\n"
|
123716
|
+
"To configure telemetry globally on this machine, you can run `wrangler telemetry disable / enable`.\nYou can override this for individual projects with the environment variable `WRANGLER_SEND_METRICS=true/false`.\nLearn more at https://github.com/cloudflare/workers-sdk/tree/main/packages/wrangler/telemetry.md\n"
|
123706
123717
|
);
|
123707
123718
|
}
|
123708
123719
|
});
|
@@ -151015,19 +151026,6 @@ function formatTime3(duration) {
|
|
151015
151026
|
return `(${(duration / 1e3).toFixed(2)} sec)`;
|
151016
151027
|
}
|
151017
151028
|
__name(formatTime3, "formatTime");
|
151018
|
-
async function noBundleWorker(entry, rules, outDir) {
|
151019
|
-
const modules = await findAdditionalModules(entry, rules);
|
151020
|
-
if (outDir) {
|
151021
|
-
await writeAdditionalModules(modules, outDir);
|
151022
|
-
}
|
151023
|
-
return {
|
151024
|
-
modules,
|
151025
|
-
dependencies: {},
|
151026
|
-
resolvedEntryPointPath: entry.file,
|
151027
|
-
bundleType: getBundleType(entry.format)
|
151028
|
-
};
|
151029
|
-
}
|
151030
|
-
__name(noBundleWorker, "noBundleWorker");
|
151031
151029
|
|
151032
151030
|
// src/versions/view.ts
|
151033
151031
|
init_import_meta_url();
|
@@ -154020,7 +154018,7 @@ See https://developers.cloudflare.com/workers/platform/compatibility-dates for m
|
|
154020
154018
|
resolvedEntryPointPath,
|
154021
154019
|
bundleType,
|
154022
154020
|
...bundle
|
154023
|
-
} = props.noBundle ? await
|
154021
|
+
} = props.noBundle ? await noBundleWorker(props.entry, props.rules, props.outDir) : await bundleWorker(
|
154024
154022
|
props.entry,
|
154025
154023
|
typeof destination === "string" ? destination : destination.path,
|
154026
154024
|
{
|
@@ -154565,20 +154563,6 @@ async function updateQueueConsumers(scriptName, config) {
|
|
154565
154563
|
return updateConsumers;
|
154566
154564
|
}
|
154567
154565
|
__name(updateQueueConsumers, "updateQueueConsumers");
|
154568
|
-
async function noBundleWorker2(entry, rules, outDir) {
|
154569
|
-
const modules = await findAdditionalModules(entry, rules);
|
154570
|
-
if (outDir) {
|
154571
|
-
await writeAdditionalModules(modules, outDir);
|
154572
|
-
}
|
154573
|
-
const bundleType = getBundleType(entry.format, entry.file);
|
154574
|
-
return {
|
154575
|
-
modules,
|
154576
|
-
dependencies: {},
|
154577
|
-
resolvedEntryPointPath: entry.file,
|
154578
|
-
bundleType
|
154579
|
-
};
|
154580
|
-
}
|
154581
|
-
__name(noBundleWorker2, "noBundleWorker");
|
154582
154566
|
|
154583
154567
|
// src/assets.ts
|
154584
154568
|
init_hash();
|
@@ -156575,7 +156559,7 @@ var BundlerController = class extends Controller {
|
|
156575
156559
|
rules: config.build.moduleRules
|
156576
156560
|
});
|
156577
156561
|
const bindings = (await convertBindingsToCfWorkerInitBindings(config.bindings)).bindings;
|
156578
|
-
const bundleResult = !config.build?.bundle ? await
|
156562
|
+
const bundleResult = !config.build?.bundle ? await noBundleWorker(
|
156579
156563
|
entry,
|
156580
156564
|
config.build.moduleRules,
|
156581
156565
|
this.#tmpDir.path
|