github nhost/nhost @nhost/nhost-js@2.0.0

3 years ago

Major Changes

  • 80bbd3a: Replace axios by cross-fetch

    Breaking Changes

    • The config type of nhost.functions.call(url, data, config) is not AxiosRequestConfig anymore, and deprecates the useAxios: false option.

    • The config type of nhost.graphql.request(document, [variables], config) is not AxiosRequestConfig anymore, and deprecates the useAxios: false option.

Minor Changes

  • c9d2d31: Add new getters nhost.graphql.httpUrl and nhost.graphql.wsUrl

    nhost.graphql.getUrl() is now deprecated.

  • 80bbd3a: Improve type inference of nhost.graphql.request

    The method nhost.graphql.request is now set to infer result and variables types from typed document nodes.

  • 2949ff0: Introduce typed nhost.graphql.query and nhost.graphql.mutation

Patch Changes

  • Updated dependencies [19b11d4]
  • Updated dependencies [19b11d4]
  • Updated dependencies [19b11d4]
  • Updated dependencies [19b11d4]
  • Updated dependencies [80bbd3a]
  • Updated dependencies [80bbd3a]
  • Updated dependencies [19b11d4]
    • @nhost/hasura-storage-js@2.0.0
    • @nhost/hasura-auth-js@2.0.0
    • @nhost/graphql-js@0.0.1

Don't miss a new nhost release

NewReleases is sending notifications on new releases.