Releases: heroku/react-refetch
Releases · heroku/react-refetch
v1.0.0-beta.5
- Only re-render component if props or requests shallowly changed
- Omit
children
inwillReceiveProps
comparison - Add
pure
option allow apps to control always updating on prop changes - Allow
then
andcatch
to returnundefined
for side effects - Allow
refreshing
to take a function to changevalue
before request - Fix parent/default mapping inheritance. Avoids infinite
then
and 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
context
parameter to work withconnect
being used as a function (instead of a decorator) - Fixed
PromiseState.resolve
to returnvalue
as-is if it is alreadyPromiseState
Thanks to @nfcampos for his contributions to this release!
v1.0.0-beta.2
- Optimize to shallow compare
props
andcontext
duringcomponentWillReceiveProps
and only recalculate mappings and refetch ifprops
andcontext
actually changed. This change maybe potentially breaking, butmapPropsToRequestsToProps
should 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
fetch
implementation. Auto-detects defaultfetch
including client and server side implementations. - Removes
whatwg-fetch
as 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 Response
implementations inconnect.defaults()
. [docs] - Deprecated
options
argument inconnect
. Applications that usewithRef
as 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
context
as 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
context
as 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
cause
field to errors inPromiseState.reason
to 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