processinfo no longer works on Node.js <20
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- javascript, node.js
- Domain
- devtools
Research direction
Reproduce the failure on Node.js 16 or 18 through @tapjs/processinfo's ESM --import loader hook, then inspect the uuid.v4() call and uuid's dist-node/v4.js reference to the bare crypto global. Done means processinfo works on the supported pre-20 Node.js versions without the ReferenceError.
Written by the indexing model from the issue text.
Description
@tapjs/processinfo@3.1.12now depends onuuid@14.0.0uuid@14's node build (dist-node/v4.js) references the bare global crypto:if (!buf && !options && crypto.randomUUID) { // <-- global, not import('node:crypto')@tapjs/processinfocallsuuid.v4()from its ESM--importloader hook (the way we use it, at least.)- On Node.js versions before 20, the WebCrypto global isn't exposed unflagged, so it throws
ReferenceError: crypto is not defined
Node.js 20+ have the global, so they pass. Tap seems to officially supports Node.js 16+, but this makes it break on 16 and 18 as soon as Tap pulls in proccessinfo.
- Dominant language
- JavaScript
- Stars
- 7
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from tapjs/processinfo
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
tapjs/processinfo#6 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
tapjs/processinfo#4 ·
All issues in tapjs/processinfo
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·