create-vue 3.21.1 → 3.22.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.
Files changed (31) hide show
  1. package/LICENSE +24 -24
  2. package/bundle.js +1559 -888
  3. package/locales/en-US.json +1 -1
  4. package/locales/fr-FR.json +1 -1
  5. package/locales/tr-TR.json +1 -1
  6. package/locales/zh-Hans.json +1 -1
  7. package/locales/zh-Hant.json +1 -1
  8. package/package.json +7 -7
  9. package/template/base/package.json +1 -1
  10. package/template/config/cypress/package.json +2 -2
  11. package/template/config/cypress-ct/package.json +2 -2
  12. package/template/config/jsx/package.json +1 -1
  13. package/template/config/nightwatch/package.json +1 -1
  14. package/template/config/nightwatch-ct/package.json +1 -1
  15. package/template/config/pinia/package.json +1 -1
  16. package/template/config/router/package.json +2 -2
  17. package/template/config/typescript/package.json +2 -2
  18. package/template/config/vitest/package.json +1 -1
  19. package/template/formatting/oxfmt/package.json +1 -1
  20. package/template/linting/base/package.json +1 -1
  21. package/template/linting/core/js/package.json +2 -2
  22. package/template/linting/core/ts/package.json +2 -2
  23. package/template/linting/cypress/package.json +1 -1
  24. package/template/linting/oxlint/package.json +2 -2
  25. package/template/linting/playwright/package.json +1 -1
  26. package/template/tsconfig/base/tsconfig.app.json +8 -2
  27. package/template/tsconfig/base/tsconfig.node.json +13 -4
  28. package/template/tsconfig/cypress-ct/tsconfig.cypress-ct.json +2 -0
  29. package/template/tsconfig/nightwatch-ct/tsconfig.app.json +8 -2
  30. package/template/tsconfig/vitest/package.json +1 -1
  31. package/template/tsconfig/vitest/tsconfig.vitest.json +11 -3
@@ -19,7 +19,7 @@
19
19
  "hint": "(↑/↓ to navigate, space to select, a to toggle all, enter to confirm)"
20
20
  },
21
21
  "needsTypeScript": {
22
- "message": "TypeScript"
22
+ "message": "Use TypeScript?"
23
23
  },
24
24
  "needsJsx": {
25
25
  "message": "JSX Support"
@@ -19,7 +19,7 @@
19
19
  "hint": "(↑/↓ pour naviguer, espace pour sélectionner, a pour tout sélectionner, entrée pour confirmer)"
20
20
  },
21
21
  "needsTypeScript": {
22
- "message": "TypeScript"
22
+ "message": "Utiliser TypeScript\u00a0?"
23
23
  },
24
24
  "needsJsx": {
25
25
  "message": "Support de JSX"
@@ -19,7 +19,7 @@
19
19
  "hint": "(↑/↓ gezinmek için, boşluk seçmek için, a tümünü seçmek için, enter onaylamak için)"
20
20
  },
21
21
  "needsTypeScript": {
22
- "message": "TypeScript"
22
+ "message": "TypeScript kullanılsın mı?"
23
23
  },
24
24
  "needsJsx": {
25
25
  "message": "JSX Desteği"
@@ -19,7 +19,7 @@
19
19
  "hint": "(↑/↓ 切换,空格选择,a 全选,回车确认)"
20
20
  },
21
21
  "needsTypeScript": {
22
- "message": "TypeScript"
22
+ "message": "是否使用 TypeScript 语法?"
23
23
  },
24
24
  "needsJsx": {
25
25
  "message": "JSX 支持"
@@ -19,7 +19,7 @@
19
19
  "hint": "(↑/↓ 切換,空格選擇,a 全選,enter 確認)"
20
20
  },
21
21
  "needsTypeScript": {
22
- "message": "TypeScript"
22
+ "message": "是否使用 TypeScript"
23
23
  },
24
24
  "needsJsx": {
25
25
  "message": "JSX 支援"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-vue",
3
- "version": "3.21.1",
3
+ "version": "3.22.0",
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",
@@ -28,19 +28,19 @@
28
28
  "provenance": true
29
29
  },
