All Versions
29
Latest Version
Avg Release Cycle
13 days
Latest Release
91 days ago

Changelog History
Page 1

  • v1.7.0

    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

    February 24, 2020

    Fix

    • TS types of client context
  • v1.6.3

    February 24, 2020
  • v1.6.2

    February 24, 2020

    Features

  • v1.6.1

    February 20, 2020

    Features

  • v1.6.0

    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

    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
  • v1.5.15-next

    February 18, 2020
  • v1.5.14

    January 08, 2020

    Fixes

    • replace suspense global cache with cache from client - #66
  • v1.5.13

    December 22, 2019

    Improvements

    • ➕ add default value to createClient - #63