Skip to content

Version Packages (alpha) - #12940

Merged
jerelmiller merged 1 commit into
release-4.1from
changeset-release/release-4.1
Sep 26, 2025
Merged

Version Packages (alpha)#12940
jerelmiller merged 1 commit into
release-4.1from
changeset-release/release-4.1

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 24, 2025

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to release-4.1, this PR will be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

release-4.1 is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, run changeset pre exit on release-4.1.

⚠️⚠️⚠️⚠️⚠️⚠️

Releases

@apollo/client@4.1.0-alpha.1

Minor Changes

  • #12934 54ab6d9 Thanks @jerelmiller! - Don't set the fallback value of a @client field to null when a read function is defined. Instead the read function will be called with an existing value of undefined to allow default arguments to be used to set the returned value.

    When a read function is not defined nor is there a defined resolver for the field, warn and set the value to null only in that instance.

  • #12934 54ab6d9 Thanks @jerelmiller! - Add an abstract resolvesClientField function to ApolloCache that can be used by caches to tell LocalState if it can resolve a @client field when a local resolver is not defined.

    LocalState will emit a warning and set a fallback value of null when no local resolver is defined and resolvesClientField returns false, or isn't defined. Returning true from resolvesClientField signals that a mechanism in the cache will set the field value. In this case, LocalState won't set the field value.

Patch Changes

  • #12915 c97b145 Thanks @phryneas! - Create mechanism to add experimental features to Apollo Client

  • #12934 54ab6d9 Thanks @jerelmiller! - Ensure LocalState doesn't try to read from the cache when using a no-cache fetch policy.

  • #12934 54ab6d9 Thanks @jerelmiller! - Warn when using a no-cache fetch policy without a local resolver defined. no-cache queries do not read or write to the cache which meant no-cache queries are silently incomplete when the @client field value was handled by a cache read function.

@pkg-pr-new

pkg-pr-new Bot commented Sep 24, 2025

Copy link
Copy Markdown
npm i https://pkg.pr.new/apollographql/apollo-client/@apollo/client@12940

commit: e9c0889

@apollo-librarian

apollo-librarian Bot commented Sep 24, 2025

Copy link
Copy Markdown
Contributor

✅ Docs preview has no changes

The preview was not built because there were no changes.

Build ID: 4a1c05e1fe4c05656db496b0
Build Logs: View logs

@apollogithubactionsbot
apollogithubactionsbot Bot force-pushed the changeset-release/release-4.1 branch from 79ef696 to e9c0889 Compare September 26, 2025 14:58
@github-actions

Copy link
Copy Markdown
Contributor Author

size-limit report 📦

Path Size
import { ApolloClient, InMemoryCache, HttpLink } from "@apollo/client" (CJS) 43.67 KB (-0.09% 🔽)
import { ApolloClient, InMemoryCache, HttpLink } from "@apollo/client" (production) (CJS) 38.58 KB (+0.24% 🔺)
import { ApolloClient, InMemoryCache, HttpLink } from "@apollo/client" 33.07 KB (-0.11% 🔽)
import { ApolloClient, InMemoryCache, HttpLink } from "@apollo/client" (production) 27.11 KB (+0.11% 🔺)
import { ApolloProvider } from "@apollo/client/react" 6.11 KB (-0.02% 🔽)
import { ApolloProvider } from "@apollo/client/react" (production) 1001 B (0%)
import { useQuery } from "@apollo/client/react" 7.55 KB (+0.1% 🔺)
import { useQuery } from "@apollo/client/react" (production) 2.39 KB (0%)
import { useLazyQuery } from "@apollo/client/react" 7.29 KB (+0.07% 🔺)
import { useLazyQuery } from "@apollo/client/react" (production) 2.16 KB (0%)
import { useMutation } from "@apollo/client/react" 6.66 KB (+0.02% 🔺)
import { useMutation } from "@apollo/client/react" (production) 1.52 KB (0%)
import { useSubscription } from "@apollo/client/react" 6.98 KB (-0.14% 🔽)
import { useSubscription } from "@apollo/client/react" (production) 1.82 KB (0%)
import { useSuspenseQuery } from "@apollo/client/react" 8.77 KB (-0.04% 🔽)
import { useSuspenseQuery } from "@apollo/client/react" (production) 3.67 KB (0%)
import { useBackgroundQuery } from "@apollo/client/react" 8.54 KB (-0.37% 🔽)
import { useBackgroundQuery } from "@apollo/client/react" (production) 3.44 KB (0%)
import { useLoadableQuery } from "@apollo/client/react" 8.51 KB (0%)
import { useLoadableQuery } from "@apollo/client/react" (production) 3.43 KB (0%)
import { useReadQuery } from "@apollo/client/react" 6.78 KB (+0.03% 🔺)
import { useReadQuery } from "@apollo/client/react" (production) 1.66 KB (0%)
import { useFragment } from "@apollo/client/react" 6.84 KB (0%)
import { useFragment } from "@apollo/client/react" (production) 1.71 KB (0%)

@jerelmiller
jerelmiller merged commit c5d5630 into release-4.1 Sep 26, 2025
42 of 44 checks passed
@jerelmiller
jerelmiller deleted the changeset-release/release-4.1 branch September 26, 2025 15:06
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Oct 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant