diff --git a/.github/actions/next-stats-action/package.json b/.github/actions/next-stats-action/package.json index 3e885927c6..eff9e4cfcc 100644 --- a/.github/actions/next-stats-action/package.json +++ b/.github/actions/next-stats-action/package.json @@ -9,7 +9,7 @@ "glob": "^10.0.0", "gzip-size": "^7.0.0", "minimatch": "^9.0.0", - "node-fetch": "^2.6.0", + "node-fetch": "^3.0.0", "prettier": "^2.8.4", "pretty-bytes": "^5.3.0", "pretty-ms": "^5.0.0", diff --git a/.github/pnpm-lock.yaml b/.github/pnpm-lock.yaml index 8b2c65c0dd..c27a0fcd53 100644 --- a/.github/pnpm-lock.yaml +++ b/.github/pnpm-lock.yaml @@ -100,8 +100,8 @@ importers: specifier: ^9.0.0 version: 9.0.3 node-fetch: - specifier: ^2.6.0 - version: 2.6.12 + specifier: ^3.0.0 + version: 3.3.2 prettier: specifier: ^2.8.4 version: 2.8.8 @@ -504,6 +504,11 @@ packages: which: 2.0.2 dev: false + /data-uri-to-buffer@4.0.1: + resolution: {integrity: sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==} + engines: {node: '>= 12'} + dev: false + /delayed-stream@1.0.0: resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==} engines: {node: '>=0.4.0'} @@ -575,6 +580,14 @@ packages: resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==} dev: false + /fetch-blob@3.2.0: + resolution: {integrity: sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==} + engines: {node: ^12.20 || >= 14.13} + dependencies: + node-domexception: 1.0.0 + web-streams-polyfill: 3.2.1 + dev: false + /follow-redirects@1.15.2: resolution: {integrity: sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==} engines: {node: '>=4.0'} @@ -611,6 +624,13 @@ packages: mime-types: 2.1.35 dev: false + /formdata-polyfill@4.0.10: + resolution: {integrity: sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==} + engines: {node: '>=12.20.0'} + dependencies: + fetch-blob: 3.2.0 + dev: false + /fs-extra@11.1.1: resolution: {integrity: sha512-MGIE4HOvQCeUCzmlHs0vXpih4ysz4wg9qiSAu6cd42lVwPbTM1TjV7RusoyQqMmk/95gdQZX72u+YW+c3eEpFQ==} engines: {node: '>=14.14'} @@ -916,16 +936,18 @@ packages: engines: {node: '>=16 || 14 >=14.17'} dev: false - /node-fetch@2.6.12: - resolution: {integrity: sha512-C/fGU2E8ToujUivIO0H+tpQ6HWo4eEmchoPIoXtxCrVghxdKq+QOHqEZW7tuP3KlV3bC8FRMO5nMCC7Zm1VP6g==} - engines: {node: 4.x || >=6.0.0} - peerDependencies: - encoding: ^0.1.0 - peerDependenciesMeta: - encoding: - optional: true + /node-domexception@1.0.0: + resolution: {integrity: sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==} + engines: {node: '>=10.5.0'} + dev: false + + /node-fetch@3.3.2: + resolution: {integrity: sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} dependencies: - whatwg-url: 5.0.0 + data-uri-to-buffer: 4.0.1 + fetch-blob: 3.2.0 + formdata-polyfill: 4.0.10 dev: false /npm-run-path@5.1.0: @@ -1178,10 +1200,6 @@ packages: inline-style-parser: 0.1.1 dev: false - /tr46@0.0.3: - resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} - dev: false - /trim-lines@1.1.3: resolution: {integrity: sha512-E0ZosSWYK2mkSu+KEtQ9/KqarVjA9HztOSX+9FDdNacRAq29RRV6ZQNgob3iuW8Htar9vAfEa6yyt5qBAHZDBA==} dev: false @@ -1334,15 +1352,9 @@ packages: resolution: {integrity: sha512-wYxSGajtmoP4WxfejAPIr4l0fVh+jeMXZb08wNc0tMg6xsfZXj3cECqIK0G7ZAqUq0PP8WlMDtaOGVBTAWztNw==} dev: false - /webidl-conversions@3.0.1: - resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} - dev: false - - /whatwg-url@5.0.0: - resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==} - dependencies: - tr46: 0.0.3 - webidl-conversions: 3.0.1 + /web-streams-polyfill@3.2.1: + resolution: {integrity: sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==} + engines: {node: '>= 8'} dev: false /which@2.0.2: diff --git a/package.json b/package.json index 1e0d514623..f6ca75307f 100644 --- a/package.json +++ b/package.json @@ -168,7 +168,7 @@ "moment": "^2.24.0", "nanoid": "5.0.1", "next": "workspace:*", - "node-fetch": "2.7.0", + "node-fetch": "3.3.2", "npm-run-all": "4.1.5", "nprogress": "0.2.0", "octokit": "3.1.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2383bb2810..2ab9436cc6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -160,7 +160,7 @@ importers: version: 6.7.5(eslint@8.51.0)(typescript@5.2.2) '@vercel/fetch': specifier: 7.0.0 - version: 7.0.0(@types/node-fetch@2.6.6)(node-fetch@2.7.0) + version: 7.0.0(@types/node-fetch@2.6.6)(node-fetch@3.3.2) '@vercel/og': specifier: 0.5.18 version: 0.5.18 @@ -351,8 +351,8 @@ importers: specifier: workspace:* version: link:packages/next node-fetch: - specifier: 2.7.0 - version: 2.7.0 + specifier: 3.3.2 + version: 3.3.2 npm-run-all: specifier: 4.1.5 version: 4.1.5 @@ -7181,29 +7181,29 @@ packages: eslint-visitor-keys: 3.4.3 dev: true - /@vercel/fetch-cached-dns@2.0.2(node-fetch@2.7.0): + /@vercel/fetch-cached-dns@2.0.2(node-fetch@3.3.2): resolution: {integrity: sha512-gDqKEV8CeY2YmCdZpP1rn3tFK1L07Vw2+HYkCK8zpRHOVGr/sP8yhBsW+C/yqGVj0i9z/rIvqIHe5emvRvxwgw==} peerDependencies: node-fetch: '*' dependencies: '@types/node-fetch': 2.3.2 '@zeit/dns-cached-resolve': 2.1.2 - node-fetch: 2.7.0 + node-fetch: 3.3.2 dev: true - /@vercel/fetch-retry@5.0.3(node-fetch@2.7.0): + /@vercel/fetch-retry@5.0.3(node-fetch@3.3.2): resolution: {integrity: sha512-DIIoBY92r+sQ6iHSf5WjKiYvkdsDIMPWKYATlE0KcUAj2RV6SZK9UWpUzBRKsofXqedOqpVjrI0IE6AWL7JRtg==} peerDependencies: node-fetch: '*' dependencies: async-retry: 1.3.3 debug: 3.2.7 - node-fetch: 2.7.0 + node-fetch: 3.3.2 transitivePeerDependencies: - supports-color dev: true - /@vercel/fetch@7.0.0(@types/node-fetch@2.6.6)(node-fetch@2.7.0): + /@vercel/fetch@7.0.0(@types/node-fetch@2.6.6)(node-fetch@3.3.2): resolution: {integrity: sha512-zxZCtiZ2ICoaXCELiCnJbZqWWoQOMpsTyvPJBvCyXRnyQjuZkcCoWTaubUulxdFKCrSeJOgugJ2UtsjbLUlj1w==} peerDependencies: '@types/node-fetch': ^2.6.1 @@ -7211,11 +7211,11 @@ packages: dependencies: '@types/async-retry': 1.4.6 '@types/node-fetch': 2.6.6 - '@vercel/fetch-cached-dns': 2.0.2(node-fetch@2.7.0) - '@vercel/fetch-retry': 5.0.3(node-fetch@2.7.0) + '@vercel/fetch-cached-dns': 2.0.2(node-fetch@3.3.2) + '@vercel/fetch-retry': 5.0.3(node-fetch@3.3.2) agentkeepalive: 4.5.0 debug: 4.3.4 - node-fetch: 2.7.0 + node-fetch: 3.3.2 transitivePeerDependencies: - supports-color dev: true