Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hooks API and separate packages (#129)
* Start 3.0 refactor, separate modules into separate packages * Make network interface required param to middleware * useRequest hook * useMutation, more tests and fixes * Rewrite connectRequest with hooks * Build config fixes * Make build script executable * Fix build * Try using lerna without yarn workspaces * v3.0.0-alpha.0 * More build fixes, start fixing site * Get site working and update react-scripts, fix UMD builds * Fix site dependencies * Set preset-env node target to current to fix async tests * v3.0.0-alpha.1 * v3.0.0-alpha.2 * Update gitHead * Run prettier on site * Better superagent interface tests * Ignore dist files when analyzing test coverage * Handle null query config params Add more tests. Change getQueryKey to support null param. Fix memoized action returning wrong action when query key changes. * v3.0.0-alpha.3 * Only set babel node target for test env * Simplify connectRequest diffing and remove some lodash libs * Rename useMemoizedAction to useMemoizedQueryConfig * Return the mutation promise from mutate callback * Read query state from redux and return from hooks * v3.0.0-alpha.4 * Start flow types * Remove networkHandler from redux state * Fix superagent interface build * v3.0.0-alpha.5 * Run flow check on travis * Add flow types to actions, query middleware * More flow types * v3.0.0-alpha.6 * Babel load redux-query for redux-query-react * v3.0.0-alpha.7 * v3.0.0-alpha.8 * Fix connectRequest flow issues, start some flow tests * v3.0.0-alpha.9 * Fix mapPropsToConfigs types * Update dependencies * v3.0.0-alpha.10 * Use main entry points for imports * v3.0.0-alpha.11 * Make redux-query peer deps not regular deps * v3.0.0-alpha.12 * Fix connectRequest retry behavior and add tests * v3.0.0-alpha.13 * New site * Don't dispatch cancel actions for requests that aren't pending * Fix connectRequest cancelling requests that it shouldn't * v3.0.0-alpha.14 * New site * Delete build.sh (lerna bootstrap is equivalent) * Update CONTRIBUTING * Delete previous site * v3.0.0-rc.0 * Make lib functions have safe defaults * Fix useMutation return value * Build flow entry points for all packages * v3.0.0-rc.1 * Flow type fixes * v3.0.0-rc.2 * Export Action type from src/types * Add top-level types.flow entrypoint * v3.0.0-rc.3 * Fix careless mistake in READMEs * Use standard .js.flow extension for types * v3.0.0-rc.4 * Add more links in docs * Configure algolia search * "React hooks" * Fix build script * Make useMutation take a callback instead of a query config * v3.0.0-rc.5 * Update simple example * Fix useMutation example bugs * More code comments and code cleanup * Improved useMutation docs * Improved flow types * Fix typo * v3.0.0-rc.6 * Fix pick implementation * v3.0.0-rc.7 * Add transition note about forwardRef * v3.0.0
- Loading branch information