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

Hooks API and separate packages #129

Merged
merged 88 commits into from
Jun 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
4d0fd7c
Start 3.0 refactor, separate modules into separate packages
Jun 3, 2019
c2d84ce
Make network interface required param to middleware
Jun 3, 2019
2cac16c
useRequest hook
Jun 4, 2019
a5860e4
useMutation, more tests and fixes
Jun 5, 2019
6b78b6f
Rewrite connectRequest with hooks
Jun 5, 2019
486f347
Build config fixes
Jun 5, 2019
80d28ab
Make build script executable
Jun 5, 2019
14eb25b
Fix build
Jun 5, 2019
a27ffb8
Try using lerna without yarn workspaces
Jun 5, 2019
c7b7269
v3.0.0-alpha.0
Jun 5, 2019
0156c5f
More build fixes, start fixing site
Jun 5, 2019
3a5f4fd
Get site working and update react-scripts, fix UMD builds
Jun 5, 2019
55b88f3
Fix site dependencies
Jun 5, 2019
4599bc0
Set preset-env node target to current to fix async tests
Jun 5, 2019
d65ae5c
v3.0.0-alpha.1
Jun 5, 2019
e6afc90
v3.0.0-alpha.2
Jun 5, 2019
e2a91de
Update gitHead
Jun 7, 2019
a77dac5
Run prettier on site
Jun 7, 2019
3ab8842
Better superagent interface tests
Jun 7, 2019
41dba88
Ignore dist files when analyzing test coverage
Jun 7, 2019
76d210e
Handle null query config params
Jun 7, 2019
80efef8
v3.0.0-alpha.3
Jun 7, 2019
6ce74ce
Only set babel node target for test env
Jun 10, 2019
b445a6b
Simplify connectRequest diffing and remove some lodash libs
Jun 10, 2019
a982033
Rename useMemoizedAction to useMemoizedQueryConfig
Jun 10, 2019
3e58c0c
Return the mutation promise from mutate callback
Jun 10, 2019
7f33df1
Read query state from redux and return from hooks
Jun 10, 2019
ca38dbc
v3.0.0-alpha.4
Jun 10, 2019
1f5710d
Start flow types
Jun 10, 2019
431c3e0
Remove networkHandler from redux state
Jun 10, 2019
a863517
Fix superagent interface build
Jun 11, 2019
5f89672
v3.0.0-alpha.5
Jun 11, 2019
f0c7e74
Run flow check on travis
Jun 11, 2019
85b3252
Add flow types to actions, query middleware
Jun 11, 2019
d292069
More flow types
Jun 11, 2019
6523e9b
v3.0.0-alpha.6
Jun 11, 2019
52b384f
Babel load redux-query for redux-query-react
Jun 11, 2019
fcb1ac4
v3.0.0-alpha.7
Jun 11, 2019
58e8685
v3.0.0-alpha.8
Jun 11, 2019
5b049eb
Fix connectRequest flow issues, start some flow tests
Jun 12, 2019
b4e0997
v3.0.0-alpha.9
Jun 12, 2019
076a9a7
Fix mapPropsToConfigs types
Jun 12, 2019
cb6f147
Update dependencies
Jun 12, 2019
64d1b60
v3.0.0-alpha.10
Jun 12, 2019
770fdf7
Use main entry points for imports
Jun 12, 2019
bfc2730
v3.0.0-alpha.11
Jun 12, 2019
19064eb
Make redux-query peer deps not regular deps
Jun 12, 2019
8456e53
v3.0.0-alpha.12
Jun 12, 2019
89a7a6a
Fix connectRequest retry behavior and add tests
Jun 13, 2019
133c5ca
v3.0.0-alpha.13
Jun 13, 2019
4aa5535
New site
Jun 13, 2019
c0a3203
New site
Jun 21, 2019
cff9d99
Don't dispatch cancel actions for requests that aren't pending
Jun 13, 2019
90a50a4
Fix connectRequest cancelling requests that it shouldn't
Jun 14, 2019
108033d
v3.0.0-alpha.14
Jun 14, 2019
b6eed41
Delete build.sh (lerna bootstrap is equivalent)
Jun 21, 2019
dd9ff5f
Update CONTRIBUTING
Jun 21, 2019
305f3d6
Delete previous site
Jun 21, 2019
ca87857
v3.0.0-rc.0
Jun 21, 2019
f01c529
Make lib functions have safe defaults
Jun 21, 2019
8837472
Fix useMutation return value
Jun 21, 2019
2b43d0a
Build flow entry points for all packages
Jun 21, 2019
9007f06
v3.0.0-rc.1
Jun 21, 2019
c333c59
Flow type fixes
Jun 21, 2019
90042ba
v3.0.0-rc.2
Jun 21, 2019
ab8b09a
Export Action type from src/types
Jun 21, 2019
795e474
Add top-level types.flow entrypoint
Jun 21, 2019
627b408
v3.0.0-rc.3
Jun 21, 2019
74e7019
Fix careless mistake in READMEs
Jun 21, 2019
ede5fee
Use standard .js.flow extension for types
Jun 21, 2019
ddf9592
v3.0.0-rc.4
Jun 21, 2019
e26f31c
Add more links in docs
Jun 21, 2019
014ccb4
Configure algolia search
Jun 21, 2019
735a017
"React hooks"
Jun 21, 2019
0d4d4d9
Fix build script
Jun 24, 2019
2172986
Make useMutation take a callback instead of a query config
Jun 24, 2019
36d628f
v3.0.0-rc.5
Jun 24, 2019
2127725
Update simple example
Jun 24, 2019
6af8d02
Fix useMutation example bugs
Jun 24, 2019
c0e1730
More code comments and code cleanup
Jun 25, 2019
34bdcef
Improved useMutation docs
Jun 25, 2019
7a74c26
Improved flow types
Jun 25, 2019
4c63597
Fix typo
Jun 25, 2019
9cb18c8
v3.0.0-rc.6
Jun 25, 2019
26bf653
Fix pick implementation
Jun 25, 2019
80c9d65
v3.0.0-rc.7
Jun 25, 2019
dad49df
Add transition note about forwardRef
Jun 25, 2019
342a27a
v3.0.0
Jun 25, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .babelrc

