create-cloudflare 2.33.4 → 2.34.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/dist/cli.js CHANGED
@@ -73725,7 +73725,7 @@ var Yargs = YargsFactory(esm_default);
73725
73725
  var yargs_default = Yargs;
73726
73726
 
73727
73727
  // package.json
73728
- var version = "2.33.4";
73728
+ var version = "2.34.0";
73729
73729
 
73730
73730
  // src/metrics.ts
73731
73731
  var import_node_async_hooks = require("node:async_hooks");
@@ -74490,17 +74490,17 @@ var package_default = {
74490
74490
  "create-astro": "4.10.0",
74491
74491
  "create-analog": "1.8.1",
74492
74492
  "@angular/create": "19.0.0",
74493
- "create-docusaurus": "3.6.1",
74493
+ "create-docusaurus": "3.6.3",
74494
74494
  "create-hono": "0.14.2",
74495
74495
  "create-next-app": "14.2.5",
74496
74496
  "create-qwik": "1.11.0",
74497
- "create-vite": "5.5.5",
74497
+ "create-vite": "6.0.1",
74498
74498
  "create-remix": "2.15.0",
74499
74499
  "create-solid": "0.5.14",
74500
74500
  "create-vue": "3.12.1",
74501
74501
  gatsby: "5.14.0",
74502
- nuxi: "3.16.0",
74503
- sv: "0.6.1"
74502
+ sv: "0.6.2",
74503
+ nuxi: "3.16.0"
74504
74504
  }
74505
74505
  };
74506
74506
 
