Releases: heroku/react-refetch
Releases · heroku/react-refetch
v1.0.1
v1.0.1-2 (beta)
v1.0.1-1 (beta)
v1.0.1-0 (beta)
v1.0.0
- Adds support for any compatible
fetchimplementation. Auto-detects defaultfetchincluding client and server side implementations. - Removes
whatwg-fetchas a peer dependency. - Adds
connect.defaults()function to set options and default values for request mappings. Includes type checking of defaults. [docs] - Adds ability to set
buildRequest,fetch, andhandle Responseimplementations inconnect.defaults()or in mapping definitions. [docs] - Deprecated
optionsargument inconnect. Applications that usewithRefas an option (i.e.connect(props, { withRef: true })) should change to usingconnect.defaults(i.e.connect.defaults({ withRef: true })(props)). - Documented required polyfills.
- Improved type checking
- Optimize to shallow compare
propsandcontextduringcomponentWillReceivePropsand only recalculate mappings and refetch ifpropsandcontextactually changed. - Moved
connect-only level options fromdefaults()tooptions(). All request attributes can now be supplied indefaults()or individual requests. - Fixed
PromiseState.resolveto returnvalueas-is if it is alreadyPromiseState - Fixes handling of rejected fetches (#107)
- Only re-render component if props or requests shallowly changed
- Omit
childreninwillReceivePropscomparison - Add
pureoption allow apps to control always updating on prop changes - Allow
thenandcatchto returnundefinedfor side effects - Allow
refreshingto take a function to changevaluebefore request - Update development dependencies to React v15
- Added
wrappedInstanceto themetaobject #139 - Fixes: Requested keys of a value that is not an object #143
- Migrates to use files directive in package.json instead of .npmignore. #133
- Returns a new object from
PromiseState.refreshing#150
v1.0.0-beta.10
- Returns a new object from
PromiseState.refreshing#150
v1.0.0-beta.9
v1.0.0-beta.8
v1.0.0-beta.7
- Fix parent equalality