From d81e0394f696cea4514c8cbcfc03ca71c34ab202 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Abd=C3=B3n=20Rodr=C3=ADguez=20Davila?= Date: Mon, 8 Feb 2021 23:33:55 +0100 Subject: [PATCH] Update graphql-tag to v2.12.0 for TypeScript and ESM support (#7651) --- CHANGELOG.md | 6 ++++++ .../no-tree-shaking/rollup-ac2/package-lock.json | 16 +++++++++++++--- .../no-tree-shaking/rollup-ac2/package.json | 2 +- .../tree-shaking/rollup-ac2/package-lock.json | 16 +++++++++++++--- .../tree-shaking/rollup-ac2/package.json | 2 +- package-lock.json | 16 +++++++++++++--- package.json | 2 +- 7 files changed, 48 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 764d480e494..2e79762ef8f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ - Prevent reactive variables from retaining otherwise unreachable `InMemoryCache` objects.
[@benjamn](https://github.com/benjamn) in [#7661](https://github.com/apollographql/apollo-client/pull/7661) +### Improvements + +- The [`graphql-tag`](https://www.npmjs.com/package/graphql-tag) dependency has been updated to version 2.12.0, after converting its repository to use TypeScript and ECMAScript module syntax. There should be no visible changes in behavior, though the internal changes seemed significant enough to mention here.
+ [@abdonrd](https://github.com/abdonrd) in [graphql-tag#273](https://github.com/apollographql/graphql-tag/pull/273) and + [@PowerKiKi](https://github.com/PowerKiKi) in [graphql-tag#325](https://github.com/apollographql/graphql-tag/pull/325) + ## Apollo Client 3.3.8 ### Bug Fixes diff --git a/examples/bundling/no-tree-shaking/rollup-ac2/package-lock.json b/examples/bundling/no-tree-shaking/rollup-ac2/package-lock.json index 38e88019226..6815cbc01d4 100644 --- a/examples/bundling/no-tree-shaking/rollup-ac2/package-lock.json +++ b/examples/bundling/no-tree-shaking/rollup-ac2/package-lock.json @@ -659,9 +659,19 @@ "integrity": "sha512-GTCJtzJmkFLWRfFJuoo9RWWa/FfamUHgiFosxi/X1Ani4AVWbeyBenZTNX6dM+7WSbbFfTo/25eh0LLkwHMw2w==" }, "graphql-tag": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/graphql-tag/-/graphql-tag-2.11.0.tgz", - "integrity": "sha512-VmsD5pJqWJnQZMUeRwrDhfgoyqcfwEkvtpANqcoUG8/tOLkwNgU9mzub/Mc78OJMhHjx7gfAMTxzdG43VGg3bA==" + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/graphql-tag/-/graphql-tag-2.12.0.tgz", + "integrity": "sha512-iK040pFYpQpHfqF5UJOlYu2XEw6wx56aiyKJP1zqhxabGssqfbTIqz6U++cBwx/Izad0JNq6IsWvrL+p6d1GOA==", + "requires": { + "tslib": "^1.14.1" + }, + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + } + } }, "has-flag": { "version": "3.0.0", diff --git a/examples/bundling/no-tree-shaking/rollup-ac2/package.json b/examples/bundling/no-tree-shaking/rollup-ac2/package.json index e47323f4f88..d3787266d39 100644 --- a/examples/bundling/no-tree-shaking/rollup-ac2/package.json +++ b/examples/bundling/no-tree-shaking/rollup-ac2/package.json @@ -33,7 +33,7 @@ "apollo-link": "^1.2.13", "apollo-link-http": "^1.5.16", "graphql": "^15.0.0", - "graphql-tag": "^2.10.1", + "graphql-tag": "^2.12.0", "react": "^17.0.0", "react-dom": "^17.0.0" }, diff --git a/examples/bundling/tree-shaking/rollup-ac2/package-lock.json b/examples/bundling/tree-shaking/rollup-ac2/package-lock.json index 3330a3423fa..320bc545b31 100644 --- a/examples/bundling/tree-shaking/rollup-ac2/package-lock.json +++ b/examples/bundling/tree-shaking/rollup-ac2/package-lock.json @@ -700,9 +700,19 @@ "integrity": "sha512-0TVyfOlCGhv/DBczQkJmwXOK6fjWkjzY3Pt7wY8i0gcYXq8aogG3weCsg48m72lywKSeOqedEHvVPOvZvSD51Q==" }, "graphql-tag": { - "version": "2.10.1", - "resolved": "https://registry.npmjs.org/graphql-tag/-/graphql-tag-2.10.1.tgz", - "integrity": "sha512-jApXqWBzNXQ8jYa/HLkZJaVw9jgwNqZkywa2zfFn16Iv1Zb7ELNHkJaXHR7Quvd5SIGsy6Ny7SUKATgnu05uEg==" + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/graphql-tag/-/graphql-tag-2.12.0.tgz", + "integrity": "sha512-iK040pFYpQpHfqF5UJOlYu2XEw6wx56aiyKJP1zqhxabGssqfbTIqz6U++cBwx/Izad0JNq6IsWvrL+p6d1GOA==", + "requires": { + "tslib": "^1.14.1" + }, + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + } + } }, "has-flag": { "version": "3.0.0", diff --git a/examples/bundling/tree-shaking/rollup-ac2/package.json b/examples/bundling/tree-shaking/rollup-ac2/package.json index a57736f2bb6..99727496f20 100644 --- a/examples/bundling/tree-shaking/rollup-ac2/package.json +++ b/examples/bundling/tree-shaking/rollup-ac2/package.json @@ -34,7 +34,7 @@ "apollo-link": "^1.2.13", "apollo-link-http": "^1.5.16", "graphql": "^15.0.0", - "graphql-tag": "^2.10.1", + "graphql-tag": "^2.12.0", "react": "^17.0.0", "react-dom": "^17.0.0" }, diff --git a/package-lock.json b/package-lock.json index ca8ba4ec29c..81dc861836a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4960,9 +4960,19 @@ "dev": true }, "graphql-tag": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/graphql-tag/-/graphql-tag-2.11.0.tgz", - "integrity": "sha512-VmsD5pJqWJnQZMUeRwrDhfgoyqcfwEkvtpANqcoUG8/tOLkwNgU9mzub/Mc78OJMhHjx7gfAMTxzdG43VGg3bA==" + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/graphql-tag/-/graphql-tag-2.12.0.tgz", + "integrity": "sha512-iK040pFYpQpHfqF5UJOlYu2XEw6wx56aiyKJP1zqhxabGssqfbTIqz6U++cBwx/Izad0JNq6IsWvrL+p6d1GOA==", + "requires": { + "tslib": "^1.14.1" + }, + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + } + } }, "graphql-tools": { "version": "6.0.12", diff --git a/package.json b/package.json index 9027ecb51f1..2f4e10dc097 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,7 @@ "@wry/context": "^0.5.2", "@wry/equality": "^0.3.0", "fast-json-stable-stringify": "^2.0.0", - "graphql-tag": "^2.11.0", + "graphql-tag": "^2.12.0", "hoist-non-react-statics": "^3.3.2", "optimism": "^0.14.0", "prop-types": "^15.7.2",