Skip to content

Commit

Permalink
Move React-related exports to @apollo/client/react and out of the m…
Browse files Browse the repository at this point in the history
…ain bundle (#12300)
  • Loading branch information
jerelmiller authored Jan 23, 2025
1 parent af3a90a commit 4d581e4
Show file tree
Hide file tree
Showing 33 changed files with 2,036 additions and 916 deletions.
47 changes: 2 additions & 45 deletions .api-reports/api-report-testing.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import type { GraphQLFormattedError } from 'graphql';
import type { InlineFragmentNode } from 'graphql';
import { Observable } from 'zen-observable-ts';
import type { Observer } from 'zen-observable-ts';
import * as React_2 from 'react';
import type { Subscriber } from 'zen-observable-ts';
import type { Subscription } from 'zen-observable-ts';
import { Trie } from '@wry/trie';
Expand Down Expand Up @@ -1049,50 +1048,6 @@ interface MockApolloLink extends ApolloLink {
operation?: Operation;
}

// Warning: (ae-forgotten-export) The symbol "MockedProviderState" needs to be exported by the entry point index.d.ts
//
// @public (undocumented)
export class MockedProvider extends React_2.Component<MockedProviderProps, MockedProviderState> {
constructor(props: MockedProviderProps);
// (undocumented)
componentWillUnmount(): void;
// (undocumented)
static defaultProps: MockedProviderProps;
// (undocumented)
render(): React_2.JSX.Element | null;
}

// @public (undocumented)
export interface MockedProviderProps<TSerializedCache = {}> {
// (undocumented)
addTypename?: boolean;
// (undocumented)
cache?: ApolloCache<TSerializedCache>;
// (undocumented)
childProps?: object;
// (undocumented)
children?: any;
connectToDevTools?: boolean;
// Warning: (ae-forgotten-export) The symbol "DefaultOptions" needs to be exported by the entry point index.d.ts
//
// (undocumented)
defaultOptions?: DefaultOptions;
// (undocumented)
link?: ApolloLink;
// (undocumented)
mocks?: ReadonlyArray<MockedResponse<any, any>>;
// (undocumented)
resolvers?: Resolvers;
// (undocumented)
showWarnings?: boolean;
}

// @public (undocumented)
interface MockedProviderState {
// (undocumented)
client: ApolloClient<any>;
}

// @public (undocumented)
export interface MockedResponse<out TData = Record<string, any>, out TVariables = Record<string, any>> {
// (undocumented)
Expand Down Expand Up @@ -1494,6 +1449,8 @@ class QueryManager<TStore> {
readonly dataMasking: boolean;
// (undocumented)
readonly defaultContext: Partial<DefaultContext>;
// Warning: (ae-forgotten-export) The symbol "DefaultOptions" needs to be exported by the entry point index.d.ts
//
// (undocumented)
defaultOptions: DefaultOptions;
// (undocumented)
Expand Down
1,885 changes: 1,885 additions & 0 deletions .api-reports/api-report-testing_react.api.md

Large diffs are not rendered by default.

Loading

0 comments on commit 4d581e4

Please sign in to comment.