forked from apollographql/apollo-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #207 from apollographql/main
Create a new pull request by comparing changes across two branches
- Loading branch information
Showing
37 changed files
with
3,030 additions
and
4,022 deletions.
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
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
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
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 @@ | ||
--- | ||
"@apollo/client": patch | ||
--- | ||
|
||
Adjust some types for React 19 compat |
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 @@ | ||
--- | ||
"@apollo/client": patch | ||
--- | ||
|
||
Fix error "Cannot convert object to primitive value" |
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 |
---|---|---|
|
@@ -15,7 +15,7 @@ jobs: | |
|
||
Lint: | ||
docker: | ||
- image: cimg/node:22.0.0 | ||
- image: cimg/node:22.1.0 | ||
steps: | ||
- checkout | ||
- run: npm version | ||
|
@@ -24,15 +24,15 @@ jobs: | |
|
||
Formatting: | ||
docker: | ||
- image: cimg/node:22.0.0 | ||
- image: cimg/node:22.1.0 | ||
steps: | ||
- checkout | ||
- run: npm ci | ||
- run: npm run check:format | ||
|
||
Tests: | ||
docker: | ||
- image: cimg/node:22.0.0 | ||
- image: cimg/node:22.1.0 | ||
steps: | ||
- checkout | ||
- run: npm run ci:precheck | ||
|
@@ -50,7 +50,7 @@ jobs: | |
|
||
BuildTarball: | ||
docker: | ||
- image: cimg/node:22.0.0 | ||
- image: cimg/node:22.1.0 | ||
steps: | ||
- checkout | ||
- run: npm run ci:precheck | ||
|
@@ -66,13 +66,20 @@ jobs: | |
parameters: | ||
framework: | ||
type: string | ||
react: | ||
type: string | ||
docker: | ||
- image: cimg/node:22.0.0 | ||
- image: cimg/node:22.1.0 | ||
steps: | ||
- checkout | ||
- attach_workspace: | ||
at: /tmp/workspace | ||
- run: npm version | ||
- run: | ||
command: | | ||
export VERSION=$(npm show react --json | jq '."dist-tags"."<< parameters.react >>"' -r) | ||
npm pkg set "overrides[react]=${VERSION}" "overrides[react-dom]=${VERSION}" | ||
working_directory: integration-tests | ||
- run: | ||
command: npm run ci-preparations --workspace=<< parameters.framework >> --if-present | ||
working_directory: integration-tests | ||
|
@@ -82,6 +89,9 @@ jobs: | |
- run: | ||
command: npx playwright install-deps | ||
working_directory: integration-tests | ||
- run: | ||
command: npx playwright install | ||
working_directory: integration-tests | ||
- run: | ||
command: npm run build --workspace=<< parameters.framework >> --if-present | ||
working_directory: integration-tests | ||
|
@@ -94,7 +104,7 @@ jobs: | |
externalPackage: | ||
type: string | ||
docker: | ||
- image: cimg/node:22.0.0 | ||
- image: cimg/node:22.1.0 | ||
steps: | ||
- checkout | ||
- attach_workspace: | ||
|
@@ -116,7 +126,7 @@ workflows: | |
- Lint | ||
- BuildTarball | ||
- IntegrationTests: | ||
name: Integration Test << matrix.framework >> | ||
name: Integration Test << matrix.framework >> with React << matrix.react >> | ||
requires: | ||
- BuildTarball | ||
matrix: | ||
|
@@ -130,6 +140,15 @@ workflows: | |
- vite | ||
- vite-swc | ||
# -browser-esm would need a package publish to npm/CDNs | ||
react: | ||
- latest | ||
- next | ||
exclude: | ||
- framework: cra4 | ||
react: next | ||
# next ships it's own React version anyways, no need to run this test twice | ||
- framework: next | ||
react: next | ||
- TestPeerDepTypes: | ||
name: Test external types for << matrix.externalPackage >> | ||
requires: | ||
|
@@ -143,6 +162,7 @@ workflows: | |
- "@types/[email protected] @types/[email protected]" | ||
- "@types/react@17 @types/react-dom@17" | ||
- "@types/react@18 @types/react-dom@18" | ||
- "@types/react@npm:[email protected] @types/react-dom@npm:[email protected]" | ||
- "typescript@next" | ||
security-scans: | ||
jobs: | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"dist/apollo-client.min.cjs": 39551, | ||
"dist/apollo-client.min.cjs": 39540, | ||
"import { ApolloClient, InMemoryCache, HttpLink } from \"dist/index.js\" (production)": 32826 | ||
} |
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.