create-cloudflare 2.43.3 → 2.43.5

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
@@ -74560,7 +74560,7 @@ var Yargs = YargsFactory(esm_default);
74560
74560
  var yargs_default = Yargs;
74561
74561
 
74562
74562
  // package.json
74563
- var version = "2.43.3";
74563
+ var version = "2.43.5";
74564
74564
 
74565
74565
  // src/metrics.ts
74566
74566
  var import_node_async_hooks = require("node:async_hooks");
@@ -75349,7 +75349,7 @@ var package_default = {
75349
75349
  "create-vue": "3.15.1",
75350
75350
  gatsby: "5.14.1",
75351
75351
  sv: "0.6.23",
75352
- nuxi: "3.23.1"
75352
+ nuxi: "3.24.1"
75353
75353
  }
75354
75354
  };
75355
75355
 
@@ -75750,6 +75750,7 @@ var config3 = {
75750
75750
  frameworkCli: "@angular/create",
75751
75751
  displayName: "Angular",
75752
75752
  platform: "pages",
75753
+ hidden: true,
75753
75754
  copyFiles: {
75754
75755
  path: "./templates"
75755
75756
  },
@@ -75909,6 +75910,7 @@ var config6 = {
75909
75910
  id: "astro",
75910
75911
  frameworkCli: "create-astro",
75911
75912
  platform: "pages",
75913
+ hidden: true,
75912
75914
  displayName: "Astro",
75913
75915
  path: "templates/astro/pages",
75914
75916
  copyFiles: {
@@ -76053,6 +76055,7 @@ var config10 = {
76053
76055
  id: "docusaurus",
76054
76056
  frameworkCli: "create-docusaurus",
76055
76057
  platform: "pages",
76058
+ hidden: true,
76056
76059
  displayName: "Docusaurus",
76057
76060
  path: "templates/docusaurus/pages",
76058
76061
  generate: generate7,
@@ -76129,6 +76132,7 @@ var config13 = {
76129
76132
  id: "gatsby",
76130
76133
  frameworkCli: "gatsby",
76131
76134
  platform: "pages",
76135
+ hidden: true,
76132
76136
  displayName: "Gatsby",
76133
76137
  path: "templates/gatsby/pages",
76134
76138
  generate: generate9,
@@ -76333,6 +76337,7 @@ var config20 = {
76333
76337
  },
76334
76338
  path: "templates/hono/pages",
76335
76339
  platform: "pages",
76340
+ hidden: true,
76336
76341
  generate: generate11,
76337
76342
  transformPackageJson: async () => ({
76338
76343
  scripts: {
@@ -76496,6 +76501,7 @@ var c3_default24 = {
76496
76501
  id: "next",
76497
76502
  frameworkCli: "create-next-app",
76498
76503
  platform: "pages",
76504
+ hidden: true,
76499
76505
  displayName: "Next.js",
76500
76506
  path: "templates/next/pages",
76501
76507
  generate: generate13,
@@ -76707,6 +76713,7 @@ var config24 = {
76707
76713
  id: "nuxt",
76708
76714
  frameworkCli: "nuxi",
76709
76715
  platform: "pages",
76716
+ hidden: true,
76710
76717
  displayName: "Nuxt",
76711
76718
  copyFiles: {
76712
76719
  path: "./templates"
@@ -77153,6 +77160,7 @@ var config30 = {
77153
77160
  frameworkCli: "create-qwik",
77154
77161
  displayName: "Qwik",
77155
77162
  platform: "pages",
77163
+ hidden: true,
77156
77164
  copyFiles: {
77157
77165
  path: "./templates"
77158
77166
  },
@@ -77365,6 +77373,7 @@ var config34 = {
77365
77373
  frameworkCli: "create-vite",
77366
77374
  displayName: "React",
77367
77375
  platform: "pages",
77376
+ hidden: true,
77368
77377
  path: "templates/react/pages",
77369
77378
  generate: generate20,
77370
77379
  transformPackageJson: async () => ({
@@ -77554,6 +77563,7 @@ var config37 = {
77554
77563
  id: "remix",
77555
77564
  frameworkCli: "create-remix",
77556
77565
  platform: "pages",
77566
+ hidden: true,
77557
77567
  displayName: "Remix",
77558
77568
  copyFiles: {
77559
77569
  path: "./templates"
@@ -77810,6 +77820,7 @@ var config42 = {
77810
77820
  frameworkCli: "sv",
77811
77821
  displayName: "SvelteKit",
77812
77822
  platform: "pages",
77823
+ hidden: true,
77813
77824
  copyFiles: {
77814
77825
  path: "./templates"
77815
77826
  },
@@ -77953,6 +77964,7 @@ var config45 = {
77953
77964
  frameworkCli: "create-vue",
77954
77965
  displayName: "Vue",
77955
77966
  platform: "pages",
77967
+ hidden: true,
77956
77968
  path: "templates/pages/vue",
77957
77969
  generate: generate27,
77958
77970
  transformPackageJson: async () => ({
@@ -78053,7 +78065,7 @@ var c3_default50 = config47;
78053
78065
  var import_node_assert = __toESM(require("node:assert"));
78054
78066
 
78055
78067
  // ../wrangler/package.json
78056
- var version2 = "4.7.2";
78068
+ var version2 = "4.9.0";
78057
78069
 
78058
78070
  // src/git.ts
78059
78071
  var offerGit = async (ctx) => {
@@ -78552,21 +78564,31 @@ var createContext = async (args, prevArgs) => {
78552
78564
  throw new Error(`Unsupported framework: ${framework}`);
78553
78565
  }
78554
78566
  if ("platformVariants" in frameworkConfig) {
78567
+ const availableVariants = Object.entries(
78568
+ frameworkConfig.platformVariants
78569
+ ).filter(([, config48]) => !config48.hidden);
78570
+ if (availableVariants.length === 1) {
78571
+ args.platform ??= availableVariants[0][0];
78572
+ }
78555
78573
  const platform3 = await processArgument(args, "platform", {
78556
78574
  type: "select",
78557
78575
  label: "platform",
78558
78576
  question: "Select your deployment platform",
78559
78577
  options: [
78560
- {
78561
- label: "Workers with Assets (BETA)",
78562
- value: "workers",
78563
- description: "Take advantage of the full Developer Platform, including R2, Queues, Durable Objects and more."
78564
- },
78565
- {
78566
- label: "Pages",
78567
- value: "pages",
78568
- description: "Great for simple websites and applications."
78569
- },
78578
+ ...args.platform === "workers" || !frameworkConfig.platformVariants.workers.hidden ? [
78579
+ {
78580
+ label: "Workers with Assets",
78581
+ value: "workers",
78582
+ description: "Take advantage of the full Developer Platform, including R2, Queues, Durable Objects and more."
78583
+ }
78584
+ ] : [],
78585
+ ...args.platform === "pages" || !frameworkConfig.platformVariants.pages.hidden ? [
78586
+ {
78587
+ label: "Pages",
78588
+ value: "pages",
78589
+ description: "Great for simple websites and applications."
78590
+ }
78591
+ ] : [],
78570
78592
  backOption
78571
78593
  ],
78572
78594
  defaultValue: "workers"
@@ -78947,12 +78969,12 @@ var cliDefinition = {
78947
78969
  description: `Whether the application should be deployed to Pages or Workers. This is only applicable for Frameworks templates that support both Pages and Workers.`,
78948
78970
  values: [
78949
78971
  {
78950
- name: "pages",
78951
- description: "Create a web application that can be deployed to Pages."
78972
+ name: "workers",
78973
+ description: "Create a web application that can be deployed to Workers."
78952
78974
  },
78953
78975
  {
78954
- name: "workers",
78955
- description: "Create a web application that can be deployed to Workers (BETA)."
78976
+ name: "pages",
78977
+ description: "Create a web application that can be deployed to Pages."
78956
78978
  }
78957
78979
  ],
78958
78980
  requiresArg: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-cloudflare",
3
- "version": "2.43.3",
3
+ "version": "2.43.5",
4
4
  "description": "A CLI for creating and deploying new applications to Cloudflare.",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -30,7 +30,7 @@
30
30
  "@babel/parser": "^7.21.3",
31
31
  "@babel/types": "^7.21.4",
32
32
  "@clack/prompts": "^0.6.3",
33
- "@cloudflare/workers-types": "^4.20250404.0",
33
+ "@cloudflare/workers-types": "^4.20250405.0",
34
34
  "@iarna/toml": "^3.0.0",
35
35
  "@types/command-exists": "^1.2.0",
36
36
  "@types/cross-spawn": "^6.0.2",
@@ -73,9 +73,9 @@
73
73
  "@cloudflare/cli": "1.1.1",
74
74
  "@cloudflare/eslint-config-worker": "1.1.0",
75
75
  "@cloudflare/mock-npm-registry": "0.0.0",
76
- "@cloudflare/vite-plugin": "1.0.0",
76
+ "@cloudflare/vite-plugin": "1.0.2",
77
77
  "@cloudflare/workers-tsconfig": "0.0.0",
78
- "wrangler": "4.7.2"
78
+ "wrangler": "4.9.0"
79
79
  },
80
80
  "engines": {
81
81
  "node": ">=18.14.1"
@@ -95,6 +95,7 @@ const config: TemplateConfig = {
95
95
  frameworkCli: "@angular/create",
96
96
  displayName: "Angular",
97
97
  platform: "pages",
98
+ hidden: true,
98
99
  copyFiles: {
99
100
  path: "./templates",
100
101
  },
@@ -63,6 +63,7 @@ const config: TemplateConfig = {
63
63
  id: "astro",
64
64
  frameworkCli: "create-astro",
65
65
  platform: "pages",
66
+ hidden: true,
66
67
  displayName: "Astro",
67
68
  path: "templates/astro/pages",
68
69
  copyFiles: {
@@ -14,6 +14,7 @@ const config: TemplateConfig = {
14
14
  id: "docusaurus",
15
15
  frameworkCli: "create-docusaurus",
16
16
  platform: "pages",
17
+ hidden: true,
17
18
  displayName: "Docusaurus",
18
19
  path: "templates/docusaurus/pages",
19
20
  generate,
@@ -34,6 +34,7 @@ const config: TemplateConfig = {
34
34
  id: "gatsby",
35
35
  frameworkCli: "gatsby",
36
36
  platform: "pages",
37
+ hidden: true,
37
38
  displayName: "Gatsby",
38
39
  path: "templates/gatsby/pages",
39
40
  generate,
@@ -29,6 +29,7 @@ const config: TemplateConfig = {
29
29
  },
30
30
  path: "templates/hono/pages",
31
31
  platform: "pages",
32
+ hidden: true,
32
33
  generate,
33
34
  transformPackageJson: async () => ({
34
35
  scripts: {
@@ -161,6 +161,7 @@ export default {
161
161
  id: "next",
162
162
  frameworkCli: "create-next-app",
163
163
  platform: "pages",
164
+ hidden: true,
164
165
  displayName: "Next.js",
165
166
  path: "templates/next/pages",
166
167
  generate,
@@ -1,6 +1,9 @@
1
1
  import { defineCloudflareConfig } from "@opennextjs/cloudflare";
2
- import r2IncrementalCache from "@opennextjs/cloudflare/overrides/incremental-cache/r2-incremental-cache";
3
2
 
4
3
  export default defineCloudflareConfig({
5
- incrementalCache: r2IncrementalCache,
4
+ // Uncomment to enable R2 cache,
5
+ // It should be imported as:
6
+ // `import r2IncrementalCache from "@opennextjs/cloudflare/overrides/incremental-cache/r2-incremental-cache";`
7
+ // See https://opennext.js.org/cloudflare/caching for more details
8
+ // incrementalCache: r2IncrementalCache,
6
9
  });
@@ -125,6 +125,7 @@ const config: TemplateConfig = {
125
125
  id: "nuxt",
126
126
  frameworkCli: "nuxi",
127
127
  platform: "pages",
128
+ hidden: true,
128
129
  displayName: "Nuxt",
129
130
  copyFiles: {
130
131
  path: "./templates",
@@ -129,6 +129,7 @@ const config: TemplateConfig = {
129
129
  frameworkCli: "create-qwik",
130
130
  displayName: "Qwik",
131
131
  platform: "pages",
132
+ hidden: true,
132
133
  copyFiles: {
133
134
  path: "./templates",
134
135
  },
@@ -47,6 +47,7 @@ const config: TemplateConfig = {
47
47
  frameworkCli: "create-vite",
48
48
  displayName: "React",
49
49
  platform: "pages",
50
+ hidden: true,
50
51
  path: "templates/react/pages",
51
52
  generate,
52
53
  transformPackageJson: async () => ({
@@ -47,6 +47,7 @@ const config: TemplateConfig = {
47
47
  id: "remix",
48
48
  frameworkCli: "create-remix",
49
49
  platform: "pages",
50
+ hidden: true,
50
51
  displayName: "Remix",
51
52
  copyFiles: {
52
53
  path: "./templates",
@@ -130,6 +130,7 @@ const config: TemplateConfig = {
130
130
  frameworkCli: "sv",
131
131
  displayName: "SvelteKit",
132
132
  platform: "pages",
133
+ hidden: true,
133
134
  copyFiles: {
134
135
  path: "./templates",
135
136
  },
@@ -15,6 +15,7 @@ const config: TemplateConfig = {
15
15
  frameworkCli: "create-vue",
16
16
  displayName: "Vue",
17
17
  platform: "pages",
18
+ hidden: true,
18
19
  path: "templates/pages/vue",
19
20
  generate,
20
21
  transformPackageJson: async () => ({