Skip to content

Commit 21b677b

Browse files
authored
Merge branch 'main' into pr/harden-ci
2 parents 4b2fccb + e010bdd commit 21b677b

147 files changed

Lines changed: 40443 additions & 11379 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.api-reports/api-report-core.api.md

Lines changed: 209 additions & 24 deletions
Large diffs are not rendered by default.

.api-reports/api-report-react.api.md

Lines changed: 724 additions & 274 deletions
Large diffs are not rendered by default.

.api-reports/api-report-react_internal.api.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import type { DataState } from '@apollo/client';
99
import type { DecoratedPromise } from '@apollo/client/utilities/internal';
1010
import type { DocumentNode } from 'graphql';
1111
import type { DocumentTypeDecoration } from '@graphql-typed-document-node/core';
12+
import { ErrorLike } from '@apollo/client';
1213
import type { InternalTypes } from '@apollo/client/react';
1314
import type { MaybeMasked } from '@apollo/client/masking';
1415
import type { MaybeMasked as MaybeMasked_2 } from '@apollo/client';
@@ -109,7 +110,10 @@ export class InternalQueryReference<TData = unknown, TStates extends DataState<T
109110
// (undocumented)
110111
get disposed(): boolean;
111112
// (undocumented)
112-
fetchMore(options: ObservableQuery.FetchMoreOptions<TData, any, any, any>): Promise<ApolloClient.QueryResult<TData>>;
113+
fetchMore(options: ObservableQuery.FetchMoreOptions<TData, any, any, any>): Promise<{
114+
data: TData | undefined;
115+
error?: ErrorLike;
116+
}>;
113117
// (undocumented)
114118
readonly key: QueryKey;
115119
// Warning: (ae-forgotten-export) The symbol "Listener" needs to be exported by the entry point index.d.ts
@@ -121,7 +125,10 @@ export class InternalQueryReference<TData = unknown, TStates extends DataState<T
121125
// (undocumented)
122126
promise: QueryRefPromise<TData, TStates>;
123127
// (undocumented)
124-
refetch(variables: OperationVariables | undefined): Promise<ApolloClient.QueryResult<TData>>;
128+
refetch(variables: OperationVariables | undefined): Promise<{
129+
data: TData | undefined;
130+
error?: ErrorLike;
131+
}>;
125132
// (undocumented)
126133
reinitialize(): void;
127134
// (undocumented)
@@ -149,7 +156,7 @@ type Listener<TData, TStates extends DataState<TData>["dataState"]> = (promise:
149156
type Listener_2<TData> = (promise: FragmentRefPromise<TData>) => void;
150157

151158
// @public (undocumented)
152-
const OBSERVED_CHANGED_OPTIONS: readonly ["context", "errorPolicy", "fetchPolicy", "refetchWritePolicy", "returnPartialData"];
159+
const OBSERVED_CHANGED_OPTIONS: readonly ["context", "errorPolicy", "fetchPolicy", "refetchOn", "refetchWritePolicy", "returnPartialData"];
153160

154161
// Warning: (ae-forgotten-export) The symbol "OBSERVED_CHANGED_OPTIONS" needs to be exported by the entry point index.d.ts
155162
//

.api-reports/api-report-utilities_internal.api.md

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type { ASTNode } from 'graphql';
1010
import type { DataValue } from '@apollo/client';
1111
import type { DirectiveNode } from 'graphql';
1212
import type { DocumentNode } from 'graphql';
13-
import type { ErrorLike } from '@apollo/client';
13+
import { ErrorLike } from '@apollo/client';
1414
import type { FieldNode } from 'graphql';
1515
import type { FormattedExecutionResult } from 'graphql';
1616
import type { FragmentDefinitionNode } from 'graphql';
@@ -33,6 +33,7 @@ import type { SelectionSetNode } from 'graphql';
3333
import { StrongCache } from '@wry/caches';
3434
import type { Subscription } from 'rxjs';
3535
import type { Trie } from '@wry/trie';
36+
import type { TypeOverrides } from '@apollo/client';
3637
import { WeakCache } from '@wry/caches';
3738

3839
// @internal @deprecated (undocumented)
@@ -77,6 +78,9 @@ export const canUseDOM: boolean;
7778
// @internal @deprecated
7879
export const checkDocument: (doc: DocumentNode, expectedType?: OperationTypeNode) => void;
7980

81+
// @public
82+
export type ClassicSignature = SignatureStyle extends "classic" ? unknown : never;
83+
8084
// @internal @deprecated
8185
export function cloneDeep<T>(value: T): T;
8286

@@ -375,6 +379,11 @@ export function isNonNullObject(obj: unknown): obj is Record<string | number, an
375379
// @internal @deprecated (undocumented)
376380
export function isPlainObject(obj: unknown): obj is Record<string | number, any>;
377381

382+
// @public
383+
export type LazyType<T> = T & {
384+
[K in "" as never]: LazyType<never>;
385+
};
386+
378387
// @internal @deprecated (undocumented)
379388
export function makeReference(id: string): Reference;
380389

@@ -408,6 +417,12 @@ export function omitDeep<T, K extends string>(value: T, key: K): DeepOmit<T, K>;
408417
// @public (undocumented)
409418
type OptionsUnion<TData, TVariables extends OperationVariables> = ApolloClient.WatchQueryOptions<TData, TVariables> | ApolloClient.QueryOptions<TData, TVariables> | ApolloClient.MutateOptions<TData, TVariables, any>;
410419

420+
// Warning: (ae-forgotten-export) The symbol "ReplaceUndefinedWithDefault" needs to be exported by the entry point index.d.ts
421+
// Warning: (ae-incompatible-release-tags) The symbol "OptionWithFallback" is marked as @public, but its signature references "RemoveIndexSignature" which is marked as @internal
422+
//
423+
// @public (undocumented)
424+
export type OptionWithFallback<Options, DefaultOptions, Key extends keyof DefaultOptions> = Key extends keyof RemoveIndexSignature<Options> ? ReplaceUndefinedWithDefault<Options[Key], DefaultOptions[Key]> : DefaultOptions[Key];
425+
411426
// @internal @deprecated (undocumented)
412427
export interface PendingPromise<TValue> extends Promise<TValue> {
413428
// (undocumented)
@@ -463,12 +478,22 @@ export type RemoveIndexSignature<T> = {
463478
// @public (undocumented)
464479
export function removeMaskedFragmentSpreads(document: DocumentNode): DocumentNode;
465480

481+
// @public (undocumented)
482+
type ReplaceUndefinedWithDefault<Value, Default> = Value extends any ? Value extends undefined ? Default : Value : never;
483+
466484
// @internal @deprecated (undocumented)
467485
export function resultKeyNameFromField(field: FieldNode): string;
468486

469487
// @internal @deprecated (undocumented)
470488
export function shouldInclude({ directives }: SelectionNode, variables?: Record<string, any>): boolean;
471489

490+
// @public
491+
export type SignatureStyle = TypeOverrides extends ({
492+
signatureStyle: infer S extends "modern" | "classic";
493+
}) ? S : ApolloClient.Options extends {
494+
defaultOptions: {};
495+
} ? "modern" : "classic";
496+
472497
// @internal @deprecated (undocumented)
473498
export function storeKeyNameFromField(field: FieldNode, variables?: Object): string;
474499

@@ -492,7 +517,10 @@ export type StreamInfoTrie = Trie<{
492517
export function stringifyForDisplay(value: any, space?: number): string;
493518

494519
// @internal @deprecated (undocumented)
495-
export function toQueryResult<TData = unknown>(value: ObservableQuery.Result<TData>): ApolloClient.QueryResult<TData>;
520+
export function toQueryResult<TData = unknown>(value: ObservableQuery.Result<TData>): {
521+
data: TData | undefined;
522+
error?: ErrorLike;
523+
};
496524

497525
// @public (undocumented)
498526
type TupleToIntersection<T extends any[]> = T extends [infer A] ? A : T extends [infer A, infer B] ? A & B : T extends [infer A, infer B, infer C] ? A & B & C : T extends [infer A, infer B, infer C, infer D] ? A & B & C & D : T extends [infer A, infer B, infer C, infer D, infer E] ? A & B & C & D & E : T extends (infer U)[] ? U : any;

0 commit comments

Comments
 (0)