@dmop/puru 0.1.11 → 0.1.13

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/llms-full.txt CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  > A thread pool with Go-style concurrency primitives for JavaScript
4
4
 
5
- puru manages a pool of worker threads and provides a simple API to run functions off the main thread. No separate worker files, no manual message passing.
5
+ puru manages a pool of worker threads and provides a simple API to run functions off the main thread. Zero runtime dependencies. No separate worker files, no manual message passing.
6
6
 
7
7
  Works on Node.js and Bun. Deno support coming soon.
8
8
 
@@ -169,7 +169,7 @@ cancel()
169
169
 
170
170
  ### ErrGroup
171
171
 
172
- Like WaitGroup, but cancels all remaining tasks on first error (modeled after Go's golang.org/x/sync/errgroup). Accepts optional Context. Supports setLimit() for concurrency throttling.
172
+ Like WaitGroup, but cancels all remaining tasks on first error — in-flight workers are terminated and queued tasks are discarded (modeled after Go's golang.org/x/sync/errgroup). Accepts optional Context. Supports setLimit() for concurrency throttling.
173
173
 
174
174
  ```typescript
175
175
  const eg = new ErrGroup()
package/llms.txt CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  > A thread pool with Go-style concurrency primitives for JavaScript
4
4
 
5
- puru manages a pool of worker threads and provides a simple API to run functions off the main thread. No separate worker files, no manual message passing.
5
+ puru manages a pool of worker threads and provides a simple API to run functions off the main thread. Zero runtime dependencies. No separate worker files, no manual message passing.
6
6
 
7
7
  Works on Node.js and Bun. Deno support coming soon.
8
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dmop/puru",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "description": "puru (プール) — A thread pool with Go-style concurrency primitives for JavaScript",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -29,6 +29,8 @@
29
29
  },
30
30
  "scripts": {
31
31
  "build": "tsup",
32
+ "format": "oxfmt src/",
33
+ "format:check": "oxfmt --check src/",
32
34
  "lint": "oxlint . --vitest-plugin --node-plugin --deny-warnings -D no-explicit-any",
33
35
  "test": "vitest run",
34
36
  "test:watch": "vitest",
@@ -74,6 +76,7 @@
74
76
  "@vitest/coverage-v8": "^3.2.4",
75
77
  "bun-types": "^1.3.11",
76
78
  "husky": "^9.1.7",
79
+ "oxfmt": "^0.43.0",
77
80
  "oxlint": "^1.58.0",
78
81
  "size-limit": "^12.0.1",
79
82
  "tsup": "^8.5.0",