vitest-environment-webgl-node 1.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
@@ -31,6 +31,8 @@ Breaking changes will be released as a new major version.
31
31
  pnpm add -D vitest vitest-environment-webgl-node
32
32
  ```
33
33
 
34
+ Requires Vitest 4 or 5. Vitest 3 is not supported.
35
+
34
36
  ## Usage
35
37
 
36
38
  ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vitest-environment-webgl-node",
3
- "version": "1.0.1",
3
+ "version": "3.0.0",
4
4
  "description": "Vitest environment that provides real headless WebGL 1/2 (ANGLE via @onirenaud/node-webgl) in Node",
5
5
  "keywords": [
6
6
  "headless",
@@ -29,8 +29,7 @@
29
29
  "dist/**/*.d.ts",
30
30
  "dist/**/*.d.ts.map",
31
31
  "src/**/*.ts",
32
- "!src/**/*.test.ts",
33
- "CHANGELOG.md"
32
+ "!src/**/*.test.ts"
34
33
  ],
35
34
  "type": "module",
36
35
  "main": "./dist/index.js",
@@ -47,17 +46,17 @@
47
46
  "publishConfig": {
48
47
  "access": "public"
49
48
  },
50
- "scripts": {
51
- "build": "tsc",
52
- "tsc": "tsc"
53
- },
54
49
  "dependencies": {
55
50
  "@onirenaud/node-webgl": "^0.2.0"
56
51
  },
57
52
  "peerDependencies": {
58
- "vitest": ">=3 <5"
53
+ "vitest": ">=4 <6"
59
54
  },
60
55
  "engines": {
61
- "node": ">=20.0.0"
56
+ "node": ">=22"
57
+ },
58
+ "scripts": {
59
+ "build": "tsc",
60
+ "tsc": "tsc"
62
61
  }
63
- }
62
+ }
package/src/index.ts CHANGED
@@ -2,7 +2,7 @@ import { getDisplayInfo, init, installDOM, type InitOptions, type InstallDOMOpti
2
2
  import { readFile } from 'node:fs/promises';
3
3
  import { extname, resolve } from 'node:path';
4
4
  import { fileURLToPath } from 'node:url';
5
- import type { Environment } from 'vitest/environments';
5
+ import type { Environment } from 'vitest/runtime';
6
6
 
7
7
  /** Set under `test.environmentOptions.webglNode` in your Vitest config. */
8
8
  export type WebglNodeOptions = InitOptions & InstallDOMOptions;
package/CHANGELOG.md DELETED
@@ -1,5 +0,0 @@
1
- ## [vitest-environment-webgl-node-v1.0.1](https://github.com/bhouston/vitest-gpu/compare/vitest-environment-webgl-node-v1.0.0...vitest-environment-webgl-node-v1.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)