All Versions
32
Latest Version
Avg Release Cycle
12 days
Latest Release
579 days ago

Changelog History
Page 1

  • v1.7.4 Changes

    March 26, 2020

    Fixes

    • โšก๏ธ #84 - handleReload from useQuery hook fired with old client instance after client update
  • v1.7.3 Changes

    March 26, 2020

    Fixes

    • โšก๏ธ #84 - queries were fired with old client instance after client update
  • v1.7.1 Changes

    March 23, 2020

    Improvements

    • ๐Ÿ‘ Allow to easily use axios with all features - example
  • v1.7.0 Changes

    February 25, 2020

    Improvements

    • ๐Ÿ†• New way of extending base Action in TS - more info here

    ๐Ÿ’ฅ Breaking changes

    • Old way of extending Action type in TS is not working anymore
  • v1.6.4 Changes

    February 24, 2020

    Fix

    • TS types of client context
  • v1.6.3

    February 24, 2020
  • v1.6.2 Changes

    February 24, 2020

    Features

  • v1.6.1 Changes

    February 20, 2020

    Features

  • v1.6.0 Changes

    February 20, 2020

    Improvements

    • ๐Ÿ“ฆ package size reduction (replace tsc with rollup and closure compiler)
    • ๐Ÿ‘ allow to define response TS type directly in action definition

      type UsersResponse = { data: User[]; meta: any; }export const fetchUsersList: Action<UsersResponse> = { method: 'GET', endpoint: '/users', };

    and then you can skip type in component ie.

    const { payload } = useQuery(fetchUsersList)
    

    instead of

    const { payload } = useQuery\<UsersResponse\>(fetchUsersList)
    

    ๐Ÿ’ฅ Breaking changes

    • ๐Ÿšš MutateContext and QueryContext have been removed - it's easier to create own context in application
    • First parameter for Action type is now response type, to extend base Action (ie. to add some new params) you have to create type like that:

      import { Action as BaseAction } from 'react-fetching-library';export type Action<T = any, K = { skipAuth?: boolean; }> = BaseAction<T, K>;

  • v1.5.15 Changes

    February 12, 2020

    Fixes

    • โœ‚ remove random background color in documentation
    • โž• add info about responseType property in Action type
    • โœ‚ remove default Content-Type for requests with body of type Blob, ArrayBuffer, FormData