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 V0.11.0 #285

Merged
merged 14 commits into from
May 29, 2024
Merged

Release V0.11.0 #285

merged 14 commits into from
May 29, 2024

Conversation

phryneas
Copy link
Member

No description provided.

Copy link

vercel bot commented Apr 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
apollo-client-nextjs-experimental-nextjs-app-support ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 18, 2024 9:01am

Copy link
Contributor

github-actions bot commented Apr 18, 2024

size-limit report 📦

Path Size
{ ApolloNextAppProvider, NextSSRApolloClient, NextSSRInMemoryCache } from '@apollo/experimental-nextjs-app-support/ssr' (Browser ESM) 0 B (-100% 🔽)
{ WrapApolloProvider, ApolloClient, InMemoryCache } from '@apollo/client-react-streaming' (Browser ESM) 1.7 KB (+21.32% 🔺)
{ buildManualDataTransport } from '@apollo/client-react-streaming/manual-transport' (Browser ESM) 2.87 KB (-54.17% 🔽)
@apollo/client-react-streaming (Browser ESM) 2.41 KB (+13.03% 🔺)
@apollo/client-react-streaming (SSR ESM) 7.25 KB (+314.53% 🔺)
@apollo/client-react-streaming (RSC ESM) 6.42 KB (+370.73% 🔺)
@apollo/client-react-streaming/manual-transport (Browser ESM) 3.08 KB (-52.18% 🔽)
@apollo/client-react-streaming/manual-transport (SSR ESM) 8.2 KB (+29.24% 🔺)
@apollo/experimental-nextjs-app-support/ssr (Browser ESM) 0 B (-100% 🔽)
@apollo/experimental-nextjs-app-support/ssr (SSR ESM) 0 B (-100% 🔽)
@apollo/experimental-nextjs-app-support/ssr (RSC ESM) 0 B (-100% 🔽)
@apollo/experimental-nextjs-app-support/rsc (RSC ESM) 5.72 KB (+835.95% 🔺)
{ ApolloNextAppProvider, ApolloClient, InMemoryCache } from '@apollo/experimental-nextjs-app-support' (Browser ESM) 4.47 KB (+100% 🔺)
@apollo/experimental-nextjs-app-support (Browser ESM) 5.06 KB (+100% 🔺)
@apollo/experimental-nextjs-app-support (SSR ESM) 10.23 KB (+100% 🔺)
@apollo/experimental-nextjs-app-support (RSC ESM) 6.46 KB (+100% 🔺)

Copy link

relativeci bot commented Apr 18, 2024

#219 Bundle Size — 1.07MiB (+6.54%).

6e76e6d(current) vs afa5bcc main#189(baseline)

Warning

Bundle contains 1 duplicate package – View duplicate packages

Bundle metrics  Change 9 changes Regression 3 regressions Improvement 1 improvement
                 Current
#219
     Baseline
#189
Regression  Initial JS 939.02KiB(+5.33%) 891.55KiB
Regression  Initial CSS 70B(+100%) 0B
Change  Cache Invalidation 85.99% 0.04%
Change  Chunks 32(+33.33%) 24
Change  Assets 56(+24.44%) 45
Change  Modules 591(+15.43%) 512
Regression  Duplicate Modules 110(+266.67%) 30
Change  Duplicate Code 7.61%(+489.92%) 1.29%
Improvement  Packages 26(-10.34%) 29
No change  Duplicate Packages 1 1
Bundle size by type  Change 3 changes Regression 3 regressions
                 Current
#219
     Baseline
#189
Regression  JS 1.06MiB (+6.31%) 1MiB
Regression  Other 8.67KiB (+44.68%) 5.99KiB
Regression  CSS 70B (+100%) 0B

Bundle analysis reportBranch v0.11.0Project dashboard

with the `createInjectionTransformStream` and `pipeReaderToResponse` helpers
Copy link

netlify bot commented Apr 25, 2024

Deploy Preview for apollo-client-nextjs-docmodel ready!

Name Link
🔨 Latest commit 6e76e6d
🔍 Latest deploy log https://app.netlify.com/sites/apollo-client-nextjs-docmodel/deploys/6657015fa4dfa30008a480f0
😎 Deploy Preview https://deploy-preview-285--apollo-client-nextjs-docmodel.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@phryneas
Copy link
Member Author

