create-cloudflare 2.43.8 → 2.44.1

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.8";
74563
+ var version = "2.44.1";
74564
74564
 
74565
74565
  // src/metrics.ts
74566
74566
  var import_node_async_hooks = require("node:async_hooks");
@@ -74853,7 +74853,7 @@ var detectPmMismatch = (ctx) => {
74853
74853
 
74854
74854
  // src/helpers/sparrow.ts
74855
74855
  var import_undici = __toESM(require_undici());
74856
- var SPARROW_SOURCE_KEY = "";
74856
+ var SPARROW_SOURCE_KEY = "50598e014ed44c739ec8074fdc16057c";
74857
74857
  var SPARROW_URL = "https://sparrow.cloudflare.com";
74858
74858
  function hasSparrowSourceKey() {
74859
74859
  return SPARROW_SOURCE_KEY !== "";
@@ -75337,18 +75337,18 @@ var package_default = {
75337
75337
  dependencies: {
75338
75338
  "create-astro": "4.11.1",
75339
75339
  "create-analog": "1.8.1",
75340
- "@angular/create": "19.2.6",
75340
+ "@angular/create": "19.2.7",
75341
75341
  "create-docusaurus": "3.7.0",
75342
75342
  "create-hono": "0.17.0",
75343
- "create-next-app": "15.2.1",
75343
+ "create-next-app": "15.3.0",
75344
75344
  "create-qwik": "1.13.0",
75345
75345
  "create-vite": "6.3.1",
75346
75346
  "create-remix": "2.16.5",
75347
75347
  "create-react-router": "7.5.0",
75348
75348
  "create-solid": "0.6.2",
75349
75349
  "create-vue": "3.16.4",
75350
- gatsby: "5.14.1",
75351
- sv: "0.8.0",
75350
+ gatsby: "5.14.3",
75351
+ sv: "0.8.1",
75352
75352
  nuxi: "3.24.1"
75353
75353
  }
75354
75354
  };
@@ -76594,7 +76594,7 @@ var c3_default25 = {
76594
76594
  configVersion: 1,
76595
76595
  id: "next",
76596
76596
  frameworkCli: "create-next-app",
76597
- frameworkCliPinnedVersion: "~15.2.4",
76597
+ frameworkCliPinnedVersion: "~15.3.0",
76598
76598
  platform: "workers",
76599
76599
  displayName: "Next.js (using Node.js compat + Workers Assets)",
76600
76600
  path: "templates/next/workers",
@@ -78065,7 +78065,7 @@ var c3_default50 = config47;
78065
78065
  var import_node_assert = __toESM(require("node:assert"));
78066
78066
 
78067
78067
  // ../wrangler/package.json
78068
- var version2 = "4.11.0";
78068
+ var version2 = "4.12.0";
78069
78069
 
78070
78070
  // src/git.ts
78071
78071
  var offerGit = async (ctx) => {
@@ -78716,7 +78716,7 @@ var processRemoteTemplate = async (args) => {
78716
78716
  if (src.startsWith("https://github.com/") && src.includes("/tree/main/")) {
78717
78717
  src = src.replace("https://github.com/", "github:").replace("/tree/main/", "/");
78718
78718
  }
78719
- const path6 = await downloadRemoteTemplate(src);
78719
+ const path6 = await downloadRemoteTemplate(src, args.templateMode);
78720
78720
  const config48 = inferTemplateConfig(path6);
78721
78721
  validateTemplate(path6, config48);
78722
78722
  updateStatus(`${brandColor("template")} ${dim("cloned and validated")}`);
@@ -78775,13 +78775,14 @@ var inferCopyFilesDefinition = (path6) => {
78775
78775
  const copyFiles = Object.keys(variants).length !== 0 ? { variants } : { path: "." };
78776
78776
  return copyFiles;
78777
78777
  };
78778
- var downloadRemoteTemplate = async (src) => {
78778
+ var downloadRemoteTemplate = async (src, mode) => {
78779
78779
  try {
78780
78780
  updateStatus(`Cloning template from: ${blue(src)}`);
78781
78781
  const emitter = (0, import_degit.default)(src, {
78782
78782
  cache: false,
78783
78783
  verbose: false,
78784
- force: true
78784
+ force: true,
78785
+ mode
78785
78786
  });
78786
78787
  const tmpDir = await (0, import_promises4.mkdtemp)((0, import_path13.join)((0, import_os2.tmpdir)(), "c3-template"));
78787
78788
  await emitter.clone(tmpDir);
@@ -79036,6 +79037,27 @@ var cliDefinition = {
79036
79037
  npm create cloudflare -- --template https://github.com/cloudflare/workers-sdk/templates/worker-r2
79037
79038
  `
79038
79039
  },
79040
+ {
79041
+ name: "template-mode",
79042
+ type: "string",
79043
+ requiresArg: true,
79044
+ description: `The mechanism to use when fetching the template.
79045
+
79046
+ Can be either "git" or "tar". "tar" does not support fetching from private
79047
+ repositories. By default, degit will use "tar" if the template is hosted on GitHub, BitBucket, GitLab, or git.sr.ht.
79048
+ Otherwise, it will use "git".
79049
+ `,
79050
+ values: [
79051
+ {
79052
+ name: "git",
79053
+ description: "Use git to fetch the template. Supports private repositories."
79054
+ },
79055
+ {
79056
+ name: "tar",
79057
+ description: "Use tar to fetch the template. Only supported on public repositories hosted on GitHub, BitBucket, GitLab, or git.sr.ht."
79058
+ }
79059
+ ]
79060
+ },
79039
79061
  {
79040
79062
  name: "accept-defaults",
79041
79063
  alias: "y",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-cloudflare",
3
- "version": "2.43.8",
3
+ "version": "2.44.1",
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.20250410.0",
33
+ "@cloudflare/workers-types": "^4.20250415.0",
34
34
  "@iarna/toml": "^3.0.0",
35
35
  "@types/command-exists": "^1.2.0",
36
36
  "@types/cross-spawn": "^6.0.2",
@@ -65,7 +65,7 @@
65
65
  "undici": "^5.28.5",
66
66
  "vite": "^5.4.14",
67
67
  "vite-tsconfig-paths": "^4.0.8",
68
- "vitest": "~3.0.8",
68
+ "vitest": "~3.1.1",
69
69
  "which-pm-runs": "^1.1.0",
70
70
  "wrap-ansi": "^9.0.0",
71
71
  "xdg-app-paths": "^8.3.0",
@@ -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.6",
76
+ "@cloudflare/vite-plugin": "1.0.8",
77
77
  "@cloudflare/workers-tsconfig": "0.0.0",
78
- "wrangler": "4.11.0"
78
+ "wrangler": "4.12.0"
79
79
  },
80
80
  "engines": {
81
81
  "node": ">=18.14.1"
@@ -51,7 +51,7 @@ export default {
51
51
  configVersion: 1,
52
52
  id: "next",
53
53
  frameworkCli: "create-next-app",
54
- frameworkCliPinnedVersion: "~15.2.4",
54
+ frameworkCliPinnedVersion: "~15.3.0",
55
55
  platform: "workers",
56
56
  displayName: "Next.js (using Node.js compat + Workers Assets)",
57
57
  path: "templates/next/workers",