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 v10.0.1 #275

Merged
merged 137 commits into from
Mar 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
137 commits
Select commit Hold shift + click to select a range
de0fa52
Use resolutions to determine the correct version for @types/react.
ghengeveld Dec 2, 2019
78f7e9e
Drop unnecessary storybook-chromatic import.
ghengeveld Dec 2, 2019
fd98ac4
Merge branch 'master' into next
ghengeveld Dec 2, 2019
34b7f46
Update babel monorepo to v7.7.4
renovate-bot Dec 2, 2019
aed2532
Merge pull request #216 from async-library/renovate/babel-monorepo
renovate[bot] Dec 2, 2019
1c3047b
Update dependency @pika/plugin-build-node to v0.8.1
renovate-bot Dec 2, 2019
2e06d5a
Merge pull request #217 from async-library/renovate/pika-plugin-build…
renovate[bot] Dec 2, 2019
b098a1f
Update dependency @pika/plugin-build-types to v0.8.1
renovate-bot Dec 2, 2019
15153be
Merge pull request #218 from async-library/renovate/pika-plugin-build…
renovate[bot] Dec 2, 2019
e46b481
Update dependency @pika/plugin-build-umd to v0.8.1
renovate-bot Dec 2, 2019
aa6aea9
Merge pull request #219 from async-library/renovate/pika-plugin-build…
renovate[bot] Dec 2, 2019
d0fef8a
Update dependency @pika/plugin-build-web to v0.8.1
renovate-bot Dec 2, 2019
a0acfd1
Merge pull request #220 from async-library/renovate/pika-plugin-build…
renovate[bot] Dec 2, 2019
4b7118f
Update dependency @pika/plugin-bundle-types to v0.8.1
renovate-bot Dec 2, 2019
a5a7404
Merge pull request #221 from async-library/renovate/pika-plugin-bundl…
renovate[bot] Dec 2, 2019
a9704b7
Remove CodeFund ad because it violates GitHub TOS.
ghengeveld Dec 3, 2019
a6d52a8
Update dependency @storybook/react to v5.2.8
renovate-bot Dec 3, 2019
604433a
Merge pull request #231 from async-library/renovate/storybook-monorepo
renovate[bot] Dec 3, 2019
65675e7
Update dependency @pika/plugin-standard-pkg to v0.8.1
renovate-bot Dec 3, 2019
b61d478
Merge pull request #222 from async-library/renovate/pika-plugin-stand…
renovate[bot] Dec 3, 2019
1ad6398
Update dependency @pika/plugin-ts-standard-pkg to v0.8.1
renovate-bot Dec 3, 2019
9aaac3b
Merge pull request #223 from async-library/renovate/pika-plugin-ts-st…
renovate[bot] Dec 3, 2019
a8a23c1
Update dependency eslint to v6.7.2
renovate-bot Dec 3, 2019
92ceb4f
Merge pull request #215 from async-library/renovate/eslint-6.x
renovate[bot] Dec 3, 2019
ab5f131
Update dependency eslint-plugin-jest to v23.1.1
renovate-bot Dec 3, 2019
fadfb1d
Merge pull request #226 from async-library/renovate/eslint-plugin-jes…
renovate[bot] Dec 3, 2019
6fb8f62
Update dependency eslint-plugin-react to v7.17.0
renovate-bot Dec 3, 2019
5e36a81
Merge pull request #228 from async-library/renovate/eslint-plugin-rea…
renovate[bot] Dec 3, 2019
5c04ce2
Update dependency storybook-chromatic to v3.4.1
renovate-bot Dec 3, 2019
f69eab6
Merge pull request #224 from async-library/renovate/storybook-chromat…
renovate[bot] Dec 3, 2019
50ac706
Update typescript-eslint monorepo to v2.10.0
renovate-bot Dec 3, 2019
959f8de
Merge pull request #225 from async-library/renovate/typescript-eslint…
renovate[bot] Dec 3, 2019
17f2dac
Update dependency typescript to v3.7.3
renovate-bot Dec 4, 2019
219cef9
Update dependency now to v16.6.1
renovate-bot Dec 5, 2019
6a99755
Update dependency now to v16.6.2
renovate-bot Dec 6, 2019
62de2eb
Update babel monorepo to v7.7.5
renovate-bot Dec 6, 2019
c2ce8f5
Update babel monorepo to v7.7.6
renovate-bot Dec 7, 2019
3aa68f1
Don't run Chromatic on renovate branches, and auto accept changes on …
ghengeveld Dec 8, 2019
bb99322
Update dependency now to v16.6.3
renovate-bot Dec 9, 2019
dbb1b91
Update typescript-eslint monorepo to v2.11.0
renovate-bot Dec 9, 2019
39a9759
Update dependency @testing-library/react to v9.3.3
renovate-bot Dec 11, 2019
edba33c
Update dependency @testing-library/react to v9.4.0
renovate-bot Dec 13, 2019
d0a6a21
Update dependency now to v16.7.0
renovate-bot Dec 14, 2019
fb9f009
Update dependency eslint-plugin-prettier to v3.1.2
renovate-bot Dec 15, 2019
7697e00
Update typescript-eslint monorepo to v2.12.0
renovate-bot Dec 16, 2019
a024799
Update babel monorepo to v7.7.7
renovate-bot Dec 19, 2019
e109e86
Update dependency eslint to v6.8.0
renovate-bot Dec 20, 2019
46a5f9c
Update dependency typescript to v3.7.4
renovate-bot Dec 20, 2019
e35ce87
Update typescript-eslint monorepo to v2.13.0
renovate-bot Dec 23, 2019
25cb2f7
Update dependency eslint-config-prettier to v6.8.0
renovate-bot Dec 25, 2019
6b248b9
Update dependency eslint-config-prettier to v6.9.0
renovate-bot Dec 27, 2019
8cdd277
Update dependency lerna to v3.20.0
renovate-bot Dec 27, 2019
c6bc739
Export AsyncConstructor
nealeu Dec 27, 2019
0033662
Update dependency eslint-plugin-jest to v23.2.0
renovate-bot Dec 28, 2019
5349220
Update dependency lerna to v3.20.1
renovate-bot Dec 29, 2019
2648ccc
Export AsyncConstructor (#234)
ghengeveld Dec 30, 2019
1351fd0
Update typescript-eslint monorepo to v2.14.0
renovate-bot Dec 30, 2019
a8ea231
Export Props interfaces to allow exported declarations
nealeu Dec 31, 2019
5ffaab2
Fix prettier complaining about long export
nealeu Dec 31, 2019
69e0019
Merge pull request #236 from nealeu/patch-1
ghengeveld Dec 31, 2019
25ec03d
docs: update README.md [skip ci]
allcontributors[bot] Dec 31, 2019
c17f4e0
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Dec 31, 2019
5de3e28
Merge pull request #237 from async-library/all-contributors/add-nealeu
ghengeveld Jan 2, 2020
886d52d
chore(deps): update dependency lerna to v3.20.2
renovate-bot Jan 2, 2020
44c3cee
chore(deps): update dependency now to v16.7.1
renovate-bot Jan 3, 2020
ad1e3d0
chore(deps): update dependency eslint-plugin-jest to v23.3.0
renovate-bot Jan 4, 2020
171eb38
chore(deps): update typescript-eslint monorepo to v2.15.0
renovate-bot Jan 6, 2020
1a72f21
chore(deps): update dependency now to v16.7.2
renovate-bot Jan 8, 2020
8915b51
chore(deps): update dependency now to v16.7.3
renovate-bot Jan 9, 2020
a56a295
chore(deps): update dependency eslint-plugin-jest to v23.4.0
renovate-bot Jan 10, 2020
288da36
chore(deps): update dependency @storybook/react to v5.3.0
renovate-bot Jan 11, 2020
4413ee7
chore(deps): update dependency eslint-plugin-jest to v23.6.0
renovate-bot Jan 12, 2020
fa8154b
chore(deps): update babel monorepo to v7.8.0
renovate-bot Jan 12, 2020
8b54b09
chore(deps): update dependency @storybook/react to v5.3.1
renovate-bot Jan 12, 2020
ac8ca53
chore(deps): update dependency @babel/preset-env to v7.8.2
renovate-bot Jan 12, 2020
f3a2fd7
chore(deps): update dependency @storybook/react to v5.3.2
renovate-bot Jan 13, 2020
dcb5d07
chore(deps): update typescript-eslint monorepo to v2.16.0
renovate-bot Jan 13, 2020
6e3eda3
chore(deps): update babel monorepo to v7.8.3
renovate-bot Jan 13, 2020
91341e8
chore(deps): update dependency @storybook/react to v5.3.3
renovate-bot Jan 14, 2020
0b14857
chore(deps): update dependency @storybook/react to v5.3.4
renovate-bot Jan 16, 2020
5608c89
chore(deps): update dependency eslint-plugin-react to v7.18.0
renovate-bot Jan 16, 2020
3e09af5
chore(deps): update dependency @storybook/react to v5.3.5
renovate-bot Jan 16, 2020
c395286
chore(deps): update dependency typescript to v3.7.5
renovate-bot Jan 16, 2020
5dd2742
chore(deps): update dependency @storybook/react to v5.3.6
renovate-bot Jan 17, 2020
2664df0
chore(deps): update dependency copyfiles to v2.2.0
renovate-bot Jan 17, 2020
acd0324
chore(deps): update dependency @storybook/react to v5.3.7
renovate-bot Jan 20, 2020
2fe1200
chore(deps): update typescript-eslint monorepo to v2.17.0
renovate-bot Jan 20, 2020
533eeda
chore(deps): update dependency @storybook/react to v5.3.8
renovate-bot Jan 21, 2020
cf698c1
chore(deps): update dependency @storybook/react to v5.3.9
renovate-bot Jan 24, 2020
eb2a19a
Revert "chore(deps): update dependency @storybook/react to v5.3.0"
ghengeveld Jan 27, 2020
cfac73a
chore(deps): update dependency @storybook/react to v5.3.9
renovate-bot Jan 27, 2020
34ad998
chore(deps): update typescript-eslint monorepo to v2.18.0
renovate-bot Jan 27, 2020
b4b80bc
Document how to build for older browsers
mbark Jan 28, 2020
2cf96e2
chore(deps): update dependency eslint-config-prettier to v6.10.0
renovate-bot Jan 28, 2020
11b0bb2
Merge pull request #251 from mbark/patch-1
ghengeveld Jan 28, 2020
a5e5fad
docs: update README.md [skip ci]
allcontributors[bot] Jan 28, 2020
e561ca9
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Jan 28, 2020
f57cd36
Merge pull request #252 from async-library/all-contributors/add-mbark
ghengeveld Jan 28, 2020
b798064
chore(deps): update dependency storybook-chromatic to v3.5.0
renovate-bot Jan 28, 2020
338ecf3
Update installation.md
ghengeveld Jan 29, 2020
464f83c
chore(deps): update babel monorepo to v7.8.4
renovate-bot Jan 30, 2020
1224c51
chore(deps): update dependency eslint-plugin-react to v7.18.1
renovate-bot Feb 1, 2020
c689b9e
chore(deps): update dependency eslint-plugin-react to v7.18.2
renovate-bot Feb 2, 2020
2e2b709
chore(deps): update dependency eslint-plugin-react to v7.18.3
renovate-bot Feb 3, 2020
3605757
chore(deps): update dependency @storybook/react to v5.3.10
renovate-bot Feb 3, 2020
a0c0c1e
chore(deps): update typescript-eslint monorepo to v2.19.0
renovate-bot Feb 3, 2020
c5e0099
chore(deps): update dependency @storybook/react to v5.3.11
renovate-bot Feb 4, 2020
1bb6af0
chore(deps): update dependency @storybook/react to v5.3.12
renovate-bot Feb 4, 2020
c4e5e0c
chore(deps): update dependency storybook-chromatic to v3.5.1
renovate-bot Feb 5, 2020
eccee9f
chore(deps): update dependency eslint-plugin-jest to v23.7.0
renovate-bot Feb 7, 2020
800f6f9
chore(deps): update typescript-eslint monorepo to v2.19.2
renovate-bot Feb 10, 2020
040f9c6
chore(deps): update dependency @storybook/react to v5.3.13
renovate-bot Feb 12, 2020
5164bc8
chore(deps): update dependency @pika/plugin-build-node to v0.9.1
renovate-bot Feb 13, 2020
403f19a
chore(deps): update dependency @pika/plugin-build-types to v0.9.1
renovate-bot Feb 13, 2020
2cf146f
chore(deps): update dependency @pika/plugin-build-node to v0.9.2
renovate-bot Feb 13, 2020
f6a5997
chore(deps): update dependency @pika/plugin-build-types to v0.9.2
renovate-bot Feb 14, 2020
538fc05
chore(deps): update dependency @pika/plugin-build-umd to v0.9.2
renovate-bot Feb 14, 2020
41667aa
chore(deps): update dependency @pika/plugin-build-web to v0.9.2
renovate-bot Feb 14, 2020
5096a50
chore(deps): update dependency @pika/plugin-bundle-types to v0.9.2
renovate-bot Feb 14, 2020
7ca6d28
chore(deps): update dependency @pika/plugin-standard-pkg to v0.9.2
renovate-bot Feb 14, 2020
0f4a8ff
chore(deps): update dependency @pika/plugin-ts-standard-pkg to v0.9.2
renovate-bot Feb 14, 2020
9c51ebd
chore(deps): update typescript-eslint monorepo to v2.20.0
renovate-bot Feb 17, 2020
fe4d2b6
chore(deps): update dependency eslint-plugin-react-hooks to v2.4.0
renovate-bot Feb 17, 2020
e7dc99e
chore(deps): update dependency storybook-chromatic to v3.5.2
renovate-bot Feb 18, 2020
8228932
chore(deps): update dependency typescript to v3.8.2
renovate-bot Feb 20, 2020
b83a055
chore(deps): update dependency @testing-library/react to v9.4.1
renovate-bot Feb 22, 2020
a678b13
chore(deps): update dependency eslint-plugin-jest to v23.8.0
renovate-bot Feb 23, 2020
0904e11
chore(deps): update typescript-eslint monorepo to v2.21.0
renovate-bot Feb 24, 2020
a14e216
chore(deps): update dependency @storybook/react to v5.3.14
renovate-bot Feb 25, 2020
b2645c0
chore(deps): update dependency babel-eslint to v10.1.0
renovate-bot Feb 26, 2020
4a2b38a
chore(deps): update react monorepo
renovate-bot Feb 26, 2020
f488bc5
chore(deps): update babel monorepo to v7.8.6
renovate-bot Feb 27, 2020
c1b0a13
chore(deps): update dependency typescript to v3.8.3
renovate-bot Feb 28, 2020
1054a84
chore(deps): update dependency eslint-plugin-jest to v23.8.1
renovate-bot Feb 29, 2020
e5f6903
chore(deps): update typescript-eslint monorepo to v2.22.0
renovate-bot Mar 2, 2020
d71d0a2
Bump react-scripts and @babel/preset-env.
ghengeveld Mar 27, 2020
19b1435
Fix bootstrap script.
ghengeveld Mar 27, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
21 changes: 20 additions & 1 deletion .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,30 @@
"code",
"bug"
]
},
{
"login": "nealeu",
"name": "Neale Upstone",
"avatar_url": "https://avatars1.githubusercontent.com/u/264594?v=4",
"profile": "https://github.com/nealeu",
"contributions": [
"code"
]
},
{
"login": "mbark",
"name": "Martin Barksten",
"avatar_url": "https://avatars1.githubusercontent.com/u/1579384?v=4",
"profile": "https://github.com/mbark",
"contributions": [
"doc"
]
}
],
"contributorsPerLine": 7,
"projectName": "react-async",
"projectOwner": "async-library",
"repoType": "github",
"repoHost": "https://github.com"
"repoHost": "https://github.com",
"skipCi": true
}
9 changes: 8 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,14 @@ jobs:
- checkout
- attach_workspace:
at: .
- run: yarn test:chromatic
- run: |
if [[ "${CIRCLE_BRANCH}" == renovate/* ]]; then
echo "Skipping Chromatic"
elif [ "${CIRCLE_BRANCH}" == "master" ]; then
yarn test:chromatic --auto-accept-changes
else
yarn test:chromatic
fi

workflows:
version: 2
Expand Down
2 changes: 0 additions & 2 deletions .storybook/config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { configure } from "@storybook/react"

import "storybook-chromatic"

const req = require.context("../stories", true, /\.stories\.js$/)
configure(() => req.keys().forEach(filename => req(filename)), module)
60 changes: 30 additions & 30 deletions README.md

Large diffs are not rendered by default.

27 changes: 27 additions & 0 deletions docs/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,30 @@ yarn add react-async

> This package requires `react` as a peer dependency. Please make sure to install that as well. If you want to use the
> `useAsync` hook, you'll need `react@16.8.0` or later.

## Transpiling for legacy browsers

This project targets the latest ECMAScript version. Our packages on npm do not contain ES5 code for legacy browsers. If you need to target a browser which does not support the latest version of ECMAScript, you'll have to handle transpilation yourself. Usually this will automatically be handled by the framework you use (CRA, Next.js, Gatsby), but sometimes you may need to tweak your Webpack settings to transpile `react-async` with Babel.

To transpile `node_modules` with Babel you need to use a `babel.config.js`, for more information see [Babel's documentation](https://babeljs.io/docs/en/configuration#whats-your-use-case).

In your `webpack.config.js` make sure that the rule for `babel-loader`:

- doesn't exclude `node_modules` from matching via the `exclude` pattern;
- excludes `core-js` as it shouldn't be transpiled;
- is passed the `configFile` option pointing to the `babel.config.js` file.

```
{
test: /\.(js|jsx)$/,
exclude: /\/node_modules\/core-js\//,
use: [{
loader: 'babel-loader',
options: {
configFile: './babel.config.js',
// Caching is recommended when transpiling node_modules to speed up consecutive builds
cacheDirectory: true,
}
}]
}
```
3 changes: 2 additions & 1 deletion examples/basic-fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": true,
"homepage": "https://react-async.async-library.now.sh/examples/basic-fetch",
"scripts": {
"bootstrap": "yarn install",
"postinstall": "relative-deps",
"prestart": "relative-deps",
"prebuild": "relative-deps",
Expand All @@ -18,7 +19,7 @@
"react-async": "^10.0.0",
"react-async-devtools": "^10.0.0",
"react-dom": "16.11.0",
"react-scripts": "3.2.0"
"react-scripts": "3.4.1"
},
"devDependencies": {
"relative-deps": "0.2.0"
Expand Down
3 changes: 2 additions & 1 deletion examples/basic-hook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": true,
"homepage": "https://react-async.async-library.now.sh/examples/basic-hook",
"scripts": {
"bootstrap": "yarn install",
"postinstall": "relative-deps",
"prestart": "relative-deps",
"prebuild": "relative-deps",
Expand All @@ -18,7 +19,7 @@
"react-async": "^10.0.0",
"react-async-devtools": "^10.0.0",
"react-dom": "16.11.0",
"react-scripts": "3.2.0"
"react-scripts": "3.4.1"
},
"devDependencies": {
"relative-deps": "0.2.0"
Expand Down
3 changes: 2 additions & 1 deletion examples/custom-instance/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": true,
"homepage": "https://react-async.async-library.now.sh/examples/custom-instance",
"scripts": {
"bootstrap": "yarn install",
"postinstall": "relative-deps",
"prestart": "relative-deps",
"prebuild": "relative-deps",
Expand All @@ -18,7 +19,7 @@
"react-async": "^10.0.0",
"react-async-devtools": "^10.0.0",
"react-dom": "16.11.0",
"react-scripts": "3.2.0"
"react-scripts": "3.4.1"
},
"devDependencies": {
"relative-deps": "0.2.0"
Expand Down
3 changes: 2 additions & 1 deletion examples/movie-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": true,
"homepage": "https://react-async.async-library.now.sh/examples/movie-app",
"scripts": {
"bootstrap": "yarn install",
"postinstall": "relative-deps",
"prestart": "relative-deps",
"prebuild": "relative-deps",
Expand All @@ -18,7 +19,7 @@
"react-async": "^10.0.0",
"react-async-devtools": "^10.0.0",
"react-dom": "16.11.0",
"react-scripts": "3.2.0"
"react-scripts": "3.4.1"
},
"devDependencies": {
"relative-deps": "0.2.0"
Expand Down
3 changes: 2 additions & 1 deletion examples/with-abortcontroller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": true,
"homepage": "https://react-async.async-library.now.sh/examples/with-abortcontroller",
"scripts": {
"bootstrap": "yarn install",
"postinstall": "relative-deps",
"prestart": "relative-deps",
"prebuild": "relative-deps",
Expand All @@ -18,7 +19,7 @@
"react-async": "^10.0.0",
"react-async-devtools": "^10.0.0",
"react-dom": "16.11.0",
"react-scripts": "3.2.0"
"react-scripts": "3.4.1"
},
"devDependencies": {
"relative-deps": "0.2.0"
Expand Down
3 changes: 2 additions & 1 deletion examples/with-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": true,
"homepage": "https://react-async.async-library.now.sh/examples/with-graphql",
"scripts": {
"bootstrap": "yarn install",
"postinstall": "relative-deps",
"prestart": "relative-deps",
"prebuild": "relative-deps",
Expand All @@ -19,7 +20,7 @@
"react-async": "^10.0.0",
"react-async-devtools": "^10.0.0",
"react-dom": "16.11.0",
"react-scripts": "3.2.0"
"react-scripts": "3.4.1"
},
"devDependencies": {
"relative-deps": "0.2.0"
Expand Down
1 change: 1 addition & 0 deletions examples/with-nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": true,
"main": "index.js",
"scripts": {
"bootstrap": "yarn install",
"postinstall": "relative-deps",
"predev": "relative-deps",
"prebuild": "relative-deps",
Expand Down
1 change: 1 addition & 0 deletions examples/with-react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": true,
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"bootstrap": "yarn install",
"postinstall": "relative-deps",
"prestart": "relative-deps",
"preandroid": "relative-deps",
Expand Down
1 change: 1 addition & 0 deletions examples/with-react-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": true,
"main": "index.js",
"scripts": {
"bootstrap": "yarn install",
"postinstall": "relative-deps",
"prestart": "relative-deps",
"prebuild": "relative-deps",
Expand Down
3 changes: 2 additions & 1 deletion examples/with-suspense/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": true,
"homepage": "https://react-async.async-library.now.sh/examples/with-suspense",
"scripts": {
"bootstrap": "yarn install",
"postinstall": "relative-deps",
"prestart": "relative-deps",
"prebuild": "relative-deps",
Expand All @@ -18,7 +19,7 @@
"react-async": "^10.0.0",
"react-async-devtools": "^10.0.0",
"react-dom": "16.11.0",
"react-scripts": "3.2.0"
"react-scripts": "3.4.1"
},
"devDependencies": {
"relative-deps": "0.2.0"
Expand Down
3 changes: 2 additions & 1 deletion examples/with-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": true,
"homepage": "https://react-async.async-library.now.sh/examples/with-typescript",
"scripts": {
"bootstrap": "yarn install",
"postinstall": "relative-deps",
"prestart": "relative-deps",
"prebuild": "relative-deps",
Expand All @@ -21,7 +22,7 @@
"react-async": "^10.0.0",
"react-async-devtools": "^10.0.0",
"react-dom": "16.11.0",
"react-scripts": "3.2.0",
"react-scripts": "3.4.1",
"typescript": "3.7.2"
},
"devDependencies": {
Expand Down
66 changes: 33 additions & 33 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"packages/*"
],
"scripts": {
"bootstrap": "yarn build:packages && yarn workspaces run install",
"bootstrap": "yarn build:packages && yarn workspaces run bootstrap",
"clean": "lerna clean",
"start": "run-p start:*",
"start:examples": "now dev",
Expand All @@ -36,49 +36,49 @@
"postbump": "yarn build:packages"
},
"devDependencies": {
"@babel/core": "7.7.2",
"@babel/plugin-proposal-class-properties": "7.7.0",
"@babel/plugin-proposal-object-rest-spread": "7.6.2",
"@babel/plugin-transform-runtime": "7.6.2",
"@babel/preset-env": "7.7.1",
"@babel/preset-react": "7.7.0",
"@babel/preset-typescript": "7.7.2",
"@babel/core": "7.8.6",
"@babel/plugin-proposal-class-properties": "7.8.3",
"@babel/plugin-proposal-object-rest-spread": "7.8.3",
"@babel/plugin-transform-runtime": "7.8.3",
"@babel/preset-env": "7.8.7",
"@babel/preset-react": "7.8.3",
"@babel/preset-typescript": "7.8.3",
"@pika/pack": "0.5.0",
"@pika/plugin-build-node": "0.7.1",
"@pika/plugin-build-types": "0.7.1",
"@pika/plugin-build-umd": "0.7.1",
"@pika/plugin-build-web": "0.7.1",
"@pika/plugin-bundle-types": "0.7.1",
"@pika/plugin-standard-pkg": "0.7.1",
"@pika/plugin-ts-standard-pkg": "0.7.1",
"@storybook/react": "5.2.6",
"@pika/plugin-build-node": "0.9.2",
"@pika/plugin-build-types": "0.9.2",
"@pika/plugin-build-umd": "0.9.2",
"@pika/plugin-build-web": "0.9.2",
"@pika/plugin-bundle-types": "0.9.2",
"@pika/plugin-standard-pkg": "0.9.2",
"@pika/plugin-ts-standard-pkg": "0.9.2",
"@storybook/react": "5.3.14",
"@testing-library/jest-dom": "4.2.4",
"@testing-library/react": "9.3.2",
"@typescript-eslint/eslint-plugin": "2.8.0",
"@typescript-eslint/parser": "2.8.0",
"babel-eslint": "10.0.3",
"@testing-library/react": "9.4.1",
"@typescript-eslint/eslint-plugin": "2.22.0",
"@typescript-eslint/parser": "2.22.0",
"babel-eslint": "10.1.0",
"babel-jest": "24.9.0",
"babel-loader": "8.0.6",
"copyfiles": "2.1.1",
"eslint": "6.6.0",
"eslint-config-prettier": "6.7.0",
"eslint-plugin-jest": "23.0.4",
"eslint-plugin-prettier": "3.1.1",
"copyfiles": "2.2.0",
"eslint": "6.8.0",
"eslint-config-prettier": "6.10.0",
"eslint-plugin-jest": "23.8.1",
"eslint-plugin-prettier": "3.1.2",
"eslint-plugin-promise": "4.2.1",
"eslint-plugin-react": "7.16.0",
"eslint-plugin-react-hooks": "2.3.0",
"eslint-plugin-react": "7.18.3",
"eslint-plugin-react-hooks": "2.5.0",
"jest": "24.9.0",
"lerna": "3.19.0",
"lerna": "3.20.2",
"node-jq": "1.11.0",
"now": "16.6.0",
"now": "16.7.3",
"npm-run-all": "4.1.5",
"prettier": "1.19.1",
"prop-types": "15.7.2",
"react": "16.12.0",
"react": "16.13.0",
"react-async": "10.0.0-alpha.0",
"react-dom": "16.12.0",
"storybook-chromatic": "3.1.0",
"typescript": "3.7.2"
"react-dom": "16.13.0",
"storybook-chromatic": "3.5.2",
"typescript": "3.8.3"
},
"resolutions": {
"@types/react": "16.9.13"
Expand Down
1 change: 1 addition & 0 deletions packages/react-async-devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
},
"main": "src",
"scripts": {
"bootstrap": "yarn install",
"build": "pika build",
"postbuild": "copyfiles -f ../../LICENSE ../../README.md pkg",
"publish": "npm publish pkg"
Expand Down
1 change: 1 addition & 0 deletions packages/react-async/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
},
"main": "src",
"scripts": {
"bootstrap": "yarn install",
"build": "pika build",
"postbuild": "copyfiles -f ../../LICENSE ../../README.md pkg",
"publish": "npm publish pkg"
Expand Down
12 changes: 6 additions & 6 deletions packages/react-async/src/Async.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,23 @@ import {
ReducerAsyncState,
} from "./types"

interface InitialProps<T> {
export interface InitialProps<T> {
children?: InitialChildren<T>
persist?: boolean
}
interface PendingProps<T> {
export interface PendingProps<T> {
children?: PendingChildren<T>
initial?: boolean
}
interface FulfilledProps<T> {
export interface FulfilledProps<T> {
children?: FulfilledChildren<T>
persist?: boolean
}
interface RejectedProps<T> {
export interface RejectedProps<T> {
children?: RejectedChildren<T>
persist?: boolean
}
interface SettledProps<T> {
export interface SettledProps<T> {
children?: SettledChildren<T>
persist?: boolean
}
Expand All @@ -54,7 +54,7 @@ type GenericAsync = typeof Async & {
Settled<T>(props: SettledProps<T>): JSX.Element
}

type AsyncConstructor<T> = React.ComponentClass<AsyncProps<T>> & {
export type AsyncConstructor<T> = React.ComponentClass<AsyncProps<T>> & {
Initial: React.FC<InitialProps<T>>
Pending: React.FC<PendingProps<T>>
Loading: React.FC<PendingProps<T>>
Expand Down