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
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()
or in mapping definitions. [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.
- Improved type checking
- Optimize to shallow compare
props
andcontext
duringcomponentWillReceiveProps
and only recalculate mappings and refetch ifprops
andcontext
actually changed. - Moved
connect
-only level options fromdefaults()
tooptions()
. All request attributes can now be supplied indefaults()
or individual requests. - Fixed
PromiseState.resolve
to returnvalue
as-is if it is alreadyPromiseState
- Fixes handling of rejected fetches (#107)
- 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 - Update development dependencies to React v15
- Added
wrappedInstance
to themeta
object #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