You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove the wrangler deploy's --x-remote-diff-check experimental flag (#11416)
* Remove the `wrangler deploy`'s `--x-remote-diff-check` experimental flag
* Update changeset
Co-authored-by: Edmund Hung <edmund@cloudflare.com>
---------
Co-authored-by: Edmund Hung <edmund@cloudflare.com>
Remove the `wrangler deploy`'s `--x-remote-diff-check` experimental flag
6
+
7
+
The remote diffing feature has been enabled by default for a while and its functionality is stable, as a result the experimental flag (only available for option-out of the feature right now) has been removed.
// We also want to include all the routes used for deployment
415
+
routes: allDeploymentRoutes,
416
+
});
420
417
421
-
if(configDiff){
422
-
// If there are only additive changes (or no changes at all) there should be no problem,
423
-
// just using the local config (and override the remote one) should be totally fine
424
-
if(!configDiff.nonDestructive){
425
-
logger.warn(
426
-
"The local configuration being used (generated from your local configuration file) differs from the remote configuration of your Worker set via the Cloudflare Dashboard:"+
427
-
`\n${configDiff.diff}\n\n`+
428
-
"Deploying the Worker will override the remote configuration with your local one."
429
-
);
430
-
if(!(awaitdeployConfirm("Would you like to continue?"))){
418
+
// If there are only additive changes (or no changes at all) there should be no problem,
419
+
// just using the local config (and override the remote one) should be totally fine
420
+
if(!configDiff.nonDestructive){
421
+
logger.warn(
422
+
"The local configuration being used (generated from your local configuration file) differs from the remote configuration of your Worker set via the Cloudflare Dashboard:"+
423
+
`\n${configDiff.diff}\n\n`+
424
+
"Deploying the Worker will override the remote configuration with your local one."
425
+
);
426
+
if(!(awaitdeployConfirm("Would you like to continue?"))){
427
+
if(
428
+
config.userConfigPath&&
429
+
/\.jsonc?$/.test(config.userConfigPath)
430
+
){
431
431
if(
432
-
config.userConfigPath&&
433
-
/\.jsonc?$/.test(config.userConfigPath)
432
+
awaitconfirm(
433
+
"Would you like to update the local config file with the remote values?",
434
+
{
435
+
defaultValue: true,
436
+
fallbackValue: true,
437
+
}
438
+
)
434
439
){
435
-
if(
436
-
awaitconfirm(
437
-
"Would you like to update the local config file with the remote values?",
438
-
{
439
-
defaultValue: true,
440
-
fallbackValue: true,
441
-
}
442
-
)
443
-
){
444
-
constpatchObj: RawConfig=getConfigPatch(
445
-
configDiff.diff,
446
-
props.env
447
-
);
448
-
449
-
experimental_patchConfig(
450
-
config.userConfigPath,
451
-
patchObj,
452
-
false
453
-
);
454
-
}
440
+
constpatchObj: RawConfig=getConfigPatch(
441
+
configDiff.diff,
442
+
props.env
443
+
);
444
+
445
+
experimental_patchConfig(
446
+
config.userConfigPath,
447
+
patchObj,
448
+
false
449
+
);
455
450
}
456
-
457
-
return{ versionId, workerTag };
458
451
}
459
-
}
460
-
}else{
461
-
logger.warn(
462
-
`You are about to publish a Workers Service that was last published via the Cloudflare Dashboard.\nEdits that have been made via the dashboard will be overridden by your local code and config.`
463
-
);
464
-
if(!(awaitdeployConfirm("Would you like to continue?"))){
"Rollout strategy for Containers changes. If set to immediate, it will override `rollout_percentage_steps` if configured and roll out to 100% of instances in one step. ",
230
230
choices: ["immediate","gradual"]asconst,
231
231
},
232
-
"experimental-deploy-remote-diff-check": {
233
-
describe: "Experimental: Enable The Deployment Remote Diff check",
234
-
type: "boolean",
235
-
hidden: true,
236
-
default: true,
237
-
alias: ["x-remote-diff-check"],
238
-
},
239
232
strict: {
240
233
describe:
241
234
"Enables strict mode for the deploy command, this prevents deployments to occur when there are even small potential risks.",
0 commit comments