Skip to content

Commit

Permalink
release preparations
Browse files Browse the repository at this point in the history
  • Loading branch information
phryneas committed Mar 21, 2024
1 parent da238f8 commit 9478716
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 15 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,23 @@ jobs:
yarn workspace @apollo/client-react-streaming exec npm pkg set "version=${{ inputs.version }}"
yarn workspace @apollo/client-react-streaming exec jq '{ version: .version, dependencies: .dependencies, peerDependencies: .peerDependencies }' package.json
- name: "@apollo/client-react-streaming: publish"
run: yarn workspace @apollo/client-react-streaming exec npm publish --access public --tag ${{ inputs.tag }} --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: "@apollo/experimental-nextjs-app-support: update version and dependencies"
run: |
yarn workspace @apollo/experimental-nextjs-app-support exec npm pkg set "dependencies[@apollo/client-react-streaming]=${{ inputs.version }}" "version=${{ inputs.version }}"
yarn workspace @apollo/experimental-nextjs-app-support exec jq '{ version: .version, dependencies: .dependencies, peerDependencies: .peerDependencies }' package.json
- name: Commit changes back
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Bump version to ${{ inputs.version }}"
push_options: ""
skip_dirty_check: false

- name: "@apollo/client-react-streaming: publish"
run: yarn workspace @apollo/client-react-streaming exec npm publish --access public --tag ${{ inputs.tag }} --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: "@apollo/experimental-nextjs-app-support: publish"
run: yarn workspace @apollo/experimental-nextjs-app-support exec npm publish --access public --tag ${{ inputs.tag }} --provenance
env:
Expand Down
2 changes: 1 addition & 1 deletion packages/client-react-streaming/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
"vitest": "1.2.1"
},
"peerDependencies": {
"@apollo/client": "^3.9.0",
"@apollo/client": "^3.9.6",
"react": "^18"
},
"dependencies": {
Expand Down
8 changes: 0 additions & 8 deletions packages/experimental-nextjs-app-support/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,6 @@ export default function RootLayout({
> ☝️ This will work even if your layout is a React Server Component and will also allow the children of the layout to be React Server Components.
> It just makes sure that all Client Components will have access to the same Apollo Client instance, shared through the `ApolloNextAppProvider`.
You can import the following Apollo Client hooks from `"@apollo/experimental-nextjs-app-support/ssr"` in your client components (make sure you are not importing these hooks from `@apollo/client` as this package wraps and re-exports them to support streaming SSR):

- `useQuery`
- `useSuspenseQuery`
- `useBackgroundQuery`
- `useReadQuery`
- `useFragment`

If you want to make the most of the streaming SSR features offered by React & the Next.js App Router, consider using the [`useSuspenseQuery`](https://www.apollographql.com/docs/react/api/react/hooks-experimental/#using-usesuspensequery_experimental) and [`useFragment`](https://www.apollographql.com/docs/react/api/react/hooks-experimental/#using-usefragment_experimental) hooks.

### Resetting singletons between tests.
Expand Down
2 changes: 1 addition & 1 deletion packages/experimental-nextjs-app-support/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
"vitest": "1.2.1"
},
"peerDependencies": {
"@apollo/client": "^3.9.0",
"@apollo/client": "^3.9.6",
"next": "^13.4.1 || ^14.0.0",
"react": "^18"
},
Expand Down

0 comments on commit 9478716

Please sign in to comment.