Skip to content

Latest commit

 

History

History
157 lines (124 loc) · 3.74 KB

CHANGELOG.md

File metadata and controls

157 lines (124 loc) · 3.74 KB

Change Log

[Unreleased]

[3.10.1] - 2020-04-22

Changed

  • Add status code in fetch error message (#40)

[3.10.0] - 2020-04-19

Changed

  • Avoid using useRef in useMemoList (hoping to find better solution)
  • Attach response object to fetch error (#40)

[3.9.0] - 2019-12-02

Changed

  • Do not propagate errors when invoking with useAsyncRun/useAsyncCombine (#36)
  • The start functions in combined tasks return results

[3.8.1] - 2019-11-28

Changed

  • Fix useAsyncCombineRace which was totally broken in v3.8.0
  • Do not useLayoutEffect which shows warning in SSR (#35)

[3.8.0] - 2019-11-26

Changed

  • Fix inifinite loop in edge cases by avoiding slow memoization
  • Fix useAsyncRun for some cases with conditional running
  • Fix typings which are broken in #31
    • The state now has the aborted flag
    • This is technically a breaking change, but releasing it as a minor update
  • Fix typings around Args

[3.7.0] - 2019-11-09

Changed

  • useAsyncTaskAxios follows the change in #31
  • Rewrite useAsyncTask with useReducer (#33)

[3.6.1] - 2019-11-01

Changed

  • Improve typings (#32)

[3.6.0] - 2019-10-30

Changed

  • Do not throw an error when request is aborted (#31)

[3.5.1] - 2019-10-19

Changed

  • Side effects free for webpack v4

[3.5.0] - 2019-10-18

Changed

  • task.start returns a promise (#28)

[3.4.2] - 2019-09-17

Changed

  • Parse error response body in useAsyncTaskFetch (#24)

[3.4.1] - 2019-09-09

Changed

  • Fix a fatal bug in useAsyncCombineSeq

[3.4.0] - 2019-09-01

Changed

  • Workaround for terser minification (#19)
  • Fix updating with the old task (#22)
  • Reset the started flag after fullfilled (#22)

[3.3.0] - 2019-08-15

Changed

  • Fix variable args/tasks length scenario (#21)

[3.2.0] - 2019-08-12

Changed

  • Improve type definition of AsyncTask

[3.1.1] - 2019-08-07

Changed

  • Fix degradation in useAsyncRun (#20)

[3.1.0] - 2019-07-28

Changed

  • Support custom args and reusable tasks (#18)

[3.0.0] - 2019-07-19

Changed

  • No sub directory import (BREAKING CHANGE)
  • useAsyncTaskAxios/useAxios requires axios instance (BREAKING CHANGE)
  • No deps array, arguments should be memoized in caller (BREAKING CHANGE)

[2.1.0] - 2019-04-16

Changed

  • Fix a fatal bug in type definition
  • Update dependencies (incl. core-js@3)

[2.0.0] - 2019-03-21

Changed

  • Rename "inputs" to "deps"
  • Improve the implementation with useReducer
  • Fix the useRef in useAsyncCombineSeq/Race
  • To avoid memoization, useAsyncTaskTimeout and useAsyncTaskAxios get "deps" (breaking change)

[1.3.0] - 2019-03-04

Changed

  • Improve the implementation of useAsyncTaskDelay (no ref)

[1.2.0] - 2019-02-23

Changed

  • Rename useMemoSafe to useMemoPrev
    • Although this is technically a breaking change, we release it as a minor update

[1.1.0] - 2019-02-18

Changed

  • Improve useRef usage for concurrent mode

[1.0.0] - 2019-02-10

Changed

  • Remove shallowequal dependency
  • Remove helper hooks from index (breaking change)

[0.8.0] - 2019-02-05

Changed

  • Do not use useMemo/useCallback as a semantic guarantee
  • A naive useMemoSafe for axios config
  • Fix null types
  • short-hand hooks: useFetch, useAxios

[0.7.0] - 2019-01-22

Added

  • useAsyncTaskWasm and useWasm

[0.6.0] - 2019-01-15

Changed

  • Split type definition files in the src directory

[0.5.0] - 2018-12-19

Changed

  • Aborts running tasks on unmount

[0.4.0] - 2018-12-18

Changed

  • Make useAsyncTaskAxios optional (see examples/05_axios)

[0.3.0] - 2018-12-16

Added

  • useAsyncCombineRace

Changed

  • Fix combine return type
  • Fix useAsyncCombineAll

[0.2.0] - 2018-12-14

Added

  • Add useAsyncTaskDelay
  • Add useAsyncTaskAxios

[0.1.0] - 2018-12-11

Added

  • Initial release