# Change Log
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [0.5.1] - 2020-05-31
### Fixed
- Adds abort on unmount to get rid of potential memory leak (#11) @joeydebreuk

## [0.5.0] - 2018-10-15
### Added
- Adds the ability for `options` to be a function that takes props and returns
  an `options` object,

## [0.4.0] - 2018-06-23
### Changed
- Adds the `refetchData` prop to force the component to refetch the data without
  changing the URL (#8) @fc

## [0.3.0] - 2017-08-07
### Changed
- Initialize `loading` prop as `true` if input resource resolves to a truthy
  value, `false` otherwise (#3)
- The `response` prop is now cloned, which means it can be read from if you need
  to parse it some other way
- Move some project files around
- Update dev dependencies

## [0.2.1] - 2017-08-05
### Fixed
- Fix setState warning when component unmounts (#4) @danielr18

## [0.2.0] - 2017-07-08
### Added
- Don't fetch when the URL resolves to a falsey value (#1)
- Handle 4xx and 5xx responses by setting props to an error state (#2)
- Add new `response` prop which contains the `fetch` response

### Changed
- The `loading` prop is now `true` when the component mounts

## [0.1.0] - 2017-05-25
### Added
- Reactive URL by passing a function as the first parameter
- Lots of project related stuff (Tests, ESLint, Flow, prettier, travis,
  coveralls)

### Fixed
- Bugs from the first release

## [0.0.1] - 2017-05-21
### Added
- Initial (buggy) release!

[Unreleased]: https://github.com/esphen/fetch-hoc/compare/0.5.0...HEAD
[0.5.0]: https://github.com/esphen/fetch-hoc/compare/v0.4.0...0.5.0
[0.4.0]: https://github.com/esphen/fetch-hoc/compare/0.3.0...v0.4.0
[0.3.0]: https://github.com/esphen/fetch-hoc/compare/0.2.1...0.3.0
[0.2.1]: https://github.com/esphen/fetch-hoc/compare/0.2.0...0.2.1
[0.2.0]: https://github.com/esphen/fetch-hoc/compare/0.1.0...0.2.0
[0.1.0]: https://github.com/esphen/fetch-hoc/compare/0.0.1...0.1.0
[0.0.1]: https://github.com/esphen/fetch-hoc/commit/148b67fdfd0ad40439fc4a8f2e61418fa823441b
