@plasius/gpu-worker 0.1.2 → 0.1.4
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 +45 -1
- package/README.md +18 -1
- package/package.json +18 -4
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,34 @@ The format is based on **[Keep a Changelog](https://keepachangelog.com/en/1.1.0/
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
- **Added**
|
|
12
|
+
- (placeholder)
|
|
13
|
+
|
|
14
|
+
- **Changed**
|
|
15
|
+
- (placeholder)
|
|
16
|
+
|
|
17
|
+
- **Fixed**
|
|
18
|
+
- (placeholder)
|
|
19
|
+
|
|
20
|
+
- **Security**
|
|
21
|
+
- (placeholder)
|
|
22
|
+
|
|
23
|
+
## [0.1.4] - 2026-03-01
|
|
24
|
+
|
|
25
|
+
- **Added**
|
|
26
|
+
- `lint`, `typecheck`, and security audit scripts for local and CI enforcement.
|
|
27
|
+
|
|
28
|
+
- **Changed**
|
|
29
|
+
- CI now fails early on lint/typecheck/runtime dependency audit before build/test.
|
|
30
|
+
|
|
31
|
+
- **Fixed**
|
|
32
|
+
- Pack-check regex cleanup to remove an unnecessary path escape.
|
|
33
|
+
|
|
34
|
+
- **Security**
|
|
35
|
+
- Runtime dependency vulnerability checks are now enforced in CI.
|
|
36
|
+
|
|
37
|
+
## [0.1.3] - 2026-02-28
|
|
38
|
+
|
|
11
39
|
- **Added**
|
|
12
40
|
- (placeholder)
|
|
13
41
|
|
|
@@ -114,7 +142,23 @@ The format is based on **[Keep a Changelog](https://keepachangelog.com/en/1.1.0/
|
|
|
114
142
|
|
|
115
143
|
---
|
|
116
144
|
|
|
117
|
-
[Unreleased]: https://github.com/Plasius-LTD/gpu-worker/compare/v0.1.
|
|
145
|
+
[Unreleased]: https://github.com/Plasius-LTD/gpu-worker/compare/v0.1.4...HEAD
|
|
118
146
|
[0.1.0-beta.1]: https://github.com/Plasius-LTD/gpu-worker/releases/tag/v0.1.0-beta.1
|
|
119
147
|
[0.1.0]: https://github.com/Plasius-LTD/gpu-worker/releases/tag/v0.1.0
|
|
120
148
|
[0.1.2]: https://github.com/Plasius-LTD/gpu-worker/releases/tag/v0.1.2
|
|
149
|
+
|
|
150
|
+
## [0.1.2] - 2026-02-11
|
|
151
|
+
|
|
152
|
+
- **Added**
|
|
153
|
+
- Initial release.
|
|
154
|
+
|
|
155
|
+
- **Changed**
|
|
156
|
+
- (placeholder)
|
|
157
|
+
|
|
158
|
+
- **Fixed**
|
|
159
|
+
- (placeholder)
|
|
160
|
+
|
|
161
|
+
- **Security**
|
|
162
|
+
- (placeholder)
|
|
163
|
+
[0.1.3]: https://github.com/Plasius-LTD/gpu-worker/releases/tag/v0.1.3
|
|
164
|
+
[0.1.4]: https://github.com/Plasius-LTD/gpu-worker/releases/tag/v0.1.4
|
package/README.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# @plasius/gpu-worker
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/@plasius/gpu-worker)
|
|
3
|
+
[](https://www.npmjs.com/package/@plasius/gpu-worker)
|
|
4
|
+
[](https://github.com/Plasius-LTD/gpu-worker/actions/workflows/ci.yml)
|
|
5
|
+
[](https://codecov.io/gh/Plasius-LTD/gpu-worker)
|
|
6
|
+
[](./LICENSE)
|
|
7
|
+
[](./CODE_OF_CONDUCT.md)
|
|
8
|
+
[](./SECURITY.md)
|
|
9
|
+
[](./CHANGELOG.md)
|
|
10
|
+
|
|
4
11
|
[](https://github.com/Plasius-LTD/gpu-worker/actions/workflows/ci.yml)
|
|
5
12
|
[](./LICENSE)
|
|
6
13
|
|
|
@@ -114,6 +121,16 @@ certificate for that name and set `DEMO_HOST`, `DEMO_PORT`, `DEMO_TLS_CERT`, and
|
|
|
114
121
|
|
|
115
122
|
`npm run build` emits `dist/index.js`, `dist/index.cjs`, and `dist/worker.wgsl`.
|
|
116
123
|
|
|
124
|
+
## Development Checks
|
|
125
|
+
|
|
126
|
+
```sh
|
|
127
|
+
npm run lint
|
|
128
|
+
npm run typecheck
|
|
129
|
+
npm run test:coverage
|
|
130
|
+
npm run build
|
|
131
|
+
npm run pack:check
|
|
132
|
+
```
|
|
133
|
+
|
|
117
134
|
## Files
|
|
118
135
|
- `demo/index.html`: Loads the WebGPU demo.
|
|
119
136
|
- `demo/main.js`: WebGPU setup, queue jobs, physics worklists, and indirect draw.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasius/gpu-worker",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "WebGPU worker runtime with a lock-free job queue for WGSL workloads.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -27,10 +27,18 @@
|
|
|
27
27
|
"build": "tsup && cp src/worker.wgsl dist/worker.wgsl",
|
|
28
28
|
"demo": "python3 -m http.server",
|
|
29
29
|
"demo:https": "node demo/serve-https.js",
|
|
30
|
+
"typecheck": "node --check src/index.js",
|
|
31
|
+
"audit:eslint": "eslint . --max-warnings=0",
|
|
32
|
+
"audit:deps": "npm ls --all --omit=optional --omit=peer > /dev/null 2>&1 || true",
|
|
33
|
+
"audit:npm": "npm audit --audit-level=high --omit=dev",
|
|
34
|
+
"audit:test": "npm run test:coverage",
|
|
35
|
+
"lint": "eslint . --max-warnings=0",
|
|
30
36
|
"test": "npm run test:unit",
|
|
31
37
|
"test:unit": "node --test",
|
|
32
38
|
"test:e2e": "npx playwright install chromium && playwright test",
|
|
33
|
-
"test:coverage": "c8 --reporter=lcov --reporter=text node --test"
|
|
39
|
+
"test:coverage": "c8 --reporter=lcov --reporter=text node --test",
|
|
40
|
+
"pack:check": "node scripts/verify-public-package.cjs",
|
|
41
|
+
"prepublishOnly": "npm run build && npm run pack:check"
|
|
34
42
|
},
|
|
35
43
|
"keywords": [
|
|
36
44
|
"webgpu",
|
|
@@ -47,11 +55,14 @@
|
|
|
47
55
|
"author": "Plasius LTD <development@plasius.co.uk>",
|
|
48
56
|
"license": "Apache-2.0",
|
|
49
57
|
"dependencies": {
|
|
50
|
-
"@plasius/gpu-lock-free-queue": "^0.2.
|
|
58
|
+
"@plasius/gpu-lock-free-queue": "^0.2.2"
|
|
51
59
|
},
|
|
52
60
|
"devDependencies": {
|
|
61
|
+
"@eslint/js": "^9.39.1",
|
|
53
62
|
"@playwright/test": "^1.57.0",
|
|
54
63
|
"c8": "^10.1.3",
|
|
64
|
+
"eslint": "^9.39.1",
|
|
65
|
+
"globals": "^17.3.0",
|
|
55
66
|
"tsup": "^8.5.0",
|
|
56
67
|
"typescript": "^5.9.3"
|
|
57
68
|
},
|
|
@@ -75,5 +86,8 @@
|
|
|
75
86
|
"type": "github",
|
|
76
87
|
"url": "https://github.com/sponsors/Plasius-LTD"
|
|
77
88
|
}
|
|
78
|
-
]
|
|
89
|
+
],
|
|
90
|
+
"overrides": {
|
|
91
|
+
"minimatch": "^10.2.1"
|
|
92
|
+
}
|
|
79
93
|
}
|