Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.

chore: cleanup readmes for the new repo (#2810)

Changed files
+23 -45
docs
exchanges
context
execute
graphcache
packages
preact-urql
site
src
screens
home
storybook-addon
vue-urql
scripts
changesets
+2 -10
README.md
···
<a href="https://github.com/urql-graphql/urql/actions/workflows/ci.yml">
<img alt="CI Status" src="https://github.com/urql-graphql/urql/actions/workflows/ci.yml/badge.svg?branch=main" />
</a>
-
<a href="https://www.npmjs.com/package/urql">
<img alt="Weekly downloads" src="https://badgen.net/npm/dw/urql?color=blue" />
</a>
<a href="https://formidable.com/open-source/urql/docs/">
···
## โœจ Features
-
- ๐Ÿ“ฆ **One package** to get a working GraphQL client in React, Preact, and Svelte
- โš™๏ธ Fully **customisable** behaviour [via "exchanges"](https://formidable.com/open-source/urql/docs/advanced/authoring-exchanges/)
- ๐Ÿ—‚ Logical but simple default behaviour and document caching
- ๐ŸŒฑ Normalized caching via [`@urql/exchange-graphcache`](https://formidable.com/open-source/urql/docs/graphcache)
···
you can take it from getting started with your first GraphQL project all the way to building complex apps and experimenting with GraphQL clients.
**๐Ÿ“ƒ For more information, [check out the docs](https://formidable.com/open-source/urql/docs/).**
-
-
## Installation
-
-
```sh
-
yarn add urql graphql
-
# or
-
npm install --save urql graphql
-
```
## ๐Ÿ™Œ Contributing
···
<a href="https://github.com/urql-graphql/urql/actions/workflows/ci.yml">
<img alt="CI Status" src="https://github.com/urql-graphql/urql/actions/workflows/ci.yml/badge.svg?branch=main" />
</a>
+
<a href="https://www.npmjs.com/package/@urql/core">
<img alt="Weekly downloads" src="https://badgen.net/npm/dw/urql?color=blue" />
</a>
<a href="https://formidable.com/open-source/urql/docs/">
···
## โœจ Features
+
- ๐Ÿ“ฆ **One package** to get a working GraphQL client in React, Preact, Vue, and Svelte
- โš™๏ธ Fully **customisable** behaviour [via "exchanges"](https://formidable.com/open-source/urql/docs/advanced/authoring-exchanges/)
- ๐Ÿ—‚ Logical but simple default behaviour and document caching
- ๐ŸŒฑ Normalized caching via [`@urql/exchange-graphcache`](https://formidable.com/open-source/urql/docs/graphcache)
···
you can take it from getting started with your first GraphQL project all the way to building complex apps and experimenting with GraphQL clients.
**๐Ÿ“ƒ For more information, [check out the docs](https://formidable.com/open-source/urql/docs/).**
## ๐Ÿ™Œ Contributing
+8 -10
docs/advanced/server-side-rendering.md
···
`next-urql`. The `next-urql` package includes setup for `react-ssr-prepass` already, which automates
a lot of the complexity of setting up server-side rendering with `urql`.
-
We have a custom integration with [`Next.js`](https://nextjs.org/), being [`next-urql`](https://github.com/FormidableLabs/urql/tree/main/packages/next-urql)
this integration contains convenience methods specifically for `Next.js`.
These will simplify the above setup for SSR.
···
url: 'http://localhost:3000/graphql',
exchanges: [dedupExchange, cacheExchange, ssrExchange, fetchExchange],
}),
-
{ ssr: true }, // Enables server-side rendering using `getInitialProps`
)(Index);
```
···
const ssrCache = ssrExchange({ isClient: false });
const client = initUrqlClient(
{
-
url: "your-url",
exchanges: [dedupExchange, cacheExchange, ssrCache, fetchExchange],
},
false
···
export default withUrqlClient(
ssr => ({
url: 'your-url',
-
}),
// Cannot specify { ssr: true } here so we don't wrap our component in getInitialProps
)(Todos);
```
···
const ssrCache = ssrExchange({ isClient: false });
const client = initUrqlClient(
{
-
url: "", // not needed without `fetchExchange`
exchanges: [
dedupExchange,
cacheExchange,
···
};
}
-
export default withUrqlClient(
-
ssr => ({
-
url: 'your-url',
-
}),
-
)(Todos);
```
Direct schema execution skips one network round trip by accessing your resolvers directly
···
`next-urql`. The `next-urql` package includes setup for `react-ssr-prepass` already, which automates
a lot of the complexity of setting up server-side rendering with `urql`.
+
We have a custom integration with [`Next.js`](https://nextjs.org/), being [`next-urql`](https://github.com/urql-graphql/urql/tree/main/packages/next-urql)
this integration contains convenience methods specifically for `Next.js`.
These will simplify the above setup for SSR.
···
url: 'http://localhost:3000/graphql',
exchanges: [dedupExchange, cacheExchange, ssrExchange, fetchExchange],
}),
+
{ ssr: true } // Enables server-side rendering using `getInitialProps`
)(Index);
```
···
const ssrCache = ssrExchange({ isClient: false });
const client = initUrqlClient(
{
+
url: 'your-url',
exchanges: [dedupExchange, cacheExchange, ssrCache, fetchExchange],
},
false
···
export default withUrqlClient(
ssr => ({
url: 'your-url',
+
})
// Cannot specify { ssr: true } here so we don't wrap our component in getInitialProps
)(Todos);
```
···
const ssrCache = ssrExchange({ isClient: false });
const client = initUrqlClient(
{
+
url: '', // not needed without `fetchExchange`
exchanges: [
dedupExchange,
cacheExchange,
···
};
}
+
export default withUrqlClient(ssr => ({
+
url: 'your-url',
+
}))(Todos);
```
Direct schema execution skips one network round trip by accessing your resolvers directly
-4
exchanges/context/README.md
···
],
});
```
-
-
## Maintenance Status
-
-
**Active:** Formidable is actively working on this project, and we expect to continue for work for the foreseeable future. Bug reports, feature requests and pull requests are welcome.
···
],
});
```
-4
exchanges/execute/README.md
···
}),
// ...
```
-
-
## Maintenance Status
-
-
**Active:** Formidable is actively working on this project, and we expect to continue for work for the foreseeable future. Bug reports, feature requests and pull requests are welcome.
···
}),
// ...
```
+1 -5
exchanges/graphcache/README.md
···
<p align="center"><strong>An exchange for normalized caching support in <code>urql</code></strong></p>
-
`@urql/exchange-graphcache` is a normalized cache exchange for the [`urql`](https://github.com/FormidableLabs/urql) GraphQL client.
This is a drop-in replacement for the default `cacheExchange` that, instead of document
caching, caches normalized data by keys and connections between data.
···
],
});
```
-
-
## Maintenance Status
-
-
**Active:** Formidable is actively working on this project, and we expect to continue for work for the foreseeable future. Bug reports, feature requests and pull requests are welcome.
···
<p align="center"><strong>An exchange for normalized caching support in <code>urql</code></strong></p>
+
`@urql/exchange-graphcache` is a normalized cache exchange for the [`urql`](https://github.com/urql-graphql/urql) GraphQL client.
This is a drop-in replacement for the default `cacheExchange` that, instead of document
caching, caches normalized data by keys and connections between data.
···
],
});
```
+1 -1
exchanges/graphcache/help.md
···
If you are looking at this in a browser
-
- ...and your URL looks like this: `github.com/FormidableLabs/urql/blob/main/exchanges/graphcache/help.md#15`
- ...in the URL, replace `exchanges/graphcache/help.md` with `docs/graphcache/errors.md`
- ...and keep the `#15`
- ...and then you will get help with your error!
···
If you are looking at this in a browser
+
- ...and your URL looks like this: `github.com/urql-graphql/urql/blob/main/exchanges/graphcache/help.md#15`
- ...in the URL, replace `exchanges/graphcache/help.md` with `docs/graphcache/errors.md`
- ...and keep the `#15`
- ...and then you will get help with your error!
+2 -2
exchanges/graphcache/package.json
···
"description": "A normalized and configurable cache exchange for urql",
"sideEffects": false,
"homepage": "https://formidable.com/open-source/urql/docs/graphcache",
-
"bugs": "https://github.com/FormidableLabs/urql/issues",
"license": "MIT",
"repository": {
"type": "git",
-
"url": "https://github.com/FormidableLabs/urql.git",
"directory": "exchanges/graphcache"
},
"keywords": [
···
"description": "A normalized and configurable cache exchange for urql",
"sideEffects": false,
"homepage": "https://formidable.com/open-source/urql/docs/graphcache",
+
"bugs": "https://github.com/urql-graphql/urql/issues",
"license": "MIT",
"repository": {
"type": "git",
+
"url": "https://github.com/urql-graphql/urql.git",
"directory": "exchanges/graphcache"
},
"keywords": [
+1 -1
packages/preact-urql/README.md
···
<a href="https://bundlephobia.com/result?p=@urql/preact">
<img alt="Minified gzip size" src="https://img.shields.io/bundlephobia/minzip/@urql/preact.svg?label=gzip%20size" />
</a>
-
<a href="https://github.com/FormidableLabs/urql/discussions">
<img alt="GitHub Discussions: Chat With Us" src="https://badgen.net/badge/discussions/chat%20with%20us/purple" />
</a>
<br />
···
<a href="https://bundlephobia.com/result?p=@urql/preact">
<img alt="Minified gzip size" src="https://img.shields.io/bundlephobia/minzip/@urql/preact.svg?label=gzip%20size" />
</a>
+
<a href="https://github.com/urql-graphql/urql/discussions">
<img alt="GitHub Discussions: Chat With Us" src="https://badgen.net/badge/discussions/chat%20with%20us/purple" />
</a>
<br />
+3 -3
packages/site/src/constants.js
···
const constants = {
docsTitle: 'URQL',
-
githubIssues: 'https://www.github.com/FormidableLabs/urql/issues',
-
github: 'https://www.github.com/FormidableLabs/urql',
-
readme: 'https://github.com/FormidableLabs/urql/blob/main/README.md',
color: '#6B78B8',
googleAnalyticsId: 'UA-43290258-1',
};
···
const constants = {
docsTitle: 'URQL',
+
githubIssues: 'https://www.github.com/urql-graphql/urql/issues',
+
github: 'https://www.github.com/urql-graphql/urql',
+
readme: 'https://github.com/urql-graphql/urql/blob/main/README.md',
color: '#6B78B8',
googleAnalyticsId: 'UA-43290258-1',
};
+2 -2
packages/site/src/screens/home/hero.js
···
<li>
<a
title="Issues"
-
href="https://www.github.com/FormidableLabs/urql/issues"
>
Issues
</a>
</li>
<li>
-
<a title="GitHub" href="https://github.com/FormidableLabs/urql">
GitHub
</a>
</li>
···
<li>
<a
title="Issues"
+
href="https://www.github.com/urql-graphql/urql/issues"
>
Issues
</a>
</li>
<li>
+
<a title="GitHub" href="https://github.com/urql-graphql/urql">
GitHub
</a>
</li>
+1 -1
packages/storybook-addon/package.json
···
"access": "public"
},
"storybook": {
-
"icon": "https://github.com/FormidableLabs/urql/raw/main/packages/site/src/assets/sidebar-badge.svg",
"displayName": "urql"
}
}
···
"access": "public"
},
"storybook": {
+
"icon": "https://github.com/urql-graphql/urql/raw/main/packages/site/src/assets/sidebar-badge.svg",
"displayName": "urql"
}
}
+1 -1
packages/vue-urql/README.md
···
<a href="https://bundlephobia.com/result?p=@urql/vue">
<img alt="Minified gzip size" src="https://img.shields.io/bundlephobia/minzip/@urql/vue.svg?label=gzip%20size" />
</a>
-
<a href="https://github.com/FormidableLabs/urql/discussions">
<img alt="GitHub Discussions: Chat With Us" src="https://badgen.net/badge/discussions/chat%20with%20us/purple" />
</a>
<br />
···
<a href="https://bundlephobia.com/result?p=@urql/vue">
<img alt="Minified gzip size" src="https://img.shields.io/bundlephobia/minzip/@urql/vue.svg?label=gzip%20size" />
</a>
+
<a href="https://github.com/urql-graphql/urql/discussions">
<img alt="GitHub Discussions: Chat With Us" src="https://badgen.net/badge/discussions/chat%20with%20us/purple" />
</a>
<br />
+1 -1
scripts/changesets/changelog.js
···
config();
-
const REPO = 'FormidableLabs/urql';
const SEE_LINE = /^See:\s*(.*)/i;
const TRAILING_CHAR = /[.;:]$/g;
const listFormatter = new Intl.ListFormat('en-US');
···
config();
+
const REPO = 'urql-graphql/urql';
const SEE_LINE = /^See:\s*(.*)/i;
const TRAILING_CHAR = /[.;:]$/g;
const listFormatter = new Intl.ListFormat('en-US');