Releases: heroku/react-refetch
Releases · heroku/react-refetch
v1.0.0-beta.5
- 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 - Fix parent/default mapping inheritance. Avoids infinite
thenand inheritsfetch,buildRequest,Request, andhandleResponse - Update development dependencies to React v15
- Improved tests
v1.0.0-beta.4
v1.0.0-beta.3
- Moved
connect-only level options fromdefaults()tooptions(). All request attributes can now be supplied indefaults()or individual requests. - Fixed optional
contextparameter to work withconnectbeing used as a function (instead of a decorator) - Fixed
PromiseState.resolveto returnvalueas-is if it is alreadyPromiseState
Thanks to @nfcampos for his contributions to this release!
v1.0.0-beta.2
- Optimize to shallow compare
propsandcontextduringcomponentWillReceivePropsand only recalculate mappings and refetch ifpropsandcontextactually changed. This change maybe potentially breaking, butmapPropsToRequestsToPropsshould have always been a pure function and should not impact apps that abided by that contract. Pull Request: #94
Thank you to @nfcampos for the contribution!
v1.0.0-beta.1
v1.0.0-beta.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(). [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.
The features above were delivered in #76 by the amazing @passcod!
v0.8.0
- Added support for
contextas second argument tomapPropsToRequestsToProps()[docs] - Fixed
setState()being called after component unmounts
Big thanks @nfcampos's contributions for this release!
v0.8.0-beta.0
- Added support for
contextas second argument tomapPropsToRequestsToProps() - Fixed
setState()being called after component unmounts
Big thanks @nfcampos's contributions for this release!
v0.7.1
- Support identity requests with falsey values
- Support React 15 RC
v0.7.0
- Add identity requests
- Allow any version of whatwg-fetch
- Add
causefield to errors inPromiseState.reasonto access raw object that caused the error - Fix bug with header comparison
- Fix body parsing when body is empty.
- Update dev dependencies
- Correction of lots of typos in readme