Releases: apollographql/apollo-client-nextjs
0.5.1: Allow usage with Apollo Client 3.9 alphas
This release changes the peerDependencies
so the package can be used with our Apollo Client 3.9 alphas, betas and release candidates.
0.5.0: NextJs 14
This release adds Next.js 14 as a valid peerDependency.
0.4.3: Bugfix release
This release fixes a bug where a simulated query would not finish or finish too late in the browser.
0.4.2: Use server-only package instead of custom environment detection
Previously, we checked for a RSC environment by testing for the presence of the createContext
export in the react
package.
That didn't work in some edge cases. Instead, now we use the server-only
instead to make sure that registerApolloClient
is only imported in a React Server Component context.
Thanks a ton to @leonchabbey for contributing this in #90!
0.4.1: Restart queries if the result could not be transported before streaming finished
This release contains #62, a fix that ensures that if the streaming connection finishes before results can be transported from the server to the browser, the requests will be restarted there instead of "hanging" without finishing.
0.4.0: Going 3.8 RC and no more need for `SuspenseCache`
This PR now relies on @apollo/client
in the 3.8 Release Candidate versions instead of the Beta tag.
The Release Candidate versions do no longer need a SuspenseCache
, so you can remove the makeSuspenseCache
function from your ApolloNextAppProvider
.
-function makeSuspenseCache() {
- return new SuspenseCache();
-}
export function ApolloWrapper({ children }: React.PropsWithChildren) {
return (
<ApolloNextAppProvider
makeClient={makeClient}
- makeSuspenseCache={makeSuspenseCache}
>
{children}
</ApolloNextAppProvider>
);
0.3.5: correctly clean up simulated requests
This version contains make sure to clean up inFlightLinkObservables #59, which fixes a bug that prevented refetching of queries that were started during SSR.
0.3.4: Actually bump range of allowed `@apollo/client` versions
Bump the peer dependency range on @apollo/client
to allow -rc
prereleases and the public v3.8 release.
NOTE: This release should be used in place of v0.3.3, which accidentally only bumped the dev dependency version range.
0.3.3: Bump range of allowed `@apollo/client` versions
Bump the peer dependency range on @apollo/client
to allow -rc
prereleases and the public v3.8 release.
0.3.2: Regression bugfix for `useQuery`
This release fixes a regression introduced by 0.3.0 - see #48
- prevent a network request on the server
- prevent transportation of non-network-request watchQuery calls