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

Create a new pull request by comparing changes across two branches #155

Merged
merged 9 commits into from
Sep 21, 2023
25 changes: 0 additions & 25 deletions .api-reports/api-report-react.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,6 @@ export interface BackgroundQueryHookOptions<TData = unknown, TVariables extends
queryKey?: string | number | any[];
// (undocumented)
skip?: boolean;
// (undocumented)
suspenseCache?: SuspenseCache;
}

// @public (undocumented)
Expand Down Expand Up @@ -1917,27 +1915,6 @@ export interface SubscriptionResult<TData = any, TVariables = any> {
variables?: TVariables;
}

// Warning: (ae-forgotten-export) The symbol "SuspenseCache_2" needs to be exported by the entry point index.d.ts
//
// @public (undocumented)
export class SuspenseCache extends SuspenseCache_2 {
constructor();
}

// @public (undocumented)
class SuspenseCache_2 {
// Warning: (ae-forgotten-export) The symbol "SuspenseCacheOptions" needs to be exported by the entry point index.d.ts
constructor(options?: SuspenseCacheOptions);
// (undocumented)
getQueryRef<TData = any>(cacheKey: CacheKey, createObservable: () => ObservableQuery<TData>): InternalQueryReference<TData>;
}

// @public (undocumented)
interface SuspenseCacheOptions {
// (undocumented)
autoDisposeTimeoutMs?: number;
}

// @public (undocumented)
export type SuspenseQueryHookFetchPolicy = Extract<WatchQueryFetchPolicy, "cache-first" | "network-only" | "no-cache" | "cache-and-network">;

Expand All @@ -1949,8 +1926,6 @@ export interface SuspenseQueryHookOptions<TData = unknown, TVariables extends Op
queryKey?: string | number | any[];
// (undocumented)
skip?: boolean;
// (undocumented)
suspenseCache?: SuspenseCache;
}

// @public (undocumented)
Expand Down
27 changes: 0 additions & 27 deletions .api-reports/api-report-react_hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,10 +314,6 @@ interface BackgroundQueryHookOptions<TData = unknown, TVariables extends Operati
queryKey?: string | number | any[];
// (undocumented)
skip?: boolean;
// Warning: (ae-forgotten-export) The symbol "SuspenseCache" needs to be exported by the entry point index.d.ts
//
// (undocumented)
suspenseCache?: SuspenseCache;
}

// Warning: (ae-forgotten-export) The symbol "BackgroundQueryHookOptions" needs to be exported by the entry point index.d.ts
Expand Down Expand Up @@ -1798,27 +1794,6 @@ interface SubscriptionResult<TData = any, TVariables = any> {
variables?: TVariables;
}

// Warning: (ae-forgotten-export) The symbol "SuspenseCache_2" needs to be exported by the entry point index.d.ts
//
// @public (undocumented)
class SuspenseCache extends SuspenseCache_2 {
constructor();
}

// @public (undocumented)
class SuspenseCache_2 {
// Warning: (ae-forgotten-export) The symbol "SuspenseCacheOptions" needs to be exported by the entry point index.d.ts
constructor(options?: SuspenseCacheOptions);
// (undocumented)
getQueryRef<TData = any>(cacheKey: CacheKey, createObservable: () => ObservableQuery<TData>): InternalQueryReference<TData>;
}

// @public (undocumented)
interface SuspenseCacheOptions {
// (undocumented)
autoDisposeTimeoutMs?: number;
}

// @public (undocumented)
type SuspenseQueryHookFetchPolicy = Extract<WatchQueryFetchPolicy, "cache-first" | "network-only" | "no-cache" | "cache-and-network">;

Expand All @@ -1832,8 +1807,6 @@ interface SuspenseQueryHookOptions<TData = unknown, TVariables extends Operation
queryKey?: string | number | any[];
// (undocumented)
skip?: boolean;
// (undocumented)
suspenseCache?: SuspenseCache;
}

// @public (undocumented)
Expand Down
25 changes: 0 additions & 25 deletions .api-reports/api-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,6 @@ export interface BackgroundQueryHookOptions<TData = unknown, TVariables extends
queryKey?: string | number | any[];
// (undocumented)
skip?: boolean;
// (undocumented)
suspenseCache?: SuspenseCache;
}

// @public (undocumented)
Expand Down Expand Up @@ -2529,27 +2527,6 @@ export interface SubscriptionResult<TData = any, TVariables = any> {
variables?: TVariables;
}

// Warning: (ae-forgotten-export) The symbol "SuspenseCache_2" needs to be exported by the entry point index.d.ts
//
// @public (undocumented)
export class SuspenseCache extends SuspenseCache_2 {
constructor();
}

// @public (undocumented)
class SuspenseCache_2 {
// Warning: (ae-forgotten-export) The symbol "SuspenseCacheOptions" needs to be exported by the entry point index.d.ts
constructor(options?: SuspenseCacheOptions);
// (undocumented)
getQueryRef<TData = any>(cacheKey: CacheKey, createObservable: () => ObservableQuery<TData>): InternalQueryReference<TData>;
}

// @public (undocumented)
interface SuspenseCacheOptions {
// (undocumented)
autoDisposeTimeoutMs?: number;
}

// @public (undocumented)
export type SuspenseQueryHookFetchPolicy = Extract<WatchQueryFetchPolicy, "cache-first" | "network-only" | "no-cache" | "cache-and-network">;

Expand All @@ -2561,8 +2538,6 @@ export interface SuspenseQueryHookOptions<TData = unknown, TVariables extends Op
queryKey?: string | number | any[];
// (undocumented)
skip?: boolean;
// (undocumented)
suspenseCache?: SuspenseCache;
}

// @public (undocumented)
Expand Down
5 changes: 5 additions & 0 deletions .changeset/pretty-readers-lick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@apollo/client": patch
---

Remove (already throwing) SuspenseCache export that should have been removed in 3.8.
5 changes: 0 additions & 5 deletions .changeset/tall-otters-wave.md

This file was deleted.

10 changes: 5 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

Lint:
docker:
- image: cimg/node:20.5.1
- image: cimg/node:20.6.1
steps:
- checkout
- run: npm version
Expand All @@ -21,15 +21,15 @@ jobs:

Formatting:
docker:
- image: cimg/node:20.5.1
- image: cimg/node:20.6.1
steps:
- checkout
- run: npm ci
- run: npm run check:format

Tests:
docker:
- image: cimg/node:20.5.1
- image: cimg/node:20.6.1
steps:
- checkout
- run: npm run ci:precheck
Expand All @@ -47,7 +47,7 @@ jobs:

BuildTarball:
docker:
- image: cimg/node:20.5.1
- image: cimg/node:20.6.1
steps:
- checkout
- run: npm run ci:precheck
Expand All @@ -64,7 +64,7 @@ jobs:
framework:
type: string
docker:
- image: cimg/node:20.5.1
- image: cimg/node:20.6.1
steps:
- checkout
- attach_workspace:
Expand Down
41 changes: 6 additions & 35 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Get package version from package.json
id: package-version
uses: martinbeentjes/npm-get-version-action@main

- name: Get npm tag from pre.json
id: tag
uses: notiz-dev/github-action-json-property@v0.2.0
with:
path: ".changeset/pre.json"
prop_path: "tag"

- name: Publish to npm + GitHub
id: changesets
# Only run publish if we're still in pre mode and the last commit was
Expand All @@ -84,11 +73,15 @@ jobs:
uses: changesets/action@v1
with:
version: echo "This step should never version"
publish: npm run changeset-publish -- --tag next # by default, this will publish to npm and GitHub
publish: npm run changeset-publish # by default, this will publish to npm and GitHub
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Tag release with next on npm
if: steps.changesets.outcome == 'success'
run: npm dist-tag add @apollo/client@${{ fromJson(steps.changesets.outputs.publishedPackages)[0].version }} next

- name: Send a Slack notification on publish
if: steps.changesets.outcome == 'success'
id: slack
Expand All @@ -99,37 +92,15 @@ jobs:
# You can pass in multiple channels to post to by providing
# a comma-delimited list of channel IDs
channel-id: "C01PS0CB41G"
# For posting a simple plain text message
payload: |
{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "A new version of `@apollo/client` was released :rocket:"
"text": "A new version of `@apollo/client` was released: <https://github.com/apollographql/apollo-client/releases/tag/v${{ fromJson(steps.changesets.outputs.publishedPackages)[0].version }}|v${{ fromJson(steps.changesets.outputs.publishedPackages)[0].version }}> :rocket:"
}
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Version:*\n`${{ steps.package-version.outputs.current-version}}`"
},
{
"type": "mrkdwn",
"text": "*Tag:*\n`${{steps.tag.outputs.prop}}`"
},
{
"type": "mrkdwn",
"text": "*GitHub release:*\nN/A"
},
{
"type": "mrkdwn",
"text": "*npm releases:*\n<https://www.npmjs.com/package/@apollo/client?activeTab=versions|link>"
}
]
}
]
}
Expand Down
4 changes: 2 additions & 2 deletions .size-limit.cjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const checks = [
{
path: "dist/apollo-client.min.cjs",
limit: "38190",
limit: "37986",
},
{
path: "dist/main.cjs",
Expand All @@ -10,7 +10,7 @@ const checks = [
{
path: "dist/index.js",
import: "{ ApolloClient, InMemoryCache, HttpLink }",
limit: "32044",
limit: "32019",
},
...[
"ApolloProvider",
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @apollo/client

## 3.8.4

### Patch Changes

- [#11195](https://github.com/apollographql/apollo-client/pull/11195) [`9e59b251d`](https://github.com/apollographql/apollo-client/commit/9e59b251d4d63afb83d9821889f87c71c4adde0f) Thanks [@phryneas](https://github.com/phryneas)! - For `invariant.log` etc., error arguments are now serialized correctly in the link to the error page.

## 3.8.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion docs/source/networking/authentication.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ VueJS example:
```js
import ApolloClient from "apollo-client";
import { HttpLink } from "apollo-link-http";
import { ApolloLink, concat, split } from "apollo-link";
import { ApolloLink, concat } from "apollo-link";
import { InMemoryCache } from "apollo-cache-inmemory";
import { getMainDefinition } from "apollo-utilities";

Expand Down
Loading