-
Notifications
You must be signed in to change notification settings - Fork 1
fix: update to node 22 #112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 20 | ||
| 22 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,6 +3,9 @@ | |
| "private": true, | ||
| "version": "0.0.0", | ||
| "type": "module", | ||
| "engines": { | ||
| "node": "22.x" | ||
| }, | ||
| "scripts": { | ||
| "dev": "vite", | ||
| "build": "tsc && vite build", | ||
|
|
@@ -50,7 +53,7 @@ | |
| "@types/lodash": "^4", | ||
| "@types/mixpanel-browser": "^2.48.1", | ||
| "@types/multicoin-address-validator": "^0", | ||
| "@types/node": "^20.10.7", | ||
| "@types/node": "^22.13.14", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainBumping @types/node to ^22.13.14: check TS compatibility and potential DOM/Undici type collisions. Type packages for Node 22 may surface new globals (fetch, Request, Response via undici-types). With TypeScript at ^5.2.2 and DOM libs enabled, projects sometimes hit duplicate identifier issues. Ensure type-check passes without relying on skipLibCheck. If you encounter issues:
Verification aide: 🏁 Script executed: #!/bin/bash
set -euo pipefail
echo "Typescript & @types/node versions:"
jq -r '.devDependencies | {typescript, "@types/node"}' package.json
echo
echo "Check for tsconfig lib and skipLibCheck (may appear in multiple tsconfigs):"
fd -a tsconfig*.json | while read -r f; do
echo "----- $f"
rg -n -C1 -P '"lib"\s*:|\bskipLibCheck\b' "$f" || true
done
echo
echo "Scan for common collision indicators (Request/Response/fetch in global usage):"
rg -n -C2 -P '\b(fetch|Request|Response|Headers)\b' --type=ts --type=tsx -g '!**/node_modules/**' || trueLength of output: 555 🏁 Script executed: #!/bin/bash
set -euo pipefail
echo "Detected tsconfig files:"
fd -g 'tsconfig*.json' || true
echo
echo "Checking tsconfig files for 'lib' entries and skipLibCheck:"
fd -g 'tsconfig*.json' | while read -r file; do
echo "----- $file -----"
rg -n -C1 -P '"lib"\s*:|\bskipLibCheck\b' "$file" || true
done
echo
echo "Scanning TS/TSX sources for global fetch|Request|Response|Headers usage:"
rg -n -C2 -P '\b(fetch|Request|Response|Headers)\b' --type ts --type tsx -g '!**/node_modules/**' || trueLength of output: 1390 🏁 Script executed: #!/bin/bash
set -euo pipefail
echo "Scanning TS/TSX sources for global fetch|Request|Response|Headers usage without relying on --type:"
rg -n -C2 -P '\b(fetch|Request|Response|Headers)\b' -g '*.ts' -g '*.tsx' -g '!**/node_modules/**' || trueLength of output: 1569 skipLibCheck suppresses Node 22/DOM type collisions
🤖 Prompt for AI Agents |
||
| "@types/pify": "^5.0.0", | ||
| "@types/react": "^18.2.43", | ||
| "@types/react-dom": "^18.2.17", | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.