create-vue 3.21.0 → 3.21.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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # create-vue <a href="https://npmjs.com/package/create-vue"><img src="https://img.shields.io/npm/dw/create-vue" alt="npm package"></a> <a href="https://nodejs.org/en/about/previous-releases"><img src="https://img.shields.io/node/v/create-vue" alt="node compatibility"></a>
1
+ # create-vue <a href="https://npmx.dev/package/create-vue"><img src="https://npmx.dev/api/registry/badge/version/create-vue" alt="npm package"></a><a href="https://npmx.dev/package/create-vue"><img src="https://npmx.dev/api/registry/badge/downloads-week/create-vue" alt="npm package"></a> <a href="https://nodejs.org/en/about/previous-releases"><img src="https://npmx.dev/api/registry/badge/engines/create-vue" alt="node compatibility"></a>
2
2
 
3
3
  The recommended way to start a Vite-powered Vue project
4
4
 
package/bundle.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- /*! create-vue v3.21.0 | MIT */
2
+ /*! create-vue v3.21.1 | MIT */
3
3
  import { createRequire } from "node:module";
4
4
  import * as fs from "node:fs";
5
5
  import * as path$1 from "node:path";
@@ -2134,7 +2134,6 @@ function deepMerge(target, obj) {
2134
2134
  }
2135
2135
  return target;
2136
2136
  }
2137
- var deepMerge_default = deepMerge;
2138
2137
 
2139
2138
  //#endregion
2140
2139
  //#region utils/sortDependencies.ts
@@ -2177,17 +2176,17 @@ function renderTemplate(src, dest, callbacks) {
2177
2176
  }
2178
2177
  const filename = path$1.basename(src);
2179
2178
  if (filename === "package.json" && fs.existsSync(dest)) {
2180
- const pkg = sortDependencies(deepMerge_default(JSON.parse(fs.readFileSync(dest, "utf8")), JSON.parse(fs.readFileSync(src, "utf8"))));
2179
+ const pkg = sortDependencies(deepMerge(JSON.parse(fs.readFileSync(dest, "utf8")), JSON.parse(fs.readFileSync(src, "utf8"))));
2181
2180
  fs.writeFileSync(dest, JSON.stringify(pkg, null, 2) + "\n");
2182
2181
  return;
2183
2182
  }
2184
2183
  if (filename === "extensions.json" && fs.existsSync(dest)) {
2185
- const extensions = deepMerge_default(JSON.parse(fs.readFileSync(dest, "utf8")), JSON.parse(fs.readFileSync(src, "utf8")));
2184
+ const extensions = deepMerge(JSON.parse(fs.readFileSync(dest, "utf8")), JSON.parse(fs.readFileSync(src, "utf8")));
2186
2185
  fs.writeFileSync(dest, JSON.stringify(extensions, null, 2) + "\n");
2187
2186
  return;
2188
2187
  }
2189
2188
  if (filename === "settings.json" && fs.existsSync(dest)) {
2190
- const settings = deepMerge_default(JSON.parse(fs.readFileSync(dest, "utf8")), JSON.parse(fs.readFileSync(src, "utf8")));
2189
+ const settings = deepMerge(JSON.parse(fs.readFileSync(dest, "utf8")), JSON.parse(fs.readFileSync(src, "utf8")));
2191
2190
  fs.writeFileSync(dest, JSON.stringify(settings, null, 2) + "\n");
2192
2191
  return;
2193
2192
  }
@@ -2208,7 +2207,6 @@ function renderTemplate(src, dest, callbacks) {
2208
2207
  }
2209
2208
  fs.copyFileSync(src, dest);
2210
2209
  }
2211
- var renderTemplate_default = renderTemplate;
2212
2210
 
2213
2211
  //#endregion
2214
2212
  //#region utils/directoryTraverse.ts
