Skip to content
Permalink
Browse files

Transferred ownership of the repo to async-library.

  • Loading branch information...
ghengeveld committed Sep 6, 2019
1 parent 7552f1a commit 1797535f17620001b2ebcdaaf6326a57c7ce089b
@@ -16,7 +16,7 @@ Please have the **_latest_** stable versions of the following on your machine
To start working on React Async, clone the repo and bootstrap the project:

```sh
git clone https://github.com/ghengeveld/react-async.git
git clone https://github.com/async-library/react-async.git
cd react-async
yarn && yarn bootstrap
yarn build && yarn test
@@ -1,5 +1,5 @@
<p align="center">
<a href="https://react-async.dev"><img src="https://raw.githubusercontent.com/ghengeveld/react-async/HEAD/react-async.png" width="520" alt="React Async" /></a><br/>
<a href="https://react-async.dev"><img src="https://raw.githubusercontent.com/async-library/react-async/HEAD/react-async.png" width="520" alt="React Async" /></a><br/>
Handle promises with ease.
</p>
<br/>
@@ -18,43 +18,49 @@
<img src="https://badgen.net/npm/license/react-async" alt="license">
</a>
<br/>
<a href="https://github.com/ghengeveld/react-async/issues">
<img src="https://badgen.net/github/open-issues/ghengeveld/react-async?icon=github" alt="issues">
<a href="https://github.com/async-library/react-async/issues">
<img src="https://badgen.net/github/open-issues/async-library/react-async?icon=github" alt="issues">
</a>
<a href="https://github.com/ghengeveld/react-async/pulls">
<img src="https://badgen.net/github/open-prs/ghengeveld/react-async?icon=github" alt="pull requests">
<a href="https://github.com/async-library/react-async/pulls">
<img src="https://badgen.net/github/open-prs/async-library/react-async?icon=github" alt="pull requests">
</a>
<a href="https://github.com/ghengeveld/react-async/releases">
<img src="https://badgen.net/github/releases/ghengeveld/react-async?icon=github" alt="releases">
<a href="https://github.com/async-library/react-async/releases">
<img src="https://badgen.net/github/releases/async-library/react-async?icon=github" alt="releases">
</a>
<a href="https://github.com/ghengeveld/react-async/graphs/contributors">
<img src="https://badgen.net/github/contributors/ghengeveld/react-async?icon=github" alt="contributors">
<a href="https://github.com/async-library/react-async/graphs/contributors">
<img src="https://badgen.net/github/contributors/async-library/react-async?icon=github" alt="contributors">
</a>
<<<<<<< HEAD
=======
<a href="https://react-async.async-library.now.sh/examples/">
<img src="https://badgen.net/badge/live%20examples/available/pink?icon=now" alt="live examples">
</a>
>>>>>>> Transferred ownership of the repo to async-library.
<br/>
<a href="https://circleci.com/gh/ghengeveld/react-async">
<img src="https://badgen.net/circleci/github/ghengeveld/react-async/master?icon=circleci" alt="circleci status">
<a href="https://circleci.com/gh/async-library/react-async">
<img src="https://badgen.net/circleci/github/async-library/react-async/master?icon=circleci" alt="circleci status">
</a>
<a href="https://travis-ci.com/ghengeveld/react-async">
<img src="https://badgen.net/travis/ghengeveld/react-async?icon=travis" alt="travis status">
<a href="https://travis-ci.com/async-library/react-async">
<img src="https://badgen.net/travis/async-library/react-async?icon=travis" alt="travis status">
</a>
<a href="https://codecov.io/gh/ghengeveld/react-async">
<img src="https://badgen.net/codecov/c/github/ghengeveld/react-async/master?icon=codecov" alt="code coverage">
<a href="https://codecov.io/gh/async-library/react-async">
<img src="https://badgen.net/codecov/c/github/async-library/react-async/master?icon=codecov" alt="code coverage">
</a>
<a href="https://www.codefactor.io/repository/github/ghengeveld/react-async">
<img src="https://www.codefactor.io/repository/github/ghengeveld/react-async/badge" alt="code quality">
<a href="https://www.codefactor.io/repository/github/async-library/react-async">
<img src="https://www.codefactor.io/repository/github/async-library/react-async/badge" alt="code quality">
</a>
<a href="https://deepscan.io/dashboard#view=project&tid=5147&pid=6925&bid=61474">
<img src="https://deepscan.io/api/teams/5147/projects/6925/branches/61474/badge/grade.svg" alt="DeepScan grade">
</a>
<br/>
<img src="https://badgen.net/david/dep/ghengeveld/react-async/packages/react-async" alt="dependencies">
<img src="https://badgen.net/david/dev/ghengeveld/react-async" alt="devDependencies">
<img src="https://badgen.net/david/peer/ghengeveld/react-async/packages/react-async" alt="peerDependencies">
<img src="https://badgen.net/david/dep/async-library/react-async/packages/react-async" alt="dependencies">
<img src="https://badgen.net/david/dev/async-library/react-async" alt="devDependencies">
<img src="https://badgen.net/david/peer/async-library/react-async/packages/react-async" alt="peerDependencies">
<br/>
<a href="https://discord.gg/CAYQ6mU">
<img src="https://img.shields.io/badge/discord-join-7289DA.svg?logo=discord&longCache=true&style=flat" />
</a>
<a href="https://react-async.ghengeveld.now.sh/examples/">
<a href="https://react-async.async-library.now.sh/examples/">
<img src="https://badgen.net/badge/live%20examples/available/pink?icon=now" alt="live examples">
</a>
</p>
@@ -82,7 +88,7 @@ Use it with `fetch`, Axios or other data fetching libraries, even GraphQL.
> ## Upgrading to v8
>
> Version 8 comes with breaking changes. See [Upgrading](#upgrading) for details.
> A [codemod](https://github.com/ghengeveld/react-async/tree/master/codemods) is available.
> A [codemod](https://github.com/async-library/react-async/tree/master/codemods) is available.
# Table of Contents

@@ -191,7 +197,7 @@ All standalone helper components were renamed to avoid import naming collision.
- `<Rejected>` was renamed to `<IfRejected`.
- `<Settled>` was renamed to `<IfSettled>`.

> A [codemod](https://github.com/ghengeveld/react-async/tree/master/codemods) is available to automate the upgrade.
> A [codemod](https://github.com/async-library/react-async/tree/master/codemods) is available to automate the upgrade.
The return type for `run` was changed from `Promise` to `undefined`. You should now use the `promise` prop instead. This
is a manual upgrade. See [`promise`](#promise-1) for details.
@@ -202,7 +208,7 @@ is a manual upgrade. See [`promise`](#promise-1) for details.
- Some of the other helpers were also renamed, but the old ones remain as alias.
- Don't forget to deal with any custom instances of `<Async>` when upgrading.

> A [codemod](https://github.com/ghengeveld/react-async/tree/master/codemods) is available to automate the upgrade.
> A [codemod](https://github.com/async-library/react-async/tree/master/codemods) is available to automate the upgrade.
#### Upgrade to v4

@@ -531,7 +537,7 @@ state, the dispatched action and the internal reducer. You probably want to invo
> This is a power feature which loosely follows the [state reducer pattern]. It allows you to control state changes by
> intercepting actions before they are handled, or by overriding or enhancing the reducer itself.
[internal reducer]: https://github.com/ghengeveld/react-async/blob/master/src/reducer.js
[internal reducer]: https://github.com/async-library/react-async/blob/master/src/reducer.js
[state reducer pattern]: https://kentcdodds.com/blog/the-state-reducer-pattern

#### `dispatcher`
@@ -881,7 +887,7 @@ return <IfSettled state={state}>{state => `Finished at ${state.finishedAt.toISOS
## Usage examples

Here's several examples to give you an idea of what's possible with React Async. For fully working examples, please
check out the [`examples` directory](https://github.com/ghengeveld/react-async/tree/master/examples).
check out the [`examples` directory](https://github.com/async-library/react-async/tree/master/examples).

### Data fetching

@@ -995,7 +1001,7 @@ render() {

<a href="https://xebia.com"><img src="https://user-images.githubusercontent.com/321738/52999660-a9949780-3426-11e9-9a7e-42b400f4ccbe.png" height="40" alt="Xebia" /></a> <a href="https://intergamma.nl"><img src="https://user-images.githubusercontent.com/321738/52999676-b5805980-3426-11e9-899e-6c9669176df4.png" height="40" alt="Intergamma" /></a> <a href="https://www.bol.com"><img src="https://user-images.githubusercontent.com/321738/57380602-8ff32880-71a9-11e9-9936-a8bc77f2518b.png" height="40" alt="bol.com" /></a>

Your organization here? [Let us know](https://github.com/ghengeveld/react-async/issues/22) you're using React Async!
Your organization here? [Let us know](https://github.com/async-library/react-async/issues/22) you're using React Async!

## Acknowledgements

@@ -26,8 +26,8 @@ Where `<target_dir>` should be replaced with the path to your project's source d
For example:

```bash
npx jscodeshift . -t https://raw.githubusercontent.com/ghengeveld/react-async/master/codemods/v6.js
npx jscodeshift . -t https://raw.githubusercontent.com/async-library/react-async/master/codemods/v6.js
```

This will apply the codemod for [v6](https://github.com/ghengeveld/react-async/blob/master/codemods/v6.js)
This will apply the codemod for [v6](https://github.com/async-library/react-async/blob/master/codemods/v6.js)
to the current working directory (`.`).
@@ -2,6 +2,6 @@

This demonstrates a very simple HTTP GET using `fetch`, wrapped with React Async.

<a href="https://react-async.ghengeveld.now.sh/examples/basic-fetch">
<a href="https://react-async.async-library.now.sh/examples/basic-fetch">
<img src="https://img.shields.io/badge/live-demo-blue.svg" alt="live demo">
</a>
@@ -2,7 +2,7 @@
"name": "basic-fetch-example",
"version": "8.0.0",
"private": true,
"homepage": "https://react-async.ghengeveld.now.sh/examples/basic-fetch",
"homepage": "https://react-async.async-library.now.sh/examples/basic-fetch",
"scripts": {
"postinstall": "relative-deps",
"prestart": "relative-deps",
@@ -2,6 +2,6 @@

This demonstrates how to use the `useAsync` hook.

<a href="https://react-async.ghengeveld.now.sh/examples/basic-hook">
<a href="https://react-async.async-library.now.sh/examples/basic-hook">
<img src="https://img.shields.io/badge/live-demo-blue.svg" alt="live demo">
</a>
@@ -2,7 +2,7 @@
"name": "basic-hook-example",
"version": "8.0.0",
"private": true,
"homepage": "https://react-async.ghengeveld.now.sh/examples/basic-hook",
"homepage": "https://react-async.async-library.now.sh/examples/basic-hook",
"scripts": {
"postinstall": "relative-deps",
"prestart": "relative-deps",
@@ -2,6 +2,6 @@

Demonstrates how to use a preconfigured React Async instance.

<a href="https://react-async.ghengeveld.now.sh/examples/custom-instance">
<a href="https://react-async.async-library.now.sh/examples/custom-instance">
<img src="https://img.shields.io/badge/live-demo-blue.svg" alt="live demo">
</a>
@@ -2,7 +2,7 @@
"name": "custom-instance-example",
"version": "8.0.0",
"private": true,
"homepage": "https://react-async.ghengeveld.now.sh/examples/custom-instance",
"homepage": "https://react-async.async-library.now.sh/examples/custom-instance",
"scripts": {
"postinstall": "relative-deps",
"prestart": "relative-deps",
@@ -3,6 +3,6 @@
This is a rebuild of the [React Suspense IO demo](https://reactjs.org/blog/2018/03/01/sneak-peek-beyond-react-16.html)
by Dan Abramov at JSConf Iceland 2018, using React Async instead of Suspense.

<a href="https://react-async.ghengeveld.now.sh/examples/movie-app">
<a href="https://react-async.async-library.now.sh/examples/movie-app">
<img src="https://img.shields.io/badge/live-demo-blue.svg" alt="live demo">
</a>
@@ -2,7 +2,7 @@
"name": "movie-app-example",
"version": "8.0.0",
"private": true,
"homepage": "https://react-async.ghengeveld.now.sh/examples/movie-app",
"homepage": "https://react-async.async-library.now.sh/examples/movie-app",
"scripts": {
"postinstall": "relative-deps",
"prestart": "relative-deps",
@@ -2,6 +2,6 @@

This demonstrates a very simple HTTP GET using `fetch`, which gets the AbortSignal passed in to actually abort the HTTP request when the promise is canceled.

<a href="https://react-async.ghengeveld.now.sh/examples/with-abortcontroller">
<a href="https://react-async.async-library.now.sh/examples/with-abortcontroller">
<img src="https://img.shields.io/badge/live-demo-blue.svg" alt="live demo">
</a>
@@ -2,7 +2,7 @@
"name": "with-abortcontroller-example",
"version": "8.0.0",
"private": true,
"homepage": "https://react-async.ghengeveld.now.sh/examples/with-abortcontroller",
"homepage": "https://react-async.async-library.now.sh/examples/with-abortcontroller",
"scripts": {
"postinstall": "relative-deps",
"prestart": "relative-deps",
@@ -2,6 +2,6 @@

This demonstrates how React Async integrates with Next.js.

<a href="https://react-async.ghengeveld.now.sh/examples/with-nextjs">
<a href="https://react-async.async-library.now.sh/examples/with-nextjs">
<img src="https://img.shields.io/badge/live-demo-blue.svg" alt="live demo">
</a>
@@ -2,6 +2,6 @@

This demonstrates how React Async integrates with TypeScript.

<a href="https://react-async.ghengeveld.now.sh/examples/with-typescript">
<a href="https://react-async.async-library.now.sh/examples/with-typescript">
<img src="https://img.shields.io/badge/live-demo-blue.svg" alt="live demo">
</a>
@@ -2,7 +2,7 @@
"name": "with-typescript-example",
"version": "8.0.0",
"private": true,
"homepage": "https://react-async.ghengeveld.now.sh/examples/with-typescript",
"homepage": "https://react-async.async-library.now.sh/examples/with-typescript",
"scripts": {
"postinstall": "relative-deps",
"prestart": "relative-deps",
@@ -3,8 +3,8 @@
"private": true,
"author": "Gert Hengeveld <info@ghengeveld.nl>",
"license": "ISC",
"homepage": "https://react-async.dev",
"repository": "git+https://github.com/ghengeveld/react-async.git",
"homepage": "https://async-library.com",
"repository": "git+https://github.com/async-library/react-async.git",
"workspaces": [
"examples/*",
"packages/*"
@@ -9,10 +9,10 @@
],
"author": "Gert Hengeveld <info@ghengeveld.nl>",
"license": "ISC",
"homepage": "https://react-async.dev",
"homepage": "https://async-library.com",
"repository": {
"type": "git",
"url": "https://github.com/ghengeveld/react-async.git",
"url": "https://github.com/async-library/react-async.git",
"directory": "packages/react-async-devtools"
},
"main": "src",
@@ -11,10 +11,10 @@
],
"author": "Gert Hengeveld <info@ghengeveld.nl>",
"license": "ISC",
"homepage": "https://react-async.dev",
"homepage": "https://async-library.com",
"repository": {
"type": "git",
"url": "https://github.com/ghengeveld/react-async.git",
"url": "https://github.com/async-library/react-async.git",
"directory": "packages/react-async"
},
"main": "src",

0 comments on commit 1797535

Please sign in to comment.
You can’t perform that action at this time.