vitest-environment-webgpu-node 2.0.1 → 3.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/README.md CHANGED
@@ -24,7 +24,7 @@ in [jest-gpu](https://github.com/bhouston/jest-gpu).
24
24
  pnpm add -D vitest vitest-environment-webgpu-node
25
25
  ```
26
26
 
27
- Type checking needs TypeScript 6 or later (see [TypeScript types](#typescript-types)).
27
+ Requires Vitest 4 or 5 (Vitest 3 is not supported). Type checking needs TypeScript 6 or later (see [TypeScript types](#typescript-types)).
28
28
 
29
29
  ## Usage
30
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vitest-environment-webgpu-node",
3
- "version": "2.0.1",
3
+ "version": "3.0.0",
4
4
  "description": "Vitest environment that provides real headless WebGPU (Dawn via the webgpu package) in Node",
5
5
  "keywords": [
6
6
  "dawn",
@@ -27,8 +27,7 @@
27
27
  "dist/**/*.d.ts",
28
28
  "dist/**/*.d.ts.map",
29
29
  "src/**/*.ts",
30
- "!src/**/*.test.ts",
31
- "CHANGELOG.md"
30
+ "!src/**/*.test.ts"
32
31
  ],
33
32
  "type": "module",
34
33
  "main": "./dist/index.js",
@@ -42,16 +41,12 @@
42
41
  "publishConfig": {
43
42
  "access": "public"
44
43
  },
45
- "scripts": {
46
- "build": "tsc",
47
- "tsc": "tsc"
48
- },
49
44
  "dependencies": {
50
45
  "webgpu": "^0.6.1"
51
46
  },
52
47
  "peerDependencies": {
53
48
  "typescript": ">=6",
54
- "vitest": ">=3 <5"
49
+ "vitest": ">=4 <6"
55
50
  },
56
51
  "peerDependenciesMeta": {
57
52
  "typescript": {
@@ -59,6 +54,10 @@
59
54
  }
60
55
  },
61
56
  "engines": {
62
- "node": ">=20.0.0"
57
+ "node": ">=22"
58
+ },
59
+ "scripts": {
60
+ "build": "tsc",
61
+ "tsc": "tsc"
63
62
  }
64
- }
63
+ }
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Environment } from 'vitest/environments';
1
+ import type { Environment } from 'vitest/runtime';
2
2
  import { create, globals } from 'webgpu';
3
3
  import { HeadlessCanvas } from './canvas.js';
4
4
 
package/CHANGELOG.md DELETED
@@ -1,5 +0,0 @@
1
- ## [vitest-environment-webgpu-node-v2.0.1](https://github.com/bhouston/vitest-gpu/compare/vitest-environment-webgpu-node-v2.0.0...vitest-environment-webgpu-node-v2.0.1) (2026-09-25)
2
-
3
- ### Bug Fixes
4
-
5
- * drop deprecated transformMode from GPU environments ([28f736a](https://github.com/bhouston/vitest-gpu/commit/28f736ad629a2a3ca023839cadce460d0d5c6937)), closes [#54](https://github.com/bhouston/vitest-gpu/issues/54)