@jmlweb/vitest-config 1.0.7 → 2.0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @jmlweb/vitest-config
2
2
 
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - b2e7aa5: Update to Vitest v4 with automatic thread pool management
8
+
3
9
  ## 1.0.7
4
10
 
5
11
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -78,16 +78,9 @@ var config = (0, import_config.defineConfig)({
78
78
  // threads: faster but may have issues with shared state
79
79
  // forks: more isolated but slower
80
80
  // Use threads by default for better performance
81
- pool: "threads",
82
- // Pool options for better performance
83
- poolOptions: {
84
- threads: {
85
- // Use all available CPUs minus 1 to leave one for the system
86
- minThreads: 1,
87
- maxThreads: void 0
88
- // Let Vitest decide based on available CPUs
89
- }
90
- }
81
+ pool: "threads"
82
+ // Note: poolOptions.threads.minThreads and maxThreads were removed in Vitest 4
83
+ // Vitest now automatically manages thread pool based on available CPUs
91
84
  }
92
85
  });
93
86
  var index_default = config;
package/dist/index.js CHANGED
@@ -54,16 +54,9 @@ var config = defineConfig({
54
54
  // threads: faster but may have issues with shared state
55
55
  // forks: more isolated but slower
56
56
  // Use threads by default for better performance
57
- pool: "threads",
58
- // Pool options for better performance
59
- poolOptions: {
60
- threads: {
61
- // Use all available CPUs minus 1 to leave one for the system
62
- minThreads: 1,
63
- maxThreads: void 0
64
- // Let Vitest decide based on available CPUs
65
- }
66
- }
57
+ pool: "threads"
58
+ // Note: poolOptions.threads.minThreads and maxThreads were removed in Vitest 4
59
+ // Vitest now automatically manages thread pool based on available CPUs
67
60
  }
68
61
  });
69
62
  var index_default = config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jmlweb/vitest-config",
3
- "version": "1.0.7",
3
+ "version": "2.0.0",
4
4
  "description": "Base Vitest configuration for jmlweb projects with TypeScript support and coverage settings",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -48,9 +48,11 @@
48
48
  "vitest": ">=1.0.0"
49
49
  },
50
50
  "devDependencies": {
51
+ "@vitest/coverage-v8": "^4.0.16",
52
+ "@vitest/ui": "^4.0.16",
51
53
  "tsup": "^8.5.1",
52
54
  "typescript": "^5.9.3",
53
- "vitest": "^2.1.8",
55
+ "vitest": "^4.0.16",
54
56
  "@jmlweb/tsconfig-internal": "0.0.1"
55
57
  },
56
58
  "scripts": {