Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
8dfc90d
Enter prerelease mode
github-actions[bot] Dec 6, 2024
ba5cc33
Don't call `onError` if errors are thrown in `onCompleted` (#12174)
jerelmiller Dec 6, 2024
b0a5213
Merge branch 'main' into release-3.13
jerelmiller Dec 19, 2024
f17dc0c
Merge branch 'main' into release-3.13
phryneas Jan 9, 2025
c56aa2d
Merge branch 'main' into release-3.13
jerelmiller Jan 11, 2025
11c845d
Merge branch 'main' into release-3.13
jerelmiller Jan 17, 2025
75f9e5f
Merge branch 'main' into release-3.13
jerelmiller Jan 22, 2025
2422df2
Deprecate ignoreResults in useMutation (#12296)
Cellule Jan 22, 2025
9849694
Update api report and size limits
jerelmiller Jan 22, 2025
bbfb44c
Merge branch 'main' into release-3.13
phryneas Jan 27, 2025
ec7e46c
Add more information about deprecation of useMutation ignoreResults o…
Cellule Jan 27, 2025
31e215f
Merge branch 'main' into release-3.13
jerelmiller Jan 28, 2025
257e2e1
Merge branch 'main' into release-3.13
jerelmiller Jan 31, 2025
b17968b
Allow protocol errors to be retryable in `RetryLink` (#12318)
jerelmiller Feb 3, 2025
1641eeb
Version Packages (#12325)
github-actions[bot] Feb 3, 2025
92db870
Prepare for rc release
github-actions[bot] Feb 3, 2025
e189596
Merge branch 'main' into release-3.13
jerelmiller Feb 3, 2025
e63a326
chore(deps): update cimg/node docker tag to v23.7.0 (#12336)
renovate[bot] Feb 4, 2025
c01da5d
Feature: `useSuspenseFragment` (#12066)
jerelmiller Feb 4, 2025
cc47e1c
Update ROADMAP.md
jerelmiller Feb 5, 2025
219b26b
Add `graphql-ws` `^6.0.3` as a valid `peerDependency` (#12342)
phryneas Feb 5, 2025
f2bb0b9
`useReadQuery`/`useQueryRefHandlers`: Fix a "hook order" warning that…
phryneas Feb 5, 2025
5031837
Prepare for beta release
github-actions[bot] Feb 6, 2025
670f112
Provide type-safe solution for updateQuery previous data (#12276)
Cellule Feb 6, 2025
80a68aa
Merge branch 'main' into release-3.13
jerelmiller Feb 6, 2025
67c16c9
keep deferred inFlightLinkObservables until the response is finished …
phryneas Feb 6, 2025
0a0f801
Version Packages (#12343)
github-actions[bot] Feb 6, 2025
60a3ba0
remove cci-based security scans (#12339)
peakematt Feb 6, 2025
716d02e
deprecate `use(Lazy)Query` `on(Error|Completed)` callbacks (#12340)
phryneas Feb 7, 2025
1855684
Remove addTypename setting in testing docs (#12353)
jerelmiller Feb 7, 2025
cf0ff5f
Merge branch 'main' into release-3.13
jerelmiller Feb 7, 2025
a24ef94
fix missing main.d.cts (#12354)
phryneas Feb 7, 2025
3da908b
Fix emitted `fetchMore` result from `observableQuery` for no-cache qu…
jerelmiller Feb 7, 2025
d79aec0
Version Packages (#12355)
github-actions[bot] Feb 7, 2025
3406e96
Merge branch 'main' into release-3.13
jerelmiller Feb 7, 2025
e4c3dc4
Update size limits
jerelmiller Feb 7, 2025
88378b2
Prepare for rc release
github-actions[bot] Feb 7, 2025
924030b
Version Packages (rc) (#12337)
github-actions[bot] Feb 7, 2025
71affea
update `node-version` for React canary test cronjob
phryneas Feb 6, 2025
27e1532
Add documentation for `useSuspenseFragment` (#12356)
jerelmiller Feb 11, 2025
66dc5b9
Update ROADMAP.md
jerelmiller Feb 12, 2025
d71f2e8
Require `variables` option in `useSuspenseFragment` when there are re…
jerelmiller Feb 13, 2025
3904103
Merge branch 'main' into release-3.13
jerelmiller Feb 13, 2025
b30b06c
Exit prerelease mode
github-actions[bot] Feb 13, 2025
c6cac25
Merge pull request #12180 from apollographql/release-3.13
jerelmiller Feb 13, 2025
e93d19f
Version Packages (#12372)
github-actions[bot] Feb 13, 2025
bdfc5b2
`ObervableQuery.refetch`: don't refetch with `cache-and-network`, swi…
phryneas Feb 14, 2025
d3f8f13
Export `UseSuspenseFragmentOptions` (#12375)
jerelmiller Feb 14, 2025
356fcc9
Version Packages (#12377)
github-actions[bot] Feb 14, 2025
3c8075e
Docs: simplify subscribeToMore example (#12381)
acjay Mar 3, 2025
b11773a
update webpack.md with a link to working jest transformer (#12395)
hamidyfine Mar 3, 2025
6fcad3b
Update README.md with 2025 Summit Announcement (#12401)
gocamille Mar 5, 2025
644bb26
Allow DeepOmit to support partial (#12392)
Joja81 Mar 5, 2025
4332b88
Show `NaN` in `MockLink` debug messages for unmatched variables (#12404)
jerelmiller Mar 6, 2025
6aa2f3e
turn queryRef symbols into `Symbol.for` calls (#12409)
phryneas Mar 6, 2025
50f15a3
Version Packages (#12405)
github-actions[bot] Mar 6, 2025
f6d387c
Fix `networkStatus` incorrectly reported as `ready` when using `error…
jerelmiller Mar 7, 2025
cb0ca9a
Version Packages (#12417)
github-actions[bot] Mar 7, 2025
fee9368
fix: use import star from rehackt CJS dep (#12420)
jorenbroekema Mar 10, 2025
0d4b09e
Version Packages (#12424)
github-actions[bot] Mar 10, 2025
f3b5d29
rename size-limit names on `main` (#12426)
phryneas Mar 11, 2025
c53d968
Update ROADMAP.md
jerelmiller Mar 12, 2025
bd1cb27
chore(deps): update cimg/node docker tag to v23.9.0 (#12380)
renovate[bot] Mar 13, 2025
e1ea1f5
Add defer to sidebar
Meschreiber Mar 19, 2025
89b950c
Add minVersion
Meschreiber Mar 19, 2025
60ea3bd
Merge pull request #12462 from apollographql/docs/add-defer-to-sidebar
Meschreiber Mar 19, 2025
12c8d06
Fix an issue where incorrect results are returned when changing varia…
jerelmiller Mar 20, 2025
d0cac27
Version Packages (#12468)
github-actions[bot] Mar 20, 2025
820f6e6
Update ROADMAP.md
jerelmiller Mar 26, 2025
cdc55ff
keep `ObservableQuery` initiated from `useQuery` inactive before firs…
phryneas Apr 4, 2025
949bd14
Version Packages (#12527)
github-actions[bot] Apr 4, 2025
0098932
refactor some code in `QueryInfo` (#12540)
phryneas Apr 10, 2025
616cb01
Version Packages (#12544)
github-actions[bot] Apr 10, 2025
ef41a67
Update ROADMAP.md
jerelmiller Apr 11, 2025
d264fef
[docs] Update cache-configuration keyFields docs (#11778)
smyrick Apr 16, 2025
c19d415
fix: cancellable in-flight multipart urql subscriptions (#12567)
thearchitector Apr 17, 2025
87d0521
Version Packages (#12571)
github-actions[bot] Apr 17, 2025
03dc18e
remove netlify client and update docs to mdx
BlenderDude Apr 21, 2025
fa4ceed
wrap interpreted expressions <> and {} in code snippets
BlenderDude Apr 21, 2025
6cac9ee
Merge pull request #12577 from apollographql/da/remove-netlify-client
BlenderDude Apr 21, 2025
4e2e3e8
Update ROADMAP.md
jerelmiller Apr 23, 2025
fdf05c7
Add caution to schema testing doc (#12596)
jerelmiller May 7, 2025
7562a42
Update ROADMAP.md
jerelmiller May 7, 2025
ee9c6a6
Remove local resolvers deprecation (#12611)
jerelmiller May 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 50 additions & 29 deletions .api-reports/api-report-core.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1692,6 +1692,8 @@ export class ObservableQuery<TData = any, TVariables extends OperationVariables
hasObservers(): boolean;
// (undocumented)
isDifferentFromLastResult(newResult: ApolloQueryResult<TData>, variables?: TVariables): boolean | undefined;
// @internal (undocumented)
protected notify(): void;
// (undocumented)
readonly options: WatchQueryOptions<TVariables, TData>;
// (undocumented)
Expand All @@ -1711,6 +1713,8 @@ export class ObservableQuery<TData = any, TVariables extends OperationVariables
resetDiff(): void;
// (undocumented)
resetLastResults(): void;
// @internal (undocumented)
protected resetNotifications(): void;
// (undocumented)
resetQueryStoreErrors(): void;
// (undocumented)
Expand All @@ -1719,15 +1723,17 @@ export class ObservableQuery<TData = any, TVariables extends OperationVariables
resubscribeAfterError(observer: Observer<ApolloQueryResult<TData>>): ObservableSubscription;
// (undocumented)
result(): Promise<ApolloQueryResult<MaybeMasked<TData>>>;
// @internal (undocumented)
protected scheduleNotify(): void;
// (undocumented)
setOptions(newOptions: Partial<WatchQueryOptions<TVariables, TData>>): Promise<ApolloQueryResult<MaybeMasked<TData>>>;
setVariables(variables: TVariables): Promise<ApolloQueryResult<MaybeMasked<TData>> | void>;
// (undocumented)
silentSetOptions(newOptions: Partial<WatchQueryOptions<TVariables, TData>>): void;
startPolling(pollInterval: number): void;
stopPolling(): void;
subscribeToMore<TSubscriptionData = TData, TSubscriptionVariables extends OperationVariables = TVariables>(options: SubscribeToMoreOptions<TData, TSubscriptionVariables, TSubscriptionData>): () => void;
updateQuery<TVars extends OperationVariables = TVariables>(mapFn: (previousQueryResult: Unmasked<TData>, options: Pick<WatchQueryOptions<TVars, TData>, "variables">) => Unmasked<TData>): void;
subscribeToMore<TSubscriptionData = TData, TSubscriptionVariables extends OperationVariables = TVariables>(options: SubscribeToMoreOptions<TData, TSubscriptionVariables, TSubscriptionData, TVariables>): () => void;
updateQuery(mapFn: UpdateQueryMapFn<TData, TVariables>): void;
get variables(): TVariables | undefined;
}

Expand Down Expand Up @@ -1864,8 +1870,6 @@ class QueryInfo {
// (undocumented)
lastRequestId: number;
// (undocumented)
listeners: Set<QueryListener>;
// (undocumented)
markError(error: ApolloError): ApolloError;
// (undocumented)
markReady(): NetworkStatus;
Expand All @@ -1878,14 +1882,10 @@ class QueryInfo {
// (undocumented)
networkStatus?: NetworkStatus;
// (undocumented)
notify(): void;
// (undocumented)
readonly observableQuery: ObservableQuery<any, any> | null;
// (undocumented)
readonly queryId: string;
// (undocumented)
reset(): void;
// (undocumented)
resetDiff(): void;
// (undocumented)
resetLastWrite(): void;
Expand All @@ -1901,9 +1901,6 @@ class QueryInfo {
variables?: Record<string, any>;
}

// @public (undocumented)
export type QueryListener = (queryInfo: QueryInfo) => void;

// @public (undocumented)
class QueryManager<TStore> {
// Warning: (ae-forgotten-export) The symbol "QueryManagerOptions" needs to be exported by the entry point index.d.ts
Expand Down Expand Up @@ -1944,6 +1941,8 @@ class QueryManager<TStore> {
getLocalState(): LocalState<TStore>;
// (undocumented)
getObservableQueries(include?: InternalRefetchQueriesInclude): Map<string, ObservableQuery<any, OperationVariables>>;
// (undocumented)
getOrCreateQuery(queryId: string): QueryInfo;
// Warning: (ae-forgotten-export) The symbol "QueryStoreValue" needs to be exported by the entry point index.d.ts
//
// (undocumented)
Expand Down Expand Up @@ -2008,8 +2007,6 @@ class QueryManager<TStore> {
// (undocumented)
resetErrors(queryId: string): void;
// (undocumented)
setObservableQuery(observableQuery: ObservableQuery<any, any>): void;
// (undocumented)
readonly ssrMode: boolean;
// (undocumented)
startGraphQLSubscription<T = any>(options: SubscriptionOptions): Observable<FetchResult<T>>;
Expand Down Expand Up @@ -2317,12 +2314,33 @@ class Stump extends Layer {
}

// @public (undocumented)
export type SubscribeToMoreOptions<TData = any, TSubscriptionVariables = OperationVariables, TSubscriptionData = TData> = {
export interface SubscribeToMoreFunction<TData, TVariables extends OperationVariables = OperationVariables> {
// (undocumented)
<TSubscriptionData = TData, TSubscriptionVariables extends OperationVariables = TVariables>(options: SubscribeToMoreOptions<TData, TSubscriptionVariables, TSubscriptionData, TVariables>): () => void;
}

// @public (undocumented)
export interface SubscribeToMoreOptions<TData = any, TSubscriptionVariables extends OperationVariables = OperationVariables, TSubscriptionData = TData, TVariables extends OperationVariables = TSubscriptionVariables> {
// (undocumented)
context?: DefaultContext;
// (undocumented)
document: DocumentNode | TypedDocumentNode<TSubscriptionData, TSubscriptionVariables>;
variables?: TSubscriptionVariables;
updateQuery?: UpdateQueryFn<TData, TSubscriptionVariables, TSubscriptionData>;
// (undocumented)
onError?: (error: Error) => void;
context?: DefaultContext;
// (undocumented)
updateQuery?: SubscribeToMoreUpdateQueryFn<TData, TVariables, TSubscriptionData>;
// (undocumented)
variables?: TSubscriptionVariables;
}

// @public (undocumented)
export type SubscribeToMoreUpdateQueryFn<TData = any, TVariables extends OperationVariables = OperationVariables, TSubscriptionData = TData> = {
(
unsafePreviousData: Unmasked<TData>, options: UpdateQueryOptions<TData, TVariables> & {
subscriptionData: {
data: Unmasked<TSubscriptionData>;
};
}): Unmasked<TData> | void;
};

// @public (undocumented)
Expand Down Expand Up @@ -2421,18 +2439,22 @@ type UnwrapFragmentRefs<TData> = true extends IsAny<TData> ? TData : TData exten
type UpdateQueries<TData> = MutationOptions<TData, any, any>["updateQueries"];

// @public (undocumented)
type UpdateQueryFn<TData = any, TSubscriptionVariables = OperationVariables, TSubscriptionData = TData> = (previousQueryResult: Unmasked<TData>, options: {
subscriptionData: {
data: Unmasked<TSubscriptionData>;
};
variables?: TSubscriptionVariables;
}) => Unmasked<TData>;
export interface UpdateQueryMapFn<TData = any, TVariables = OperationVariables> {
// (undocumented)
(
unsafePreviousData: Unmasked<TData>, options: UpdateQueryOptions<TData, TVariables>): Unmasked<TData> | void;
}

// @public (undocumented)
export interface UpdateQueryOptions<TVariables> {
// (undocumented)
export type UpdateQueryOptions<TData, TVariables> = {
variables?: TVariables;
}
} & ({
complete: true;
previousData: Unmasked<TData>;
} | {
complete: false;
previousData: DeepPartial<Unmasked<TData>> | undefined;
});

// @public (undocumented)
export interface UriFunction {
Expand Down Expand Up @@ -2508,11 +2530,10 @@ interface WriteContext extends ReadMergeModifyContext {
// src/cache/inmemory/policies.ts:162:3 - (ae-forgotten-export) The symbol "KeySpecifier" needs to be exported by the entry point index.d.ts
// src/cache/inmemory/policies.ts:162:3 - (ae-forgotten-export) The symbol "KeyArgsFunction" needs to be exported by the entry point index.d.ts
// src/cache/inmemory/types.ts:139:3 - (ae-forgotten-export) The symbol "KeyFieldsFunction" needs to be exported by the entry point index.d.ts
// src/core/ObservableQuery.ts:120:5 - (ae-forgotten-export) The symbol "QueryManager" needs to be exported by the entry point index.d.ts
// src/core/ObservableQuery.ts:121:5 - (ae-forgotten-export) The symbol "QueryInfo" needs to be exported by the entry point index.d.ts
// src/core/ObservableQuery.ts:128:5 - (ae-forgotten-export) The symbol "QueryManager" needs to be exported by the entry point index.d.ts
// src/core/ObservableQuery.ts:129:5 - (ae-forgotten-export) The symbol "QueryInfo" needs to be exported by the entry point index.d.ts
// src/core/QueryManager.ts:159:5 - (ae-forgotten-export) The symbol "MutationStoreValue" needs to be exported by the entry point index.d.ts
// src/core/QueryManager.ts:414:7 - (ae-forgotten-export) The symbol "UpdateQueries" needs to be exported by the entry point index.d.ts
// src/core/watchQueryOptions.ts:277:2 - (ae-forgotten-export) The symbol "UpdateQueryFn" needs to be exported by the entry point index.d.ts
// src/link/http/selectHttpOptionsAndBody.ts:128:32 - (ae-forgotten-export) The symbol "HttpQueryOptions" needs to be exported by the entry point index.d.ts

// (No @packageDocumentation comment for this package)
Expand Down
Loading
Loading