create-cloudflare 2.73.2 → 2.73.3

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.
Files changed (2) hide show
  1. package/dist/cli.js +45 -11
  2. package/package.json +6 -6
package/dist/cli.js CHANGED
@@ -92534,7 +92534,7 @@ function formatZodError(error51) {
92534
92534
  }
92535
92535
  __name(formatZodError, "formatZodError");
92536
92536
 
92537
- // ../workers-utils/dist/chunk-AUSY7DKT.mjs
92537
+ // ../workers-utils/dist/chunk-TAK63GWY.mjs
92538
92538
  var import_node_module6 = require("node:module");
92539
92539
 
92540
92540
  // ../workers-utils/dist/chunk-M3RITKR3.mjs
@@ -92583,7 +92583,7 @@ function dedent(templ) {
92583
92583
  __name(dedent, "dedent");
92584
92584
  var esm_default = dedent;
92585
92585
 
92586
- // ../workers-utils/dist/chunk-AUSY7DKT.mjs
92586
+ // ../workers-utils/dist/chunk-TAK63GWY.mjs
92587
92587
  init_chunk_U6NEESU5();
92588
92588
  var import_node_fs = require("node:fs");
92589
92589
  var import_node_path = __toESM(require("node:path"), 1);
@@ -95581,12 +95581,23 @@ function findRedirectedWranglerConfig(cwd, userConfigPath) {
95581
95581
  );
95582
95582
  }
