Skip to content

Commit ffb02ee

Browse files
chore(deps): update dependency @whatwg-node/fetch to v0.10.13 (#4282)
* chore(deps): update dependency @whatwg-node/fetch to v0.10.13 * Node 25 * More * Bump graphql * Patch jest * Patch * Already set --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Arda TANRIKULU <[email protected]>
1 parent 4c3a05c commit ffb02ee

File tree

8 files changed

+131
-38
lines changed

8 files changed

+131
-38
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ jobs:
7575
runs-on: ubuntu-latest
7676
strategy:
7777
matrix:
78-
node-version: [18, 20, 24]
79-
graphql-version: ['15.10.1', '16.10.0']
78+
node-version: [18, 20, 25]
79+
graphql-version: ['15.10.1', '16.12.0']
8080
steps:
8181
- name: Checkout Repository
8282
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
@@ -113,10 +113,6 @@ jobs:
113113
- name: Build Packages
114114
run: pnpm build
115115

116-
- if: ${{matrix.node-version == '25'}}
117-
name: Disable Local Storage
118-
run: "NODE_OPTIONS=\"--no-webstorage\" > $GITHUB_ENV"
119-
120116
- name: Run Unit Tests
121117
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
122118
with:
@@ -136,8 +132,8 @@ jobs:
136132
runs-on: ubuntu-latest
137133
strategy:
138134
matrix:
139-
node-version: [18, 20, 24]
140-
graphql-version: ['15.10.1', '16.10.0']
135+
node-version: [18, 20, 25]
136+
graphql-version: ['15.10.1', '16.12.0']
141137
steps:
142138
- name: Checkout Repository
143139
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
@@ -177,10 +173,6 @@ jobs:
177173
- name: Build Packages
178174
run: pnpm build
179175

180-
- if: ${{matrix.node-version == '25'}}
181-
name: Disable Local Storage
182-
run: "NODE_OPTIONS=\"--no-webstorage\" > $GITHUB_ENV"
183-
184176
- name: Run Integration Tests
185177
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
186178
with:

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v24
1+
v25

examples/generic-auth/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
},
1818
"devDependencies": {
1919
"@types/node": "24.10.0",
20-
"@whatwg-node/fetch": "0.10.12",
20+
"@whatwg-node/fetch": "0.10.13",
2121
"cross-env": "10.1.0",
2222
"tsx": "4.20.6",
2323
"typescript": "5.9.3"

examples/sveltekit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"@types/jest": "^30.0.0",
2222
"@typescript-eslint/eslint-plugin": "8.46.3",
2323
"@typescript-eslint/parser": "8.46.3",
24-
"@whatwg-node/fetch": "0.10.12",
24+
"@whatwg-node/fetch": "0.10.13",
2525
"eslint": "9.39.1",
2626
"eslint-config-prettier": "10.1.8",
2727
"eslint-plugin-svelte3": "4.0.0",

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@
102102
"patchedDependencies": {
103103
"@changesets/[email protected]": "patches/@[email protected]",
104104
"jest-leak-detector": "patches/jest-leak-detector.patch",
105-
"package-up": "patches/package-up.patch"
105+
"package-up": "patches/package-up.patch",
106+
"jest-environment-node": "patches/jest-environment-node.patch"
106107
},
107108
"overrides": {
108109
"axios": "1.13.2",
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
diff --git a/build/index.js b/build/index.js
2+
index 866ad663d0f392c721c39cbcb3be88d19b85fac2..52d55b21306e668344fd0416aad8aaa6914bc364 100644
3+
--- a/build/index.js
4+
+++ b/build/index.js
5+
@@ -61,9 +61,19 @@ function _jestValidate() {
6+
*/
7+
8+
// some globals we do not want, either because deprecated or we set it ourselves
9+
-const denyList = new Set(['GLOBAL', 'root', 'global', 'globalThis', 'Buffer', 'ArrayBuffer', 'Uint8Array',
10+
-// if env is loaded within a jest test
11+
-'jest-symbol-do-not-touch']);
12+
+const denyList = new Set([
13+
+ 'GLOBAL',
14+
+ 'root',
15+
+ 'global',
16+
+ 'globalThis',
17+
+ 'Buffer',
18+
+ 'ArrayBuffer',
19+
+ 'Uint8Array',
20+
+ // if env is loaded within a jest test
21+
+ 'jest-symbol-do-not-touch',
22+
+ // Fixes "SecurityError: Cannot initialize local storage without a `--localstorage-file` path" on Node 25
23+
+ 'localStorage'
24+
+]);
25+
const nodeGlobals = new Map(Object.getOwnPropertyNames(globalThis).filter(global => !denyList.has(global)).map(nodeGlobalsKey => {
26+
const descriptor = Object.getOwnPropertyDescriptor(globalThis, nodeGlobalsKey);
27+
if (!descriptor) {

0 commit comments

Comments
 (0)