Skip to content

Commit aefe338

Browse files
chore(deps): update dependency node-fetch to v3 (#1115)
* chore(deps): update dependency node-fetch to v3 * Use whatwg-node fetch --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Arda TANRIKULU <[email protected]>
1 parent 88e4ceb commit aefe338

4 files changed

Lines changed: 51 additions & 9 deletions

File tree

.github/workflows/pr.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,17 @@ on:
44
branches:
55
- main
66

7+
permissions:
8+
contents: read
9+
id-token: write
10+
pull-requests: write
11+
712
jobs:
8-
# dependencies:
9-
# uses: the-guild-org/shared-config/.github/workflows/changesets-dependencies.yaml@main
10-
# secrets:
11-
# githubToken: ${{ secrets.GUILD_BOT_TOKEN }}
13+
dependencies:
14+
uses: the-guild-org/shared-config/.github/workflows/changesets-dependencies.yml@v1
15+
if: ${{ github.event.pull_request.title != 'Upcoming Release Changes' }}
16+
secrets:
17+
githubToken: ${{ secrets.GITHUB_TOKEN }}
1218

1319
release:
1420
uses: the-guild-org/shared-config/.github/workflows/release-snapshot.yml@main

packages/plugins/typescript/graphql-request/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
"devDependencies": {
5151
"@graphql-codegen/testing": "1.18.3",
5252
"@graphql-tools/schema": "10.0.27",
53-
"graphql-request": "7.2.0",
54-
"node-fetch": "2.7.0"
53+
"@whatwg-node/fetch": "0.10.12",
54+
"graphql-request": "7.2.0"
5555
},
5656
"publishConfig": {
5757
"directory": "dist",

packages/plugins/typescript/graphql-request/tests/test-files/run-example-query.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { GraphQLClient } from 'graphql-request';
2-
import fetch from 'node-fetch'; // FIXME: using `node-fetch` temporarily because `graphql-request@7` uses native fetch, which `[email protected]` from `@graphql-codegen/testing` does not support
2+
import { fetch } from '@whatwg-node/fetch'; // FIXME: using `node-fetch` temporarily because `graphql-request@7` uses native fetch, which `[email protected]` from `@graphql-codegen/testing` does not support
33
import { getSdk } from './graphql-request-sdk.js';
44

55
export function runExampleQuery(x: number, y: number) {

yarn.lock

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1338,6 +1338,11 @@
13381338
"@eslint/core" "^0.17.0"
13391339
levn "^0.4.1"
13401340

1341+
"@fastify/busboy@^3.1.1":
1342+
version "3.2.0"
1343+
resolved "https://registry.yarnpkg.com/@fastify/busboy/-/busboy-3.2.0.tgz#13ed8212f3b9ba697611529d15347f8528058cea"
1344+
integrity sha512-m9FVDXU3GT2ITSe0UaMA5rU3QkfC/UXtCU8y0gSN/GugTqtVldOBWIB5V6V3sbmenVZUIpU6f+mPEO2+m5iTaA==
1345+
13411346
"@fastify/merge-json-schemas@^0.1.0":
13421347
version "0.1.1"
13431348
resolved "https://registry.yarnpkg.com/@fastify/merge-json-schemas/-/merge-json-schemas-0.1.1.tgz#3551857b8a17a24e8c799e9f51795edb07baa0bc"
@@ -2692,6 +2697,14 @@
26922697
resolved "https://registry.yarnpkg.com/@urql/introspection/-/introspection-1.2.1.tgz#4d864c681ef540d13322d31b67b45394f2f32d83"
26932698
integrity sha512-U9FTSISz69EEK3bHWDsqux9JqOeiLzr3eDFBQ5DmHuTLaBsd5mjPdtLRzzzmb9nW1Ygd6IR8YcuM7zeNqQ5lCQ==
26942699

2700+
"@whatwg-node/disposablestack@^0.0.6":
2701+
version "0.0.6"
2702+
resolved "https://registry.yarnpkg.com/@whatwg-node/disposablestack/-/disposablestack-0.0.6.tgz#2064a1425ea66194def6df0c7a1851b6939c82bb"
2703+
integrity sha512-LOtTn+JgJvX8WfBVJtF08TGrdjuFzGJc4mkP8EdDI8ADbvO7kiexYep1o8dwnt0okb0jYclCDXF13xU7Ge4zSw==
2704+
dependencies:
2705+
"@whatwg-node/promise-helpers" "^1.0.0"
2706+
tslib "^2.6.3"
2707+
26952708
"@whatwg-node/events@^0.0.2":
26962709
version "0.0.2"
26972710
resolved "https://registry.yarnpkg.com/@whatwg-node/events/-/events-0.0.2.tgz#7b7107268d2982fc7b7aff5ee6803c64018f84dd"
@@ -2702,6 +2715,14 @@
27022715
resolved "https://registry.yarnpkg.com/@whatwg-node/events/-/events-0.0.3.tgz#13a65dd4f5893f55280f766e29ae48074927acad"
27032716
integrity sha512-IqnKIDWfXBJkvy/k6tzskWTc2NK3LcqHlb+KHGCrjOCH4jfQckRX0NAiIcC/vIqQkzLYw2r2CTSwAxcrtcD6lA==
27042717

2718+
"@whatwg-node/[email protected]":
2719+
version "0.10.12"
2720+
resolved "https://registry.yarnpkg.com/@whatwg-node/fetch/-/fetch-0.10.12.tgz#e821000cd9fc0941c7cebdf3fe13e3a36a610b71"
2721+
integrity sha512-XmsCdDgQxbM8ha7xvIbDQyO/iES2ga0wQcM5sb+mugll1F+IzSshOMPK6n1TuqDDgjTwoU01mMa6oRhHWnpDcw==
2722+
dependencies:
2723+
"@whatwg-node/node-fetch" "^0.8.2"
2724+
urlpattern-polyfill "^10.0.0"
2725+
27052726
"@whatwg-node/fetch@^0.6.0":
27062727
version "0.6.9"
27072728
resolved "https://registry.yarnpkg.com/@whatwg-node/fetch/-/fetch-0.6.9.tgz#6cc694cc0378e27b8dfed427c5bf633eda6972b9"
@@ -2744,7 +2765,17 @@
27442765
fast-url-parser "^1.1.3"
27452766
tslib "^2.3.1"
27462767

2747-
"@whatwg-node/promise-helpers@^1.0.0":
2768+
"@whatwg-node/node-fetch@^0.8.2":
2769+
version "0.8.2"
2770+
resolved "https://registry.yarnpkg.com/@whatwg-node/node-fetch/-/node-fetch-0.8.2.tgz#94baa23a12b2204803b627d934146c1cd3a398dc"
2771+
integrity sha512-1PihEl0a8hm/AZD/LVRs1lEWCZCo2Q65Xm1goaHeqR314e+/Z7NI7YE10Yser8+2iZFGtv542IYr685o3aaZ/g==
2772+
dependencies:
2773+
"@fastify/busboy" "^3.1.1"
2774+
"@whatwg-node/disposablestack" "^0.0.6"
2775+
"@whatwg-node/promise-helpers" "^1.3.2"
2776+
tslib "^2.6.3"
2777+
2778+
"@whatwg-node/promise-helpers@^1.0.0", "@whatwg-node/promise-helpers@^1.3.2":
27482779
version "1.3.2"
27492780
resolved "https://registry.yarnpkg.com/@whatwg-node/promise-helpers/-/promise-helpers-1.3.2.tgz#3b54987ad6517ef6db5920c66a6f0dada606587d"
27502781
integrity sha512-Nst5JdK47VIl9UcGwtv2Rcgyn5lWtZ0/mhRQ4G8NN2isxpq2TO30iqHzmwoJycjWuyUfg3GFXqP/gFHXeV57IA==
@@ -6091,7 +6122,7 @@ [email protected]:
60916122
lodash "^4.17.21"
60926123
propagate "^2.0.0"
60936124

6094-
node-fetch@2.7.0, node-fetch@^2.5.0, node-fetch@^2.6.1, node-fetch@^2.7.0:
6125+
node-fetch@^2.5.0, node-fetch@^2.6.1, node-fetch@^2.7.0:
60956126
version "2.7.0"
60966127
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.7.0.tgz#d0f0fa6e3e2dc1d27efcd8ad99d550bda94d187d"
60976128
integrity sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==
@@ -7644,6 +7675,11 @@ uri-js@^4.2.2:
76447675
dependencies:
76457676
punycode "^2.1.0"
76467677

7678+
urlpattern-polyfill@^10.0.0:
7679+
version "10.1.0"
7680+
resolved "https://registry.yarnpkg.com/urlpattern-polyfill/-/urlpattern-polyfill-10.1.0.tgz#1b2517e614136c73ba32948d5e7a3a063cba8e74"
7681+
integrity sha512-IGjKp/o0NL3Bso1PymYURCJxMPNAf/ILOpendP9f5B6e1rTJgdgiOvgfoT8VxCAdY+Wisb9uhGaJJf3yZ2V9nw==
7682+
76477683
urlpattern-polyfill@^6.0.2:
76487684
version "6.0.2"
76497685
resolved "https://registry.yarnpkg.com/urlpattern-polyfill/-/urlpattern-polyfill-6.0.2.tgz#a193fe773459865a2a5c93b246bb794b13d07256"

0 commit comments

Comments
 (0)