Skip to content

Commit

Permalink
Merge pull request #195 from apollographql/main
Browse files Browse the repository at this point in the history
Create a new pull request by comparing changes across two branches
  • Loading branch information
GulajavaMinistudio authored Feb 19, 2024
2 parents b1ecf3e + f19868f commit b4dfd46
Show file tree
Hide file tree
Showing 13 changed files with 553 additions and 77 deletions.
2 changes: 1 addition & 1 deletion .api-reports/api-report-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ export interface MockedResponse<TData = Record<string, any>, TVariables = Record
// (undocumented)
maxUsageCount?: number;
// (undocumented)
newData?: ResultFunction<FetchResult>;
newData?: ResultFunction<FetchResult<TData>, TVariables>;
// (undocumented)
request: GraphQLRequest<TVariables>;
// (undocumented)
Expand Down
2 changes: 1 addition & 1 deletion .api-reports/api-report-testing_core.md
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ export interface MockedResponse<TData = Record<string, any>, TVariables = Record
// (undocumented)
maxUsageCount?: number;
// (undocumented)
newData?: ResultFunction<FetchResult>;
newData?: ResultFunction<FetchResult<TData>, TVariables>;
// (undocumented)
request: GraphQLRequest<TVariables>;
// (undocumented)
Expand Down
5 changes: 0 additions & 5 deletions .changeset/tiny-vans-draw.md

This file was deleted.

4 changes: 2 additions & 2 deletions .size-limits.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"dist/apollo-client.min.cjs": 39042,
"import { ApolloClient, InMemoryCache, HttpLink } from \"dist/index.js\" (production)": 32550
"dist/apollo-client.min.cjs": 39075,
"import { ApolloClient, InMemoryCache, HttpLink } from \"dist/index.js\" (production)": 32584
}
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# @apollo/client

## 3.9.5

### Patch Changes

- [#11595](https://github.com/apollographql/apollo-client/pull/11595) [`8c20955`](https://github.com/apollographql/apollo-client/commit/8c20955874562e5b2ab35557325e047b059bc4fc) Thanks [@phryneas](https://github.com/phryneas)! - Bumps the dependency `rehackt` to 0.0.5

- [#11592](https://github.com/apollographql/apollo-client/pull/11592) [`1133469`](https://github.com/apollographql/apollo-client/commit/1133469bd91ff76b9815e815a454a79d8e23a9bc) Thanks [@Stephen2](https://github.com/Stephen2)! - Strengthen `MockedResponse.newData` type

- [#11579](https://github.com/apollographql/apollo-client/pull/11579) [`1ba2fd9`](https://github.com/apollographql/apollo-client/commit/1ba2fd919f79dfdc7b9d3f7d1a7aa5918e648349) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Fix issue where partial data is reported to `useQuery` when using `notifyOnNetworkStatusChange` after it errors while another overlapping query succeeds.

- [#11579](https://github.com/apollographql/apollo-client/pull/11579) [`1ba2fd9`](https://github.com/apollographql/apollo-client/commit/1ba2fd919f79dfdc7b9d3f7d1a7aa5918e648349) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Fix an issue where a partial cache write for an errored query would result in automatically refetching that query.

- [#11562](https://github.com/apollographql/apollo-client/pull/11562) [`65ab695`](https://github.com/apollographql/apollo-client/commit/65ab695470741e8dcaef1ebd7742c3c397526354) Thanks [@mspiess](https://github.com/mspiess)! - Mocks with an infinite delay no longer require result or error

## 3.9.4

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions docs/source/api/core/ApolloClient.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ The `ApolloClient` class encapsulates Apollo's core client-side API. It backs al

<DocBlock canonicalReference={"@apollo/client!ApolloClient:constructor(1)"} />

Takes an `ApolloClientOptions` parameter that supports the [fields listed below](#ApolloClientOptions).
Takes an `ApolloClientOptions` parameter that supports the [fields listed below](#apolloclientoptions).

Returns an initialized `ApolloClient` object.

#### Example

<Example canonicalReference="@apollo/client!ApolloClient:constructor(1)" />

For more information on the `defaultOptions` object, see the [Default Options](#DefaultOptions) section below.
For more information on the `defaultOptions` object, see the [Default Options](#defaultoptions) section below.

## Functions

Expand Down
110 changes: 55 additions & 55 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apollo/client",
"version": "3.9.4",
"version": "3.9.5",
"description": "A fully-featured caching GraphQL client.",
"private": true,
"keywords": [
Expand Down Expand Up @@ -99,20 +99,20 @@
"hoist-non-react-statics": "^3.3.2",
"optimism": "^0.18.0",
"prop-types": "^15.7.2",
"rehackt": "0.0.4",
"rehackt": "0.0.5",
"response-iterator": "^0.2.6",
"symbol-observable": "^4.0.0",
"ts-invariant": "^0.10.3",
"tslib": "^2.3.0",
"zen-observable-ts": "^1.2.5"
},
"devDependencies": {
"@arethetypeswrong/cli": "0.13.8",
"@arethetypeswrong/cli": "0.13.10",
"@babel/parser": "7.23.9",
"@changesets/changelog-github": "0.5.0",
"@changesets/cli": "2.27.1",
"@graphql-tools/schema": "10.0.2",
"@microsoft/api-extractor": "7.40.1",
"@microsoft/api-extractor": "7.40.2",
"@rollup/plugin-node-resolve": "11.2.1",
"@size-limit/esbuild-why": "11.0.2",
"@size-limit/preset-small-lib": "11.0.2",
Expand All @@ -127,9 +127,9 @@
"@types/hoist-non-react-statics": "3.3.5",
"@types/jest": "29.5.12",
"@types/lodash": "4.14.202",
"@types/node": "20.11.17",
"@types/node": "20.11.19",
"@types/node-fetch": "2.6.11",
"@types/react": "18.2.55",
"@types/react": "18.2.56",
"@types/react-dom": "18.2.19",
"@types/relay-runtime": "14.1.23",
"@types/use-sync-external-store": "0.0.6",
Expand Down Expand Up @@ -172,7 +172,7 @@
"rxjs": "7.8.1",
"size-limit": "11.0.2",
"subscriptions-transport-ws": "0.11.0",
"terser": "5.27.0",
"terser": "5.27.1",
"ts-api-utils": "1.2.1",
"ts-jest": "29.1.2",
"ts-jest-resolver": "2.0.1",
Expand All @@ -181,7 +181,7 @@
"typedoc": "0.25.0",
"typescript": "5.3.3",
"wait-for-observables": "1.0.3",
"web-streams-polyfill": "3.3.2",
"web-streams-polyfill": "3.3.3",
"whatwg-fetch": "3.6.20"
},
"publishConfig": {
Expand Down
Loading

0 comments on commit b4dfd46

Please sign in to comment.