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

Version Packages (rc) #12337

Merged
merged 3 commits into from
Feb 7, 2025
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Feb 3, 2025

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-3.13, this PR will be updated.

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

release-3.13 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-3.13.

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

Releases

@apollo/[email protected]

Minor Changes

  • #12066 c01da5d Thanks @jerelmiller! - Adds a new useSuspenseFragment hook.

    useSuspenseFragment suspends until data is complete. It is a drop-in replacement for useFragment when you prefer to use Suspense to control the loading state of a fragment.

  • #12174 ba5cc33 Thanks @jerelmiller! - Ensure errors thrown in the onCompleted callback from useMutation don't call onError.

  • #12340 716d02e Thanks @phryneas! - Deprecate the onCompleted and onError callbacks of useQuery and useLazyQuery.
    For more context, please see the related issue on GitHub.

  • #12276 670f112 Thanks @Cellule! - Provide a more type-safe option for the previous data value passed to observableQuery.updateQuery. Using it could result in crashes at runtime as this callback could be called with partial data even though its type reported the value as a complete result.

    The updateQuery callback function is now called with a new type-safe previousData property and a new complete property in the 2nd argument that determines whether previousData is a complete or partial result.

    As a result of this change, it is recommended to use the previousData property passed to the 2nd argument of the callback rather than using the previous data value from the first argument since that value is not type-safe. The first argument is now deprecated and will be removed in a future version of Apollo Client.

    observableQuery.updateQuery(
      (unsafePreviousData, { previousData, complete }) => {
        previousData;
        // ^? TData | DeepPartial<TData> | undefined
    
        if (complete) {
          previousData;
          // ^? TData
        } else {
          previousData;
          // ^? DeepPartial<TData> | undefined
        }
      }
    );
  • #12174 ba5cc33 Thanks @jerelmiller! - Reject the mutation promise if errors are thrown in the onCompleted callback of useMutation.

Patch Changes

  • #12276 670f112 Thanks @Cellule! - Fix the return type of the updateQuery function to allow for undefined. updateQuery had the ability to bail out of the update by returning a falsey value, but the return type enforced a query value.

    observableQuery.updateQuery(
      (unsafePreviousData, { previousData, complete }) => {
        if (!complete) {
          // Bail out of the update by returning early
          return;
        }
    
        // ...
      }
    );
  • #12296 2422df2 Thanks @Cellule! - Deprecate option ignoreResults in useMutation.
    Once this option is removed, existing code still using it might see increase in re-renders.
    If you don't want to synchronize your component state with the mutation, please use useApolloClient to get your ApolloClient instance and call client.mutate directly.

  • #12338 67c16c9 Thanks @phryneas! - In case of a multipart response (e.g. with @defer), query deduplication will
    now keep going until the final chunk has been received.

  • #12276 670f112 Thanks @Cellule! - Fix the type of the variables property passed as the 2nd argument to the subscribeToMore callback. This was previously reported as the variables type for the subscription itself, but is now properly typed as the query variables.

@apollogithubactionsbot apollogithubactionsbot bot force-pushed the changeset-release/release-3.13 branch from 3efa98a to e0b5c34 Compare February 3, 2025 17:58
@svc-apollo-docs
Copy link

svc-apollo-docs commented Feb 3, 2025

⚠️ Docs preview not attached to branch

The preview was not built because the PR's base branch release-3.13 is not in the list of sources.

An Apollo team member can comment one of the following commands to dictate which branch to attach the preview to:

  • !docs set-base-branch version-2.6
  • !docs set-base-branch main

Build ID: f10eb827ff80fa4692e9b014

@apollogithubactionsbot apollogithubactionsbot bot force-pushed the changeset-release/release-3.13 branch from e0b5c34 to 337c49f Compare February 3, 2025 17:58
Copy link

pkg-pr-new bot commented Feb 3, 2025

npm i https://pkg.pr.new/@apollo/client@12337

commit: 112d828

Copy link

netlify bot commented Feb 3, 2025

Deploy Preview for apollo-client-docs ready!

Name Link
🔨 Latest commit e0b5c34
🔍 Latest deploy log https://app.netlify.com/sites/apollo-client-docs/deploys/67a103ab0e1c4400083b9783
😎 Deploy Preview https://deploy-preview-12337--apollo-client-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor Author

github-actions bot commented Feb 3, 2025

size-limit report 📦