30
30
  "devDependencies": {
31
- "@clack/prompts": "^0.11.0",
31
+ "@clack/prompts": "^1.0.1",
32
32
  "@tsconfig/node24": "^24.0.4",
33
33
  "@types/eslint": "^9.6.1",
34
- "@types/node": "^24.10.13",
34
+ "@types/node": "^24.11.0",
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
- "lint-staged": "^16.2.7",
40
- "oxfmt": "^0.32.0",
41
- "oxlint": "~1.47.0",
39
+ "lint-staged": "^16.3.0",
40
+ "oxfmt": "^0.35.0",
41
+ "oxlint": "~1.50.0",
42
42
  "picocolors": "^1.1.1",
43
- "rolldown": "1.0.0-rc.4",
43
+ "rolldown": "1.0.0-rc.6",
44
44
  "rollup-plugin-license": "^3.7.0",
45
45
  "vitest": "^4.0.18",
46
46
  "zx": "^8.8.5"
@@ -7,7 +7,7 @@
7
7
  "preview": "vite preview"
8
8
  },
9
9
  "dependencies": {
10
- "vue": "^3.5.28"
10
+ "vue": "^3.5.29"
11
11
  },
12
12
  "devDependencies": {
13
13
  "@vitejs/plugin-vue": "^6.0.4",
@@ -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.10.0",
9
- "start-server-and-test": "^2.1.3"
8
+ "cypress": "^15.11.0",
9
+ "start-server-and-test": "^2.1.5"
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.28"
7
+ "vue": "^3.5.29"
8
8
  },
9
9
  "devDependencies": {
10
- "cypress": "^15.10.0"
10
+ "cypress": "^15.11.0"
11
11
  }
12
12
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "dependencies": {
3
- "vue": "^3.5.28"
3
+ "vue": "^3.5.29"
4
4
  },
5
5
  "devDependencies": {
6
6
  "@vitejs/plugin-vue-jsx": "^5.1.4",
@@ -5,7 +5,7 @@
5
5
  "devDependencies": {
6
6
  "@nightwatch/vue": "^3.1.2",
7
7
  "@vitejs/plugin-vue": "^6.0.4",
8
- "chromedriver": "^145.0.3",
8
+ "chromedriver": "^146.0.0",
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.28"
6
+ "vue": "^3.5.29"
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.28"
4
+ "vue": "^3.5.29"
5
5
  }
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "dependencies": {
3
- "vue": "^3.5.28",
4
- "vue-router": "^5.0.2"
3
+ "vue": "^3.5.29",
4
+ "vue-router": "^5.0.3"
5
5
  }
6
6
  }
@@ -5,9 +5,9 @@
5
5
  "type-check": "vue-tsc --build"
6
6
  },
7
7
  "devDependencies": {
8
- "@types/node": "^24.10.13",
8
+ "@types/node": "^24.11.0",
9
9
  "npm-run-all2": "^8.0.4",
10
10
  "typescript": "~5.9.3",
11
- "vue-tsc": "^3.2.4"
11
+ "vue-tsc": "^3.2.5"
12
12
  }
13
13
  }
@@ -3,7 +3,7 @@
3
3
  "test:unit": "vitest"
4
4
  },
5
5
  "dependencies": {
6
- "vue": "^3.5.28"
6
+ "vue": "^3.5.29"
7
7
  },
8
8
  "devDependencies": {
9
9
  "@vue/test-utils": "^2.4.6",
@@ -3,6 +3,6 @@
3
3
  "format": "oxfmt src/"
4
4
  },
5
5
  "devDependencies": {
6
- "oxfmt": "^0.32.0"
6
+ "oxfmt": "^0.35.0"
7
7
  }
8
8
  }
@@ -3,7 +3,7 @@
3
3
  "lint": "eslint . --fix --cache"
4
4
  },
5
5
  "devDependencies": {
6
- "eslint": "^9.39.2",
6
+ "eslint": "^10.0.2",
7
7
  "eslint-plugin-vue": "~10.8.0"
8
8
  }
9
9
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "devDependencies": {
3
- "@eslint/js": "^9.39.2",
4
- "eslint": "^9.39.2",
3
+ "@eslint/js": "^10.0.1",
4
+ "eslint": "^10.0.2",
5
5
  "eslint-plugin-vue": "~10.8.0",
6
6
  "globals": "^17.3.0"
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "devDependencies": {
3
- "@vue/eslint-config-typescript": "^14.6.0",
4
- "eslint": "^9.39.2",
3
+ "@vue/eslint-config-typescript": "^14.7.0",
4
+ "eslint": "^10.0.2",
5
5
  "eslint-plugin-vue": "~10.8.0",
6
6
  "jiti": "^2.6.1",
7
7
  "typescript": "~5.9.3"
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "devDependencies": {
3
- "eslint-plugin-cypress": "^5.3.0"
3
+ "eslint-plugin-cypress": "^6.1.0"
4
4
  }
5
5
  }
@@ -5,8 +5,8 @@
5
5
  "lint": "run-s lint:*"
6
6
  },
