Skip to content

Releases: heroku/react-refetch

v1.0.0-beta.5

25 May 01:21
Compare
Choose a tag to compare
v1.0.0-beta.5 Pre-release
Pre-release
  • Only re-render component if props or requests shallowly changed
  • Omit children in willReceiveProps comparison
  • Add pure option allow apps to control always updating on prop changes
  • Allow then and catch to return undefined for side effects
  • Allow refreshing to take a function to change value before request
  • Fix parent/default mapping inheritance. Avoids infinite then and inherits fetch, buildRequest, Request, and handleResponse
  • Update development dependencies to React v15
  • Improved tests

v1.0.0-beta.4

13 Apr 16:43
Compare
Choose a tag to compare
v1.0.0-beta.4 Pre-release
Pre-release
  • Fixes handling of rejected fetches (#107)

Thank you to @nfcampos for this contribution!

v1.0.0-beta.3

11 Apr 18:17
Compare
Choose a tag to compare
v1.0.0-beta.3 Pre-release
Pre-release
  • Moved connect-only level options from defaults() to options(). All request attributes can now be supplied in defaults() or individual requests.
  • Fixed optional context parameter to work with connect being used as a function (instead of a decorator)
  • Fixed PromiseState.resolve to return value as-is if it is already PromiseState

Thanks to @nfcampos for his contributions to this release!

v1.0.0-beta.2

05 Apr 02:13
Compare
Choose a tag to compare
v1.0.0-beta.2 Pre-release
Pre-release
  • Optimize to shallow compare props and context during componentWillReceiveProps and only recalculate mappings and refetch if props and context actually changed. This change maybe potentially breaking, but mapPropsToRequestsToProps 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

04 Apr 06:48
Compare
Choose a tag to compare
v1.0.0-beta.1 Pre-release
Pre-release
  • Improved type checking
  • fetch, handleResponse, buildRequest and Request can now be set at the mapping level
  • every option can now be set at the individual mapping or defaults level

See #96 for more details.

Thank you to @nfcampos for the contribution!

v1.0.0-beta.0

28 Mar 06:41
Compare
Choose a tag to compare
v1.0.0-beta.0 Pre-release
Pre-release
  • Adds support for any compatible fetch implementation. Auto-detects default fetch 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, and handle Response implementations in connect.defaults(). [docs]
  • Deprecated options argument in connect. Applications that use withRef as an option (i.e. connect(props, { withRef: true })) should change to using connect.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

27 Mar 17:01
Compare
Choose a tag to compare

v0.8.0-beta.0

17 Mar 18:49
Compare
Choose a tag to compare

v0.7.1

14 Mar 18:38
Compare
Choose a tag to compare
  • Support identity requests with falsey values
  • Support React 15 RC

v0.7.0

03 Mar 22:40
Compare
Choose a tag to compare
  • Add identity requests
  • Allow any version of whatwg-fetch
  • Add cause field to errors in PromiseState.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