Path Size
dist/apollo-client.min.cjs 41.25 KB (+0.01% 🔺)
import { ApolloClient, InMemoryCache, HttpLink } from "dist/main.cjs" 50.7 KB (+0.03% 🔺)
import { ApolloClient, InMemoryCache, HttpLink } from "dist/main.cjs" (production) 47.77 KB (+0.03% 🔺)
import { ApolloClient, InMemoryCache, HttpLink } from "dist/index.js" 36.25 KB (+0.02% 🔺)
import { ApolloClient, InMemoryCache, HttpLink } from "dist/index.js" (production) 33.64 KB (+0.02% 🔺)
import { ApolloProvider } from "dist/react/index.js" 1.26 KB (+0.24% 🔺)
import { ApolloProvider } from "dist/react/index.js" (production) 1.24 KB (+0.24% 🔺)
import { useQuery } from "dist/react/index.js" 5.21 KB (+0.06% 🔺)
import { useQuery } from "dist/react/index.js" (production) 4.3 KB (+0.07% 🔺)
import { useLazyQuery } from "dist/react/index.js" 5.71 KB (+0.06% 🔺)
import { useLazyQuery } from "dist/react/index.js" (production) 4.78 KB (+0.07% 🔺)
import { useMutation } from "dist/react/index.js" 3.62 KB (+0.09% 🔺)
import { useMutation } from "dist/react/index.js" (production) 2.84 KB (+0.14% 🔺)
import { useSubscription } from "dist/react/index.js" 4.43 KB (+0.07% 🔺)
import { useSubscription } from "dist/react/index.js" (production) 3.48 KB (+0.09% 🔺)
import { useSuspenseQuery } from "dist/react/index.js" 5.88 KB (+0.07% 🔺)
import { useSuspenseQuery } from "dist/react/index.js" (production) 4.54 KB (+0.07% 🔺)
import { useBackgroundQuery } from "dist/react/index.js" 5.37 KB (+0.06% 🔺)
import { useBackgroundQuery } from "dist/react/index.js" (production) 4.04 KB (+0.08% 🔺)
import { useLoadableQuery } from "dist/react/index.js" 5.46 KB (+0.06% 🔺)
import { useLoadableQuery } from "dist/react/index.js" (production) 4.11 KB (+0.08% 🔺)
import { useReadQuery } from "dist/react/index.js" 3.42 KB (+0.09% 🔺)
import { useReadQuery } from "dist/react/index.js" (production) 3.37 KB (+0.09% 🔺)
import { useFragment } from "dist/react/index.js" 2.37 KB (+0.13% 🔺)
import { useFragment } from "dist/react/index.js" (production) 2.32 KB (+0.13% 🔺)

Copy link

netlify bot commented Feb 3, 2025

Deploy Preview for apollo-client-docs ready!

Name Link
🔨 Latest commit 2cd6f40
🔍 Latest deploy log https://app.netlify.com/sites/apollo-client-docs/deploys/67a6464d27160800080d3bc3
😎 Deploy Preview https://deploy-preview-12337--apollo-client-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@apollogithubactionsbot apollogithubactionsbot bot force-pushed the changeset-release/release-3.13 branch from 337c49f to 7466f01 Compare February 4, 2025 23:22
@github-actions github-actions bot changed the title Version Packages (rc) Version Packages (beta) Feb 6, 2025
@apollogithubactionsbot apollogithubactionsbot bot force-pushed the changeset-release/release-3.13 branch 3 times, most recently from 3b4bea4 to 3e2426b Compare February 6, 2025 01:46
CHANGELOG.md Outdated Show resolved Hide resolved
@apollogithubactionsbot apollogithubactionsbot bot force-pushed the changeset-release/release-3.13 branch 5 times, most recently from d341593 to 379b765 Compare February 7, 2025 17:33
@github-actions github-actions bot changed the title Version Packages (beta) Version Packages (rc) Feb 7, 2025
@apollogithubactionsbot apollogithubactionsbot bot force-pushed the changeset-release/release-3.13 branch from 379b765 to 35dfa6b Compare February 7, 2025 17:34
@github-actions github-actions bot added the auto-cleanup 🤖 label Feb 7, 2025
@jerelmiller jerelmiller merged commit 924030b into release-3.13 Feb 7, 2025
36 checks passed
@jerelmiller jerelmiller deleted the changeset-release/release-3.13 branch February 7, 2025 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants