A

Apollo Client

A
Apollo Client Dev Tools v4.2.9

@apollo/client@4.2.9

Patch Changes #13364 2f383e7 Thanks @atharv-sys32! - Fix a bug where GraphQL variable default values were not applied during cache reads when variables with defaults were explicitly set to undefined. This caused @include/@skip directives to throw "Invalid variable referenced" errors when the variable was passed as undefined instead of being omitted entirely. #13367 2b39cc8 Thanks @jerelmiller! - F…

A
Apollo Client Dev Tools v4.3.0-alpha

@apollo/client@4.3.0-alpha.4

Patch Changes #13347 7d543d6 Thanks @jerelmiller! - Fix an issue where network-only incremental queries could cause cache data to leak into the emitted result when a @defer or @stream boundary already had complete data in the cache. Cache data inside pending @defer objects and @stream arrays are now pruned so that only completed @defer or @stream boundaries are returned. NOTE: This change only app…

A
Apollo Client Dev Tools v4.2.8

@apollo/client@4.2.8

Patch Changes #13349 501a33b Thanks @jerelmiller! - Prevent the setTimeout in connectToDevtools that shows the devtools suggestion from firing when the user agent does not match Chrome or Firefox. This check was previously done inside the setTimeout which meant the timer was scheduled for environments where we'd never show the message anyways. For test environments, this could cause flaky tests wh…

A
Apollo Client Dev Tools v4.3.0-alpha

@apollo/client@4.3.0-alpha.3

Minor Changes #13324 0abd8de Thanks @jerelmiller! - Fix the accuracy of dataState in complex incremental streaming scenarios, especially when combined with returnPartialData: true. Prior to this change, all intermediate chunks used for both @defer and @stream directives returned a dataState of streaming, regardless of whether the actual data shape fit the definition of the streaming data state. Th…

A
Apollo Client Dev Tools v4.2.7

@apollo/client@4.2.7

Patch Changes #13320 538c906 Thanks @jerelmiller! - Cleanup some unused internals. Please file an issue if you notice anything change.

A
Apollo Client Dev Tools v2.2.0-alpha

@apollo/client-graphql-codegen@2.2.0-alpha.0

Minor Changes #13310 8ab63fc Thanks @jerelmiller! - Introduce a new GraphQL Codegen plugin to generate the input object configuration needed to configure custom scalars for each field. // codegen.ts import type { CustomScalarsPluginConfig } from "@apollo/client-graphql-codegen/custom-scalars"; const config: CodegenConfig = { // ... generates: { "./path/to/custom-scalars.ts": { plugins: ["@apollo/c…

A
Apollo Client Dev Tools v4.2.6

@apollo/client@4.2.6

Patch Changes #13315 a406cc9 Thanks @fallintoplace! - Prevent relay multipart subscriptions from issuing a fetch request after serializing the request body fails. #13307 abd0781 Thanks @wolfie! - Speed up cache writes by avoiding a full AST visit of every written field to detect @stream. The check now runs only when the result carries stream info, and only inspects the field node's own directives.…

A
Apollo Client Dev Tools v4.2.5

@apollo/client@4.2.5

Patch Changes #13302 bb75dd3 Thanks @tpict! - Export KeyArgsFunction and RelayFieldPolicy types from public entrypoints.

A
Apollo Client Dev Tools v4.3.0-alpha

@apollo/client@4.3.0-alpha.2

Minor Changes #13274 7b10078 Thanks @jerelmiller! - Adds Scalar.fromGraphQLScalarType helper to create a Scalar instance from an existing graphql.js GraphQLScalarType. import { GraphQLScalarType } from "graphql"; import { Scalar } from "@apollo/client"; const dateTimeScalarType = new GraphQLScalarType<Date, string>({ // ... }); const dateTimeScalar = Scalar.fromGraphQLScalarType(dateTimeScalarType…

A
Apollo Client Dev Tools v4.2.4

@apollo/client@4.2.4

Patch Changes #13281 e4df809 Thanks @jerelmiller! - Fixes an issue where client.readFragment and client.readQuery ignored the optimistic option when passed in the options object.

A
Apollo Client Dev Tools v4.3.0-alpha

@apollo/client@4.3.0-alpha.1

Patch Changes #13268 419e2b5 Thanks @DaleSeo! - Align the remaining cache generic constraints with Cache.Implementation. The deprecated React mutation types (MutationHookOptions, MutationFunctionOptions, MutationTuple) and the internal InternalRefetchQueriesOptions and QueryInfo types still constrained their cache type parameter to ApolloCache, so they now match the rest of the overridable cache A…

A
Apollo Client Dev Tools v4.3.0-alpha

@apollo/client@4.3.0-alpha.0

Minor Changes #13250 bad7035 Thanks @jerelmiller! - Add the ability to define the cache type for the client. client.cache currently returns ApolloCache as the cache type regardless of what cache you've provided to ApolloClient. Declare the cache type using the cache property in the TypeOverrides interface to set the cache implementation used for the client. // apollo.d.ts import type { InMemoryCac…

A
Apollo Client Dev Tools v4.2.3

@apollo/client@4.2.3

Patch Changes #13254 66e9dfc Thanks @jerelmiller! - Add support for graphql v17 as a valid peer dependency.

A
Apollo Client Dev Tools v4.2.2

@apollo/client@4.2.2

Patch Changes #13184 c207b88 Thanks @audrius-savickas! - Preserve referential equality of masked data on refetch when the result is deeply equal to the previous result.

A
Apollo Client Dev Tools v4.2.1

@apollo/client@4.2.1

Patch Changes #13248 062ffe3 Thanks @jerelmiller! - Fixes an issue where useLazyQuery would not apply a changed pollInterval between renders.

A
Apollo Client Dev Tools v4.2.0

@apollo/client@4.2.0

Minor Changes #13132 f3ce805 Thanks @phryneas! - Introduce "classic" and "modern" method and hook signatures. Apollo Client 4.2 introduces two signature styles for methods and hooks. All signatures previously present are now "classic" signatures, and a new set of "modern" signatures are added alongside them. Classic signatures are the default and are identical to the signatures before Apollo Clien…