-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Release 3.6.0 #9067
Release 3.6.0 #9067
Commits on Nov 16, 2021
-
Configuration menu - View commit details
-
Copy full SHA for c0c3a8c - Browse repository at this point
Copy the full SHA c0c3a8cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 600d239 - Browse repository at this point
Copy the full SHA 600d239View commit details -
Configuration menu - View commit details
-
Copy full SHA for df7be26 - Browse repository at this point
Copy the full SHA df7be26View commit details -
Merge branch 'revert-normalizeNonRelativeId-from-pr-8396' into releas…
…e-3.6. Merging into `release-3.6` before merging into `main` so we can do some additional testing with beta releases.
Configuration menu - View commit details
-
Copy full SHA for d3c328b - Browse repository at this point
Copy the full SHA d3c328bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2b053c8 - Browse repository at this point
Copy the full SHA 2b053c8View commit details -
Use
useSyncExternalStore()
(#8785)* add use-sync-external-store * Initial work on using useSyncExternalStore * fix useLazyQuery tests * update use-sync-external-store version * update timings to useMutation tests * change the timing in a Mutation component test which changed for no ostensible reason * fix the hoc tests agane * bring back the bad boy code block by popular demand * update useSyncExternalStore to handle ssr * use published useSyncExternalStore types * update dependencies and add beta to react peer range
Configuration menu - View commit details
-
Copy full SHA for 7f0d459 - Browse repository at this point
Copy the full SHA 7f0d459View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f72695 - Browse repository at this point
Copy the full SHA 1f72695View commit details -
Configuration menu - View commit details
-
Copy full SHA for b396b45 - Browse repository at this point
Copy the full SHA b396b45View commit details -
Configuration menu - View commit details
-
Copy full SHA for a1c3de4 - Browse repository at this point
Copy the full SHA a1c3de4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a4ec92 - Browse repository at this point
Copy the full SHA 7a4ec92View commit details
Commits on Nov 22, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 59c8591 - Browse repository at this point
Copy the full SHA 59c8591View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f29fab - Browse repository at this point
Copy the full SHA 1f29fabView commit details
Commits on Nov 23, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 1936e5b - Browse repository at this point
Copy the full SHA 1936e5bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4426a80 - Browse repository at this point
Copy the full SHA 4426a80View commit details -
Configuration menu - View commit details
-
Copy full SHA for efe61de - Browse repository at this point
Copy the full SHA efe61deView commit details
Commits on Nov 29, 2021
-
Add direct dependency on [email protected] to fix Netlify npm failures.
The specific failure is an integrity hash mismatch: 5:44:05 PM: npm ERR! code EINTEGRITY 5:44:05 PM: npm ERR! sha512-yXbYeFy+jUuYd3/CDcg2NkIYE991XYX/bje7LmjJigUciaeO1JR4XxXgCIV1/Zc/dRuFEyw1L0pbA+qynJkW5Q== integrity checksum failed when using sha512: wanted sha512-yXbYeFy+jUuYd3/CDcg2NkIYE991XYX/bje7LmjJigUciaeO1JR4XxXgCIV1/Zc/dRuFEyw1L0pbA+qynJkW5Q== but got sha512-U1riIR+lBSNi3IbxtaHOIKdH8sLFv3NYfNv8sg7ZsNhcfl4HF2++BfqqrNAxoCLQW1iiylOj76ecnaUxz+z9yw== Example failed deployment (or see any of the recent failures in #9067): https://app.netlify.com/sites/apollo-client-docs/deploys/619d6dc222deda1694aa37a6 Although the error doesn't mention the package name, I was able to grep for the expected hash in package-lock.json, which pointed to the `acorn` package. As you can tell from this commit's changes, the actual hash displayed above (ending in +z9yw==) happens to be the hash for [email protected], whereas the expected hash was that of [email protected].
Configuration menu - View commit details
-
Copy full SHA for 38e3084 - Browse repository at this point
Copy the full SHA 38e3084View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f16820 - Browse repository at this point
Copy the full SHA 8f16820View commit details -
Revert "Prevent npm@6-related Netlify failures on release-3.6 branch (#…
Configuration menu - View commit details
-
Copy full SHA for 56db8c0 - Browse repository at this point
Copy the full SHA 56db8c0View commit details
Commits on Jan 10, 2022
-
Update dev dependency use-sync-external-store to version 1.0.0-rc.0.
I relaxed the peer dependency version constraint to allow any 1.0.0-compatible version, including betas and RCs. For local development of the Apollo Client library itself, I added use-sync-external-store to our devDependencies (like we do with react and react-dom), since I was seeing `npm i` fail to install node_modules/use-sync-external-store, perhaps because it is now an optional peer dep.
Configuration menu - View commit details
-
Copy full SHA for fd3b021 - Browse repository at this point
Copy the full SHA fd3b021View commit details
Commits on Jan 11, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 5635437 - Browse repository at this point
Copy the full SHA 5635437View commit details -
Batch link can cancel operations that are in queue or in flight
After an operation has been subscribed to, and so queued, it is possible to unsubscribe from it, and it will be removed from the queue. Unsubscribing will not impact the debounce, so other operations, if any, will not be delayed by an unsubscription. If a batch of operation is already in flight, and all operations are unsubscribed then the entire XHR will be cancelled. If only some operations are unsubscribed the XHR will be left untouched.
Configuration menu - View commit details
-
Copy full SHA for 5cda727 - Browse repository at this point
Copy the full SHA 5cda727View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d098ea - Browse repository at this point
Copy the full SHA 2d098eaView commit details
Commits on Jan 12, 2022
-
Restore BatchHandler field types.
Since BatchHandler is an exported type, it seems appropriate to preserve its optional fields (with their expected types), then override those fields (next, error, complete) with non-optional versions in the QueuedRequest subtype. The field/types of QueuedRequest will end up the same either way.
Configuration menu - View commit details
-
Copy full SHA for c9477a3 - Browse repository at this point
Copy the full SHA c9477a3View commit details -
Use Sets to track batched requests and their subscribers.
Since ECMAScript Set and Map preserve the order of their keys (by order of first insertion), they can often be used to keep track of queues or LRU usage chains, while also supporting constant-time deletion of keys (no need for indexOf/splice).
Configuration menu - View commit details
-
Copy full SHA for 33a340f - Browse repository at this point
Copy the full SHA 33a340fView commit details -
Configuration menu - View commit details
-
Copy full SHA for e17ccab - Browse repository at this point
Copy the full SHA e17ccabView commit details -
Privatize and rename batcher.queuedRequests property.
Since we're already changing the type of this pseudo-private property, it seems like a good idea also to privatize/rename it for real, so we can test the hypothesis "nobody is using this field directly" by trialing these changes in beta releases of Apollo Client v3.6.
Configuration menu - View commit details
-
Copy full SHA for 3def764 - Browse repository at this point
Copy the full SHA 3def764View commit details -
Configuration menu - View commit details
-
Copy full SHA for 51881d6 - Browse repository at this point
Copy the full SHA 51881d6View commit details
Commits on Jan 14, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 5328dae - Browse repository at this point
Copy the full SHA 5328daeView commit details
Commits on Jan 18, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 915f34d - Browse repository at this point
Copy the full SHA 915f34dView commit details
Commits on Jan 19, 2022
-
Configuration menu - View commit details
-
Copy full SHA for e70e072 - Browse repository at this point
Copy the full SHA e70e072View commit details -
Remove unused BatchHandler properties
Because those are never used inside this project, and they are very likely to break our indices based callback calls and throw an `server returned results with length...`.
Configuration menu - View commit details
-
Copy full SHA for 29fb39e - Browse repository at this point
Copy the full SHA 29fb39eView commit details -
Configuration menu - View commit details
-
Copy full SHA for fb04ca4 - Browse repository at this point
Copy the full SHA fb04ca4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 98f9bc2 - Browse repository at this point
Copy the full SHA 98f9bc2View commit details
Commits on Feb 1, 2022
-
New GraphQLWsLink for graphql-ws subscriptions library
Apollo Client currently contains `WebSocketLink` in `@apollo/client/link/ws` which uses the `subscriptions-transport-ws` library. That library is no longer actively maintained, and there is an improved fork called `graphql-ws`. The two libraries use different protocols so a different client link is required for `graphql-ws`. (While the WebSocket protocol does allow for subprotocol negotiation, neither server implementation supports this in a practical way.) This PR adds a new link `GraphQLWsLink` in `@apollo/client/link/subscriptions`. Its constructor arguments are the same as the `createClient` function in `graphql-ws` (or it can take a `Client` object returned from that function), and you need to install the optional peer dep `graphql-ws` instead of `subscriptions-transport-ws`. Once you've created the link, it works exactly like the old `WebSocketLink`. This PR changes the main subscriptions doc page to mostly document the new link, with an extra section at the bottom for the old link. The core GraphQLWsLink code is based on MIT-licensed code from the README of the graphql-ws repository. Fixes #8345. Part of apollographql/apollo-server#6058
Configuration menu - View commit details
-
Copy full SHA for f25a028 - Browse repository at this point
Copy the full SHA f25a028View commit details -
Update docs/source/api/link/apollo-link-ws.md
Co-authored-by: Ben Newman <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a8ff094 - Browse repository at this point
Copy the full SHA a8ff094View commit details -
Update docs/source/data/subscriptions.mdx
Co-authored-by: Ben Newman <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a573c8e - Browse repository at this point
Copy the full SHA a573c8eView commit details -
Configuration menu - View commit details
-
Copy full SHA for a10f48d - Browse repository at this point
Copy the full SHA a10f48dView commit details -
Configuration menu - View commit details
-
Copy full SHA for a1fcb6c - Browse repository at this point
Copy the full SHA a1fcb6cView commit details -
Configuration menu - View commit details
-
Copy full SHA for b453ced - Browse repository at this point
Copy the full SHA b453cedView commit details -
Configuration menu - View commit details
-
Copy full SHA for a3604e4 - Browse repository at this point
Copy the full SHA a3604e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for b344f00 - Browse repository at this point
Copy the full SHA b344f00View commit details -
Configuration menu - View commit details
-
Copy full SHA for 11c0051 - Browse repository at this point
Copy the full SHA 11c0051View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4caf088 - Browse repository at this point
Copy the full SHA 4caf088View commit details
Commits on Feb 2, 2022
-
Merge pull request #9369 from apollographql/glasser/graphql-ws
New GraphQLWsLink for graphql-ws subscriptions library
Configuration menu - View commit details
-
Copy full SHA for d98f1de - Browse repository at this point
Copy the full SHA d98f1deView commit details -
Merge pull request #9248 from PowerKiKi/batch-cancel
Batch link can cancel operations that are in queue or in flight
Configuration menu - View commit details
-
Copy full SHA for cefd24c - Browse repository at this point
Copy the full SHA cefd24cView commit details
Commits on Feb 3, 2022
-
Temporarily revert
useSyncExternalStore
changes (#8785). (#9393)Configuration menu - View commit details
-
Copy full SHA for c6ab364 - Browse repository at this point
Copy the full SHA c6ab364View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a884c6 - Browse repository at this point
Copy the full SHA 4a884c6View commit details -
Configuration menu - View commit details
-
Copy full SHA for f4ced80 - Browse repository at this point
Copy the full SHA f4ced80View commit details -
Configuration menu - View commit details
-
Copy full SHA for 47f1ca9 - Browse repository at this point
Copy the full SHA 47f1ca9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 63eb5a5 - Browse repository at this point
Copy the full SHA 63eb5a5View commit details
Commits on Feb 4, 2022
-
Update to ts-invariant to version 0.10.0.
Should help with issue #8218, thanks to @benmccann's work in apollographql/invariant-packages#254
Configuration menu - View commit details
-
Copy full SHA for 65f37e2 - Browse repository at this point
Copy the full SHA 65f37e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 684ad58 - Browse repository at this point
Copy the full SHA 684ad58View commit details
Commits on Feb 9, 2022
-
Configuration menu - View commit details
-
Copy full SHA for a474d57 - Browse repository at this point
Copy the full SHA a474d57View commit details
Commits on Feb 15, 2022
-
Configuration menu - View commit details
-
Copy full SHA for fb03bee - Browse repository at this point
Copy the full SHA fb03beeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3bd51a7 - Browse repository at this point
Copy the full SHA 3bd51a7View commit details
Commits on Feb 25, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 72bbd06 - Browse repository at this point
Copy the full SHA 72bbd06View commit details -
add simple regression test to show that useQuery result changes when …
…the component re-renders
Configuration menu - View commit details
-
Copy full SHA for 9c5f077 - Browse repository at this point
Copy the full SHA 9c5f077View commit details -
Configuration menu - View commit details
-
Copy full SHA for 777b7e9 - Browse repository at this point
Copy the full SHA 777b7e9View commit details -
Configuration menu - View commit details
-
Copy full SHA for c2c83f4 - Browse repository at this point
Copy the full SHA c2c83f4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b0bfb9 - Browse repository at this point
Copy the full SHA 3b0bfb9View commit details -
Hacky destructive result updates to achieve referential stability.
I will revisit this approach to prevent repeated updates of unchanging result properties (like obsQueryFields).
Configuration menu - View commit details
-
Copy full SHA for c610bf0 - Browse repository at this point
Copy the full SHA c610bf0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 70b232f - Browse repository at this point
Copy the full SHA 70b232fView commit details -
Configuration menu - View commit details
-
Copy full SHA for abee68d - Browse repository at this point
Copy the full SHA abee68dView commit details -
Configuration menu - View commit details
-
Copy full SHA for e6d1abf - Browse repository at this point
Copy the full SHA e6d1abfView commit details -
Configuration menu - View commit details
-
Copy full SHA for c67909f - Browse repository at this point
Copy the full SHA c67909fView commit details -
Delete result.partial only if it's defined but falsy.
Removing result.partial when it's truthy defeats the whole purpose of this (questionably necessary) field.
Configuration menu - View commit details
-
Copy full SHA for 94f11a6 - Browse repository at this point
Copy the full SHA 94f11a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for df26f08 - Browse repository at this point
Copy the full SHA df26f08View commit details -
Avoid prematurely merging defaultOptions.watchQuery.
Follow-up/refinement to PR #9210. Now that the createWatchQueryOptions function no longer defaults watchQueryOptions.fetchPolicy to "cache-first" unconditionally (instead defaulting to defaultOptions.watchQuery.fetchPolicy if defined), we can let the merging of defaultOptions happen as it normally does, when client.watchQuery(watchQueryOptions) is called later.
Configuration menu - View commit details
-
Copy full SHA for a4c14fc - Browse repository at this point
Copy the full SHA a4c14fcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 25f6aa1 - Browse repository at this point
Copy the full SHA 25f6aa1View commit details -
Ensure watchQueryOptions remain referentially stable.
Using options as a useMemo dependency only happens to work here when options is undefined. If options is an object created fresh every time useQuery is called (as it often is), the useMemo version of this code would produce a new watchQueryOptions object on every call.
Configuration menu - View commit details
-
Copy full SHA for 506bf5f - Browse repository at this point
Copy the full SHA 506bf5fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7f0e436 - Browse repository at this point
Copy the full SHA 7f0e436View commit details -
Configuration menu - View commit details
-
Copy full SHA for 02548ee - Browse repository at this point
Copy the full SHA 02548eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for e772cce - Browse repository at this point
Copy the full SHA e772cceView commit details -
Configuration menu - View commit details
-
Copy full SHA for 165e816 - Browse repository at this point
Copy the full SHA 165e816View commit details -
Configuration menu - View commit details
-
Copy full SHA for dd7eaca - Browse repository at this point
Copy the full SHA dd7eacaView commit details -
Configuration menu - View commit details
-
Copy full SHA for ad842d9 - Browse repository at this point
Copy the full SHA ad842d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6356882 - Browse repository at this point
Copy the full SHA 6356882View commit details -
Configuration menu - View commit details
-
Copy full SHA for 265a3ca - Browse repository at this point
Copy the full SHA 265a3caView commit details -
Configuration menu - View commit details
-
Copy full SHA for a536a25 - Browse repository at this point
Copy the full SHA a536a25View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5a32d59 - Browse repository at this point
Copy the full SHA 5a32d59View commit details -
Implement cached InternalState#toQueryResult method.
This handful of test changes all seem defensible to me.
Configuration menu - View commit details
-
Copy full SHA for b507232 - Browse repository at this point
Copy the full SHA b507232View commit details -
Configuration menu - View commit details
-
Copy full SHA for bd9dae5 - Browse repository at this point
Copy the full SHA bd9dae5View commit details -
Configuration menu - View commit details
-
Copy full SHA for dcdd7bc - Browse repository at this point
Copy the full SHA dcdd7bcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2956b4e - Browse repository at this point
Copy the full SHA 2956b4eView commit details -
Configuration menu - View commit details
-
Copy full SHA for dc3e23e - Browse repository at this point
Copy the full SHA dc3e23eView commit details -
Move useEffect ObservableQuery maintenance logic into useObservableQu…
…ery. TODO Find a way to make this useEffect logic unnecessary.
Configuration menu - View commit details
-
Copy full SHA for 3057abe - Browse repository at this point
Copy the full SHA 3057abeView commit details -
Stop using resultRef and update the affected tests.
These two tests are the ones I was talking about in (the message of) my earlier commit where state.resultRef was first introduced. After further consideration, updating the two affected tests and removing state.resultRef in favor of state.{result,previousData} makes the most sense to me, since the queries/clients/variables reported in the tests are no longer sometimes out of sync.
Configuration menu - View commit details
-
Copy full SHA for 5ddacb8 - Browse repository at this point
Copy the full SHA 5ddacb8View commit details -
Configuration menu - View commit details
-
Copy full SHA for d695d7c - Browse repository at this point
Copy the full SHA d695d7cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7ca2db6 - Browse repository at this point
Copy the full SHA 7ca2db6View commit details -
Configuration menu - View commit details
-
Copy full SHA for bbc99ab - Browse repository at this point
Copy the full SHA bbc99abView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3981bb3 - Browse repository at this point
Copy the full SHA 3981bb3View commit details -
Configuration menu - View commit details
-
Copy full SHA for bb2be9d - Browse repository at this point
Copy the full SHA bb2be9dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 622f7c9 - Browse repository at this point
Copy the full SHA 622f7c9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5634e19 - Browse repository at this point
Copy the full SHA 5634e19View commit details
Commits on Feb 26, 2022
-
Configuration menu - View commit details
-
Copy full SHA for eff710f - Browse repository at this point
Copy the full SHA eff710fView commit details
Commits on Mar 2, 2022
-
Configuration menu - View commit details
-
Copy full SHA for b4a4f1a - Browse repository at this point
Copy the full SHA b4a4f1aView commit details
Commits on Mar 9, 2022
-
Configuration menu - View commit details
-
Copy full SHA for d9c5cd2 - Browse repository at this point
Copy the full SHA d9c5cd2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a5e417 - Browse repository at this point
Copy the full SHA 6a5e417View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e95d8a - Browse repository at this point
Copy the full SHA 3e95d8aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2fe2925 - Browse repository at this point
Copy the full SHA 2fe2925View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f34843 - Browse repository at this point
Copy the full SHA 0f34843View commit details -
Configuration menu - View commit details
-
Copy full SHA for d280d73 - Browse repository at this point
Copy the full SHA d280d73View commit details
Commits on Mar 10, 2022
-
Merge pull request #9459 from apollographql/useQuery-internal-state-ref
Refactor `useQuery` using `InternalState` class to simplify reasoning about state
Configuration menu - View commit details
-
Copy full SHA for 46e101b - Browse repository at this point
Copy the full SHA 46e101bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0926034 - Browse repository at this point
Copy the full SHA 0926034View commit details -
Configuration menu - View commit details
-
Copy full SHA for 832ff6c - Browse repository at this point
Copy the full SHA 832ff6cView commit details -
Configuration menu - View commit details
-
Copy full SHA for ca08ae7 - Browse repository at this point
Copy the full SHA ca08ae7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1615823 - Browse repository at this point
Copy the full SHA 1615823View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0bfe05e - Browse repository at this point
Copy the full SHA 0bfe05eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d5218f - Browse repository at this point
Copy the full SHA 1d5218fView commit details -
Configuration menu - View commit details
-
Copy full SHA for ee74bec - Browse repository at this point
Copy the full SHA ee74becView commit details -
Merge pull request #9223 from apollographql/allow-passing-options-fun…
…ction-to-useQuery Allow passing function to `useQuery` for finer-grained `options` control
Configuration menu - View commit details
-
Copy full SHA for 7df3d4e - Browse repository at this point
Copy the full SHA 7df3d4eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2e138aa - Browse repository at this point
Copy the full SHA 2e138aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 98cb7b0 - Browse repository at this point
Copy the full SHA 98cb7b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 05d6deb - Browse repository at this point
Copy the full SHA 05d6debView commit details -
Configuration menu - View commit details
-
Copy full SHA for f783ea2 - Browse repository at this point
Copy the full SHA f783ea2View commit details -
Configuration menu - View commit details
-
Copy full SHA for ee48452 - Browse repository at this point
Copy the full SHA ee48452View commit details -
Configuration menu - View commit details
-
Copy full SHA for e557dce - Browse repository at this point
Copy the full SHA e557dceView commit details -
Merge pull request #9222 from apollographql/provide-nextFetchPolicy-c…
…ontext Provide more context to `nextFetchPolicy` functions
Configuration menu - View commit details
-
Copy full SHA for f018f5e - Browse repository at this point
Copy the full SHA f018f5eView commit details -
Configuration menu - View commit details
-
Copy full SHA for a5e065e - Browse repository at this point
Copy the full SHA a5e065eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3860b1f - Browse repository at this point
Copy the full SHA 3860b1fView commit details
Commits on Mar 14, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 0249c8b - Browse repository at this point
Copy the full SHA 0249c8bView commit details
Commits on Mar 29, 2022
-
Adjust fetchMore tests to use TypedDocumentNode and subscribeAndCount.
Although these test updates may seem substantial, I believe this refactoring makes the tests more robust without changing what they test. To that end, it's important to note these tests are all passing at this point in the commit history, before any of the more substantive changes from PR #9504, and continue passing even after those changes are introduced, with relatively few additional test changes.
Configuration menu - View commit details
-
Copy full SHA for 8f7a3ed - Browse repository at this point
Copy the full SHA 8f7a3edView commit details -
Configuration menu - View commit details
-
Copy full SHA for c274f68 - Browse repository at this point
Copy the full SHA c274f68View commit details -
Configuration menu - View commit details
-
Copy full SHA for a6ba39c - Browse repository at this point
Copy the full SHA a6ba39cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e3dd93 - Browse repository at this point
Copy the full SHA 7e3dd93View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6177575 - Browse repository at this point
Copy the full SHA 6177575View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6dccb8d - Browse repository at this point
Copy the full SHA 6dccb8dView commit details -
Configuration menu - View commit details
-
Copy full SHA for a1d4a82 - Browse repository at this point
Copy the full SHA a1d4a82View commit details -
Configuration menu - View commit details
-
Copy full SHA for 53a246b - Browse repository at this point
Copy the full SHA 53a246bView commit details -
Configuration menu - View commit details
-
Copy full SHA for e320eb5 - Browse repository at this point
Copy the full SHA e320eb5View commit details -
Configuration menu - View commit details
-
Copy full SHA for c5b522d - Browse repository at this point
Copy the full SHA c5b522dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f7bce4 - Browse repository at this point
Copy the full SHA 3f7bce4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 857583c - Browse repository at this point
Copy the full SHA 857583cView commit details -
Remove nagging updateQuery deprecation warning.
Now that fetchMore's updateQuery callback is implemented in terms of the supported/documented cache.updateQuery method, I feel better about allowing fetchMore to continue to take an updateQuery callback. Also, everyone with any ability to migrate from updateQuery to InMemoryCache field policies has presumably already done so, so this warning is less useful now than it was following the release of AC3.
Configuration menu - View commit details
-
Copy full SHA for 1b3406a - Browse repository at this point
Copy the full SHA 1b3406aView commit details -
Configuration menu - View commit details
-
Copy full SHA for f7dd5f4 - Browse repository at this point
Copy the full SHA f7dd5f4View commit details -
Use reobserveCacheFirst in !diff.complete case, too.
When `!diff.complete`, `oq.reobserveCacheFirst()` should behave exactly like `oq.reobserve()`, since the fetch policies `reobserveCacheFirst` modifies (`network-only` and `cache-and-network`) behave the same as the `cache-first` policy when cache results are incomplete.
Configuration menu - View commit details
-
Copy full SHA for 33e85c7 - Browse repository at this point
Copy the full SHA 33e85c7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 359ed59 - Browse repository at this point
Copy the full SHA 359ed59View commit details -
Configuration menu - View commit details
-
Copy full SHA for 521ec2d - Browse repository at this point
Copy the full SHA 521ec2dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0548f29 - Browse repository at this point
Copy the full SHA 0548f29View commit details -
Configuration menu - View commit details
-
Copy full SHA for cfc8cad - Browse repository at this point
Copy the full SHA cfc8cadView commit details -
Bring back cache.batch to ensure delivery of unchanged results.
This reverts commits d5463be and 0170f32, with a new test showing why the backup reobserveCacheFirst call in the finally block is important: sometimes the cache write doesn't change any data in the cache, so no broadcast happens, but we still need to deliver the final loading:false result for the fetchMore request.
Configuration menu - View commit details
-
Copy full SHA for e5ed91a - Browse repository at this point
Copy the full SHA e5ed91aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5036dc5 - Browse repository at this point
Copy the full SHA 5036dc5View commit details -
Merge pull request #9504 from apollographql/avoid-full-reobservation-…
…after-fetchMore Avoid full reapplication of `cache-and-network` and `network-only` fetch policies after successful `fetchMore`
Configuration menu - View commit details
-
Copy full SHA for f6fb1ec - Browse repository at this point
Copy the full SHA f6fb1ecView commit details -
Configuration menu - View commit details
-
Copy full SHA for d0c3902 - Browse repository at this point
Copy the full SHA d0c3902View commit details -
Configuration menu - View commit details
-
Copy full SHA for bc37c8a - Browse repository at this point
Copy the full SHA bc37c8aView commit details -
Configuration menu - View commit details
-
Copy full SHA for ed9a638 - Browse repository at this point
Copy the full SHA ed9a638View commit details -
Configuration menu - View commit details
-
Copy full SHA for bb084c9 - Browse repository at this point
Copy the full SHA bb084c9View commit details -
Configuration menu - View commit details
-
Copy full SHA for df5b5dd - Browse repository at this point
Copy the full SHA df5b5ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for dc9679e - Browse repository at this point
Copy the full SHA dc9679eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a0d594 - Browse repository at this point
Copy the full SHA 3a0d594View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7ec37b8 - Browse repository at this point
Copy the full SHA 7ec37b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for ba0c509 - Browse repository at this point
Copy the full SHA ba0c509View commit details
Commits on Apr 4, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 7e0e9e7 - Browse repository at this point
Copy the full SHA 7e0e9e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8903456 - Browse repository at this point
Copy the full SHA 8903456View commit details -
Configuration menu - View commit details
-
Copy full SHA for 17e22ec - Browse repository at this point
Copy the full SHA 17e22ecView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7fc6c89 - Browse repository at this point
Copy the full SHA 7fc6c89View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3546c9c - Browse repository at this point
Copy the full SHA 3546c9cView commit details -
Reuse useInternalState for useLazyQuery.
This minimal initial commit should unlock further simplifications.
Configuration menu - View commit details
-
Copy full SHA for 02a1e6d - Browse repository at this point
Copy the full SHA 02a1e6dView commit details -
Configuration menu - View commit details
-
Copy full SHA for a18e2e0 - Browse repository at this point
Copy the full SHA a18e2e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2302716 - Browse repository at this point
Copy the full SHA 2302716View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e77bca - Browse repository at this point
Copy the full SHA 4e77bcaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 72a805d - Browse repository at this point
Copy the full SHA 72a805dView commit details -
Use reobserve rather than refetch for useLazyQuery exec function.
This is the most important commit of the PR, since it fixes issue #9375.
Configuration menu - View commit details
-
Copy full SHA for f93e904 - Browse repository at this point
Copy the full SHA f93e904View commit details -
Configuration menu - View commit details
-
Copy full SHA for d26bdd4 - Browse repository at this point
Copy the full SHA d26bdd4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 52ba67e - Browse repository at this point
Copy the full SHA 52ba67eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6cb2cdb - Browse repository at this point
Copy the full SHA 6cb2cdbView commit details -
Configuration menu - View commit details
-
Copy full SHA for ff0186d - Browse repository at this point
Copy the full SHA ff0186dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4be1901 - Browse repository at this point
Copy the full SHA 4be1901View commit details -
Configuration menu - View commit details
-
Copy full SHA for 71d8df4 - Browse repository at this point
Copy the full SHA 71d8df4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 345a156 - Browse repository at this point
Copy the full SHA 345a156View commit details -
Use manual wrapping rather than Function.prototype.bind.
This tweak will allow us to move other behavior into the wrapped methods, like the EAGER_METHODS logic from useLazyQuery.
Configuration menu - View commit details
-
Copy full SHA for f164b1b - Browse repository at this point
Copy the full SHA f164b1bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 89af070 - Browse repository at this point
Copy the full SHA 89af070View commit details -
Configuration menu - View commit details
-
Copy full SHA for 782642b - Browse repository at this point
Copy the full SHA 782642bView commit details -
Configuration menu - View commit details
-
Copy full SHA for c3d1a83 - Browse repository at this point
Copy the full SHA c3d1a83View commit details -
Allow specifying WatchQueryOptions.initialFetchPolicy explicitly.
Resolves #9564 (comment) I also renamed the initialPolicy field of NextFetchPolicyContext to be named initialFetchPolicy, for consistency.
Configuration menu - View commit details
-
Copy full SHA for da41ce8 - Browse repository at this point
Copy the full SHA da41ce8View commit details -
Configuration menu - View commit details
-
Copy full SHA for c9a2c01 - Browse repository at this point
Copy the full SHA c9a2c01View commit details -
Configuration menu - View commit details
-
Copy full SHA for feb07db - Browse repository at this point
Copy the full SHA feb07dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9758586 - Browse repository at this point
Copy the full SHA 9758586View commit details -
Configuration menu - View commit details
-
Copy full SHA for 210aeda - Browse repository at this point
Copy the full SHA 210aedaView commit details -
Merge pull request #9563 from apollographql/replace-useQuery-options-…
…functions-with-options.defaultOptions Replace experimental `useQuery` options functions with simpler `options.defaultOptions` option
Configuration menu - View commit details
-
Copy full SHA for 6285ee4 - Browse repository at this point
Copy the full SHA 6285ee4View commit details -
Configuration menu - View commit details
-
Copy full SHA for ff43d78 - Browse repository at this point
Copy the full SHA ff43d78View commit details
Commits on Apr 5, 2022
-
Merge pull request #9564 from apollographql/useLazyQuery-useInternalS…
…tate Refactor `useLazyQuery` to reuse `useInternalState` and make execution function call `reobserve` instead of `refetch`
Configuration menu - View commit details
-
Copy full SHA for 9b74293 - Browse repository at this point
Copy the full SHA 9b74293View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8cb8539 - Browse repository at this point
Copy the full SHA 8cb8539View commit details
Commits on Apr 11, 2022
-
Let
addTypenameToDocument
take anyASTNode
(including `DocumentNo……de`, as before) (#9595)
Configuration menu - View commit details
-
Copy full SHA for a8fb387 - Browse repository at this point
Copy the full SHA a8fb387View commit details -
Configuration menu - View commit details
-
Copy full SHA for 51a2210 - Browse repository at this point
Copy the full SHA 51a2210View commit details
Commits on Apr 13, 2022
-
add use-sync-external-store package to dependencies
Brian Kim authored and Brian Kim committedApr 13, 2022 Configuration menu - View commit details
-
Copy full SHA for 426d96b - Browse repository at this point
Copy the full SHA 426d96bView commit details -
Configuration menu - View commit details
-
Copy full SHA for bdb6d0f - Browse repository at this point
Copy the full SHA bdb6d0fView commit details -
Minimial useSyncExternalStore foothold.
This partially reverts commit 6dd7bf1, though I plan to reapply most of those changes shortly.
Configuration menu - View commit details
-
Copy full SHA for 75f2fd2 - Browse repository at this point
Copy the full SHA 75f2fd2View commit details -
Move skip/standby/ssr stub result initialization to useOptions.
Instead of overriding this.result in getCurrentResult when skip/standby or SSR are happening, we can initialize this.result to a stub result in useOptions, so getCurrentResult will return the stub.
Configuration menu - View commit details
-
Copy full SHA for 07bb759 - Browse repository at this point
Copy the full SHA 07bb759View commit details -
Actively reset internalState.result when skip/standby end.
This commit could be folded into the previous commit (the one about moving this.result to useOptions), but it seemed worth memorializing as a bug I found in that commit.
Configuration menu - View commit details
-
Copy full SHA for 0535c62 - Browse repository at this point
Copy the full SHA 0535c62View commit details -
Attempt to let useSyncExternalStore call getCurrentResult.
One small step for this.getCurrentResult()...
Configuration menu - View commit details
-
Copy full SHA for b48056f - Browse repository at this point
Copy the full SHA b48056fView commit details -
Fold useSubscriptionEffect into useSyncExternalStore subscribe callback.
I believe this almost works, but something is not quite surviving in translation between the original useSubscriptionEffect useEffect and the useEffect where useSyncExternalStore does the subscribing.
Configuration menu - View commit details
-
Copy full SHA for a85da95 - Browse repository at this point
Copy the full SHA a85da95View commit details -
Memoize useSyncExternalStore subscribe callback with useCallback.
Code comment explains my earlier useEffect translation mistake.
Configuration menu - View commit details
-
Copy full SHA for 503fa71 - Browse repository at this point
Copy the full SHA 503fa71View commit details -
Configuration menu - View commit details
-
Copy full SHA for da82565 - Browse repository at this point
Copy the full SHA da82565View commit details -
Add React 18 to peer dependencies
Brian Kim authored and Brian Kim committedApr 13, 2022 Configuration menu - View commit details
-
Copy full SHA for 866936e - Browse repository at this point
Copy the full SHA 866936eView commit details
Commits on Apr 14, 2022
-
Fully resolve use-sync-external-store/shim module identifier.
This seems to make some bundlers in some configurations happier, e.g. https://github.com/apollographql/react-apollo-error-template/
1Configuration menu - View commit details
-
Copy full SHA for 8788e6c - Browse repository at this point
Copy the full SHA 8788e6cView commit details -
Merge pull request #9596 from apollographql/brian-react-18
Add support for React 18
Configuration menu - View commit details
-
Copy full SHA for 9fd416d - Browse repository at this point
Copy the full SHA 9fd416dView commit details -
Configuration menu - View commit details
-
Copy full SHA for c626652 - Browse repository at this point
Copy the full SHA c626652View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c48a1d - Browse repository at this point
Copy the full SHA 3c48a1dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5a3f033 - Browse repository at this point
Copy the full SHA 5a3f033View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3d7fa34 - Browse repository at this point
Copy the full SHA 3d7fa34View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7f98827 - Browse repository at this point
Copy the full SHA 7f98827View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6540b23 - Browse repository at this point
Copy the full SHA 6540b23View commit details -
Configuration menu - View commit details
-
Copy full SHA for a90922c - Browse repository at this point
Copy the full SHA a90922cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 95a1749 - Browse repository at this point
Copy the full SHA 95a1749View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b03177 - Browse repository at this point
Copy the full SHA 9b03177View commit details -
Support WatchQueryOptions.fetchBlockingPromise.
This option allows delaying/canceling any/all network traffic for the given query, and should prevent making stray network requests on behalf of useQuery queries whose useEffect callbacks never fire.
Configuration menu - View commit details
-
Copy full SHA for 7e723db - Browse repository at this point
Copy the full SHA 7e723dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b80c93 - Browse repository at this point
Copy the full SHA 7b80c93View commit details -
Configuration menu - View commit details
-
Copy full SHA for db0bd4b - Browse repository at this point
Copy the full SHA db0bd4bView commit details -
This removes the UNNEEDED_FRAME from the second test added in PR #9508, which currently causes the test to fail, though the version without the UNNEEDED_FRAME is how we ultimately want useQuery to behave. I believe the other test is correct to have the repeated frame: #9508 (comment)
Configuration menu - View commit details
-
Copy full SHA for 85ae61f - Browse repository at this point
Copy the full SHA 85ae61fView commit details -
Make the corrected frame test pass.
Closes #9508, now that its tests are both accurate and passing.
Configuration menu - View commit details
-
Copy full SHA for 655fe74 - Browse repository at this point
Copy the full SHA 655fe74View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2101a72 - Browse repository at this point
Copy the full SHA 2101a72View commit details -
Remove UNNEEDED_FRAME from useQuery tests.
Final cleanup to address #9508.
Configuration menu - View commit details
-
Copy full SHA for e94b545 - Browse repository at this point
Copy the full SHA e94b545View commit details -
Configuration menu - View commit details
-
Copy full SHA for d0265d4 - Browse repository at this point
Copy the full SHA d0265d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for a506feb - Browse repository at this point
Copy the full SHA a506febView commit details -
Configuration menu - View commit details
-
Copy full SHA for d047ab1 - Browse repository at this point
Copy the full SHA d047ab1View commit details -
Silently discard blocked fetches after five seconds without useEffect.
TODO Make the 5000 constant configurable.
Configuration menu - View commit details
-
Copy full SHA for 6033827 - Browse repository at this point
Copy the full SHA 6033827View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7331572 - Browse repository at this point
Copy the full SHA 7331572View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ba569e - Browse repository at this point
Copy the full SHA 4ba569eView commit details
Commits on Apr 15, 2022
-
Configuration menu - View commit details
-
Copy full SHA for b992e37 - Browse repository at this point
Copy the full SHA b992e37View commit details
Commits on Apr 18, 2022
-
Configuration menu - View commit details
-
Copy full SHA for c402dd4 - Browse repository at this point
Copy the full SHA c402dd4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 241f6ee - Browse repository at this point
Copy the full SHA 241f6eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 58cab4e - Browse repository at this point
Copy the full SHA 58cab4eView commit details -
Merge pull request #9599 from apollographql/fix-extra-useQuery-result…
…-frame Fix extra `useQuery` result frames (as demonstrated by #9508).
Configuration menu - View commit details
-
Copy full SHA for 59e12ca - Browse repository at this point
Copy the full SHA 59e12caView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b137b5 - Browse repository at this point
Copy the full SHA 3b137b5View commit details
Commits on Apr 19, 2022
-
Configuration menu - View commit details
-
Copy full SHA for e272ee9 - Browse repository at this point
Copy the full SHA e272ee9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 24b52b7 - Browse repository at this point
Copy the full SHA 24b52b7View commit details -
Use transformed options.query document to match watch.query.
I noticed while updating an internal application that sometimes the observableQuery.options.query document could be !== watch.query, so there were cases where the watched query had already been updated and was even included in updatedQuerySet, but we (harmlessly/needlessly) call reobserveCacheFirst again in the finally block, just because options.query !== watch.query. This commit reinforces observableQuery.options.query as the source of truth for the transformed query document, while also providing the same object as observableQuery.query, a TypedDocumentNode<TData, TVariables> which should always be === observableQuery.queryInfo.document.
Configuration menu - View commit details
-
Copy full SHA for 56390e4 - Browse repository at this point
Copy the full SHA 56390e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for f57ec30 - Browse repository at this point
Copy the full SHA f57ec30View commit details -
Configuration menu - View commit details
-
Copy full SHA for de39845 - Browse repository at this point
Copy the full SHA de39845View commit details
Commits on Apr 21, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 85e8fc3 - Browse repository at this point
Copy the full SHA 85e8fc3View commit details
Commits on Apr 26, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 95ec974 - Browse repository at this point
Copy the full SHA 95ec974View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b0fe24 - Browse repository at this point
Copy the full SHA 6b0fe24View commit details -
Publish to npm with next rather than beta dist-tag.
We will remove the tag once branch release-3.6 is merged into main.
Configuration menu - View commit details
-
Copy full SHA for e082176 - Browse repository at this point
Copy the full SHA e082176View commit details -
Configuration menu - View commit details
-
Copy full SHA for 04a35d5 - Browse repository at this point
Copy the full SHA 04a35d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 39b31d1 - Browse repository at this point
Copy the full SHA 39b31d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3980bfa - Browse repository at this point
Copy the full SHA 3980bfaView commit details