This file was deleted.

3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

119 changes: 0 additions & 119 deletions .eslintrc

This file was deleted.

15 changes: 15 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

[ignore]

[include]
packages/*/src

[libs]

[options]
include_warnings=true
suppress_comment= \\(.\\|\n\\)*\\$FlowFixMe
suppress_comment= \\(.\\|\n\\)*\\$FlowIssue
suppress_comment= \\(.\\|\n\\)*\\$FlowIgnore
suppress_type=$FlowFixMe
suppress_type=$FlowSubtype
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*.lcov
.nyc_output
*.log
coverage
dist
node_modules
Expand Down
5 changes: 5 additions & 0 deletions .huskyrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
hooks: {
'pre-commit': 'pretty-quick --staged',
},
};
9 changes: 0 additions & 9 deletions .npmignore

This file was deleted.

19 changes: 6 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
language: node_js
node_js:
- "node"
- 'node'
cache:
yarn: true
directories:
- node_modules
- examples/async/node_modules
- site/node_modules
yarn: true
script:
- yarn run build
- yarn run test:cov
- yarn install --cwd examples/async
- yarn run build:examples
- yarn install --cwd site
- yarn run build:site
- lerna bootstrap
- yarn run test
- yarn flow-check
after_success:
- yarn run coverage
- yarn run coverage
5 changes: 2 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ Please follow these rules for all code changes:
- Use [yarn](https://yarnpkg.com/) to install and commit lock file changes.
- When making feature improvements, please provide new tests.
- Code coverage for the project should stay above 90%.
- Please make sure to run `yarn run lint` to run eslint and format the code with prettier.
- Please test the changes with the redux-query site project. To do that, run `yarn run build:umd` from the root directory and `yarn run start` from the site directory. All examples should behave consistently with https://amplitude.github.io/redux-query/.
- Update the README and examples if adding new features or API changes.
- Please make sure to run `yarn test` to run jest.
- Update the docs if adding new features or making any API changes.
- Separate commits into distinct changes with clear messages.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Amplitude

The MIT License (MIT)

Copyright (c) 2017 Amplitude
Copyright (c) 2017-2019 Amplitude

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading