Skip to content

Commit

Permalink
Merge pull request #221 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 Nov 8, 2024
2 parents 4280aa4 + 014b6aa commit 4be7e27
Show file tree
Hide file tree
Showing 53 changed files with 3,861 additions and 3,522 deletions.
12 changes: 6 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

Lint:
docker:
- image: cimg/node:22.6.0
- image: cimg/node:23.1.0
steps:
- checkout
- run: npm version
Expand All @@ -24,15 +24,15 @@ jobs:

Formatting:
docker:
- image: cimg/node:22.6.0
- image: cimg/node:23.1.0
steps:
- checkout
- run: npm ci
- run: npm run check:format

Tests:
docker:
- image: cimg/node:22.6.0
- image: cimg/node:23.1.0
parameters:
project:
type: string
Expand All @@ -54,7 +54,7 @@ jobs:

BuildTarball:
docker:
- image: cimg/node:22.6.0
- image: cimg/node:23.1.0
steps:
- checkout
- run: npm run ci:precheck
Expand All @@ -73,7 +73,7 @@ jobs:
react:
type: string
docker:
- image: cimg/node:22.6.0-browsers
- image: cimg/node:23.1.0-browsers
steps:
- checkout
- attach_workspace:
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
externalPackage:
type: string
docker:
- image: cimg/node:22.6.0
- image: cimg/node:23.1.0
steps:
- checkout
- attach_workspace:
Expand Down
19 changes: 0 additions & 19 deletions .github/workflows/docs-publish.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ jobs:
- name: Send a Slack notification on publish
if: steps.changesets.outcome == 'success'
id: slack
uses: slackapi/slack-github-action@v1.26.0
uses: slackapi/slack-github-action@v1.27.0
with:
# Slack channel id, channel name, or user id to post message
# See also: https://api.slack.com/methods/chat.postMessage#channels
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/publish-pr-releases.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Pull Request Prerelease

on:
pull_request:
push:
branches:
- "**"
tags:
- "!**"

jobs:
prerelease:
name: Pull Request Prerelease
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Setup Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x

- name: Install dependencies with cache
uses: bahmutov/npm-install@v1

- name: Build and publish to pkg.pr.new
run: npm run pkg-pr-new-publish
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
- name: Send a Slack notification on publish
if: steps.changesets.outcome == 'success' && steps.changesets.outputs.published == 'true'
id: slack
uses: slackapi/slack-github-action@v1.26.0
uses: slackapi/slack-github-action@v1.27.0
with:
# Slack channel id, channel name, or user id to post message
# See also: https://api.slack.com/methods/chat.postMessage#channels
Expand Down
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": 40251,
"import { ApolloClient, InMemoryCache, HttpLink } from \"dist/index.js\" (production)": 33061
"dist/apollo-client.min.cjs": 40266,
"import { ApolloClient, InMemoryCache, HttpLink } from \"dist/index.js\" (production)": 33060
}
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.11.9

### Patch Changes

- [#12110](https://github.com/apollographql/apollo-client/pull/12110) [`a3f95c6`](https://github.com/apollographql/apollo-client/commit/a3f95c6f7623060bbf68b418b0ab268fabc0c9b6) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Fix an issue where errors returned from a `fetchMore` call from a Suspense hook would cause a Suspense boundary to be shown indefinitely.

## 3.11.8

### Patch Changes
Expand Down
15 changes: 9 additions & 6 deletions ROADMAP.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 🔮 Apollo Client Ecosystem Roadmap

**Last updated: 2024-08-26**
**Last updated: 2024-11-04**

For up to date release notes, refer to the project's [Changelog](https://github.com/apollographql/apollo-client/blob/main/CHANGELOG.md).

Expand All @@ -17,16 +17,16 @@ For up to date release notes, refer to the project's [Changelog](https://github.

### Apollo Client

#### [3.12.0](https://github.com/apollographql/apollo-client/milestone/42) - October 7, 2024
_Release candidate - September 30, 2024_
#### [3.12.0](https://github.com/apollographql/apollo-client/milestone/42) - November 18, 2024
_Release candidate - November 11, 2024_

- Data masking
- Introduce a suspenseful `useFragment` that will suspend when the data is not yet loaded

#### Upcoming features

- Leaner client (under alternate entry point)
- Better types for `useQuery`/`useMutation`/`useSubscription`
- Introduce `useSuspenseFragment` that will suspend when the data is not yet loaded (experimental)

#### 4.0

Expand All @@ -36,20 +36,23 @@ _Release candidate - September 30, 2024_

- New documentation
- Subscription support (waiting for MSW WebSocket support to land)
- Better TypeScript support

### VSCode Extension

- Bug fixes and long-requested features
- Apollo Client Devtools integration

### GraphQL Tag

_no work in progress_
- Started 3.0 milestone planning

### Apollo Client DevTools

- Ongoing work with fixing error messages shown in devtools
- Add a memory panel to monitor Apollo Client devtools internal caches
- Connectors debugger

### Apollo Client NextJS

- New/more robust documentation
- Support for `@defer` in RSC
Empty file.
6 changes: 3 additions & 3 deletions docs/source/api/link/apollo-link-remove-typename.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ minVersion: 3.8.0

## Overview

When reusing data from a query as an argument to another GraphQL operation, `__typename` fields can cause errors. To avoid this, you can use the `removeTypenameFromVariables` link to automatically remove `__typename` fields from variables in operations.
When reusing data from a query as an argument to another GraphQL operation, `__typename` fields can cause errors. To avoid this, you can use the `removeTypenameFromVariables` link to automatically remove `__typename` fields from variables in operations.

## Remove `__typename` from all variables

Expand Down Expand Up @@ -78,8 +78,8 @@ const client = new ApolloClient({
});
```

If you're using [directional composition](./link/introduction#directional-composition),
for example, to [send a subscription to a websocket connection](../data/subscriptions#3-split-communication-by-operation-recommended),
If you're using [directional composition](/react/api/link/introduction#directional-composition),
for example, to [send a subscription to a websocket connection](/react/data/subscriptions#3-split-communication-by-operation-recommended),
place `removeTypenameLink` before `splitLink` to remove `__typename` from variables for all operations.

```ts
Expand Down
1 change: 1 addition & 0 deletions docs/source/api/link/community-links.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ Thank you to all the Apollo community members who have contributed custom Apollo
| [apollo-link-observable](https://github.com/dragozin/apollo-link-observable) | [@dragozin](https://github.com/dragozin) | Link that allows you to make side effects of graphql queries using [RxJS](http://github.com/ReactiveX/RxJS). |
| [apollo-multi-endpoint-link](https://github.com/habx/apollo-multi-endpoint-link) | [@habx](https://github.com/habx) | Add directive to redirect requests to right endpoint |
| [@grafbase/apollo-link](https://github.com/grafbase/playground/tree/main/packages/grafbase-apollo-link) | [@grafbase](https://github.com/grafbase) | Use GraphQL `@live` queries with Server-Sent Events.
| [apollo-link-printer](https://github.com/egorlem/apollo-link-printer) | [@egorlem](https://github.com/egorlem) | Pretty logger of Apollo GraphQL network operations.
2 changes: 1 addition & 1 deletion docs/source/api/link/persisted-queries.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Using persisted queries for safelisting has the following requirements:
- The [`@apollo/generate-persisted-query-manifest` package](https://www.npmjs.com/package/@apollo/generate-persisted-query-manifest)
- The [`@apollo/persisted-query-lists` package](https://www.npmjs.com/package/@apollo/persisted-query-lists)
- [GraphOS Router](/router) (v1.25.0+)
- [GraphOS Enterprise plan](/graphos/enterprise/)
- [GraphOS Enterprise plan](https://www.apollographql.com/pricing)

You can use APQ with the following versions of Apollo Client Web, Apollo Server, and Apollo Router Core:
- Apollo Client Web (v3.2.0+)
Expand Down
2 changes: 0 additions & 2 deletions docs/source/api/react/components.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,3 @@ The Subscription component accepts the following props. Only `subscription` is *
### Render prop function

<PropertySignatureTable canonicalReference="@apollo/client!SubscriptionResult:interface" idPrefix="subscriptionresult-interface" />

<SubscriptionResult3 />
Loading

0 comments on commit 4be7e27

Please sign in to comment.