@@ -2548,7 +2546,7 @@ function getPackageManagerOptions(preferred) {
2548
2546
  //#endregion
2549
2547
  //#region package.json
2550
2548
  var name = "create-vue";
2551
- var version = "3.21.0";
2549
+ var version = "3.21.1";
2552
2550
 
2553
2551
  //#endregion
2554
2552
  //#region index.ts
@@ -2571,6 +2569,7 @@ const FEATURE_FLAGS = [
2571
2569
  "prettier",
2572
2570
  "eslint-with-prettier",
2573
2571
  "oxlint",
2572
+ "oxfmt",
2574
2573
  "vite-beta",
2575
2574
  "vue-beta"
2576
2575
  ];
@@ -2850,7 +2849,7 @@ async function init() {
2850
2849
  const templateRoot = fileURLToPath(new URL("./template", import.meta.url));
2851
2850
  const callbacks = [];
2852
2851
  const render = function render(templateName) {
2853
- renderTemplate_default(path$1.resolve(templateRoot, templateName), root, callbacks);
2852
+ renderTemplate(path$1.resolve(templateRoot, templateName), root, callbacks);
2854
2853
  };
2855
2854
  const replaceVite = () => {
2856
2855
  const content = fs.readFileSync(path$1.resolve(root, "package.json"), "utf-8");
@@ -2906,7 +2905,10 @@ async function init() {
2906
2905
  render("linting/oxlint");
2907
2906
  callbacks.push(async (dataStore) => {
2908
2907
  const oxlintrcPath = path$1.resolve(root, ".oxlintrc.json");
2909
- dataStore[oxlintrcPath] = { needsTypeScript };
2908
+ dataStore[oxlintrcPath] = {
2909
+ needsTypeScript,
2910
+ needsVitest
2911
+ };
2910
2912
  });
2911
2913
  if (needsPrettier || needsOxfmt) render("linting/formatter");
2912
2914
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-vue",
3
- "version": "3.21.0",
3
+ "version": "3.21.1",
4
4
  "description": "🛠️ The recommended way to start a Vite-powered Vue project",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/vuejs/create-vue#readme",
@@ -31,17 +31,17 @@
31
31
  "@clack/prompts": "^0.11.0",
32
32
  "@tsconfig/node24": "^24.0.4",
33
33
  "@types/eslint": "^9.6.1",
34
- "@types/node": "^24.10.9",
34
+ "@types/node": "^24.10.13",
35
35
  "@types/prompts": "^2.4.9",
36
36
  "@vue/tsconfig": "^0.8.1",
37
37
  "ejs": "^3.1.10",
38
38
  "husky": "^9.1.7",
39
39
  "lint-staged": "^16.2.7",
40
- "oxfmt": "^0.27.0",
41
- "oxlint": "~1.42.0",
40
+ "oxfmt": "^0.32.0",
41
+ "oxlint": "~1.47.0",
42
42
  "picocolors": "^1.1.1",
43
- "rolldown": "1.0.0-rc.2",
44
- "rollup-plugin-license": "^3.6.0",
43
+ "rolldown": "1.0.0-rc.4",
44
+ "rollup-plugin-license": "^3.7.0",
45
45
  "vitest": "^4.0.18",
46
46
  "zx": "^8.8.5"
47
47
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "explorer.fileNesting.enabled": true,
3
3
  "explorer.fileNesting.patterns": {
4
- "tsconfig.json": "tsconfig.*.json, env.d.ts",
4
+ "tsconfig.json": "tsconfig.*.json, env.d.ts, typed-router.d.ts",
5
5
  "vite.config.*": "jsconfig*, vitest.config.*, cypress.config.*, playwright.config.*",
6
6
  "package.json": "package-lock.json, pnpm*, .yarnrc*, yarn*, .eslint*, eslint*, .oxlint*, oxlint*, .oxfmt*, .prettier*, prettier*, .editorconfig"
7
7
  }
@@ -7,12 +7,12 @@
7
7
  "preview": "vite preview"
8
8
  },
9
9
  "dependencies": {
10
- "vue": "^3.5.27"
10
+ "vue": "^3.5.28"
11
11
  },
12
12
  "devDependencies": {
13
- "@vitejs/plugin-vue": "^6.0.3",
13
+ "@vitejs/plugin-vue": "^6.0.4",
14
14
  "vite": "^7.3.1",
15
- "vite-plugin-vue-devtools": "^8.0.5"
15
+ "vite-plugin-vue-devtools": "^8.0.6"
16
16
  },
17
17
  "engines": {
18
18
  "node": "^20.19.0 || >=22.12.0"
@@ -5,7 +5,7 @@
5
5
  "test:e2e:dev": "start-server-and-test 'vite dev --port 4173' http://localhost:4173 'cypress open --e2e'"
6
6
  },
7
7
  "devDependencies": {
8
- "cypress": "^15.9.0",
8
+ "cypress": "^15.10.0",
9
9
  "start-server-and-test": "^2.1.3"
10
10
  }
11
11
  }
@@ -4,9 +4,9 @@
4
4
  "test:unit:dev": "cypress open --component"
5
5
  },
6
6
  "dependencies": {
7
- "vue": "^3.5.27"
7
+ "vue": "^3.5.28"
8
8
  },
9
9
  "devDependencies": {
10
- "cypress": "^15.9.0"
10
+ "cypress": "^15.10.0"
11
11
  }
12
12
  }
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "dependencies": {
3
- "vue": "^3.5.27"
3
+ "vue": "^3.5.28"
4
4
  },
5
5
  "devDependencies": {
6
- "@vitejs/plugin-vue-jsx": "^5.1.3",
6
+ "@vitejs/plugin-vue-jsx": "^5.1.4",
7
7
  "vite": "^7.3.1"
8
8
  }
9
9
  }
@@ -4,8 +4,8 @@
4
4
  },
5
5
  "devDependencies": {
6
6
  "@nightwatch/vue": "^3.1.2",
7
- "@vitejs/plugin-vue": "^6.0.3",
8
- "chromedriver": "^145.0.0",
7
+ "@vitejs/plugin-vue": "^6.0.4",
8
+ "chromedriver": "^145.0.3",
9
9
  "geckodriver": "^6.1.0",
10
10
  "nightwatch": "^3.15.0",
11
11
  "ts-node": "^10.9.2",
@@ -3,7 +3,7 @@
3
3
  "test:unit": "nightwatch src/**/__tests__/*"
4
4
  },
5
5
  "dependencies": {
6
- "vue": "^3.5.27"
6
+ "vue": "^3.5.28"
7
7
  },
8
8
  "devDependencies": {
9
9
  "@vue/test-utils": "^2.4.6"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "dependencies": {
3
3
  "pinia": "^3.0.4",
4
- "vue": "^3.5.27"
4
+ "vue": "^3.5.28"
5
5
  }
6
6
  }
@@ -3,6 +3,6 @@
3
3
  "test:e2e": "playwright test"
4
4
  },
5
5
  "devDependencies": {
6
- "@playwright/test": "^1.58.1"
6
+ "@playwright/test": "^1.58.2"
7
7
  }
8
8
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "dependencies": {
3
- "vue": "^3.5.27",
4
- "vue-router": "^5.0.1"
3
+ "vue": "^3.5.28",
4
+ "vue-router": "^5.0.2"
5
5
  }
6
6
  }
@@ -5,7 +5,7 @@
5
5
  "type-check": "vue-tsc --build"
6
6
  },
7
7
  "devDependencies": {
8
- "@types/node": "^24.10.9",
8
+ "@types/node": "^24.10.13",
9
9
  "npm-run-all2": "^8.0.4",
10
10
  "typescript": "~5.9.3",
11
11
  "vue-tsc": "^3.2.4"
@@ -3,11 +3,11 @@
3
3
  "test:unit": "vitest"
4
4
  },
5
5
  "dependencies": {
6
- "vue": "^3.5.27"
6
+ "vue": "^3.5.28"
7
7
  },
8
8
  "devDependencies": {
9
9
  "@vue/test-utils": "^2.4.6",
10
- "jsdom": "^27.4.0",
10
+ "jsdom": "^28.1.0",
11
11
  "vitest": "^4.0.18"
12
12
  }
13
13
  }
@@ -3,6 +3,6 @@
3
3
  "format": "oxfmt src/"
4
4
  },
5
5
  "devDependencies": {
6
- "oxfmt": "^0.27.0"
6
+ "oxfmt": "^0.32.0"
7
7
  }
8
8
  }
@@ -4,6 +4,6 @@
4
4
  },
5
5
  "devDependencies": {
6
6
  "eslint": "^9.39.2",
7
- "eslint-plugin-vue": "~10.7.0"
7
+ "eslint-plugin-vue": "~10.8.0"
8
8
  }
9
9
  }
@@ -2,7 +2,7 @@
2
2
  "devDependencies": {
3
3
  "@eslint/js": "^9.39.2",
4
4
  "eslint": "^9.39.2",
5
- "eslint-plugin-vue": "~10.7.0",
5
+ "eslint-plugin-vue": "~10.8.0",
6
6
  "globals": "^17.3.0"
7
7
  }
8
8
  }
@@ -2,7 +2,7 @@
2
2
  "devDependencies": {
3
3
  "@vue/eslint-config-typescript": "^14.6.0",
4
4
  "eslint": "^9.39.2",
5
- "eslint-plugin-vue": "~10.7.0",
5
+ "eslint-plugin-vue": "~10.8.0",
6
6
  "jiti": "^2.6.1",
7
7
  "typescript": "~5.9.3"
8
8
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "devDependencies": {
3
- "eslint-plugin-cypress": "^5.2.1"
3
+ "eslint-plugin-cypress": "^5.3.0"
4
4
  }
5
5
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "./node_modules/oxlint/configuration_schema.json",
3
- "plugins": ["eslint"<%_ if (needsTypeScript) { _%>, "typescript"<%_ } _%>, "unicorn", "oxc", "vue"],
3
+ "plugins": ["eslint"<%_ if (needsTypeScript) { _%>, "typescript"<%_ } _%>, "unicorn", "oxc", "vue"<%_ if (needsVitest) { _%>, "vitest"<%_ } _%>],
4
4
  "env": {
5
5
  "browser": true
6
6
  },
@@ -5,8 +5,8 @@
5
5
  "lint": "run-s lint:*"
6
6
  },
7
7
  "devDependencies": {
8
- "eslint-plugin-oxlint": "~1.42.0",
8
+ "eslint-plugin-oxlint": "~1.46.0",
9
9
  "npm-run-all2": "^8.0.4",
10
- "oxlint": "~1.42.0"
10
+ "oxlint": "~1.47.0"
11
11
  }
12
12
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "devDependencies": {
3
- "@vitest/eslint-plugin": "^1.6.6"
3
+ "@vitest/eslint-plugin": "^1.6.9"
4
4
  }
5
5
  }