wrangler 4.49.1 → 4.50.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wrangler",
3
- "version": "4.49.1",
3
+ "version": "4.50.0",
4
4
  "description": "Command-line interface for all things Cloudflare Workers",
5
5
  "keywords": [
6
6
  "wrangler",
@@ -55,9 +55,9 @@
55
55
  "path-to-regexp": "6.3.0",
56
56
  "unenv": "2.0.0-rc.24",
57
57
  "workerd": "1.20251118.0",
58
- "@cloudflare/kv-asset-handler": "0.4.0",
59
- "@cloudflare/unenv-preset": "2.7.10",
60
- "miniflare": "4.20251118.0"
58
+ "miniflare": "4.20251118.1",
59
+ "@cloudflare/unenv-preset": "2.7.11",
60
+ "@cloudflare/kv-asset-handler": "0.4.0"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@aws-sdk/client-s3": "^3.721.0",
@@ -149,11 +149,11 @@
149
149
  "@cloudflare/cli": "1.1.3",
150
150
  "@cloudflare/containers-shared": "0.3.0",
151
151
  "@cloudflare/eslint-config-shared": "1.1.0",
152
+ "@cloudflare/pages-shared": "^0.13.88",
152
153
  "@cloudflare/workers-shared": "0.18.8",
153
- "@cloudflare/workflows-shared": "0.3.8",
154
- "@cloudflare/workers-utils": "0.1.2",
155
- "@cloudflare/pages-shared": "^0.13.87",
156
- "@cloudflare/workers-tsconfig": "0.0.0"
154
+ "@cloudflare/workers-tsconfig": "0.0.0",
155
+ "@cloudflare/workers-utils": "0.2.0",
156
+ "@cloudflare/workflows-shared": "0.3.8"
157
157
  },
158
158
  "peerDependencies": {
159
159
  "@cloudflare/workers-types": "^4.20251118.0"
@@ -4496,6 +4496,15 @@ function validateContainerApp(envName, topLevelName, configPath) {
4496
4496
  `"containers.durable_objects" is deprecated. Use the "class_name" field instead.`
4497
4497
  );
4498
4498
  }
4499
+ if ("unsafe" in containerAppOptional) {
4500
+ if (containerAppOptional.unsafe && typeof containerAppOptional.unsafe !== "object" || Array.isArray(containerAppOptional.unsafe)) {
4501
+ diagnostics.errors.push(
4502
+ `The field "containers.unsafe" should be an object but got ${JSON.stringify(
4503
+ typeof containerAppOptional.unsafe
4504
+ )}.`
4505
+ );
4506
+ }
4507
+ }
4499
4508
  validateAdditionalProperties(
4500
4509
  diagnostics,
4501
4510
  field,
@@ -4516,7 +4525,8 @@ function validateContainerApp(envName, topLevelName, configPath) {
4516
4525
  "rollout_step_percentage",
4517
4526
  "rollout_kind",
4518
4527
  "durable_objects",
4519
- "rollout_active_grace_period"
4528
+ "rollout_active_grace_period",
4529
+ "unsafe"
4520
4530
  ]
4521
4531
  );
4522
4532
  if ("configuration" in containerAppOptional) {
@@ -47829,7 +47839,7 @@ var name, version;
47829
47839
  var init_package = __esm({
47830
47840
  "package.json"() {
47831
47841
  name = "wrangler";
47832
- version = "4.49.1";
47842
+ version = "4.50.0";
47833
47843
  }
47834
47844
  });
47835
47845
 
@@ -137261,12 +137271,16 @@ async function apply(args, containerConfig, config) {
137261
137271
  const imageRef = "remoteDigest" in args.imageRef ? prevApp?.configuration.image ?? args.imageRef.remoteDigest : args.imageRef.newTag;
137262
137272
  log(dim("Container application changes\n"));
137263
137273
  const accountId = config.account_id || await getAccountId(config);
137264
- const appConfig = containerConfigToCreateRequest(
137265
- accountId,
137266
- containerConfig,
137267
- imageRef,
137268
- args.durable_object_namespace_id,
137269
- prevApp
137274
+ const appConfig = mergeIfUnsafe(
137275
+ config,
137276
+ containerConfigToCreateRequest(
137277
+ accountId,
137278
+ containerConfig,
137279
+ imageRef,
137280
+ args.durable_object_namespace_id,
137281
+ prevApp
137282
+ ),
137283
+ containerConfig.name
137270
137284
  );
137271
137285
  if (prevApp !== void 0 && prevApp !== null) {
137272
137286
  if (!prevApp.durable_objects?.namespace_id) {
@@ -137288,7 +137302,11 @@ async function apply(args, containerConfig, config) {
137288
137302
  cleanApplicationFromAPI(prevApp, containerConfig, accountId)
137289
137303
  )
137290
137304
  );
137291
- const modifyReq = createApplicationToModifyApplication(appConfig);
137305
+ const modifyReq = mergeIfUnsafe(
137306
+ config,
137307
+ createApplicationToModifyApplication(appConfig),
137308
+ appConfig.name
137309
+ );
137292
137310
  const nowContainer = mergeDeep2(
137293
137311
  normalisedPrevApp,
137294
137312
  sortObjectRecursive(modifyReq)
@@ -137342,6 +137360,19 @@ async function apply(args, containerConfig, config) {
137342
137360
  newline();
137343
137361
  endSection("Applied changes");
137344
137362
  }
137363
+ function mergeIfUnsafe(fullConfig, containerConfig, name2) {
137364
+ const unsafeContainerConfig = fullConfig.containers?.find((original) => {
137365
+ return original.name === name2 && original.unsafe !== void 0;
137366
+ });
137367
+ if (unsafeContainerConfig) {
137368
+ return mergeDeep2(
137369
+ containerConfig,
137370
+ unsafeContainerConfig.unsafe
137371
+ );
137372
+ } else {
137373
+ return containerConfig;
137374
+ }
137375
+ }
137345
137376
  function formatError(err) {
137346
137377
  try {
137347
137378
  const maybeError = JSON.parse(err.body.error);
@@ -137405,6 +137436,7 @@ var init_deploy = __esm({
137405
137436
  __name(observabilityToConfiguration, "observabilityToConfiguration");
137406
137437
  __name(containerConfigToCreateRequest, "containerConfigToCreateRequest");
137407
137438
  __name(apply, "apply");
137439
+ __name(mergeIfUnsafe, "mergeIfUnsafe");
137408
137440
  __name(formatError, "formatError");
137409
137441
  doAction = /* @__PURE__ */ __name(async (action) => {
137410
137442
  if (action.action === "create") {
@@ -181054,6 +181086,7 @@ var init_sveltekit = __esm({
181054
181086
  "sv",
181055
181087
  "add",
181056
181088
  "--no-install",
181089
+ "--no-git-check",
181057
181090
  "sveltekit-adapter=adapter:cloudflare"
181058
181091
  ],
181059
181092
  {