@@ -75435,10 +75435,7 @@ var config12 = {
75435
75435
  displayName: "SvelteKit",
75436
75436
  platform: "workers",
75437
75437
  copyFiles: {
75438
- variants: {
75439
- js: { path: "./js" },
75440
- ts: { path: "./ts" }
75441
- }
75438
+ path: "./templates"
75442
75439
  },
75443
75440
  path: "templates-experimental/svelte",
75444
75441
  generate: generate11,
@@ -76822,10 +76819,7 @@ var config25 = {
76822
76819
  displayName: "SvelteKit",
76823
76820
  platform: "pages",
76824
76821
  copyFiles: {
76825
- variants: {
76826
- js: { path: "./js" },
76827
- ts: { path: "./ts" }
76828
- }
76822
+ path: "./templates"
76829
76823
  },
76830
76824
  generate: generate25,
76831
76825
  configure: configure18,
@@ -76874,7 +76868,7 @@ var config26 = {
76874
76868
  var c3_default36 = config26;
76875
76869
 
76876
76870
  // ../wrangler/package.json
76877
- var version2 = "3.94.0";
76871
+ var version2 = "3.95.0";
76878
76872
 
76879
76873
  // src/git.ts
76880
76874
  var offerGit = async (ctx) => {
@@ -79200,14 +79194,16 @@ var updateWranglerToml = async (ctx) => {
79200
79194
  }
79201
79195
  } else {
79202
79196
  newToml.prepend(
79203
- `compatibility_date = "${await getWorkerdCompatibilityDate()}"`
79197
+ `compatibility_date = "${await getWorkerdCompatibilityDate()}"
79198
+ `
79204
79199
  );
79205
79200
  }
79206
79201
  const nameRe = /^name\s*=.*/m;
79207
79202
  if (wranglerToml.match(nameRe)) {
79208
79203
  newToml.replace(nameRe, `name = "${ctx.project.name}"`);
79209
79204
  } else {
79210
- newToml.prepend(`name = "${ctx.project.name}"`);
79205
+ newToml.prepend(`name = "${ctx.project.name}"
79206
+ `);
79211
79207
  }
79212
79208
  writeWranglerToml(ctx, newToml.toString());
79213
79209
  };
@@ -79364,16 +79360,22 @@ function createDialog(lines) {
79364
79360
  ""
79365
79361
  ].join("\n");
79366
79362
  }
79367
- function printWelcomeMessage(version3, telemetryEnabled) {
79363
+ function printWelcomeMessage(version3, telemetryEnabled, args) {
79368
79364
  const lines = [
79369
79365
  `\u{1F44B} Welcome to create-cloudflare v${version3}!`,
79370
79366
  `\u{1F9E1} Let's get started.`
79371
79367
  ];
79368
+ if (args.experimental) {
79369
+ lines.push("", blue`🧪 Running in experimental mode`);
79370
+ }
79372
79371
  if (telemetryEnabled) {
79372
+ if (args.experimental) {
79373
+ lines.push("");
79374
+ }
79373
79375
  const telemetryDocsUrl = `https://github.com/cloudflare/workers-sdk/blob/main/packages/create-cloudflare/telemetry.md`;
79374
79376
  lines.push(
79375
79377
  `\u{1F4CA} Cloudflare collects telemetry about your usage of Create-Cloudflare.`,
79376
- ``,
79378
+ "",
79377
79379
  `Learn more at: ${blue.underline(hyperlink(telemetryDocsUrl))}`
79378
79380
  );
79379
79381
  }
@@ -81271,7 +81273,7 @@ var runLatest = async () => {
81271
81273
  await runCommand([npm22, "create", "cloudflare@latest", ...args]);
81272
81274
  };
81273
81275
  var runCli = async (args) => {
81274
- printBanner();
81276
+ printBanner(args);
81275
81277
  const ctx = await createContext(args);
81276
81278
  await create(ctx);
81277
81279
  await configure19(ctx);
@@ -81325,8 +81327,8 @@ var deploy = async (ctx) => {
81325
81327
  await maybeOpenBrowser(ctx);
81326
81328
  endSection("Done");
81327
81329
  };
81328
- var printBanner = () => {
81329
- printWelcomeMessage(version, reporter.isEnabled);
81330
+ var printBanner = (args) => {
81331
+ printWelcomeMessage(version, reporter.isEnabled, args);
81330
81332
  startSection(`Create an application with Cloudflare`, "Step 1 of 3");
81331
81333
  };
81332
81334
  main(process.argv).catch((e) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-cloudflare",
3
- "version": "2.33.4",
3
+ "version": "2.34.0",
4
4
  "description": "A CLI for creating and deploying new applications to Cloudflare.",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -67,9 +67,9 @@
67
67
  "xdg-app-paths": "^8.3.0",
68
68
  "yargs": "^17.7.2",
69
69
  "@cloudflare/cli": "1.1.1",
70
- "@cloudflare/workers-tsconfig": "0.0.0",
71
70
  "@cloudflare/eslint-config-worker": "1.1.0",
72
- "wrangler": "3.94.0"
71
+ "@cloudflare/workers-tsconfig": "0.0.0",
72
+ "wrangler": "3.95.0"
73
73
  },
74
74
  "engines": {
75
75
  "node": ">=18.14.1"
@@ -131,10 +131,7 @@ const config: TemplateConfig = {
131
131
  displayName: "SvelteKit",
132
132
  platform: "pages",
133
133
  copyFiles: {
134
- variants: {
135
- js: { path: "./js" },
136
- ts: { path: "./ts" },
137
- },
134
+ path: "./templates",
138
135
  },
139
136
  generate,
140
137
  configure,
@@ -101,10 +101,7 @@ const config: TemplateConfig = {
101
101
  displayName: "SvelteKit",
102
102
  platform: "workers",
103
103
  copyFiles: {
104
- variants: {
105
- js: { path: "./js" },
106
- ts: { path: "./ts" },
107
- },
104
+ path: "./templates",
108
105
  },
109
106
  path: "templates-experimental/svelte",
110
107
  generate,
@@ -1,85 +0,0 @@
1
- #:schema node_modules/wrangler/config-schema.json
2
- name = "<TBD>"
3
- compatibility_date = "<TBD>"
4
- pages_build_output_dir = ".svelte-kit/cloudflare"
5
-
6
- # Automatically place your workloads in an optimal location to minimize latency.
7
- # If you are running back-end logic in a Pages Function, running it closer to your back-end infrastructure
8
- # rather than the end user may result in better performance.
9
- # Docs: https://developers.cloudflare.com/pages/functions/smart-placement/#smart-placement
10
- # [placement]
11
- # mode = "smart"
12
-
13
- # Variable bindings. These are arbitrary, plaintext strings (similar to environment variables)
14
- # Docs:
15
- # - https://developers.cloudflare.com/pages/functions/bindings/#environment-variables
16
- # Note: Use secrets to store sensitive data.
17
- # - https://developers.cloudflare.com/pages/functions/bindings/#secrets
18
- # [vars]
19
- # MY_VARIABLE = "production_value"
20
-
21
- # Bind the Workers AI model catalog. Run machine learning models, powered by serverless GPUs, on Cloudflare’s global network
22
- # Docs: https://developers.cloudflare.com/pages/functions/bindings/#workers-ai
23
- # [ai]
24
- # binding = "AI"
25
-
26
- # Bind a D1 database. D1 is Cloudflare’s native serverless SQL database.
27
- # Docs: https://developers.cloudflare.com/pages/functions/bindings/#d1-databases
28
- # [[d1_databases]]
29
- # binding = "MY_DB"
30
- # database_name = "my-database"
31
- # database_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
32
-
33
- # Bind a Durable Object. Durable objects are a scale-to-zero compute primitive based on the actor model.
34
- # Durable Objects can live for as long as needed. Use these when you need a long-running "server", such as in realtime apps.
35
- # Docs: https://developers.cloudflare.com/workers/runtime-apis/durable-objects
36
- # [[durable_objects.bindings]]
37
- # name = "MY_DURABLE_OBJECT"
38
- # class_name = "MyDurableObject"
39
- # script_name = 'my-durable-object'
40
-
41
- # Bind a KV Namespace. Use KV as persistent storage for small key-value pairs.
42
- # Docs: https://developers.cloudflare.com/pages/functions/bindings/#kv-namespaces
43
- # [[kv_namespaces]]
44
- # binding = "MY_KV_NAMESPACE"
45
- # id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
46
-
47
- # Bind a Queue producer. Use this binding to schedule an arbitrary task that may be processed later by a Queue consumer.
48
- # Docs: https://developers.cloudflare.com/pages/functions/bindings/#queue-producers
49
- # [[queues.producers]]
50
- # binding = "MY_QUEUE"
51
- # queue = "my-queue"
52
-
53
- # Bind an R2 Bucket. Use R2 to store arbitrarily large blobs of data, such as files.
54
- # Docs: https://developers.cloudflare.com/pages/functions/bindings/#r2-buckets
55
- # [[r2_buckets]]
56
- # binding = "MY_BUCKET"
57
- # bucket_name = "my-bucket"
58
-
59
- # Bind another Worker service. Use this binding to call another Worker without network overhead.
60
- # Docs: https://developers.cloudflare.com/pages/functions/bindings/#service-bindings
61
- # [[services]]
62
- # binding = "MY_SERVICE"
63
- # service = "my-service"
64
-
65
- # To use different bindings for preview and production environments, follow the examples below.
66
- # When using environment-specific overrides for bindings, ALL bindings must be specified on a per-environment basis.
67
- # Docs: https://developers.cloudflare.com/pages/functions/wrangler-configuration#environment-specific-overrides
68
-
69
- ######## PREVIEW environment config ########
70
-
71
- # [env.preview.vars]
72
- # API_KEY = "xyz789"
73
-
74
- # [[env.preview.kv_namespaces]]
75
- # binding = "MY_KV_NAMESPACE"
76
- # id = "<PREVIEW_NAMESPACE_ID>"
77
-
78
- ######## PRODUCTION environment config ########
79
-
80
- # [env.production.vars]
81
- # API_KEY = "abc123"
82
-
83
- # [[env.production.kv_namespaces]]
84
- # binding = "MY_KV_NAMESPACE"
85
- # id = "<PRODUCTION_NAMESPACE_ID>"
@@ -1,4 +0,0 @@
1
- _worker.js
2
- _routes.json
3
- _headers
4
- _redirects
@@ -1,11 +0,0 @@
1
- #:schema node_modules/wrangler/config-schema.json
2
- name = "<TBD>"
3
- compatibility_date = "<TBD>"
4
- main = ".svelte-kit/cloudflare/_worker.js"
5
- assets = { directory = ".svelte-kit/cloudflare", binding = "ASSETS" }
6
-
7
- # Workers Logs
8
- # Docs: https://developers.cloudflare.com/workers/observability/logs/workers-logs/
9
- # Configuration: https://developers.cloudflare.com/workers/observability/logs/workers-logs/#enable-workers-logs
10
- [observability]
11
- enabled = true