andywer / andywer/threads.js

Maintained fork for Node 20+ / ESM / webpack 5: threadsx

未關閉
#497 0 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
TypeScript
星號
3.5k
分支
173
PR 合併指標
30 天內沒有已合併 PR

描述

First, thanks for threads.js — it's a great API and has been hugely useful.

Since the project hasn't seen active maintenance recently, I've published a maintained fork, **[threadsx](https://github.com/jmaleonard/threadsx)** (`npm install threadsx`), for anyone currently blocked. The public API is unchanged. It addresses several open issues here:

- Native ESM support (#496, #452, #434)
- TypeScript + webpack 5 / Vite worker bundling via the standard `new Worker(new URL("./worker", import.meta.url))` form — no `threads-plugin` (#387, #466, #483)
- Process not exiting after `Thread.terminate()` — fixed a worker/timer leak (#345)
- Node 20+ floor with native `worker_threads` (drops the `tiny-worker` fallback)

Docs: https://threadsx.jmaleonard.com · Changelog: v2.0.0

Happy to send fixes back upstream too if you'd ever like to pick maintenance back up. Not trying to step on the project — just want to help folks who are stuck. 🙏

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。