From 4ca6faae725452934dec3faee22feb5a4cf671ad Mon Sep 17 00:00:00 2001 From: Phil Pluckthun Date: Sun, 3 May 2020 23:45:35 +0100 Subject: [PATCH] Add deprecation note --- .changeset/red-brooms-drive.md | 5 +++++ exchanges/suspense/README.md | 29 +++++++++-------------------- 2 files changed, 14 insertions(+), 20 deletions(-) create mode 100644 .changeset/red-brooms-drive.md diff --git a/.changeset/red-brooms-drive.md b/.changeset/red-brooms-drive.md new file mode 100644 index 0000000000..5f0042267f --- /dev/null +++ b/.changeset/red-brooms-drive.md @@ -0,0 +1,5 @@ +--- +'@urql/exchange-suspense': minor +--- + +Add deprecation notice, as exchange isn't as useful as expected and unstable diff --git a/exchanges/suspense/README.md b/exchanges/suspense/README.md index fc4e8f773a..ddba6f2f0a 100644 --- a/exchanges/suspense/README.md +++ b/exchanges/suspense/README.md @@ -1,18 +1,8 @@ -

@urql/exchange-suspense

+

@urql/exchange-suspense (deprecated)

An exchange for client-side React Suspense support in urql -

- - NPM Version - - - Minified gzip size - - - Maintenance Status -

+
`@urql/exchange-suspense` is an exchange for the [`urql`](../../README.md) GraphQL client that allows the use of React Suspense on the client-side with `urql`'s built-in suspense mode. @@ -23,10 +13,13 @@ suspense on the server. But since `` is mainly intended for client-side use it made sense to build and publish this exchange, which allows you to try out `urql` and suspense in your React app! -> ⚠️ Note: React's Suspense feature is currently unstable and may still change. -> This exchange is experimental and demonstrates how `urql` already supports and -> interacts with client-side suspense and how it may behave in the future, when React -> Suspense ships and becomes stable. You may use it, but do so at your own risk! +> ⚠️ **\*Deprecated**: +> This package is deprecated! Usage of client-side suspense with `urql` isn't recommended anymore +> and this packages has been marked as _deprecated_ after being _experimental_, since all it allows +> for is to use Suspense as a fancier loading boundary, which isn't its intended use. +> This exchange may still be useful when used with care, but it's worth keeping in mind that the +> suspense patterns in `urql` for the client-side may change. +> Suspense-mode usage for SSR remains unchanged and undeprecated however. ## Quick Start Guide @@ -157,7 +150,3 @@ const client = createClient({ ].filter(Boolean), }); ``` - -## Maintenance Status - -**Experimental:** This project is quite new. We're not sure what our ongoing maintenance plan for this project will be. Bug reports, feature requests and pull requests are welcome. If you like this project, let us know by starring the repo!