Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 3.9.0 #11220

Merged
merged 110 commits into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
5e8b5e0
Avoid destructively modifying result.data in QueryInfo#markResult.
benjamn Feb 24, 2023
7f9c5ac
Test adjustments after fixing QueryInfo#markResult.
benjamn Aug 29, 2023
a201111
New test of re-reading incomplete network results from cache.
benjamn Aug 29, 2023
7c2bc08
Run 'npx changeset' for PR #11202.
benjamn Sep 8, 2023
a031860
Run 'npm run format' for code modified in PR #11202.
benjamn Sep 13, 2023
d8c6072
Bump size-limit +8 bytes.
benjamn Sep 13, 2023
2ad8485
extend test to distinguish between cache & network
phryneas Sep 14, 2023
ec5d86c
defensive copy of `result` at the top of `markResult`
phryneas Sep 14, 2023
8b6e10b
Merge pull request #11202 from apollographql/issue-9293-fix-QueryInfo…
benjamn Sep 14, 2023
9ee47f8
Add `.changeset/` directory to `.prettierignore`.
benjamn Sep 15, 2023
57b4915
Merge branch 'main' into release-3.9.
benjamn Sep 15, 2023
c1b8c91
chore: enter prerelease mode
alessbell Sep 19, 2023
8d2b4e1
Ability to dynamically match mocks (#6701)
prowe Sep 19, 2023
a0fbcd8
Version Packages (alpha) (#11210)
github-actions[bot] Sep 19, 2023
698f821
Merge branch 'main' into release-3.9
alessbell Sep 19, 2023
1a072b0
Merge branch 'main' of github.com:apollographql/apollo-client into re…
alessbell Sep 19, 2023
4cdcb91
Version Packages
alessbell Sep 19, 2023
217c59e
remove peerDependency on graphql 14 (#11231)
phryneas Sep 20, 2023
a4c38d6
Merge branch 'main' into release-3.9
alessbell Sep 21, 2023
4d64a6f
Feature request 241: reuse mocks in MockLink / MockedProvider (#11178)
sebakerckhof Sep 21, 2023
33e0d78
Version Packages (alpha) (#11239)
github-actions[bot] Sep 21, 2023
d08970d
Decouple `canonicalStringify` from `ObjectCanon` (#11254)
benjamn Oct 5, 2023
632940e
Merge tag v3.8.5 into release-3.9
phryneas Oct 11, 2023
ba5faa5
Version Packages (alpha) (#11273)
github-actions[bot] Oct 11, 2023
1bec61a
Merge remote-tracking branch 'origin/main' into release-3.9
jerelmiller Oct 17, 2023
701a6fb
Bump size-limit
jerelmiller Oct 17, 2023
39105c1
Merge remote-tracking branch 'origin/main' into release-3.9
phryneas Nov 2, 2023
3862f9b
Add a defaultContext property on ApolloClient (#11275)
phryneas Nov 2, 2023
46ab032
feat: add multipart subscription network adapters for Relay and urql …
alessbell Nov 2, 2023
be2029b
Version Packages (alpha) (#11336)
github-actions[bot] Nov 2, 2023
776631d
Add `reset` method to `print`, hook up to `InMemoryCache.gc` (#11343)
phryneas Nov 7, 2023
d6d1491
use external package to wrap `React` imports to circumvent non-existi…
phryneas Nov 8, 2023
950cae8
Version Packages (alpha) (#11347)
github-actions[bot] Nov 8, 2023
bd26676
Add `reset` method to `DocumentTransform`, hook `InMemoryCache.addTyp…
phryneas Nov 9, 2023
981a06f
Merge remote-tracking branch 'origin/main' into release-3.9
phryneas Nov 14, 2023
b0bf0d8
fix up type in 3.9 branch after merge (#11362)
phryneas Nov 14, 2023
7d8e184
`InMemoryCache.gc`: also trigger `FragmentRegistry.resetCaches` (#11355)
phryneas Nov 14, 2023
e6090f3
Merge remote-tracking branch 'origin/main' into release-3.9
phryneas Nov 17, 2023
ac4e382
update size-limit
phryneas Nov 17, 2023
ebd8fe2
Clarify types of `EntityStore.makeCacheKey` (#11371)
phryneas Nov 20, 2023
0b3c308
Merge branch 'main' into release-3.9
jerelmiller Nov 21, 2023
d9ca4f0
Ensure `defaultContext` is also used for mutations and subscriptions …
phryneas Nov 28, 2023
a815873
Add a new `useLoadableQuery` hook (#11300)
jerelmiller Nov 28, 2023
cc4ac7e
Address potential memory leaks in `FragmentRegistry` (#11356)
phryneas Nov 29, 2023
30d17bf
`print`: use `WeakCache` instead of `WeakMap` (#11367)
phryneas Nov 29, 2023
25e2cb4
`parse` function: improve memory management (#11370)
phryneas Nov 29, 2023
4dce867
`QueryManager.transformCache`: use `WeakCache` (#11387)
phryneas Nov 29, 2023
7d939f8
fix potential memory leak in `Concast`, add tests (#11358)
phryneas Nov 30, 2023
1759066
`QueryManager.inFlightLinkObservables`: use a strong `Trie` (#11345)
phryneas Dec 1, 2023
aaf8c79
`useSuspenseQuery`: remove `promiseCache` (#11363)
phryneas Dec 1, 2023
44b27a6
Merge remote-tracking branch 'origin/main' into release-3.9
phryneas Dec 1, 2023
ea8fd38
apply prettier
phryneas Dec 1, 2023
b1ff9c2
update api-reports
phryneas Dec 1, 2023
139acd1
`documentTransform`: use `optimism` and `WeakCache` (#11389)
phryneas Dec 1, 2023
db5f5fd
`useBackgroundQuery`: remove `promiseCache`, work around race conditi…
phryneas Dec 1, 2023
ac58ca0
Update `useLoadableQuery` to remove `promiseCache` (#11402)
jerelmiller Dec 4, 2023
6970343
Merge branch 'main' into release-3.9
jerelmiller Dec 5, 2023
838095b
Version Packages (alpha) (#11353)
github-actions[bot] Dec 5, 2023
c82c7fd
Merge branch 'main' into release-3.9
jerelmiller Dec 6, 2023
3f7eecb
Add `skipPollAttempt` option to control polling refetch behavior (#11…
aditya-kumawat Dec 6, 2023
d05297d
Fix changeset formatting
jerelmiller Dec 6, 2023
221dd99
Allow usage of WeakMap in React Native Hermes (#10804)
phryneas Dec 8, 2023
2a47164
Persisted Query Link: improve memory management (#11369)
phryneas Dec 14, 2023
f5420b0
add central configuration for Apollo Client cache sizes (#11408)
phryneas Dec 15, 2023
fea0023
Copy and use ApiDoc components from docs repo (#11416)
phryneas Dec 7, 2023
efeea04
Update netlify.toml
phryneas Dec 8, 2023
865659b
Update react-native.md - Adds react native devtool supported by flipp…
mohit23x Dec 8, 2023
98431c1
chore(deps): update actions/stale action to v9 (#11423)
renovate[bot] Dec 11, 2023
13c27bb
chore(deps): update cimg/node docker tag to v21.4.0 (#11422)
renovate[bot] Dec 11, 2023
aafcd3e
chore(deps): update all devdependencies (#11406)
renovate[bot] Dec 12, 2023
dabb1f8
chore(deps): update all dependencies - patch updates (#11421)
renovate[bot] Dec 12, 2023
ae7c765
Merge branch 'main' into release-3.9
phryneas Dec 15, 2023
2e7203b
experimental `ApolloClient.getMemoryInternals` helper (#11409)
phryneas Dec 15, 2023
07fcf6a
feat: Allow returning `IGNORE` sentinel from `optimisticResponse` fun…
sf-twingate Dec 15, 2023
58db5c3
Add the ability to preload a query outside of React (#11412)
jerelmiller Dec 18, 2023
5cce53e
deprecate `canonizeResults` (#11435)
phryneas Dec 18, 2023
b07d9d8
Fix doc warning in useQueryRefHandlers
jerelmiller Dec 18, 2023
b05a5a9
Regenerate api report
jerelmiller Dec 18, 2023
283b4f6
Merge branch 'main' into release-3.9
jerelmiller Dec 18, 2023
e9b5130
Switch to use the beta tag
jerelmiller Dec 18, 2023
2ba07ac
Reset package.json version to ensure changesets records the right ver…
jerelmiller Dec 18, 2023
3a2240f
Version Packages (beta) (#11417)
github-actions[bot] Dec 18, 2023
33454f0
Add `react/internal` entry point and update existing imports (#11439)
jerelmiller Dec 19, 2023
3cbb207
Rewrite `useBackgroundQuery` tests to use Profiler (#11437)
jerelmiller Dec 19, 2023
6d46ab9
Remove `retain` call from `useBackgroundQuery` to allow for auto disp…
jerelmiller Dec 19, 2023
62f3b6d
Simplify RetryLink, fix potential memory leak (#11424)
phryneas Dec 20, 2023
14edebe
ObservableQuery: only report results for the current variables (#11078)
phryneas Dec 20, 2023
ff5a332
add deprecation warnings for HOC and Render Prop docblocks (#11443)
phryneas Dec 20, 2023
de5b878
Add a "memory management" documentation page (#11415)
phryneas Dec 20, 2023
4b6f2bc
Remove `retain` from `useLoadableQuery` to allow for auto disposal (#…
jerelmiller Dec 21, 2023
fe56f68
Version Packages (beta) (#11440)
github-actions[bot] Dec 21, 2023
d758118
chore: add docs for relay and urql network adapters (#11460)
alessbell Jan 3, 2024
a604ac3
chore: add docs for skipping an optimistic update via optimisticRespo…
alessbell Jan 3, 2024
0ee2a57
Merge branch 'main' into release-3.9
alessbell Jan 12, 2024
416db65
chore: bump size limits, fix new lint error since merging main
alessbell Jan 12, 2024
48f73dc
Prepare for rc release
jerelmiller Jan 17, 2024
8e79ad4
Merge remote-tracking branch 'origin/main' into release-3.9
jerelmiller Jan 17, 2024
1190aa5
Increase default memory limits (#11495)
jerelmiller Jan 17, 2024
d0afb45
Switch changeset to minor version bump
jerelmiller Jan 17, 2024
9f5f801
Version Packages (rc) (#11496)
github-actions[bot] Jan 17, 2024
fb0a255
Merge remote-tracking branch 'origin/main' into release-3.9
jerelmiller Jan 18, 2024
67f62e3
Add changeset to bump rc version (#11503)
jerelmiller Jan 18, 2024
cfe6b78
Version Packages (rc) (#11504)
github-actions[bot] Jan 18, 2024
4464050
Add doc comment for `headers` property on ApolloClient (#11508)
jerelmiller Jan 22, 2024
25b83da
chore: update api-reports
phryneas Jan 22, 2024
2a67ffc
move hook documentation (and others) into code, improve documentation…
phryneas Jan 24, 2024
2964a13
Document new React APIs in code - Part 2 of 2 (#11523)
jerelmiller Jan 26, 2024
deffc69
Add docs component for API members that are marked as alpha/beta (#11…
jerelmiller Jan 26, 2024
cae1475
Merge remote-tracking branch 'origin/main' into release-3.9
jerelmiller Jan 30, 2024
2c836af
Exit prerelease
alessbell Jan 30, 2024
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
66 changes: 52 additions & 14 deletions .api-reports/api-report-cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ export abstract class ApolloCache<TSerialized> implements DataProxy {
abstract extract(optimistic?: boolean): TSerialized;
// (undocumented)
gc(): string[];
// Warning: (ae-forgotten-export) The symbol "getApolloCacheMemoryInternals" needs to be exported by the entry point index.d.ts
//
// @internal
getMemoryInternals?: typeof getApolloCacheMemoryInternals;
// (undocumented)
identify(object: StoreObject | Reference): string | undefined;
// (undocumented)
Expand Down Expand Up @@ -125,7 +129,7 @@ namespace Cache_2 {
}
// (undocumented)
interface ReadOptions<TVariables = any, TData = any> extends DataProxy.Query<TVariables, TData> {
// (undocumented)
// @deprecated (undocumented)
canonizeResults?: boolean;
// (undocumented)
optimistic: boolean;
Expand Down Expand Up @@ -195,9 +199,9 @@ export const cacheSlot: {
withValue<TResult, TArgs extends any[], TThis = any>(value: ApolloCache<any>, callback: (this: TThis, ...args: TArgs) => TResult, args?: TArgs | undefined, thisArg?: TThis | undefined): TResult;
};

// @public (undocumented)
// @public
export const canonicalStringify: ((value: any) => string) & {
reset: typeof resetCanonicalStringify;
reset(): void;
};

// @public (undocumented)
Expand Down Expand Up @@ -230,12 +234,14 @@ export namespace DataProxy {
}
// (undocumented)
export interface ReadFragmentOptions<TData, TVariables> extends Fragment<TVariables, TData> {
// @deprecated
canonizeResults?: boolean;
optimistic?: boolean;
returnPartialData?: boolean;
}
// (undocumented)
export interface ReadQueryOptions<TData, TVariables> extends Query<TVariables, TData> {
// @deprecated
canonizeResults?: boolean;
optimistic?: boolean;
returnPartialData?: boolean;
Expand Down Expand Up @@ -332,7 +338,10 @@ export abstract class EntityStore implements NormalizedCache {
has(dataId: string): boolean;
// (undocumented)
protected lookup(dataId: string, dependOnExistence?: boolean): StoreObject | undefined;
// (undocumented)
makeCacheKey(document: DocumentNode, callback: Cache_2.WatchCallback<any>, details: string): object;
makeCacheKey(selectionSet: SelectionSetNode, parent: string | StoreObject, varString: string | undefined, canonizeResults: boolean): object;
makeCacheKey(field: FieldNode, array: readonly any[], varString: string | undefined): object;
// @deprecated (undocumented)
makeCacheKey(...args: any[]): object;
// (undocumented)
merge(older: string | StoreObject, newer: StoreObject | string): void;
Expand Down Expand Up @@ -466,9 +475,38 @@ export interface FragmentRegistryAPI {
// (undocumented)
register(...fragments: DocumentNode[]): this;
// (undocumented)
resetCaches(): void;
// (undocumented)
transform<D extends DocumentNode>(document: D): D;
}

// @internal
const getApolloCacheMemoryInternals: (() => {
cache: {
fragmentQueryDocuments: number | undefined;
};
}) | undefined;

// @internal
const getInMemoryCacheMemoryInternals: (() => {
addTypenameDocumentTransform: {
cache: number;
}[];
inMemoryCache: {
executeSelectionSet: number | undefined;
executeSubSelectedArray: number | undefined;
maybeBroadcastWatch: number | undefined;
};
fragmentRegistry: {
findFragmentSpreads: number | undefined;
lookup: number | undefined;
transform: number | undefined;
};
cache: {
fragmentQueryDocuments: number | undefined;
};
}) | undefined;

// @public (undocumented)
export type IdGetter = (value: IdGetterObj) => string | undefined;

Expand Down Expand Up @@ -508,6 +546,10 @@ export class InMemoryCache extends ApolloCache<NormalizedCacheObject> {
resetResultCache?: boolean;
resetResultIdentities?: boolean;
}): string[];
// Warning: (ae-forgotten-export) The symbol "getInMemoryCacheMemoryInternals" needs to be exported by the entry point index.d.ts
//
// @internal
getMemoryInternals?: typeof getInMemoryCacheMemoryInternals;
// (undocumented)
identify(object: StoreObject | Reference): string | undefined;
// (undocumented)
Expand Down Expand Up @@ -540,13 +582,13 @@ export class InMemoryCache extends ApolloCache<NormalizedCacheObject> {

// @public (undocumented)
export interface InMemoryCacheConfig extends ApolloReducerConfig {
// (undocumented)
// @deprecated (undocumented)
canonizeResults?: boolean;
// (undocumented)
fragments?: FragmentRegistryAPI;
// (undocumented)
possibleTypes?: PossibleTypesMap;
// (undocumented)
// @deprecated (undocumented)
resultCacheMaxSize?: number;
// (undocumented)
resultCaching?: boolean;
Expand Down Expand Up @@ -840,9 +882,6 @@ export interface Reference {
readonly __ref: string;
}

// @public (undocumented)
function resetCanonicalStringify(): void;

// @public (undocumented)
type SafeReadonly<T> = T extends object ? Readonly<T> : T;

Expand Down Expand Up @@ -931,11 +970,10 @@ interface WriteContext extends ReadMergeModifyContext {

// Warnings were encountered during analysis:
//
// src/cache/inmemory/object-canon.ts:203:32 - (ae-forgotten-export) The symbol "resetCanonicalStringify" needs to be exported by the entry point index.d.ts
// src/cache/inmemory/policies.ts:98:3 - (ae-forgotten-export) The symbol "FragmentMap" needs to be exported by the entry point index.d.ts
// src/cache/inmemory/policies.ts:167:3 - (ae-forgotten-export) The symbol "KeySpecifier" needs to be exported by the entry point index.d.ts
// src/cache/inmemory/policies.ts:167:3 - (ae-forgotten-export) The symbol "KeyArgsFunction" needs to be exported by the entry point index.d.ts
// src/cache/inmemory/types.ts:132:3 - (ae-forgotten-export) The symbol "KeyFieldsFunction" needs to be exported by the entry point index.d.ts
// src/cache/inmemory/policies.ts:92:3 - (ae-forgotten-export) The symbol "FragmentMap" needs to be exported by the entry point index.d.ts
// src/cache/inmemory/policies.ts:161:3 - (ae-forgotten-export) The symbol "KeySpecifier" needs to be exported by the entry point index.d.ts
// src/cache/inmemory/policies.ts:161: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

// (No @packageDocumentation comment for this package)

Expand Down
Loading
Loading