Skip to content

Commit 2bc7587

Browse files
committed
Update api report
1 parent 770e224 commit 2bc7587

4 files changed

Lines changed: 25 additions & 8 deletions

File tree

.api-reports/api-report-cache.api.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import type { IsLooselyEqual } from '@apollo/client/utilities/internal';
3030
import { isReference } from '@apollo/client/utilities';
3131
import type { NoInfer as NoInfer_2 } from '@apollo/client/utilities/internal';
3232
import { Observable } from 'rxjs';
33+
import type { OperationTypeNode } from 'graphql';
3334
import type { OperationVariables } from '@apollo/client';
3435
import type { Prettify } from '@apollo/client/utilities/internal';
3536
import { Reference } from '@apollo/client/utilities';
@@ -110,7 +111,10 @@ export abstract class ApolloCache {
110111
// @internal @deprecated
111112
getMemoryInternals?: typeof getApolloCacheMemoryInternals;
112113
// (undocumented)
114+
getRootTypename(operation: OperationTypeNode): string | undefined;
115+
// (undocumented)
113116
getScalar<TKey extends keyof ApolloCache.Scalars>(key: TKey): ApolloCache.GetScalarType<TKey> | undefined;
117+
getScalarForField(typename: string, fieldName: string): Scalar<unknown, unknown> | undefined;
114118
// (undocumented)
115119
identify(object: StoreObject | Reference): string | undefined;
116120
// (undocumented)
@@ -664,7 +668,10 @@ export class InMemoryCache extends ApolloCache {
664668
// @internal @deprecated
665669
getMemoryInternals?: typeof getInMemoryCacheMemoryInternals;
666670
// (undocumented)
671+
getRootTypename(operation: OperationTypeNode): string;
672+
// (undocumented)
667673
getScalar<TKey extends keyof ApolloCache.Scalars>(key: TKey): ApolloCache.GetScalarType<TKey> extends (Scalar<infer TSerialized, infer TParsed>) ? IsLooselyEqual<TSerialized, TParsed> extends true ? ApolloCache.GetScalarType<TKey> | undefined : ApolloCache.GetScalarType<TKey> : never;
674+
getScalarForField(typename: string, fieldName: string): Scalar<unknown, unknown> | undefined;
668675
// (undocumented)
669676
identify(object: StoreObject | Reference): string | undefined;
670677
// (undocumented)
@@ -1154,8 +1161,8 @@ interface WriteContext extends ReadMergeModifyContext {
11541161

11551162
// Warnings were encountered during analysis:
11561163
//
1157-
// src/cache/core/cache.ts:204:7 - (ae-incompatible-release-tags) The symbol "[handleIncrementalSymbol]" is marked as @public, but its signature references "DiffIncrementalInfo" which is marked as @internal
1158-
// src/cache/inmemory/inMemoryCache.ts:456:7 - (ae-incompatible-release-tags) The symbol "[handleIncrementalSymbol]" is marked as @public, but its signature references "DiffIncrementalInfo" which is marked as @internal
1164+
// src/cache/core/cache.ts:205:7 - (ae-incompatible-release-tags) The symbol "[handleIncrementalSymbol]" is marked as @public, but its signature references "DiffIncrementalInfo" which is marked as @internal
1165+
// src/cache/inmemory/inMemoryCache.ts:469:7 - (ae-incompatible-release-tags) The symbol "[handleIncrementalSymbol]" is marked as @public, but its signature references "DiffIncrementalInfo" which is marked as @internal
11591166
// src/cache/inmemory/policies.ts:176:3 - (ae-forgotten-export) The symbol "KeySpecifier" needs to be exported by the entry point index.d.ts
11601167
// src/cache/inmemory/policies.ts:179:3 - (ae-forgotten-export) The symbol "ScalarNames" needs to be exported by the entry point index.d.ts
11611168
// src/cache/inmemory/types.ts:147:3 - (ae-forgotten-export) The symbol "KeyFieldsFunction" needs to be exported by the entry point index.d.ts

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1376,7 +1376,7 @@ export const windowFocusSource: RefetchEventManager.EventSource<Event>;
13761376
//
13771377
// src/core/ApolloClient.ts:635:5 - (ae-forgotten-export) The symbol "NextFetchPolicyContext" needs to be exported by the entry point index.d.ts
13781378
// src/core/ObservableQuery.ts:375:5 - (ae-forgotten-export) The symbol "QueryManager" needs to be exported by the entry point index.d.ts
1379-
// src/core/QueryManager.ts:195:5 - (ae-forgotten-export) The symbol "MutationStoreValue" needs to be exported by the entry point index.d.ts
1379+
// src/core/QueryManager.ts:196:5 - (ae-forgotten-export) The symbol "MutationStoreValue" needs to be exported by the entry point index.d.ts
13801380

13811381
// (No @packageDocumentation comment for this package)
13821382

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
55
```ts
66

7-
import type { ApolloCache } from '@apollo/client';
7+
import type { ApolloCache } from '@apollo/client/cache';
8+
import type { ApolloCache as ApolloCache_2 } from '@apollo/client';
89
import type { ApolloClient } from '@apollo/client';
910
import type { ASTNode } from 'graphql';
1011
import type { DataValue } from '@apollo/client';
@@ -86,6 +87,9 @@ export type ClassicSignature = SignatureStyle extends "classic" ? unknown : neve
8687
// @internal @deprecated
8788
export function cloneDeep<T>(value: T): T;
8889

90+
// @public (undocumented)
91+
export function coerceScalarFieldsToParsed(result: Record<string, any>, query: DocumentNode, cache: ApolloCache): Record<string, any>;
92+
8993
// @public
9094
export function combineLatestBatched<T>(observables: Array<Observable<T> & {
9195
dirty?: boolean;
@@ -425,7 +429,7 @@ export function makeStreamInfoTrie(): StreamInfoTrie;
425429
export function makeUniqueId(prefix: string): string;
426430

427431
// @public (undocumented)
428-
export const mapObservableFragmentMemoized: <From, To>(observable: ApolloCache.ObservableFragment<From>, _cacheKey: symbol, mapFn: (from: ApolloCache.WatchFragmentResult<From>) => ApolloCache.WatchFragmentResult<To>) => ApolloCache.ObservableFragment<To>;
432+
export const mapObservableFragmentMemoized: <From, To>(observable: ApolloCache_2.ObservableFragment<From>, _cacheKey: symbol, mapFn: (from: ApolloCache_2.WatchFragmentResult<From>) => ApolloCache_2.WatchFragmentResult<To>) => ApolloCache_2.ObservableFragment<To>;
429433

430434
// @internal @deprecated (undocumented)
431435
export function maybeDeepFreeze<T>(obj: T): T;

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@ export abstract class ApolloCache {
104104
// @internal @deprecated
105105
getMemoryInternals?: typeof getApolloCacheMemoryInternals;
106106
// (undocumented)
107+
getRootTypename(operation: OperationTypeNode): string | undefined;
108+
// (undocumented)
107109
getScalar<TKey extends keyof ApolloCache.Scalars>(key: TKey): ApolloCache.GetScalarType<TKey> | undefined;
110+
getScalarForField(typename: string, fieldName: string): Scalar<unknown, unknown> | undefined;
108111
// (undocumented)
109112
identify(object: StoreObject | Reference): string | undefined;
110113
// (undocumented)
@@ -1696,7 +1699,10 @@ export class InMemoryCache extends ApolloCache {
16961699
// @internal @deprecated
16971700
getMemoryInternals?: typeof getInMemoryCacheMemoryInternals;
16981701
// (undocumented)
1702+
getRootTypename(operation: OperationTypeNode): string;
1703+
// (undocumented)
16991704
getScalar<TKey extends keyof ApolloCache.Scalars>(key: TKey): ApolloCache.GetScalarType<TKey> extends (Scalar<infer TSerialized, infer TParsed>) ? IsLooselyEqual<TSerialized, TParsed> extends true ? ApolloCache.GetScalarType<TKey> | undefined : ApolloCache.GetScalarType<TKey> : never;
1705+
getScalarForField(typename: string, fieldName: string): Scalar<unknown, unknown> | undefined;
17001706
// (undocumented)
17011707
identify(object: StoreObject | Reference): string | undefined;
17021708
// (undocumented)
@@ -3251,8 +3257,8 @@ interface WriteContext extends ReadMergeModifyContext {
32513257

32523258
// Warnings were encountered during analysis:
32533259
//
3254-
// src/cache/core/cache.ts:129:11 - (ae-forgotten-export) The symbol "MissingTree" needs to be exported by the entry point index.d.ts
3255-
// src/cache/core/cache.ts:204:7 - (ae-forgotten-export) The symbol "DiffIncrementalInfo" needs to be exported by the entry point index.d.ts
3260+
// src/cache/core/cache.ts:130:11 - (ae-forgotten-export) The symbol "MissingTree" needs to be exported by the entry point index.d.ts
3261+
// src/cache/core/cache.ts:205:7 - (ae-forgotten-export) The symbol "DiffIncrementalInfo" needs to be exported by the entry point index.d.ts
32563262
// src/cache/inmemory/policies.ts:104:3 - (ae-forgotten-export) The symbol "FragmentMap" needs to be exported by the entry point index.d.ts
32573263
// src/cache/inmemory/policies.ts:176:3 - (ae-forgotten-export) The symbol "KeySpecifier" needs to be exported by the entry point index.d.ts
32583264
// src/cache/inmemory/policies.ts:176:3 - (ae-forgotten-export) The symbol "KeyArgsFunction" needs to be exported by the entry point index.d.ts
@@ -3262,7 +3268,7 @@ interface WriteContext extends ReadMergeModifyContext {
32623268
// src/core/ApolloClient.ts:201:5 - (ae-forgotten-export) The symbol "IgnoreModifier" needs to be exported by the entry point index.d.ts
32633269
// src/core/ApolloClient.ts:635:5 - (ae-forgotten-export) The symbol "NextFetchPolicyContext" needs to be exported by the entry point index.d.ts
32643270
// src/core/ObservableQuery.ts:375:5 - (ae-forgotten-export) The symbol "QueryManager" needs to be exported by the entry point index.d.ts
3265-
// src/core/QueryManager.ts:195:5 - (ae-forgotten-export) The symbol "MutationStoreValue" needs to be exported by the entry point index.d.ts
3271+
// src/core/QueryManager.ts:196:5 - (ae-forgotten-export) The symbol "MutationStoreValue" needs to be exported by the entry point index.d.ts
32663272
// src/local-state/LocalState.ts:149:5 - (ae-forgotten-export) The symbol "LocalState" needs to be exported by the entry point index.d.ts
32673273
// src/local-state/LocalState.ts:202:7 - (ae-forgotten-export) The symbol "LocalState" needs to be exported by the entry point index.d.ts
32683274
// src/local-state/LocalState.ts:245:7 - (ae-forgotten-export) The symbol "LocalState" needs to be exported by the entry point index.d.ts

0 commit comments

Comments
 (0)