From 19da72e1e4c020a43fa8bef723477b3c453a7072 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 2 Jan 2024 10:06:10 -0700 Subject: [PATCH 1/4] chore(deps): update all dependencies - patch updates (#11453) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package-lock.json | 96 ++++++++++++++++++++++------------------------- package.json | 16 ++++---- 2 files changed, 53 insertions(+), 59 deletions(-) diff --git a/package-lock.json b/package-lock.json index c30586541d4..6d94df3b62a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,7 +24,7 @@ "zen-observable-ts": "^1.2.5" }, "devDependencies": { - "@arethetypeswrong/cli": "0.13.3", + "@arethetypeswrong/cli": "0.13.5", "@babel/parser": "7.23.6", "@changesets/changelog-github": "0.5.0", "@changesets/cli": "2.27.1", @@ -33,10 +33,10 @@ "@rollup/plugin-node-resolve": "11.2.1", "@size-limit/esbuild-why": "11.0.1", "@size-limit/preset-small-lib": "11.0.1", - "@testing-library/jest-dom": "6.1.5", + "@testing-library/jest-dom": "6.1.6", "@testing-library/react": "14.1.2", "@testing-library/react-12": "npm:@testing-library/react@^12", - "@testing-library/user-event": "14.5.1", + "@testing-library/user-event": "14.5.2", "@tsconfig/node20": "20.1.2", "@types/bytes": "3.1.4", "@types/fetch-mock": "7.3.8", @@ -44,9 +44,9 @@ "@types/hoist-non-react-statics": "3.3.5", "@types/jest": "29.5.11", "@types/lodash": "4.14.202", - "@types/node": "20.10.5", - "@types/node-fetch": "2.6.9", - "@types/react": "18.2.45", + "@types/node": "20.10.6", + "@types/node-fetch": "2.6.10", + "@types/react": "18.2.46", "@types/react-dom": "18.2.18", "@types/use-sync-external-store": "0.0.6", "@typescript-eslint/eslint-plugin": "6.14.0", @@ -54,7 +54,7 @@ "@typescript-eslint/rule-tester": "6.14.0", "@typescript-eslint/types": "6.14.0", "@typescript-eslint/utils": "6.14.0", - "acorn": "8.11.2", + "acorn": "8.11.3", "blob-polyfill": "7.0.20220408", "bytes": "3.1.2", "cross-fetch": "4.0.0", @@ -67,7 +67,7 @@ "fetch-mock": "9.11.0", "glob": "8.1.0", "graphql": "16.8.1", - "graphql-ws": "5.14.2", + "graphql-ws": "5.14.3", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "jest-junit": "16.0.0", @@ -147,12 +147,12 @@ "dev": true }, "node_modules/@arethetypeswrong/cli": { - "version": "0.13.3", - "resolved": "https://registry.npmjs.org/@arethetypeswrong/cli/-/cli-0.13.3.tgz", - "integrity": "sha512-lA29j9fkRGq+hNE3zQGxD/d8WmjhimSaPU2887CBe0Yv3C1UbIWvy51mYerp3/NoevjBLKSWhHmP5oY/eavtjQ==", + "version": "0.13.5", + "resolved": "https://registry.npmjs.org/@arethetypeswrong/cli/-/cli-0.13.5.tgz", + "integrity": "sha512-S5vPcInsCwt6QJlPi1CxxkVfemVrapeeySv5a1jeodwUzfkG/rLjZTYd1uhwgqDMCgQK4sR8z+W9GZITdqLIew==", "dev": true, "dependencies": { - "@arethetypeswrong/core": "0.13.3", + "@arethetypeswrong/core": "0.13.5", "chalk": "^4.1.2", "cli-table3": "^0.6.3", "commander": "^10.0.1", @@ -204,15 +204,16 @@ } }, "node_modules/@arethetypeswrong/core": { - "version": "0.13.3", - "resolved": "https://registry.npmjs.org/@arethetypeswrong/core/-/core-0.13.3.tgz", - "integrity": "sha512-oxa26D3z5DEv9LGzfJWV/6PhQd170dFfDOXl9J3cGRNLo2B68zj6/YOD1RJaYF/kmxechdXT1XyGUPOtkXv8Lg==", + "version": "0.13.5", + "resolved": "https://registry.npmjs.org/@arethetypeswrong/core/-/core-0.13.5.tgz", + "integrity": "sha512-Ahk+vBUK9RBBx4zle2Y1imrbl68GCtLEl0/UBxsJeDd2j5HkbWcgGtgE2tEPMy4qAgWxj2JEptDPl6Jucbov2w==", "dev": true, "dependencies": { "@andrewbranch/untar.js": "^1.0.3", "fflate": "^0.7.4", "semver": "^7.5.4", - "typescript": "5.3.2", + "ts-expose-internals-conditionally": "1.0.0-empty.0", + "typescript": "5.3.3", "validate-npm-package-name": "^5.0.0" }, "engines": { @@ -234,19 +235,6 @@ "node": ">=10" } }, - "node_modules/@arethetypeswrong/core/node_modules/typescript": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.2.tgz", - "integrity": "sha512-6l+RyNy7oAHDfxC4FzSJcz9vnjTKxrLpDG5M2Vu4SHRVNg6xzqZp6LYSR9zjqQTu8DU/f5xwxUdADOkbrIX2gQ==", - "dev": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, "node_modules/@babel/code-frame": { "version": "7.16.7", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.16.7.tgz", @@ -2850,12 +2838,12 @@ } }, "node_modules/@testing-library/jest-dom": { - "version": "6.1.5", - "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-6.1.5.tgz", - "integrity": "sha512-3y04JLW+EceVPy2Em3VwNr95dOKqA8DhR0RJHhHKDZNYXcVXnEK7WIrpj4eYU8SVt/qYZ2aRWt/WgQ+grNES8g==", + "version": "6.1.6", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-6.1.6.tgz", + "integrity": "sha512-YwuiOdYEcxhfC2u5iNKlvg2Q5MgbutovP6drq7J1HrCbvR+G58BbtoCoq+L/kNlrNFsu2Kt3jaFAviLVxYHJZg==", "dev": true, "dependencies": { - "@adobe/css-tools": "^4.3.1", + "@adobe/css-tools": "^4.3.2", "@babel/runtime": "^7.9.2", "aria-query": "^5.0.0", "chalk": "^3.0.0", @@ -3019,9 +3007,9 @@ "dev": true }, "node_modules/@testing-library/user-event": { - "version": "14.5.1", - "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-14.5.1.tgz", - "integrity": "sha512-UCcUKrUYGj7ClomOo2SpNVvx4/fkd/2BbIHDCle8A0ax+P3bU7yJwDBDrS6ZwdTMARWTGODX1hEsCcO+7beJjg==", + "version": "14.5.2", + "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-14.5.2.tgz", + "integrity": "sha512-YAh82Wh4TIrxYLmfGcixwD18oIjyC1pFQC2Y01F2lzV2HTMiYrI0nze0FD0ocB//CKS/7jIUgae+adPqxK5yCQ==", "dev": true, "engines": { "node": ">=12", @@ -3323,18 +3311,18 @@ "dev": true }, "node_modules/@types/node": { - "version": "20.10.5", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.5.tgz", - "integrity": "sha512-nNPsNE65wjMxEKI93yOP+NPGGBJz/PoN3kZsVLee0XMiJolxSekEVD8wRwBUBqkwc7UWop0edW50yrCQW4CyRw==", + "version": "20.10.6", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.6.tgz", + "integrity": "sha512-Vac8H+NlRNNlAmDfGUP7b5h/KA+AtWIzuXy0E6OyP8f1tCLYAtPvKRRDJjAPqhpCb0t6U2j7/xqAuLEebW2kiw==", "dev": true, "dependencies": { "undici-types": "~5.26.4" } }, "node_modules/@types/node-fetch": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.9.tgz", - "integrity": "sha512-bQVlnMLFJ2d35DkPNjEPmd9ueO/rh5EiaZt2bhqiSarPjZIuIV6bPQVqcrEyvNo+AfTrRGVazle1tl597w3gfA==", + "version": "2.6.10", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.10.tgz", + "integrity": "sha512-PPpPK6F9ALFTn59Ka3BaL+qGuipRfxNE8qVgkp0bVixeiR2c2/L+IVOiBdu9JhhT22sWnQEp6YyHGI2b2+CMcA==", "dev": true, "dependencies": { "@types/node": "*", @@ -3354,9 +3342,9 @@ "dev": true }, "node_modules/@types/react": { - "version": "18.2.45", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.45.tgz", - "integrity": "sha512-TtAxCNrlrBp8GoeEp1npd5g+d/OejJHFxS3OWmrPBMFaVQMSN0OFySozJio5BHxTuTeug00AVXVAjfDSfk+lUg==", + "version": "18.2.46", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.46.tgz", + "integrity": "sha512-nNCvVBcZlvX4NU1nRRNV/mFl1nNRuTuslAJglQsq+8ldXe5Xv0Wd2f7WTE3jOxhLH2BFfiZGC6GCp+kHQbgG+w==", "dev": true, "dependencies": { "@types/prop-types": "*", @@ -3763,9 +3751,9 @@ "dev": true }, "node_modules/acorn": { - "version": "8.11.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.2.tgz", - "integrity": "sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==", + "version": "8.11.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", + "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", "dev": true, "bin": { "acorn": "bin/acorn" @@ -6905,9 +6893,9 @@ } }, "node_modules/graphql-ws": { - "version": "5.14.2", - "resolved": "https://registry.npmjs.org/graphql-ws/-/graphql-ws-5.14.2.tgz", - "integrity": "sha512-LycmCwhZ+Op2GlHz4BZDsUYHKRiiUz+3r9wbhBATMETNlORQJAaFlAgTFoeRh6xQoQegwYwIylVD1Qns9/DA3w==", + "version": "5.14.3", + "resolved": "https://registry.npmjs.org/graphql-ws/-/graphql-ws-5.14.3.tgz", + "integrity": "sha512-F/i2xNIVbaEF2xWggID0X/UZQa2V8kqKDPO8hwmu53bVOcTL7uNkxnexeEgSCVxYBQUTUNEI8+e4LO1FOhKPKQ==", "dev": true, "engines": { "node": ">=10" @@ -11937,6 +11925,12 @@ "typescript": ">=4.2.0" } }, + "node_modules/ts-expose-internals-conditionally": { + "version": "1.0.0-empty.0", + "resolved": "https://registry.npmjs.org/ts-expose-internals-conditionally/-/ts-expose-internals-conditionally-1.0.0-empty.0.tgz", + "integrity": "sha512-F8m9NOF6ZhdOClDVdlM8gj3fDCav4ZIFSs/EI3ksQbAAXVSCN/Jh5OCJDDZWBuBy9psFc6jULGDlPwjMYMhJDw==", + "dev": true + }, "node_modules/ts-invariant": { "version": "0.10.3", "resolved": "https://registry.npmjs.org/ts-invariant/-/ts-invariant-0.10.3.tgz", diff --git a/package.json b/package.json index 7be3f1a8f31..7e8415e5aa3 100644 --- a/package.json +++ b/package.json @@ -105,7 +105,7 @@ "zen-observable-ts": "^1.2.5" }, "devDependencies": { - "@arethetypeswrong/cli": "0.13.3", + "@arethetypeswrong/cli": "0.13.5", "@babel/parser": "7.23.6", "@changesets/changelog-github": "0.5.0", "@changesets/cli": "2.27.1", @@ -114,10 +114,10 @@ "@rollup/plugin-node-resolve": "11.2.1", "@size-limit/esbuild-why": "11.0.1", "@size-limit/preset-small-lib": "11.0.1", - "@testing-library/jest-dom": "6.1.5", + "@testing-library/jest-dom": "6.1.6", "@testing-library/react": "14.1.2", "@testing-library/react-12": "npm:@testing-library/react@^12", - "@testing-library/user-event": "14.5.1", + "@testing-library/user-event": "14.5.2", "@tsconfig/node20": "20.1.2", "@types/bytes": "3.1.4", "@types/fetch-mock": "7.3.8", @@ -125,9 +125,9 @@ "@types/hoist-non-react-statics": "3.3.5", "@types/jest": "29.5.11", "@types/lodash": "4.14.202", - "@types/node": "20.10.5", - "@types/node-fetch": "2.6.9", - "@types/react": "18.2.45", + "@types/node": "20.10.6", + "@types/node-fetch": "2.6.10", + "@types/react": "18.2.46", "@types/react-dom": "18.2.18", "@types/use-sync-external-store": "0.0.6", "@typescript-eslint/eslint-plugin": "6.14.0", @@ -135,7 +135,7 @@ "@typescript-eslint/rule-tester": "6.14.0", "@typescript-eslint/types": "6.14.0", "@typescript-eslint/utils": "6.14.0", - "acorn": "8.11.2", + "acorn": "8.11.3", "blob-polyfill": "7.0.20220408", "bytes": "3.1.2", "cross-fetch": "4.0.0", @@ -148,7 +148,7 @@ "fetch-mock": "9.11.0", "glob": "8.1.0", "graphql": "16.8.1", - "graphql-ws": "5.14.2", + "graphql-ws": "5.14.3", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "jest-junit": "16.0.0", From b73dd1c5e9e2f7445ddb651f113c1db188668fea Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 2 Jan 2024 10:17:29 -0700 Subject: [PATCH 2/4] chore(deps): update all devdependencies (#11454) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package-lock.json | 152 +++++++++++++++++++++++++--------------------- package.json | 12 ++-- 2 files changed, 88 insertions(+), 76 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6d94df3b62a..d364263e16d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,7 +29,7 @@ "@changesets/changelog-github": "0.5.0", "@changesets/cli": "2.27.1", "@graphql-tools/schema": "10.0.2", - "@microsoft/api-extractor": "7.38.5", + "@microsoft/api-extractor": "7.39.0", "@rollup/plugin-node-resolve": "11.2.1", "@size-limit/esbuild-why": "11.0.1", "@size-limit/preset-small-lib": "11.0.1", @@ -49,11 +49,11 @@ "@types/react": "18.2.46", "@types/react-dom": "18.2.18", "@types/use-sync-external-store": "0.0.6", - "@typescript-eslint/eslint-plugin": "6.14.0", - "@typescript-eslint/parser": "6.14.0", - "@typescript-eslint/rule-tester": "6.14.0", - "@typescript-eslint/types": "6.14.0", - "@typescript-eslint/utils": "6.14.0", + "@typescript-eslint/eslint-plugin": "6.17.0", + "@typescript-eslint/parser": "6.17.0", + "@typescript-eslint/rule-tester": "6.17.0", + "@typescript-eslint/types": "6.17.0", + "@typescript-eslint/utils": "6.17.0", "acorn": "8.11.3", "blob-polyfill": "7.0.20220408", "bytes": "3.1.2", @@ -2454,9 +2454,9 @@ } }, "node_modules/@microsoft/api-extractor": { - "version": "7.38.5", - "resolved": "https://registry.npmjs.org/@microsoft/api-extractor/-/api-extractor-7.38.5.tgz", - "integrity": "sha512-c/w2zfqBcBJxaCzpJNvFoouWewcYrUOfeu5ZkWCCIXTF9a/gXM85RGevEzlMAIEGM/kssAAZSXRJIZ3Q5vLFow==", + "version": "7.39.0", + "resolved": "https://registry.npmjs.org/@microsoft/api-extractor/-/api-extractor-7.39.0.tgz", + "integrity": "sha512-PuXxzadgnvp+wdeZFPonssRAj/EW4Gm4s75TXzPk09h3wJ8RS3x7typf95B4vwZRrPTQBGopdUl+/vHvlPdAcg==", "dev": true, "dependencies": { "@microsoft/api-extractor-model": "7.28.3", @@ -2470,7 +2470,7 @@ "resolve": "~1.22.1", "semver": "~7.5.4", "source-map": "~0.6.1", - "typescript": "~5.0.4" + "typescript": "5.3.3" }, "bin": { "api-extractor": "bin/api-extractor" @@ -2502,19 +2502,6 @@ "node": ">=10" } }, - "node_modules/@microsoft/api-extractor/node_modules/typescript": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.4.tgz", - "integrity": "sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==", - "dev": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=12.20" - } - }, "node_modules/@microsoft/tsdoc": { "version": "0.14.2", "resolved": "https://registry.npmjs.org/@microsoft/tsdoc/-/tsdoc-0.14.2.tgz", @@ -3416,16 +3403,16 @@ "dev": true }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.14.0.tgz", - "integrity": "sha512-1ZJBykBCXaSHG94vMMKmiHoL0MhNHKSVlcHVYZNw+BKxufhqQVTOawNpwwI1P5nIFZ/4jLVop0mcY6mJJDFNaw==", + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.17.0.tgz", + "integrity": "sha512-Vih/4xLXmY7V490dGwBQJTpIZxH4ZFH6eCVmQ4RFkB+wmaCTDAx4dtgoWwMNGKLkqRY1L6rPqzEbjorRnDo4rQ==", "dev": true, "dependencies": { "@eslint-community/regexpp": "^4.5.1", - "@typescript-eslint/scope-manager": "6.14.0", - "@typescript-eslint/type-utils": "6.14.0", - "@typescript-eslint/utils": "6.14.0", - "@typescript-eslint/visitor-keys": "6.14.0", + "@typescript-eslint/scope-manager": "6.17.0", + "@typescript-eslint/type-utils": "6.17.0", + "@typescript-eslint/utils": "6.17.0", + "@typescript-eslint/visitor-keys": "6.17.0", "debug": "^4.3.4", "graphemer": "^1.4.0", "ignore": "^5.2.4", @@ -3466,15 +3453,15 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.14.0.tgz", - "integrity": "sha512-QjToC14CKacd4Pa7JK4GeB/vHmWFJckec49FR4hmIRf97+KXole0T97xxu9IFiPxVQ1DBWrQ5wreLwAGwWAVQA==", + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.17.0.tgz", + "integrity": "sha512-C4bBaX2orvhK+LlwrY8oWGmSl4WolCfYm513gEccdWZj0CwGadbIADb0FtVEcI+WzUyjyoBj2JRP8g25E6IB8A==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "6.14.0", - "@typescript-eslint/types": "6.14.0", - "@typescript-eslint/typescript-estree": "6.14.0", - "@typescript-eslint/visitor-keys": "6.14.0", + "@typescript-eslint/scope-manager": "6.17.0", + "@typescript-eslint/types": "6.17.0", + "@typescript-eslint/typescript-estree": "6.17.0", + "@typescript-eslint/visitor-keys": "6.17.0", "debug": "^4.3.4" }, "engines": { @@ -3494,13 +3481,13 @@ } }, "node_modules/@typescript-eslint/rule-tester": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/rule-tester/-/rule-tester-6.14.0.tgz", - "integrity": "sha512-SCxrm68pudpNTUGCqaGxgqNujca+sEjJXA52gH3b0q1DrVBq1VSlxgO9kSmodhbXKVyS7UGlbz3dPDqa65gR2g==", + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/rule-tester/-/rule-tester-6.17.0.tgz", + "integrity": "sha512-GZcB3//uVSTYUOnU1UnEX+q9T6hqL8rCrQI3r5yHfY111q6DWkHq42YSKWeh1I4+cCh++iFUjTR3trc6Wlw2YQ==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "6.14.0", - "@typescript-eslint/utils": "6.14.0", + "@typescript-eslint/typescript-estree": "6.17.0", + "@typescript-eslint/utils": "6.17.0", "ajv": "^6.10.0", "lodash.merge": "4.6.2", "semver": "^7.5.4" @@ -3533,13 +3520,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.14.0.tgz", - "integrity": "sha512-VT7CFWHbZipPncAZtuALr9y3EuzY1b1t1AEkIq2bTXUPKw+pHoXflGNG5L+Gv6nKul1cz1VH8fz16IThIU0tdg==", + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.17.0.tgz", + "integrity": "sha512-RX7a8lwgOi7am0k17NUO0+ZmMOX4PpjLtLRgLmT1d3lBYdWH4ssBUbwdmc5pdRX8rXon8v9x8vaoOSpkHfcXGA==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.14.0", - "@typescript-eslint/visitor-keys": "6.14.0" + "@typescript-eslint/types": "6.17.0", + "@typescript-eslint/visitor-keys": "6.17.0" }, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -3550,13 +3537,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.14.0.tgz", - "integrity": "sha512-x6OC9Q7HfYKqjnuNu5a7kffIYs3No30isapRBJl1iCHLitD8O0lFbRcVGiOcuyN837fqXzPZ1NS10maQzZMKqw==", + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.17.0.tgz", + "integrity": "sha512-hDXcWmnbtn4P2B37ka3nil3yi3VCQO2QEB9gBiHJmQp5wmyQWqnjA85+ZcE8c4FqnaB6lBwMrPkgd4aBYz3iNg==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "6.14.0", - "@typescript-eslint/utils": "6.14.0", + "@typescript-eslint/typescript-estree": "6.17.0", + "@typescript-eslint/utils": "6.17.0", "debug": "^4.3.4", "ts-api-utils": "^1.0.1" }, @@ -3577,9 +3564,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.14.0.tgz", - "integrity": "sha512-uty9H2K4Xs8E47z3SnXEPRNDfsis8JO27amp2GNCnzGETEW3yTqEIVg5+AI7U276oGF/tw6ZA+UesxeQ104ceA==", + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.17.0.tgz", + "integrity": "sha512-qRKs9tvc3a4RBcL/9PXtKSehI/q8wuU9xYJxe97WFxnzH8NWWtcW3ffNS+EWg8uPvIerhjsEZ+rHtDqOCiH57A==", "dev": true, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -3590,16 +3577,17 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.14.0.tgz", - "integrity": "sha512-yPkaLwK0yH2mZKFE/bXkPAkkFgOv15GJAUzgUVonAbv0Hr4PK/N2yaA/4XQbTZQdygiDkpt5DkxPELqHguNvyw==", + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.17.0.tgz", + "integrity": "sha512-gVQe+SLdNPfjlJn5VNGhlOhrXz4cajwFd5kAgWtZ9dCZf4XJf8xmgCTLIqec7aha3JwgLI2CK6GY1043FRxZwg==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.14.0", - "@typescript-eslint/visitor-keys": "6.14.0", + "@typescript-eslint/types": "6.17.0", + "@typescript-eslint/visitor-keys": "6.17.0", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", + "minimatch": "9.0.3", "semver": "^7.5.4", "ts-api-utils": "^1.0.1" }, @@ -3616,6 +3604,30 @@ } } }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", + "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { "version": "7.5.4", "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", @@ -3632,17 +3644,17 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.14.0.tgz", - "integrity": "sha512-XwRTnbvRr7Ey9a1NT6jqdKX8y/atWG+8fAIu3z73HSP8h06i3r/ClMhmaF/RGWGW1tHJEwij1uEg2GbEmPYvYg==", + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.17.0.tgz", + "integrity": "sha512-LofsSPjN/ITNkzV47hxas2JCsNCEnGhVvocfyOcLzT9c/tSZE7SfhS/iWtzP1lKNOEfLhRTZz6xqI8N2RzweSQ==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", "@types/json-schema": "^7.0.12", "@types/semver": "^7.5.0", - "@typescript-eslint/scope-manager": "6.14.0", - "@typescript-eslint/types": "6.14.0", - "@typescript-eslint/typescript-estree": "6.14.0", + "@typescript-eslint/scope-manager": "6.17.0", + "@typescript-eslint/types": "6.17.0", + "@typescript-eslint/typescript-estree": "6.17.0", "semver": "^7.5.4" }, "engines": { @@ -3672,12 +3684,12 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.14.0.tgz", - "integrity": "sha512-fB5cw6GRhJUz03MrROVuj5Zm/Q+XWlVdIsFj+Zb1Hvqouc8t+XP2H5y53QYU/MGtd2dPg6/vJJlhoX3xc2ehfw==", + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.17.0.tgz", + "integrity": "sha512-H6VwB/k3IuIeQOyYczyyKN8wH6ed8EwliaYHLxOIhyF0dYEIsN8+Bk3GE19qafeMKyZJJHP8+O1HiFhFLUNKSg==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.14.0", + "@typescript-eslint/types": "6.17.0", "eslint-visitor-keys": "^3.4.1" }, "engines": { diff --git a/package.json b/package.json index 7e8415e5aa3..64677a540d0 100644 --- a/package.json +++ b/package.json @@ -110,7 +110,7 @@ "@changesets/changelog-github": "0.5.0", "@changesets/cli": "2.27.1", "@graphql-tools/schema": "10.0.2", - "@microsoft/api-extractor": "7.38.5", + "@microsoft/api-extractor": "7.39.0", "@rollup/plugin-node-resolve": "11.2.1", "@size-limit/esbuild-why": "11.0.1", "@size-limit/preset-small-lib": "11.0.1", @@ -130,11 +130,11 @@ "@types/react": "18.2.46", "@types/react-dom": "18.2.18", "@types/use-sync-external-store": "0.0.6", - "@typescript-eslint/eslint-plugin": "6.14.0", - "@typescript-eslint/parser": "6.14.0", - "@typescript-eslint/rule-tester": "6.14.0", - "@typescript-eslint/types": "6.14.0", - "@typescript-eslint/utils": "6.14.0", + "@typescript-eslint/eslint-plugin": "6.17.0", + "@typescript-eslint/parser": "6.17.0", + "@typescript-eslint/rule-tester": "6.17.0", + "@typescript-eslint/types": "6.17.0", + "@typescript-eslint/utils": "6.17.0", "acorn": "8.11.3", "blob-polyfill": "7.0.20220408", "bytes": "3.1.2", From 988f574df384d2cd36f625f267a643d5032e93af Mon Sep 17 00:00:00 2001 From: Lenz Weber-Tronic Date: Tue, 2 Jan 2024 18:44:00 +0100 Subject: [PATCH 3/4] fix `reportErrors` link example in docs (#11450) Co-authored-by: Jerel Miller --- docs/source/api/link/introduction.mdx | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/docs/source/api/link/introduction.mdx b/docs/source/api/link/introduction.mdx index 200d8dc7aed..80d390c40ca 100644 --- a/docs/source/api/link/introduction.mdx +++ b/docs/source/api/link/introduction.mdx @@ -335,10 +335,23 @@ This style of link also composes well for customization using a function: import { ApolloLink } from '@apollo/client'; const reportErrors = (errorCallback) => new ApolloLink((operation, forward) => { - const observable = forward(operation); - // errors will be sent to the errorCallback - observable.subscribe({ error: errorCallback }) - return observable; + return new Observable((observer) => { + const observable = forward(operation); + const subscription = observable.subscribe({ + next(value) { + observer.next(value); + }, + error(networkError) { + errorCallback({ networkError, operation }); + observer.error(networkError); + }, + complete() { + observer.complete(); + }, + }); + + return () => subscription.unsubscribe(); + }); }); const link = reportErrors(console.error); From eb2cfee1846b6271e438d1a268e187151e691db4 Mon Sep 17 00:00:00 2001 From: Illia Kurochkin Date: Wed, 3 Jan 2024 13:06:08 +0100 Subject: [PATCH 4/4] docs: fix typos and code examples (#11455) Co-authored-by: Lenz Weber-Tronic --- docs/source/data/fragments.md | 4 ++-- docs/source/data/suspense.mdx | 3 ++- docs/source/development-testing/reducing-bundle-size.mdx | 2 +- docs/source/performance/babel.md | 2 +- src/react/hoc/__tests__/shared-operations.test.tsx | 2 +- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/source/data/fragments.md b/docs/source/data/fragments.md index d90178584ef..c3fff7a39c0 100644 --- a/docs/source/data/fragments.md +++ b/docs/source/data/fragments.md @@ -105,7 +105,7 @@ import { ApolloClient, gql, InMemoryCache } from "@apollo/client"; import { createFragmentRegistry } from "@apollo/client/cache"; const client = new ApolloClient({ - uri: "http://localhost:4000/graphql" + uri: "http://localhost:4000/graphql", cache: new InMemoryCache({ fragments: createFragmentRegistry(gql` fragment ItemFragment on Item { @@ -148,7 +148,7 @@ import { ApolloClient, gql, InMemoryCache } from "@apollo/client"; import { createFragmentRegistry } from "@apollo/client/cache"; const client = new ApolloClient({ - uri: "http://localhost:4000/graphql" + uri: "http://localhost:4000/graphql", cache: new InMemoryCache({ fragments: createFragmentRegistry(gql` fragment ItemFragment on Item { diff --git a/docs/source/data/suspense.mdx b/docs/source/data/suspense.mdx index d53d913c26b..7db3ceeb09e 100644 --- a/docs/source/data/suspense.mdx +++ b/docs/source/data/suspense.mdx @@ -48,6 +48,7 @@ const GET_DOG_QUERY: TypedDocumentNode = gql` # properly cached. id name + breed } } `; @@ -121,7 +122,7 @@ function App() { onChange={(e) => setSelectedDog(e.target.value)} > {data.dogs.map(({ id, name }) => ( - + ))} Loading...}> diff --git a/docs/source/development-testing/reducing-bundle-size.mdx b/docs/source/development-testing/reducing-bundle-size.mdx index 58ad4571428..46e8c8f3e0c 100644 --- a/docs/source/development-testing/reducing-bundle-size.mdx +++ b/docs/source/development-testing/reducing-bundle-size.mdx @@ -3,7 +3,7 @@ title: Reducing bundle size description: Squeeze those last few bytes out of your production build --- -Two quick configuration changes can help your reduce your bundle size: turning off Apollo Client's development mode and picking a consistent style for your imports. +Two quick configuration changes can help you reduce your bundle size: turning off Apollo Client's development mode and picking a consistent style for your imports. Every byte counts in optimizing your app's performance. ## Turning off development mode diff --git a/docs/source/performance/babel.md b/docs/source/performance/babel.md index 6b6b5911dc0..3fa6cde18d1 100644 --- a/docs/source/performance/babel.md +++ b/docs/source/performance/babel.md @@ -8,7 +8,7 @@ To avoid this runtime overhead, you can precompile your queries created with `gr 1. Using [babel-plugin-graphql-tag](#using-babel-plugin-graphql-tag) 2. Using [graphql-tag.macro](#using-graphql-tagmacro) -1. Using [ts-transform-graphql-tag](#using-ts-transform-graphql-tag) for Typescript +1. Using [ts-transform-graphql-tag](#using-ts-transform-graphql-tag) for TypeScript If you prefer to keep your GraphQL code in separate files (`.graphql` or `.gql`) you can use [babel-plugin-import-graphql](https://github.com/detrohutt/babel-plugin-import-graphql). This plugin still uses `graphql-tag` under the hood, but transparently. You simply `import` your operations/fragments as if each were an export from your GraphQL file. This carries the same precompilation benefits as the above approaches. diff --git a/src/react/hoc/__tests__/shared-operations.test.tsx b/src/react/hoc/__tests__/shared-operations.test.tsx index 74c2df89820..39c3561998a 100644 --- a/src/react/hoc/__tests__/shared-operations.test.tsx +++ b/src/react/hoc/__tests__/shared-operations.test.tsx @@ -90,7 +90,7 @@ describe("shared operations", () => { people: DataValue; } - // Since we want to test decorators usage, and this does not play well with Typescript, + // Since we want to test decorators usage, and this does not play well with TypeScript, // we resort to setting everything as any to avoid type checking. const withPeople: any = graphql<{}, PeopleData, {}, PeopleChildProps>( peopleQuery,