/release:pr

Copy link
Contributor

A new release has been made for this PR. You can install the package you need using one of

  • npm i @apollo/experimental-nextjs-app-support@0.0.0-commit-release.0.1715696100.8856b72
  • npm i @apollo/[email protected]

* ApolloClient: make browser event-replaying logic available in SSR

* RSC preloading mechanism prototype

* fix build, update expected shape

* remove console.log

* progress

* [WIP] queryRef

* tests for both notations

* fix up import

* different resolutions

* test fixups

* integrate `useQueryRefHandlers`

* typings

* fix up test
see apollographql/apollo-client#11772

* merge fixup

* more fixup

* refactor queryRef handling

* add test about referential assumptions

* schema adjustments

* bind `PreloadQuery` to `registerApolloClient`

* move `getClient` into the promise chain

* trigger CI

* adjust shape

* update AC build

* `gql(print(gql`

* pin types

* tweaks

* udpate lockfile

* forbid `nextFetchPolicy` in `PreloadQuery`

* fix up build, bump dep

* use uuid, not useId

* update urls

* disable all kinds of minification

* change transport to events

* simulate GraphQL error, not network error

* use `query` in a test

* undo disabling minification

* add clarifying comment

* Revert "simulate GraphQL error, not network error"

This reverts commit c8a2ad5.

* prevent unhandled promise rejections

* debugging

* Revert "undo disabling minification"

This reverts commit 00585ea.

* test?

* clean up debugging things

* update dependencies

* more version pinning

* update lockfile even more

* also update `react-server-dom-webpack`

* adjust react version for vite-streaming

* TransportedQueryRef: inherit QueryReferenceBase

* split `TransportedQueryReference` type

* queryOptions as props on `PreloadQuery`

* Update packages/client-react-streaming/src/DataTransportAbstraction/WrappedApolloClient.tsx

Co-authored-by: Jerel Miller <[email protected]>

* adjust generic name and comment

* change to QueryRef base type

* rename command to match parent project

* update dependency "@apollo/client": "^3.10.4"

---------

Co-authored-by: Jerel Miller <[email protected]>
This unifies `@apollo/experimental-nextjs-app-support/rsc` and `@apollo/experimental-nextjs-app-support/ssr` into `@apollo/experimental-nextjs-app-support`.

Once we rename the package to remove the `experimental` label, this will be the only entry point.

Also, some imports are changed:
* the `useQuery`/`useSuspenseQuery` etc. hooks have been dropped. They should be imported from `@apollo/client` instead.
* `NextSSRApolloClient` has been renamed to `ApolloClient` and is available in different variations from all environments, including RSC.
* `NextSSRInMemoryCache` has been renamed to `InMemoryCache` and is available in different variations from all environments, including RSC.
* `resetNextSSRApolloSingletons` has been renamed to `resetApolloClientSingletons`
* Support [email protected]

* adjust lockfiles

---------

Co-authored-by: Lenz Weber-Tronic <[email protected]>
@phryneas
Copy link
Member Author

/release:pr

Copy link
Contributor

A new release has been made for this PR. You can install the package you need using one of

  • npm i @apollo/experimental-nextjs-app-support@0.0.0-commit-release.0.1716900818.5757a9c
  • npm i @apollo/[email protected]

…loClient/InMemoryCache (#302)

* Use a symbol property instead of instanceOf

* fix up test

* extract assertInstance function

* Update packages/client-react-streaming/src/importErrors.test.tsx

Co-authored-by: Jerel Miller <[email protected]>

---------

Co-authored-by: Jerel Miller <[email protected]>
* Add deprecation messages to moved exports.

* fixup

* update wording as per review
* update README

* anchor

* Apply suggestions from code review

Co-authored-by: Jerel Miller <[email protected]>

* review feedback

* clarification

---------

Co-authored-by: Jerel Miller <[email protected]>
@phryneas phryneas marked this pull request as ready for review May 29, 2024 09:59
@phryneas phryneas requested a review from a team as a code owner May 29, 2024 09:59
@phryneas phryneas merged commit 98e0759 into main May 29, 2024
20 checks passed
@phryneas phryneas deleted the v0.11.0 branch May 29, 2024 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants