wrangler 4.11.0 → 4.11.1
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 +5 -5
- package/wrangler-dist/cli.d.ts +6 -0
- package/wrangler-dist/cli.js +13 -16
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "wrangler",
|
3
|
-
"version": "4.11.
|
3
|
+
"version": "4.11.1",
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
5
5
|
"keywords": [
|
6
6
|
"wrangler",
|
@@ -56,8 +56,8 @@
|
|
56
56
|
"path-to-regexp": "6.3.0",
|
57
57
|
"unenv": "2.0.0-rc.15",
|
58
58
|
"workerd": "1.20250410.0",
|
59
|
-
"
|
60
|
-
"
|
59
|
+
"miniflare": "4.20250410.1",
|
60
|
+
"@cloudflare/kv-asset-handler": "0.4.0"
|
61
61
|
},
|
62
62
|
"devDependencies": {
|
63
63
|
"@aws-sdk/client-s3": "^3.721.0",
|
@@ -137,8 +137,8 @@
|
|
137
137
|
"yargs": "^17.7.2",
|
138
138
|
"@cloudflare/cli": "1.1.1",
|
139
139
|
"@cloudflare/eslint-config-worker": "1.1.0",
|
140
|
-
"@cloudflare/pages-shared": "^0.13.
|
141
|
-
"@cloudflare/workers-shared": "0.17.
|
140
|
+
"@cloudflare/pages-shared": "^0.13.28",
|
141
|
+
"@cloudflare/workers-shared": "0.17.2",
|
142
142
|
"@cloudflare/workers-tsconfig": "0.0.0"
|
143
143
|
},
|
144
144
|
"peerDependencies": {
|
package/wrangler-dist/cli.d.ts
CHANGED
@@ -76,6 +76,7 @@ declare type AssetConfig = z.infer<typeof AssetConfigSchema>;
|
|
76
76
|
declare const AssetConfigSchema: z.ZodObject<{
|
77
77
|
account_id: z.ZodOptional<z.ZodNumber>;
|
78
78
|
script_id: z.ZodOptional<z.ZodNumber>;
|
79
|
+
debug: z.ZodOptional<z.ZodBoolean>;
|
79
80
|
compatibility_date: z.ZodOptional<z.ZodString>;
|
80
81
|
compatibility_flags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
81
82
|
html_handling: z.ZodOptional<z.ZodEnum<["auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none"]>>;
|
@@ -156,6 +157,7 @@ declare const AssetConfigSchema: z.ZodObject<{
|
|
156
157
|
}, "strip", z.ZodTypeAny, {
|
157
158
|
account_id?: number;
|
158
159
|
script_id?: number;
|
160
|
+
debug?: boolean;
|
159
161
|
compatibility_date?: string;
|
160
162
|
compatibility_flags?: string[];
|
161
163
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
@@ -182,6 +184,7 @@ declare const AssetConfigSchema: z.ZodObject<{
|
|
182
184
|
}, {
|
183
185
|
account_id?: number;
|
184
186
|
script_id?: number;
|
187
|
+
debug?: boolean;
|
185
188
|
compatibility_date?: string;
|
186
189
|
compatibility_flags?: string[];
|
187
190
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
@@ -26007,16 +26010,19 @@ declare type RouterConfig = z.infer<typeof RouterConfigSchema>;
|
|
26007
26010
|
declare const RouterConfigSchema: z.ZodObject<{
|
26008
26011
|
account_id: z.ZodOptional<z.ZodNumber>;
|
26009
26012
|
script_id: z.ZodOptional<z.ZodNumber>;
|
26013
|
+
debug: z.ZodOptional<z.ZodBoolean>;
|
26010
26014
|
invoke_user_worker_ahead_of_assets: z.ZodOptional<z.ZodBoolean>;
|
26011
26015
|
has_user_worker: z.ZodOptional<z.ZodBoolean>;
|
26012
26016
|
}, "strip", z.ZodTypeAny, {
|
26013
26017
|
account_id?: number;
|
26014
26018
|
script_id?: number;
|
26019
|
+
debug?: boolean;
|
26015
26020
|
invoke_user_worker_ahead_of_assets?: boolean;
|
26016
26021
|
has_user_worker?: boolean;
|
26017
26022
|
}, {
|
26018
26023
|
account_id?: number;
|
26019
26024
|
script_id?: number;
|
26025
|
+
debug?: boolean;
|
26020
26026
|
invoke_user_worker_ahead_of_assets?: boolean;
|
26021
26027
|
has_user_worker?: boolean;
|
26022
26028
|
}>;
|
package/wrangler-dist/cli.js
CHANGED
@@ -81185,7 +81185,7 @@ var import_undici3 = __toESM(require_undici());
|
|
81185
81185
|
|
81186
81186
|
// package.json
|
81187
81187
|
var name = "wrangler";
|
81188
|
-
var version = "4.11.
|
81188
|
+
var version = "4.11.1";
|
81189
81189
|
|
81190
81190
|
// src/environment-variables/misc-variables.ts
|
81191
81191
|
init_import_meta_url();
|
@@ -98737,7 +98737,8 @@ var z2 = /* @__PURE__ */ Object.freeze({
|
|
98737
98737
|
// ../workers-shared/utils/types.ts
|
98738
98738
|
var InternalConfigSchema = z2.object({
|
98739
98739
|
account_id: z2.number().optional(),
|
98740
|
-
script_id: z2.number().optional()
|
98740
|
+
script_id: z2.number().optional(),
|
98741
|
+
debug: z2.boolean().optional()
|
98741
98742
|
});
|
98742
98743
|
var RouterConfigSchema = z2.object({
|
98743
98744
|
invoke_user_worker_ahead_of_assets: z2.boolean().optional(),
|
@@ -101113,7 +101114,7 @@ __name(getDeviceId, "getDeviceId");
|
|
101113
101114
|
// src/metrics/metrics-dispatcher.ts
|
101114
101115
|
var SPARROW_URL = "https://sparrow.cloudflare.com";
|
101115
101116
|
function getMetricsDispatcher(options33) {
|
101116
|
-
const SPARROW_SOURCE_KEY = "";
|
101117
|
+
const SPARROW_SOURCE_KEY = "50598e014ed44c739ec8074fdc16057c";
|
101117
101118
|
const requests = [];
|
101118
101119
|
const wranglerVersion = getWranglerVersion();
|
101119
101120
|
const amplitude_session_id = Date.now();
|
@@ -117501,9 +117502,9 @@ init_import_meta_url();
|
|
117501
117502
|
var import_node_assert20 = __toESM(require("node:assert"));
|
117502
117503
|
var import_undici11 = __toESM(require_undici());
|
117503
117504
|
async function runSearch(searchTerm) {
|
117504
|
-
const id =
|
117505
|
+
const id = "8MU1G3QO9P";
|
117505
117506
|
const index = "developers-cloudflare2";
|
117506
|
-
const key =
|
117507
|
+
const key = "045e8dbec8c137a52f0f56e196d7abe0";
|
117507
117508
|
const params = new URLSearchParams({
|
117508
117509
|
query: searchTerm,
|
117509
117510
|
hitsPerPage: "1",
|
@@ -143439,10 +143440,10 @@ var disabledDefaultIntegrations = [
|
|
143439
143440
|
// Request data to Wrangler's HTTP servers may contain PII
|
143440
143441
|
];
|
143441
143442
|
function setupSentry() {
|
143442
|
-
if (
|
143443
|
+
if (true) {
|
143443
143444
|
init({
|
143444
143445
|
release: `wrangler@${version}`,
|
143445
|
-
dsn:
|
143446
|
+
dsn: "https://9edbb8417b284aa2bbead9b4c318918b@sentry10.cfdata.org/583",
|
143446
143447
|
transport: makeSentry10Transport,
|
143447
143448
|
integrations(defaultIntegrations2) {
|
143448
143449
|
return defaultIntegrations2.filter(
|
@@ -143474,7 +143475,7 @@ function setupSentry() {
|
|
143474
143475
|
}
|
143475
143476
|
__name(setupSentry, "setupSentry");
|
143476
143477
|
function addBreadcrumb2(message, level = "log") {
|
143477
|
-
if (
|
143478
|
+
if (true) {
|
143478
143479
|
addBreadcrumb({
|
143479
143480
|
message,
|
143480
143481
|
level
|
@@ -143483,7 +143484,7 @@ function addBreadcrumb2(message, level = "log") {
|
|
143483
143484
|
}
|
143484
143485
|
__name(addBreadcrumb2, "addBreadcrumb");
|
143485
143486
|
async function captureGlobalException(e7) {
|
143486
|
-
if (
|
143487
|
+
if (true) {
|
143487
143488
|
sentryReportingAllowed = await confirm(
|
143488
143489
|
"Would you like to report this error to Cloudflare? Wrangler's output and the error details will be shared with the Wrangler team to help us diagnose and fix the issue.",
|
143489
143490
|
{ fallbackValue: false }
|
@@ -143498,7 +143499,7 @@ async function captureGlobalException(e7) {
|
|
143498
143499
|
}
|
143499
143500
|
__name(captureGlobalException, "captureGlobalException");
|
143500
143501
|
async function closeSentry() {
|
143501
|
-
if (
|
143502
|
+
if (true) {
|
143502
143503
|
await close();
|
143503
143504
|
}
|
143504
143505
|
}
|
@@ -144038,7 +144039,7 @@ var typesCommand = createCommand({
|
|
144038
144039
|
}
|
144039
144040
|
}
|
144040
144041
|
const entrypointFormat = entrypoint?.format ?? "modules";
|
144041
|
-
const header = [];
|
144042
|
+
const header = ["/* eslint-disable */"];
|
144042
144043
|
const content = [];
|
144043
144044
|
if (args.includeEnv) {
|
144044
144045
|
logger.log(`Generating project types...
|
@@ -144423,12 +144424,8 @@ var checkPath = /* @__PURE__ */ __name((path69) => {
|
|
144423
144424
|
}, "checkPath");
|
144424
144425
|
function generateTypeStrings(formatType, envInterface, envTypeStructure, modulesTypeStructure, stringKeys, compatibilityDate, compatibilityFlags) {
|
144425
144426
|
let baseContent = "";
|
144426
|
-
let eslintDisable = "";
|
144427
144427
|
let processEnv = "";
|
144428
144428
|
if (formatType === "modules") {
|
144429
|
-
if (envTypeStructure.length === 0) {
|
144430
|
-
eslintDisable = " // eslint-disable-next-line @typescript-eslint/no-empty-interface,@typescript-eslint/no-empty-object-type\n";
|
144431
|
-
}
|
144432
144429
|
if (isProcessEnvPopulated(compatibilityDate, compatibilityFlags) && stringKeys.length > 0) {
|
144433
144430
|
processEnv = `
|
144434
144431
|
type StringifyValues<EnvType extends Record<string, unknown>> = {
|
@@ -144439,7 +144436,7 @@ declare namespace NodeJS {
|
|
144439
144436
|
}`;
|
144440
144437
|
}
|
144441
144438
|
baseContent = `declare namespace Cloudflare {
|
144442
|
-
|
144439
|
+
interface Env {${envTypeStructure.map((value) => `
|
144443
144440
|
${value}`).join("")}
|
144444
144441
|
}
|
144445
144442
|
}
|