7
7
  "devDependencies": {
8
- "eslint-plugin-oxlint": "~1.46.0",
8
+ "eslint-plugin-oxlint": "~1.50.0",
9
9
  "npm-run-all2": "^8.0.4",
10
- "oxlint": "~1.47.0"
10
+ "oxlint": "~1.50.0"
11
11
  }
12
12
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "devDependencies": {
3
- "eslint-plugin-playwright": "^2.5.1"
3
+ "eslint-plugin-playwright": "^2.8.0"
4
4
  }
5
5
  }
@@ -3,10 +3,16 @@
3
3
  "include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
4
4
  "exclude": ["src/**/__tests__/*"],
5
5
  "compilerOptions": {
6
- "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
6
+ // Extra safety for array and object lookups, but may have false positives.
7
+ "noUncheckedIndexedAccess": true,
7
8
 
9
+ // Path mapping for cleaner imports.
8
10
  "paths": {
9
11
  "@/*": ["./src/*"]
10
- }
12
+ },
13
+
14
+ // `vue-tsc --build` produces a .tsbuildinfo file for incremental type-checking.
15
+ // Specified here to keep it out of the root directory.
16
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo"
11
17
  }
12
18
  }
@@ -1,3 +1,4 @@
1
+ // TSConfig for modules that run in Node.js environment via either transpilation or type-stripping.
1
2
  {
2
3
  "extends": "@tsconfig/node24/tsconfig.json",
3
4
  "include": [
@@ -9,11 +10,19 @@
9
10
  "eslint.config.*"
10
11
  ],
11
12
  "compilerOptions": {
13
+ // Most tools use transpilation instead of Node.js's native type-stripping.
14
+ // Bundler mode provides a smoother developer experience.
15
+ "module": "preserve",
16
+ "moduleResolution": "bundler",
17
+
18
+ // Include Node.js types and avoid accidentally including other `@types/*` packages.
19
+ "types": ["node"],
20
+
21
+ // Disable emitting output during `vue-tsc --build`, which is used for type-checking only.
12
22
  "noEmit": true,
13
- "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
14
23
 
15
- "module": "ESNext",
16
- "moduleResolution": "Bundler",
17
- "types": ["node"]
24
+ // `vue-tsc --build` produces a .tsbuildinfo file for incremental type-checking.
25
+ // Specified here to keep it out of the root directory.
26
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo"
18
27
  }
19
28
  }
@@ -9,6 +9,8 @@
9
9
  ],
10
10
  "exclude": [],
11
11
  "compilerOptions": {
12
+ // `vue-tsc --build` produces a .tsbuildinfo file for incremental type-checking.
13
+ // Specified here to keep it out of the root directory.
12
14
  "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.cypress-ct.tsbuildinfo"
13
15
  }
14
16
  }
@@ -3,10 +3,16 @@
3
3
  "include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
4
4
  "exclude": ["src/**/__tests__/*"],
5
5
  "compilerOptions": {
6
- "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
6
+ // Extra safety for array and object lookups, but may have false positives.
7
+ "noUncheckedIndexedAccess": true,
7
8
 
9
+ // Path mapping for cleaner imports.
8
10
  "paths": {
9
11
  "@/*": ["./src/*"]
10
- }
12
+ },
13
+
14
+ // `vue-tsc --build` produces a .tsbuildinfo file for incremental type-checking.
15
+ // Specified here to keep it out of the root directory.
16
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo"
11
17
  }
12
18
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "devDependencies": {
3
- "@types/jsdom": "^27.0.0"
3
+ "@types/jsdom": "^28.0.0"
4
4
  }
5
5
  }
@@ -1,11 +1,19 @@
1
1
  {
2
2
  "extends": "./tsconfig.app.json",
3
+
4
+ // Override to include only test files and clear exclusions.
5
+ // Application code imported in tests is automatically included via module resolution.
3
6
  "include": ["src/**/__tests__/*", "env.d.ts"],
4
7
  "exclude": [],
5
- "compilerOptions": {
6
- "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.vitest.tsbuildinfo",
7
8
 
9
+ "compilerOptions": {
10
+ // Vitest runs in a different environment than the application code.
11
+ // Adjust lib and types accordingly.
8
12
  "lib": [],
9
- "types": ["node", "jsdom"]
13
+ "types": ["node", "jsdom"],
14
+
15
+ // `vue-tsc --build` produces a .tsbuildinfo file for incremental type-checking.
16
+ // Specified here to keep it out of the root directory.
17
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.vitest.tsbuildinfo"
10
18
  }
11
19
  }