nhost

The Open Source Firebase Alternative with GraphQL.

MIT License

Downloads
67.3K
Stars
7.9K
Committers
89

Bot releases are visible (Hide)

nhost - @nhost/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • Updated dependencies [2200a0ed]
  • Updated dependencies [3b48a627]
nhost - @nhost/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

nhost - @nhost/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

nhost - @nhost/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

nhost - @nhost/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

nhost - @nhost/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

nhost - @nhost/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • 2cc18dcb: fix(dashboard): prevent permission editor dropdown from being always open
nhost - @nhost/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

nhost - @nhost/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • Updated dependencies [c9d2d31a]
  • Updated dependencies [80bbd3a1]
  • Updated dependencies [80bbd3a1]
  • Updated dependencies [2949ff0f]
nhost - @nhost/[email protected]

Published by github-actions[bot] over 1 year ago

Major Changes

  • 80bbd3a1: 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

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

    nhost.graphql.getUrl() is now deprecated.

  • 80bbd3a1: 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.

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

Patch Changes

  • Updated dependencies [19b11d40]
  • Updated dependencies [19b11d40]
  • Updated dependencies [19b11d40]
  • Updated dependencies [19b11d40]
  • Updated dependencies [80bbd3a1]
  • Updated dependencies [80bbd3a1]
  • Updated dependencies [19b11d40]
nhost - @nhost/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • Updated dependencies [19b11d40]
  • Updated dependencies [19b11d40]
nhost - @nhost/[email protected]

Published by github-actions[bot] over 1 year ago

Major Changes

  • 19b11d40: Remove the deprecated nhost.storage.getUrl method

    Use nhost.storage.getPublicUrl instead.

  • 80bbd3a1: Replace axios by cross-fetch

    @nhost/hasura-storage-js now uses cross-fetch instead of axios.
    When in a browser, it uploads files using XMLHttpRequest to be able to track upload progress (feature available in React and Vue)

    Breaking Changes

    The error returned in const { error } = nhost.storage.upload() is not a JavaScript Error, but an object of type { error: string; status: number; message: string}.

nhost - @nhost/[email protected]

Published by github-actions[bot] over 1 year ago

Major Changes

  • 19b11d40: Remove deprecated signatures in React hooks

    It is now not possible to send the input values of the following hooks when creating them:

    • useChangeEmail
    • useChangePassword
    • useResetPassword
    • useSendVerificationEmail
    • useSignInEmailPassword
    • useSignInEmailPasswordless
    • useSignUpEmailPassword

    For instance, it is not possible to do the following:

    const [email, setEmail] = useState('')
    const { changeEmail } = useChangeEmail(email)
    
    const handleSubmit = async (e: React.SyntheticEvent<HTMLFormElement>) => {
        e.preventDefault()
        await changeEmail()
    }
    
    return <form onSubmit={ handleSubmit }>
                <input value={email} onChange={onChange={(event) => setEmail(event.target.value)}}  />
           </form>
    

    Instead, write:

    const [email, setEmail] = useState('')
    const { changeEmail } = useChangeEmail()
    
    const handleSubmit = async (e: React.SyntheticEvent<HTMLFormElement>) => {
        e.preventDefault()
        await changeEmail(email)
    }
    
    return <form onSubmit={ handleSubmit }>
                <input value={email} onChange={onChange={(event) => setEmail(event.target.value)}}  />
           </form>
    
    
  • 19b11d40: Remove deprecated hooks

    • useNhostAuth: use useNhostClient instead
    • useAuthLoading: use useAuthenticationStatus instead
    • useAvatarUrl: use useUserAvatarUrl instead.
    • useDefaultRole: use useUserDefaultRole instead.
    • useDisplayName: use useUserDisplayName instead.
    • useEmail: use useUserEmail instead.
    • useIsAnonymous: use useUserIsAnonymous instead.
    • useNhostBackendUrl: use useNhostClient instead, then the urls in the respective nhost.<auth,storage,graphql,functions> clients

Patch Changes

  • Updated dependencies [c9d2d31a]
  • Updated dependencies [80bbd3a1]
  • Updated dependencies [80bbd3a1]
  • Updated dependencies [2949ff0f]
nhost - @nhost/[email protected]

Published by github-actions[bot] over 1 year ago

Major Changes

  • 19b11d40: Remove the deprecated AuthCookieClient and AuthClientSSR constructors

    Use the clientStorageType option instead:

    const nhost = new NhostClient({ clientStorageType: 'cookie' })
    
  • 19b11d40: Remove the deprecated nhost.auth.getJWTToken method

    Use nhost.auth.getAccessToken() instead.

  • 19b11d40: Remove the deprecated autoLogin option

    Use autoSignIn instead:

    const nhost = new NhostClient({ autoSignIn: true })
    
  • 19b11d40: Remove the deprecated clientStorageGetter and clientStorageSetter options

    Use clientStorageType and clientStorage instead:

    const nhost = new NhostClient({ clientStorageType: 'custom', clientStorage: TODO })
    

Minor Changes

  • 80bbd3a1: Replace axios by cross-fetch
nhost - @nhost/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • Updated dependencies [c9d2d31a]
  • Updated dependencies [80bbd3a1]
  • Updated dependencies [80bbd3a1]
  • Updated dependencies [2949ff0f]
nhost - @nhost/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • Updated dependencies [19b11d40]
  • Updated dependencies [19b11d40]
nhost - @nhost/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

nhost - @nhost/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • 87eda76e: chore(dashboard): bump @types/react to v18.0.28 and @types/react-dom to v18.0.11
  • 6f0ac570: feat(dashboard): show dashboard version in account menu
nhost - @nhost/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

nhost - @nhost/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • 5013213b: chore(deps): update dependency @nhost/docgen to 0.1.6