95583
95583
  if (userConfigPath) {
95584
- if (import_node_path.default.join(import_node_path.default.dirname(userConfigPath), PATH_TO_DEPLOY_CONFIG) !== deployConfigPath) {
95584
+ const expectedDeployConfigPath = import_node_path.default.join(
95585
+ import_node_path.default.dirname(userConfigPath),
95586
+ PATH_TO_DEPLOY_CONFIG
95587
+ );
95588
+ if (expectedDeployConfigPath !== deployConfigPath) {
95585
95589
  throw new UserError(
95586
95590
  esm_default`
95587
95591
  Found both a user configuration file at "${import_node_path.default.relative(".", userConfigPath)}"
95588
95592
  and a deploy configuration file at "${import_node_path.default.relative(".", deployConfigPath)}".
95589
95593
  But these do not share the same base path so it is not clear which should be used.
95594
+
95595
+ A deploy configuration file is generated by a build tool to redirect Wrangler to the configuration it generated.
95596
+ It is only applied when it sits alongside the user configuration file, which here would be "${import_node_path.default.relative(".", expectedDeployConfigPath)}".
95597
+
95598
+ Please either delete "${import_node_path.default.relative(".", deployConfigPath)}" if it is left over from a previous build,
95599
+ or try running this command from the directory containing the configuration you want to use.
95600
+ See https://developers.cloudflare.com/workers/wrangler/configuration/#generated-wrangler-configuration
95590
95601
  `,
95591
95602
  { telemetryMessage: false }
95592
95603
  );
@@ -101671,6 +101682,13 @@ var validateAssetsConfig = /* @__PURE__ */ __name((diagnostics, field, value) =>
101671
101682
  "string",
101672
101683
  ["single-page-application", "404-page", "none"]
101673
101684
  ) && isValid;
101685
+ isValid = validateOptionalProperty(
101686
+ diagnostics,
101687
+ field,
101688
+ "base_path",
101689
+ value.base_path,
101690
+ "string"
101691
+ ) && isValid;
101674
101692
  if (value.run_worker_first !== void 0) {
101675
101693
  if (typeof value.run_worker_first === "boolean") {
101676
101694
  isValid = validateOptionalProperty(
@@ -101701,6 +101719,7 @@ var validateAssetsConfig = /* @__PURE__ */ __name((diagnostics, field, value) =>
101701
101719
  "binding",
101702
101720
  "html_handling",
101703
101721
  "not_found_handling",
101722
+ "base_path",
101704
101723
  "run_worker_first"
101705
101724
  ]) && isValid;
101706
101725
  return isValid;
@@ -106121,7 +106140,7 @@ function mapWorkerMetadataBindings(bindings) {
106121
106140
  }, {});
106122
106141
  }
106123
106142
  __name(mapWorkerMetadataBindings, "mapWorkerMetadataBindings");
106124
- var DEFAULT_COMPAT_DATE = "2026-10-01";
106143
+ var DEFAULT_COMPAT_DATE = "2026-10-06";
106125
106144
  function constructWranglerConfig(config50) {
106126
106145
  const mappedBindings = mapWorkerMetadataBindings(config50.bindings);
106127
106146
  const durableObjectClassNames = config50.bindings.filter(
@@ -108870,10 +108889,25 @@ function startTunnel(options) {
108870
108889
  const reminderIntervalMs = options.reminderIntervalMs ?? DEFAULT_TUNNEL_REMINDER_INTERVAL_MS;
108871
108890
  const defaultExpiryMs = options.expiryMs ?? DEFAULT_TUNNEL_EXPIRY_MS;
108872
108891
  const isNamedTunnel = options.token !== void 0;
108892
+ if (isNamedTunnel && (options.allowedMail?.length ?? 0) > 0) {
108893
+ throw new UserError(
108894
+ "The `allowedMail` option is only supported for Quick Tunnels.",
108895
+ { telemetryMessage: "tunnel allowed mail named tunnel conflict" }
108896
+ );
108897
+ }
108873
108898
  const timeFormatter = new Intl.DateTimeFormat(void 0, {
108874
108899
  timeStyle: "short"
108875
108900
  });
108876
- const cloudflaredArgs = isNamedTunnel ? ["tunnel", "--no-autoupdate", "run"] : ["tunnel", "--no-autoupdate", "--url", options.origin.href];
108901
+ const cloudflaredArgs = isNamedTunnel ? ["tunnel", "--no-autoupdate", "run"] : [
108902
+ "tunnel",
108903
+ "--no-autoupdate",
108904
+ "--url",
108905
+ options.origin.href,
108906
+ ...(options.allowedMail ?? []).flatMap((allowedMail) => [
108907
+ "--allowed-mail",
108908
+ allowedMail
108909
+ ])
108910
+ ];
108877
108911
  const cloudflaredPromise = spawnCloudflared(cloudflaredArgs, {
108878
108912
  stdio: "pipe",
108879
108913
  env: options.token ? { TUNNEL_TOKEN: options.token } : void 0,
@@ -114346,7 +114380,7 @@ var Yargs = YargsFactory(esm_default2);
114346
114380
  var yargs_default = Yargs;
114347
114381
 
114348
114382
  // package.json
114349
- var version2 = "2.73.2";
114383
+ var version2 = "2.73.3";
114350
114384
 
114351
114385
  // src/metrics.ts
114352
114386
  var import_node_async_hooks = require("node:async_hooks");
@@ -117044,13 +117078,13 @@ __name2(getPropertyName, "getPropertyName");
117044
117078
  var package_default = {
117045
117079
  name: "frameworks_clis_info",
117046
117080
  dependencies: {
117047
- "@angular/create": "22.2.0",
117048
- "@tanstack/cli": "0.71.0",
117049
- "create-analog": "2.7.5",
117081
+ "@angular/create": "22.2.1",
117082
+ "@tanstack/cli": "0.71.1",
117083
+ "create-analog": "2.8.0",
117050
117084
  "create-astro": "5.2.4",
117051
117085
  "create-docusaurus": "3.10.2",
117052
117086
  "create-hono": "0.19.5",
117053
- "create-next-app": "16.3.6",
117087
+ "create-next-app": "16.3.8",
117054
117088
  "create-qwik": "1.20.1",
117055
117089
  "create-react-router": "8.4.0",
117056
117090
  "create-rwsdk": "3.1.3",
@@ -119757,7 +119791,7 @@ If the application uses Durable Objects or Workflows, refer to the relevant best
119757
119791
  var import_node_assert7 = __toESM(require("node:assert"));
119758
119792
 
119759
119793
  // ../wrangler/package.json
119760
- var version3 = "4.147.0";
119794
+ var version3 = "4.148.0";
119761
119795
 
119762
119796
  // src/git.ts
119763
119797
  var offerGit = async (ctx) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-cloudflare",
3
- "version": "2.73.2",
3
+ "version": "2.73.3",
4
4
  "description": "A CLI for creating and deploying new applications to Cloudflare.",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -31,7 +31,7 @@
31
31
  "@babel/parser": "^7.21.3",
32
32
  "@babel/types": "^7.21.4",
33
33
  "@clack/prompts": "^1.2.0",
34
- "@cloudflare/workers-types": "^5.20261001.1",
34
+ "@cloudflare/workers-types": "^5.20261006.1",
35
35
  "@types/command-exists": "^1.2.0",
36
36
  "@types/cross-spawn": "^6.0.2",
37
37
  "@types/deepmerge": "^2.2.0",
@@ -70,13 +70,13 @@
70
70
  "which-pm-runs": "^1.1.0",
71
71
  "wrap-ansi": "^9.0.0",
72
72
  "yargs": "^17.7.2",
73
- "@cloudflare/cli-shared-helpers": "0.2.3",
73
+ "@cloudflare/cli-shared-helpers": "0.2.4",
74
74
  "@cloudflare/mock-npm-registry": "0.0.0",
75
75
  "@cloudflare/shared-ast-primitives": "1.1.0",
76
- "@cloudflare/vite-plugin": "1.62.5",
76
+ "@cloudflare/vite-plugin": "1.63.0",
77
77
  "@cloudflare/workers-tsconfig": "0.0.0",
78
- "@cloudflare/workers-utils": "0.46.0",
79
- "wrangler": "4.147.0"
78
+ "@cloudflare/workers-utils": "0.47.0",
79
+ "wrangler": "4.148.0"
80
80
  },
81
81
  "engines": {
82
82
  "node": ">=22.0.0"