Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a new pull request by comparing changes across two branches #454

Merged
merged 92 commits into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
8df6013
MockLink: add query default variables if not specified in mock request
phryneas Apr 24, 2024
bcd51e0
move logic
phryneas Apr 24, 2024
7249ff6
Update src/testing/core/mocking/__tests__/mockLink.ts
phryneas May 2, 2024
1a9c68a
stabilize `useQuery` tests (#11890)
phryneas Jul 2, 2024
ffb21ce
Enter prerelease mode
github-actions[bot] Jul 2, 2024
c2bd48b
extract hooks from InternalState
phryneas May 27, 2024
dc58beb
inline hooks and functions into each other, move `createWatchQueryOpt…
phryneas May 27, 2024
10466e5
move `executeQuery` to `useLazyQuery`
phryneas May 27, 2024
ea77f60
move more functions out
phryneas May 27, 2024
fde4c4d
move `unsafeHandlePartialRefetch` into `setResult`
phryneas May 28, 2024
e1b7ed7
remove `toQueryResultCache`, save transformed result in `internalStat…
phryneas May 29, 2024
9c865ca
fixup test
phryneas May 29, 2024
b5e1643
move `getDefaultFetchPolicy` out
phryneas May 29, 2024
b4c8bf9
move more functions out
phryneas May 29, 2024
12e19f9
moved all class methods out
phryneas May 29, 2024
24e4491
replace class with single mutable object
phryneas May 29, 2024
e31d953
move callbacks into their own ref
phryneas May 29, 2024
891e211
move `obsQueryFields` out of `internalState`
phryneas Jun 3, 2024
ec1c7a9
inline `useInternalState`
phryneas Jun 4, 2024
79566a8
redactor away `internalState.queryHookOptions`
phryneas Jun 4, 2024
873f24d
make function arguments more explicit
phryneas Jun 4, 2024
8bb445c
replace `internalState.watchQueryOptions` with `observable[lastWatchO…
phryneas Jun 5, 2024
635a32b
move observable fully into a readonly prop on internalState
phryneas Jun 5, 2024
d6de17f
remove all direct access to `internalState` after initializing
phryneas Jun 5, 2024
06d98ac
extract new `useInternalState` hook
phryneas Jun 5, 2024
7717b4f
extract `useResubscribeIfNecessary` hook
phryneas Jun 5, 2024
3889fff
add comment
phryneas Jun 5, 2024
da4b840
extract `bindObservableMethods`
phryneas Jun 7, 2024
f18b753
extract `useHandleSkip` and `useRegisterSSRObservable` hooks
phryneas Jun 7, 2024
8480ce6
extract useObservableSubscriptionResult hook
phryneas Jun 7, 2024
30b1769
change some method arguments. remove obsolete comment
phryneas Jun 7, 2024
c896885
curry `createMakeWatchQueryOptions`
phryneas Jun 7, 2024
1485651
bring function and hook argyuments into a common order
phryneas Jun 7, 2024
70f5aaf
Move `onQueryExecuted` into `useInternalState`
phryneas Jun 7, 2024
fed117b
some style adjustments to be more compiler-friendly
phryneas Jun 7, 2024
a69327c
remove R19 exception from test, chores
phryneas Jul 3, 2024
98e44f7
useSubscription: fix rules of React violations (#11863)
phryneas Jul 3, 2024
987aaad
Apply suggestions from code review
phryneas Jul 4, 2024
33c0fef
Merge branch 'release-3.11' into pr/rewrite-useQuery
phryneas Jul 4, 2024
5ae4876
Merge pull request #11869 from apollographql/pr/rewrite-useQuery
phryneas Jul 4, 2024
d88c7f8
Add `subscribeToMore` function to `useBackgroundQuery`, `useQueryRefH…
jerelmiller Jul 5, 2024
b1253c0
chore(deps): update all dependencies - patch updates (#11840)
renovate[bot] Jul 5, 2024
5002b94
chore(deps): update all devdependencies (#11867)
renovate[bot] Jul 5, 2024
e9d26e5
Merge remote-tracking branch 'origin/release-3.11' into pr/mockLink-d…
phryneas Jul 8, 2024
5ac68eb
Merge pull request #11806 from apollographql/pr/mockLink-defaults
phryneas Jul 8, 2024
96422ce
Add `cause` field to `ApolloError`. (#11902)
phryneas Jul 8, 2024
228429a
Call `nextFetchPolicy` with "variables-changed" even if there is a `f…
phryneas Jul 8, 2024
2941824
Add `restart` function to `useSubscription` (#11927)
phryneas Jul 8, 2024
70406bf
add `ignoreResults` option to `useSubscription` (#11921)
phryneas Jul 8, 2024
00a3bcc
Update ROADMAP.md
jerelmiller Jul 8, 2024
fce54f2
chore(deps): update dependency rimraf to v5.0.8 (#11931)
renovate[bot] Jul 8, 2024
9a19f5e
chore(deps): update cimg/node docker tag to v22.4.0 (#11932)
renovate[bot] Jul 8, 2024
a0868da
Merge branch 'main' into release-3.11
jerelmiller Jul 8, 2024
09a6677
also wrap createQueryPreloader (#11719)
phryneas Jul 9, 2024
602a678
forward `errorPolicy` option from `useSubscription` (#11928)
phryneas Jul 9, 2024
1b23337
Add ability to configure a name for the client for use with devtools …
jerelmiller Jul 9, 2024
5793301
Change usages of the `GraphQLError` type to `GraphQLFormattedError`. …
phryneas Jul 9, 2024
3812800
Support extensions in useSubscription (#11854)
jcostello-atlassian Jul 9, 2024
a768575
Deprecate experimental testing utilities (#11930)
jerelmiller Jul 9, 2024
b937136
Prepare for rc release
github-actions[bot] Jul 9, 2024
63a3a26
Revert "fix: skip PR creation if no prerelease changesets exist (#117…
jerelmiller Jul 9, 2024
5688afd
Merge branch 'main' into release-3.11
jerelmiller Jul 9, 2024
d9f9d15
Version Packages (rc) (#11940)
github-actions[bot] Jul 9, 2024
165c4e4
Revert "Revert "fix: skip PR creation if no prerelease changesets exi…
jerelmiller Jul 9, 2024
b8850ab
Revert "Revert "Revert "fix: skip PR creation if no prerelease change…
jerelmiller Jul 9, 2024
8c39053
Revert "Revert "Update router terminology (#11885)" (#11892)"
Meschreiber Jul 9, 2024
7d833b8
Fix issue accessing mutations from devtools (#11946)
jerelmiller Jul 10, 2024
2b4b5fb
Merge pull request #11943 from apollographql/revert-11892-revert-1188…
Meschreiber Jul 10, 2024
a84b286
Update "Who is Apollo"
Meschreiber Jul 10, 2024
3dd6432
`watchFragment`: forward additional options to `diffOptions` (#11926)
phryneas Jul 10, 2024
4528918
remove deprecated `watchFragment` option, `canonizeResults` (#11949)
alessbell Jul 10, 2024
d4d1e34
Update README.md
Meschreiber Jul 10, 2024
77b9e0b
Merge pull request #11948 from apollographql/ms/update-about-apollo
Meschreiber Jul 10, 2024
a3bbabe
Version Packages (rc) (#11947)
github-actions[bot] Jul 10, 2024
78332be
correctly test for error equality on jest (#11937)
phryneas Jul 11, 2024
c4cf577
Merge branch 'main' into release-3.11
phryneas Jul 15, 2024
8f3d7eb
Fix `optimisticResponse` function return type (#11944)
sneyderdev Jul 15, 2024
0de03af
add React 19 RC to `peerDependencies` (#11951)
phryneas Jul 15, 2024
4a6e86a
optimize `useQuery` result handling (#11954)
phryneas Jul 15, 2024
4805980
Update README.md with summit callout (#11955)
R4ph-t Jul 15, 2024
c2a812e
Update ROADMAP.md
jerelmiller Jul 15, 2024
5da4b21
QueryManager: require all options (#11920)
phryneas Jul 15, 2024
4e2a0bb
Version Packages (rc) (#11952)
github-actions[bot] Jul 15, 2024
3f6d023
Wrap note about creating new instance in `Caution` (#11960)
jerelmiller Jul 16, 2024
56f1c93
patch React 19 for tests to make FALLBACK_THROTTLE_MS configurable (#…
phryneas Jul 19, 2024
16438fe
chore(deps): update all dependencies - patch updates
renovate[bot] Jul 20, 2024
c982e5f
chore(deps): update all devdependencies
renovate[bot] Jul 20, 2024
8379be1
chore(deps): update cimg/node docker tag to v22.5.1 (#11964)
renovate[bot] Jul 22, 2024
811c558
chore(deps): update dependency mocha to v10.7.0 (#11966)
renovate[bot] Jul 22, 2024
f7aed4f
Exit prerelease mode
github-actions[bot] Jul 22, 2024
7b8028e
Merge pull request #11922 from apollographql/release-3.11
jerelmiller Jul 22, 2024
fa3487d
Version Packages (#11967)
github-actions[bot] Jul 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert "Revert "Update router terminology (apollographql#11885)" (apo…
…llographql#11892)"

This reverts commit e41580b.
  • Loading branch information
Meschreiber authored Jul 9, 2024
commit 8c39053b33249b291e2a283054557424b3fadabe
10 changes: 5 additions & 5 deletions docs/source/api/link/persisted-queries.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,21 @@ Using persisted queries for safelisting has the following requirements:
- Apollo Client Web (v3.7.0+)
- The [`@apollo/generate-persisted-query-manifest` package](https://www.npmjs.com/package/@apollo/generate-persisted-query-manifest)
- The [`@apollo/persisted-query-lists` package](https://www.npmjs.com/package/@apollo/persisted-query-lists)
- [Apollo Router](/router) (v1.25.0+)
- [GraphOS Router](/router) (v1.25.0+)
- [GraphOS Enterprise plan](/graphos/enterprise/)

You can use APQ with the following versions of Apollo Client Web, Apollo Server, and Apollo Router:
You can use APQ with the following versions of Apollo Client Web, Apollo Server, and Apollo Router Core:
- Apollo Client Web (v3.2.0+)
- [Apollo Server](/apollo-server/) (v1.0.0+)
- [Apollo Router](/router) (v0.1.0+)
- [Apollo Router Core](/router) (v0.1.0+)

> **Note:** You can use _either_ Apollo Server _or_ Apollo Router for APQs. They don't need to be used together.
> **Note:** You can use _either_ Apollo Server _or_ Apollo Router Core for APQs. They don't need to be used together.

## 1. Generate operation manifests

> **This step is only required for persisted queries, not APQ.**

An operation manifest acts as a safelist the [Apollo Router](/router/) can check incoming requests against.
An operation manifest acts as a safelist the [GraphOS Router](/router/) can check incoming requests against.
You can generate the manifest using the [`@apollo/generate-persisted-query-manifest`](https://www.npmjs.com/package/@apollo/generate-persisted-query-manifest) package:

1. Install the [`@apollo/generate-persisted-query-manifest`](https://www.npmjs.com/package/@apollo/generate-persisted-query-manifest) package as a dev dependency:
Expand Down
2 changes: 1 addition & 1 deletion docs/source/data/defer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: Receive query response data incrementally

Beginning with version `3.7.0`, Apollo Client provides preview support for [the `@defer` directive](https://github.com/graphql/graphql-wg/blob/main/rfcs/DeferStream.md). This directive enables your queries to receive data for specific fields _incrementally_, instead of receiving all field data at the same time. This is helpful whenever some fields in a query take much longer to resolve than others.

> For a query to defer fields successfully, the queried endpoint must _also_ support the `@defer` directive. Entity-based `@defer` support is also at the General Availability stage in [Apollo Router](/router/executing-operations/defer-support/) and is compatible with all [federation-compatible subgraph libraries](/federation/building-supergraphs/supported-subgraphs/).
> For a query to defer fields successfully, the queried endpoint must _also_ support the `@defer` directive. Entity-based `@defer` support is also at the General Availability stage in [GraphOS Router](/router/executing-operations/defer-support/) and is compatible with all [federation-compatible subgraph libraries](/federation/building-supergraphs/supported-subgraphs/).

## Example

Expand Down