From ca266abdaf6af2551d21d822c5fa72193438bc1c Mon Sep 17 00:00:00 2001 From: David Glasser Date: Mon, 17 Oct 2022 15:33:07 -0700 Subject: [PATCH] Remove legacy GraphQL Playground plugin from repository (#7050) We published a standalone AS4-compatible `@apollo/server-plugin-landing-page-graphql-playground` plugin once as part of the AS4 release process, but we do not plan to maintain this further. (If we need another publish, we can restore the source into this repository or a new repository.) We do continue to test the plugin in the integration test suite, so we don't break it. --- .changeset/lucky-spies-decide.md | 2 + package-lock.json | 517 +----------------- package.json | 1 + .../src/apolloServerTests.ts | 5 +- packages/integration-testsuite/tsconfig.json | 1 - .../CHANGELOG.md | 7 - .../README.md | 23 - .../package.json | 38 -- .../src/index.ts | 45 -- .../tsconfig.cjs.json | 11 - .../tsconfig.json | 14 - scripts/postcompile.mjs | 6 +- tsconfig.build.cjs.json | 1 - tsconfig.build.esm.json | 1 - 14 files changed, 23 insertions(+), 649 deletions(-) create mode 100644 .changeset/lucky-spies-decide.md delete mode 100644 packages/plugin-landing-page-graphql-playground/CHANGELOG.md delete mode 100644 packages/plugin-landing-page-graphql-playground/README.md delete mode 100644 packages/plugin-landing-page-graphql-playground/package.json delete mode 100644 packages/plugin-landing-page-graphql-playground/src/index.ts delete mode 100644 packages/plugin-landing-page-graphql-playground/tsconfig.cjs.json delete mode 100644 packages/plugin-landing-page-graphql-playground/tsconfig.json diff --git a/.changeset/lucky-spies-decide.md b/.changeset/lucky-spies-decide.md new file mode 100644 index 00000000000..a845151cc84 --- /dev/null +++ b/.changeset/lucky-spies-decide.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/package-lock.json b/package-lock.json index e2769588e44..4e61d0ec915 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,6 +13,7 @@ "devDependencies": { "@apollo/cache-control-types": "1.0.2", "@apollo/client": "3.7.0", + "@apollo/server-plugin-landing-page-graphql-playground": "4.0.0", "@apollo/utils.createhash": "1.1.0", "@changesets/changelog-github": "0.4.7", "@changesets/cli": "2.25.0", @@ -311,8 +312,18 @@ "link": true }, "node_modules/@apollo/server-plugin-landing-page-graphql-playground": { - "resolved": "packages/plugin-landing-page-graphql-playground", - "link": true + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@apollo/server-plugin-landing-page-graphql-playground/-/server-plugin-landing-page-graphql-playground-4.0.0.tgz", + "integrity": "sha512-PBDtKI/chJ+hHeoJUUH9Kuqu58txQl00vUGuxqiC9XcReulIg7RjsyD0G1u3drX4V709bxkL5S0nTeXfRHD0qA==", + "dependencies": { + "@apollographql/graphql-playground-html": "1.6.29" + }, + "engines": { + "node": ">=14.0" + }, + "peerDependencies": { + "@apollo/server": "^4.0.0" + } }, "node_modules/@apollo/server-plugin-response-cache": { "resolved": "packages/plugin-response-cache", @@ -4055,307 +4066,6 @@ "@sinonjs/commons": "^1.7.0" } }, - "node_modules/@swc/core": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.4.tgz", - "integrity": "sha512-W1AvQImfF2T+7dzWdg/GqFpcMJ24lyXGQ/kPKHL/FGPZbf0Q1ExD7wp3eQ2PQMgHTLe28qWonxicm2DPfprx3g==", - "hasInstallScript": true, - "optional": true, - "peer": true, - "bin": { - "swcx": "run_swcx.js" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/swc" - }, - "optionalDependencies": { - "@swc/core-android-arm-eabi": "1.3.4", - "@swc/core-android-arm64": "1.3.4", - "@swc/core-darwin-arm64": "1.3.4", - "@swc/core-darwin-x64": "1.3.4", - "@swc/core-freebsd-x64": "1.3.4", - "@swc/core-linux-arm-gnueabihf": "1.3.4", - "@swc/core-linux-arm64-gnu": "1.3.4", - "@swc/core-linux-arm64-musl": "1.3.4", - "@swc/core-linux-x64-gnu": "1.3.4", - "@swc/core-linux-x64-musl": "1.3.4", - "@swc/core-win32-arm64-msvc": "1.3.4", - "@swc/core-win32-ia32-msvc": "1.3.4", - "@swc/core-win32-x64-msvc": "1.3.4" - } - }, - "node_modules/@swc/core-android-arm-eabi": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@swc/core-android-arm-eabi/-/core-android-arm-eabi-1.3.4.tgz", - "integrity": "sha512-aq+CAebSQMtdrIR4+v/JBfykK/daD+so2gPHm4wgLaTR+xwziQAsBBI5iq5sinhIg4FGnmljtO75QolcNLmpvw==", - "cpu": [ - "arm" - ], - "optional": true, - "os": [ - "android" - ], - "peer": true, - "dependencies": { - "@swc/wasm": "1.2.122" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-android-arm64": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@swc/core-android-arm64/-/core-android-arm64-1.3.4.tgz", - "integrity": "sha512-E5z6ribiEzDqrq5Kv5xOLdWcTzHWlzGuqDSxTQNz9GCC94qSVzXp5Df+egVEKE/4t7u2P6nO46BUKweYMb9TJg==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "android" - ], - "peer": true, - "dependencies": { - "@swc/wasm": "1.2.130" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-android-arm64/node_modules/@swc/wasm": { - "version": "1.2.130", - "resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz", - "integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==", - "optional": true, - "peer": true - }, - "node_modules/@swc/core-darwin-arm64": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.4.tgz", - "integrity": "sha512-JNBFQKtaUdsq0Sv6N29++Q6xrvZDn1bQ7pbMvr8t7kBNXaYCDmupbwPGT725MrGVs72N4qKee5Z0OIvmnLCQfw==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "darwin" - ], - "peer": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-darwin-x64": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.4.tgz", - "integrity": "sha512-A6KMZsUJ3j5TVxAizbv+UEjCNvMgWBm9jw4R3biaw8kbgu3XUWHdkiheXO+c2kjjjgwr1jhkHcLgRjffwpLYFA==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "darwin" - ], - "peer": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-freebsd-x64": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@swc/core-freebsd-x64/-/core-freebsd-x64-1.3.4.tgz", - "integrity": "sha512-C5FCXHebcHwPJtEhgRShumXvcdPO5Cqiwd7GDNBav1IZribs3+ZqrTkCaz2hY7gb5NvyFIxkJ5HhpS4Pxafhuw==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "freebsd" - ], - "peer": true, - "dependencies": { - "@swc/wasm": "1.2.130" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-freebsd-x64/node_modules/@swc/wasm": { - "version": "1.2.130", - "resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz", - "integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==", - "optional": true, - "peer": true - }, - "node_modules/@swc/core-linux-arm-gnueabihf": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.4.tgz", - "integrity": "sha512-vawHUhUcS//xNvGzL0zZ3vZ1YnsjgyvWQXB5PF4bhM5Y0/rmcrEdpkSId1qTfaMpcL7l2QSy9/DM7ucjlSpK6w==", - "cpu": [ - "arm" - ], - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "dependencies": { - "@swc/wasm": "1.2.130" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-linux-arm-gnueabihf/node_modules/@swc/wasm": { - "version": "1.2.130", - "resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz", - "integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==", - "optional": true, - "peer": true - }, - "node_modules/@swc/core-linux-arm64-gnu": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.4.tgz", - "integrity": "sha512-p60RoYaDS8zrqp/cGkcJryk9HobJvrL+Ox/iz8ivDrV4IS0LXvqW5/5YTSzLo93/+blvG/M0hdaokoMhWhDnwA==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-linux-arm64-musl": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.4.tgz", - "integrity": "sha512-F9hW6g5l4YesJJH/JMznaLGdLeCV4FKq5MN5DaZfuB8qrCZGLmAasGgvSNbXh1oZnDu1PD2ZxMYivkf2n8/4OA==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-linux-x64-gnu": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.4.tgz", - "integrity": "sha512-rRqDtxktiVaxO8NQeEZSX0kNSFkI5Ft+4fZcFTbWhDO0vknC0+ZYbWpverfQ8yAwo7aA9jKWupwc3I7iZ1EQQQ==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-linux-x64-musl": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.4.tgz", - "integrity": "sha512-stVnU7KXQxSbh67UiIVxZsgjkRSXApPTEU3CYnwsdH7G+ynfO1WocSatzjIKpJfhcY2Nss8/33yDaOKZXVhbIA==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-win32-arm64-msvc": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.4.tgz", - "integrity": "sha512-qc3UIdAQfLTA1mJsFkX3ISqJDU02qtcjUbnLI8sl6oedCAOFF66TcecJvwl4iO+BTO04+KoZc5rJovSTOb3eQA==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "win32" - ], - "peer": true, - "dependencies": { - "@swc/wasm": "1.2.130" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-win32-arm64-msvc/node_modules/@swc/wasm": { - "version": "1.2.130", - "resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz", - "integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==", - "optional": true, - "peer": true - }, - "node_modules/@swc/core-win32-ia32-msvc": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.4.tgz", - "integrity": "sha512-FxuDGn60VrnYBcpH0CeR9+pCnPUaVvZ20CO6o/oNYHSfIhqPc76o3zFYYEFswYodExjCCYwsuPYgi+stvKZroA==", - "cpu": [ - "ia32" - ], - "optional": true, - "os": [ - "win32" - ], - "peer": true, - "dependencies": { - "@swc/wasm": "1.2.130" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-win32-ia32-msvc/node_modules/@swc/wasm": { - "version": "1.2.130", - "resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz", - "integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==", - "optional": true, - "peer": true - }, - "node_modules/@swc/core-win32-x64-msvc": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.4.tgz", - "integrity": "sha512-9/bSvgjV31u1G2slRFPgK85ohJdo8KtWJ0f4CPp2LdVtIJHbFGd0pWjnMfiPJeodSxSGGWrgUNQtajqIIsrbqA==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "win32" - ], - "peer": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/wasm": { - "version": "1.2.122", - "resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.122.tgz", - "integrity": "sha512-sM1VCWQxmNhFtdxME+8UXNyPNhxNu7zdb6ikWpz0YKAQQFRGT5ThZgJrubEpah335SUToNg8pkdDF7ibVCjxbQ==", - "optional": true, - "peer": true - }, "node_modules/@tootallnate/once": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz", @@ -15879,20 +15589,6 @@ "jest": "28.x || 29.x" } }, - "packages/plugin-landing-page-graphql-playground": { - "name": "@apollo/server-plugin-landing-page-graphql-playground", - "version": "4.0.0", - "license": "MIT", - "dependencies": { - "@apollographql/graphql-playground-html": "1.6.29" - }, - "engines": { - "node": ">=14.0" - }, - "peerDependencies": { - "@apollo/server": "^4.0.0" - } - }, "packages/plugin-response-cache": { "name": "@apollo/server-plugin-response-cache", "version": "4.0.0", @@ -16201,7 +15897,9 @@ } }, "@apollo/server-plugin-landing-page-graphql-playground": { - "version": "file:packages/plugin-landing-page-graphql-playground", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@apollo/server-plugin-landing-page-graphql-playground/-/server-plugin-landing-page-graphql-playground-4.0.0.tgz", + "integrity": "sha512-PBDtKI/chJ+hHeoJUUH9Kuqu58txQl00vUGuxqiC9XcReulIg7RjsyD0G1u3drX4V709bxkL5S0nTeXfRHD0qA==", "requires": { "@apollographql/graphql-playground-html": "1.6.29" } @@ -19203,189 +18901,6 @@ "@sinonjs/commons": "^1.7.0" } }, - "@swc/core": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.4.tgz", - "integrity": "sha512-W1AvQImfF2T+7dzWdg/GqFpcMJ24lyXGQ/kPKHL/FGPZbf0Q1ExD7wp3eQ2PQMgHTLe28qWonxicm2DPfprx3g==", - "optional": true, - "peer": true, - "requires": { - "@swc/core-android-arm-eabi": "1.3.4", - "@swc/core-android-arm64": "1.3.4", - "@swc/core-darwin-arm64": "1.3.4", - "@swc/core-darwin-x64": "1.3.4", - "@swc/core-freebsd-x64": "1.3.4", - "@swc/core-linux-arm-gnueabihf": "1.3.4", - "@swc/core-linux-arm64-gnu": "1.3.4", - "@swc/core-linux-arm64-musl": "1.3.4", - "@swc/core-linux-x64-gnu": "1.3.4", - "@swc/core-linux-x64-musl": "1.3.4", - "@swc/core-win32-arm64-msvc": "1.3.4", - "@swc/core-win32-ia32-msvc": "1.3.4", - "@swc/core-win32-x64-msvc": "1.3.4" - } - }, - "@swc/core-android-arm-eabi": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@swc/core-android-arm-eabi/-/core-android-arm-eabi-1.3.4.tgz", - "integrity": "sha512-aq+CAebSQMtdrIR4+v/JBfykK/daD+so2gPHm4wgLaTR+xwziQAsBBI5iq5sinhIg4FGnmljtO75QolcNLmpvw==", - "optional": true, - "peer": true, - "requires": { - "@swc/wasm": "1.2.122" - } - }, - "@swc/core-android-arm64": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@swc/core-android-arm64/-/core-android-arm64-1.3.4.tgz", - "integrity": "sha512-E5z6ribiEzDqrq5Kv5xOLdWcTzHWlzGuqDSxTQNz9GCC94qSVzXp5Df+egVEKE/4t7u2P6nO46BUKweYMb9TJg==", - "optional": true, - "peer": true, - "requires": { - "@swc/wasm": "1.2.130" - }, - "dependencies": { - "@swc/wasm": { - "version": "1.2.130", - "resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz", - "integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==", - "optional": true, - "peer": true - } - } - }, - "@swc/core-darwin-arm64": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.4.tgz", - "integrity": "sha512-JNBFQKtaUdsq0Sv6N29++Q6xrvZDn1bQ7pbMvr8t7kBNXaYCDmupbwPGT725MrGVs72N4qKee5Z0OIvmnLCQfw==", - "optional": true, - "peer": true - }, - "@swc/core-darwin-x64": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.4.tgz", - "integrity": "sha512-A6KMZsUJ3j5TVxAizbv+UEjCNvMgWBm9jw4R3biaw8kbgu3XUWHdkiheXO+c2kjjjgwr1jhkHcLgRjffwpLYFA==", - "optional": true, - "peer": true - }, - "@swc/core-freebsd-x64": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@swc/core-freebsd-x64/-/core-freebsd-x64-1.3.4.tgz", - "integrity": "sha512-C5FCXHebcHwPJtEhgRShumXvcdPO5Cqiwd7GDNBav1IZribs3+ZqrTkCaz2hY7gb5NvyFIxkJ5HhpS4Pxafhuw==", - "optional": true, - "peer": true, - "requires": { - "@swc/wasm": "1.2.130" - }, - "dependencies": { - "@swc/wasm": { - "version": "1.2.130", - "resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz", - "integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==", - "optional": true, - "peer": true - } - } - }, - "@swc/core-linux-arm-gnueabihf": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.4.tgz", - "integrity": "sha512-vawHUhUcS//xNvGzL0zZ3vZ1YnsjgyvWQXB5PF4bhM5Y0/rmcrEdpkSId1qTfaMpcL7l2QSy9/DM7ucjlSpK6w==", - "optional": true, - "peer": true, - "requires": { - "@swc/wasm": "1.2.130" - }, - "dependencies": { - "@swc/wasm": { - "version": "1.2.130", - "resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz", - "integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==", - "optional": true, - "peer": true - } - } - }, - "@swc/core-linux-arm64-gnu": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.4.tgz", - "integrity": "sha512-p60RoYaDS8zrqp/cGkcJryk9HobJvrL+Ox/iz8ivDrV4IS0LXvqW5/5YTSzLo93/+blvG/M0hdaokoMhWhDnwA==", - "optional": true, - "peer": true - }, - "@swc/core-linux-arm64-musl": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.4.tgz", - "integrity": "sha512-F9hW6g5l4YesJJH/JMznaLGdLeCV4FKq5MN5DaZfuB8qrCZGLmAasGgvSNbXh1oZnDu1PD2ZxMYivkf2n8/4OA==", - "optional": true, - "peer": true - }, - "@swc/core-linux-x64-gnu": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.4.tgz", - "integrity": "sha512-rRqDtxktiVaxO8NQeEZSX0kNSFkI5Ft+4fZcFTbWhDO0vknC0+ZYbWpverfQ8yAwo7aA9jKWupwc3I7iZ1EQQQ==", - "optional": true, - "peer": true - }, - "@swc/core-linux-x64-musl": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.4.tgz", - "integrity": "sha512-stVnU7KXQxSbh67UiIVxZsgjkRSXApPTEU3CYnwsdH7G+ynfO1WocSatzjIKpJfhcY2Nss8/33yDaOKZXVhbIA==", - "optional": true, - "peer": true - }, - "@swc/core-win32-arm64-msvc": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.4.tgz", - "integrity": "sha512-qc3UIdAQfLTA1mJsFkX3ISqJDU02qtcjUbnLI8sl6oedCAOFF66TcecJvwl4iO+BTO04+KoZc5rJovSTOb3eQA==", - "optional": true, - "peer": true, - "requires": { - "@swc/wasm": "1.2.130" - }, - "dependencies": { - "@swc/wasm": { - "version": "1.2.130", - "resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz", - "integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==", - "optional": true, - "peer": true - } - } - }, - "@swc/core-win32-ia32-msvc": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.4.tgz", - "integrity": "sha512-FxuDGn60VrnYBcpH0CeR9+pCnPUaVvZ20CO6o/oNYHSfIhqPc76o3zFYYEFswYodExjCCYwsuPYgi+stvKZroA==", - "optional": true, - "peer": true, - "requires": { - "@swc/wasm": "1.2.130" - }, - "dependencies": { - "@swc/wasm": { - "version": "1.2.130", - "resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz", - "integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==", - "optional": true, - "peer": true - } - } - }, - "@swc/core-win32-x64-msvc": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.4.tgz", - "integrity": "sha512-9/bSvgjV31u1G2slRFPgK85ohJdo8KtWJ0f4CPp2LdVtIJHbFGd0pWjnMfiPJeodSxSGGWrgUNQtajqIIsrbqA==", - "optional": true, - "peer": true - }, - "@swc/wasm": { - "version": "1.2.122", - "resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.122.tgz", - "integrity": "sha512-sM1VCWQxmNhFtdxME+8UXNyPNhxNu7zdb6ikWpz0YKAQQFRGT5ThZgJrubEpah335SUToNg8pkdDF7ibVCjxbQ==", - "optional": true, - "peer": true - }, "@tootallnate/once": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz", diff --git a/package.json b/package.json index ab37f8754bd..5a0421db3f1 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ "devDependencies": { "@apollo/cache-control-types": "1.0.2", "@apollo/client": "3.7.0", + "@apollo/server-plugin-landing-page-graphql-playground": "4.0.0", "@apollo/utils.createhash": "1.1.0", "@changesets/changelog-github": "0.4.7", "@changesets/cli": "2.25.0", diff --git a/packages/integration-testsuite/src/apolloServerTests.ts b/packages/integration-testsuite/src/apolloServerTests.ts index 33e57c68729..1d4f9a1fe94 100644 --- a/packages/integration-testsuite/src/apolloServerTests.ts +++ b/packages/integration-testsuite/src/apolloServerTests.ts @@ -2777,8 +2777,9 @@ export function defineIntegrationTestSuiteApolloServerTests( ); }); - // We can remove this test after the initial AS4 release once we stop supporting - // the playground package. + // We don’t maintain this plugin any more (and we deleted its source from + // this repository) but it would still be nice to find out if we broke the + // plugin somehow. it('can install playground with specific version', async () => { url = ( await createServer({ diff --git a/packages/integration-testsuite/tsconfig.json b/packages/integration-testsuite/tsconfig.json index e3506eaddac..21ab8bd4e84 100644 --- a/packages/integration-testsuite/tsconfig.json +++ b/packages/integration-testsuite/tsconfig.json @@ -9,7 +9,6 @@ }, "include": ["src/**/*"], "references": [ - { "path": "../plugin-landing-page-graphql-playground" }, { "path": "../server" }, ], } diff --git a/packages/plugin-landing-page-graphql-playground/CHANGELOG.md b/packages/plugin-landing-page-graphql-playground/CHANGELOG.md deleted file mode 100644 index 3958ad3e67a..00000000000 --- a/packages/plugin-landing-page-graphql-playground/CHANGELOG.md +++ /dev/null @@ -1,7 +0,0 @@ -# @apollo/server-plugin-landing-page-graphql-playground - -## 4.0.0 - -One-time release of `@apollo/server-plugin-landing-page-graphql-playground` with support for Apollo Server 4. The version of this plugin designed for Apollo Server 2 and 3 was part of `apollo-server-core`. - -Note: this package is not officially supported by Apollo. This package exists for migration purposes only. We do not intend to resolve security issues or other bugs with this package if they arise, so please migrate away from this to Apollo Server's default Explorer as soon as possible. diff --git a/packages/plugin-landing-page-graphql-playground/README.md b/packages/plugin-landing-page-graphql-playground/README.md deleted file mode 100644 index 676f363b7ee..00000000000 --- a/packages/plugin-landing-page-graphql-playground/README.md +++ /dev/null @@ -1,23 +0,0 @@ -# GraphQL Playground plugin - -> ⚠️ Note: this package will be completely unsupported when Apollo Server v4 is officially released. This package exists for migration purposes only. We do not intend to resolve security issues or other bugs with this package if they arise, so please migrate away from this to Apollo Server's default Explorer as soon as possible. ⚠️ - -This is a plugin for Apollo Server 4 that makes your GraphQL server serve the [GraphQL Playground IDE](https://github.com/graphql/graphql-playground) as a landing page. - -GraphQL Playground was the only landing page available for Apollo Server 2. The GraphQL Playground project is officially [retired](https://github.com/graphql/graphql-playground/issues/1143) and we do not recommend its continued use. We recommend Apollo Server 4's default landing page, which serves the similar but actively maintained [Apollo Sandbox](https://www.apollographql.com/docs/studio/explorer/sandbox/), or a custom landing page. - -To help developers migrating from Apollo Server 2, we do still provide a landing page plugin that allows you to use GraphQL Playground with Apollo Server. In Apollo Server 3, that plugin is distributed as part of the `apollo-server-core` package. In Apollo Server 4, that plugin is distributed separately in this package. - -To use GraphQL Playground with Apollo Server 4, first `npm install @apollo/server-plugin-landing-page-graphql-playground`, and then: - -```ts -import { ApolloServer } from '@apollo/server'; -import { ApolloServerPluginLandingPageGraphQLPlayground } from '@apollo/server-plugin-landing-page-graphql-playground'; - -const server = new ApolloServer({ - plugins: [ApolloServerPluginLandingPageGraphQLPlayground()], - // ... other options ... -}); -``` - -Note that this will serve GraphQL Playground unconditionally. If you would prefer to only serve it when not in production, you can use `process.env.NODE_ENV` to determine whether to include the plugin in the `plugins` option yourself. diff --git a/packages/plugin-landing-page-graphql-playground/package.json b/packages/plugin-landing-page-graphql-playground/package.json deleted file mode 100644 index 083f0d65269..00000000000 --- a/packages/plugin-landing-page-graphql-playground/package.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "@apollo/server-plugin-landing-page-graphql-playground", - "version": "4.0.0", - "description": "Apollo Server landing page plugin for GraphQL Playground", - "type": "module", - "main": "dist/cjs/index.js", - "module": "dist/esm/index.js", - "types": "dist/esm/index.d.ts", - "exports": { - ".": { - "types": "./dist/esm/index.d.ts", - "import": "./dist/esm/index.js", - "require": "./dist/cjs/index.js" - } - }, - "repository": { - "type": "git", - "url": "https://github.com/apollographql/apollo-server", - "directory": "packages/plugin-landing-page-graphql-playground" - }, - "keywords": [], - "author": "Apollo ", - "license": "MIT", - "bugs": { - "url": "https://github.com/apollographql/apollo-server/issues" - }, - "homepage": "https://github.com/apollographql/apollo-server#readme", - "engines": { - "node": ">=14.0" - }, - "//": "Don't caret this, we want to be explicit about the version of our fork of graphql-playground-html (and hopefully never change it)", - "dependencies": { - "@apollographql/graphql-playground-html": "1.6.29" - }, - "peerDependencies": { - "@apollo/server": "^4.0.0" - } -} diff --git a/packages/plugin-landing-page-graphql-playground/src/index.ts b/packages/plugin-landing-page-graphql-playground/src/index.ts deleted file mode 100644 index ff80e1e78b2..00000000000 --- a/packages/plugin-landing-page-graphql-playground/src/index.ts +++ /dev/null @@ -1,45 +0,0 @@ -// This is the landing page plugin for GraphQL Playground. It wraps -// `@apollographql/graphql-playground-html`, our fork of upstream Playground. -// That package just contains a small HTML shell that brings in the actual React -// app from a CDN; you can control what version of the React app to use by -// specifying `version` when installing the plugin. - -import { renderPlaygroundPage } from '@apollographql/graphql-playground-html'; -import type { ApolloServerPlugin, GraphQLServerListener } from '@apollo/server'; - -// This specifies the React version of our fork of GraphQL Playground, -// `@apollographql/graphql-playground-react`. It is related to, but not to -// be confused with, the `@apollographql/graphql-playground-html` package which -// is a dependency of Apollo Server's various integration `package.json`s files. -// -// The HTML (stub) file renders a `