-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove peerDependency on graphql 14 (#11231)
- Loading branch information
Showing
6 changed files
with
76 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,6 +86,24 @@ jobs: | |
command: npm run test --workspace=<< parameters.framework >> | ||
working_directory: integration-tests | ||
|
||
TestPeerDepTypes: | ||
parameters: | ||
externalPackage: | ||
type: string | ||
docker: | ||
- image: cimg/node:20.6.1 | ||
steps: | ||
- checkout | ||
- attach_workspace: | ||
at: /tmp/workspace | ||
- run: | ||
working_directory: integration-tests/peerdeps-tsc | ||
command: | | ||
npm install | ||
npm install @apollo/client@/tmp/workspace/apollo-client.tgz | ||
npm install << parameters.externalPackage >> | ||
npm test | ||
workflows: | ||
Build and Test: | ||
jobs: | ||
|
@@ -109,3 +127,17 @@ workflows: | |
- vite | ||
- vite-swc | ||
# -browser-esm would need a package publish to npm/CDNs | ||
- TestPeerDepTypes: | ||
name: Test external types for << matrix.externalPackage >> | ||
requires: | ||
- BuildTarball | ||
matrix: | ||
parameters: | ||
externalPackage: | ||
- "graphql@15" | ||
- "graphql@16" | ||
- "graphql@^17.0.0-alpha" | ||
- "@types/[email protected] @types/[email protected]" | ||
- "@types/react@17 @types/react-dom@17" | ||
- "@types/react@18 @types/react-dom@18" | ||
- "typescript@next" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# explicitly avoiding to check in this one | ||
# so we run this test always with the latest version | ||
package-lock.json | ||
dist | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "peerdeps-tsc", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "tsc" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC", | ||
"dependencies": { | ||
"graphql": "^16.0.0", | ||
"graphql-ws": "^5.5.5", | ||
"@types/react": "^18.0.0", | ||
"@types/react-dom": "^18.0.0", | ||
"subscriptions-transport-ws": "^0.11.0", | ||
"typescript": "latest" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from "@apollo/client"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "es2016", | ||
"module": "commonjs", | ||
"rootDir": "./src", | ||
"outDir": "./dist", | ||
"declaration": true, | ||
"sourceMap": true, | ||
"declarationMap": true, | ||
"esModuleInterop": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"strict": true, | ||
"skipLibCheck": false, | ||
"types": ["react", "react-dom"], | ||
"lib": ["es2018", "dom"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters