Skip to content

Releases: nhost/nhost

@nhost/[email protected]

05 Mar 16:54
21b02a3
Compare
Choose a tag to compare

Patch Changes

  • 0d8afde: Bump xstate version 4.30.5

@nhost/[email protected]

05 Mar 16:54
21b02a3
Compare
Choose a tag to compare

Patch Changes

@nhost/[email protected]

04 Mar 09:16
Compare
Choose a tag to compare

Minor Changes

  • 207ae38: New React client

    This release brings a full rewrite of the React client, to make it tree shakable and fully reactive.
    See the documentation for further information.

    Hooks

    • useAccessToken
    • useAnonymousSignIn
    • useAuthenticated
    • useChangeEmail
    • useChangePassword
    • useEmail
    • useEmailPasswordlessSignIn
    • useEmailPasswordSignIn
    • useEmailPasswordSignUp
    • useIsAnonymous
    • useAuthLoading
    • useNhost
    • useNhostBackendUrl
    • useNhostInterpreter
    • useResetPassword
    • useSignOut
    • useUserData
    • useUserLocale
    • the useNhostAuth has not been included. Use useAuthenticated together with useAuthLoading and useUserData instead

    Closes #189, #127, #186, and #195

Patch Changes

@nhost/[email protected]

04 Mar 09:16
Compare
Choose a tag to compare

Minor Changes

  • 207ae38: New NextJS client

    Introducting a new @nhost/nextjs package. It is designed to keep the refresh token between the browser and the Next.js server with a cookie. SSR routes should fetch the session in getServerSideProps into a nhostSession pageProps in using the getNhostSession method.

    Every @nhost/react hook is compatible with this package.

    See the documentation for further information.

    Closes #110 and #180

Patch Changes

@nhost/[email protected]

04 Mar 09:16
Compare
Choose a tag to compare

Minor Changes

  • 207ae38: Improvements on autoSignIn

    Auto login enables authentication from a link sent by email.
    It parses the url query parameters of the browser and looks for a possible refresh token to consume and authenticate.
    Although the mechanism existed already, it now broadcasts the refresh token to other tabs in the same browser, so they can also authenticate automatically.

  • 207ae38: Improvements on autoRefreshToken

    Auto refresh now uses a client-side timestamp from the instant of its creation to the access token expiration interval. As a result, there is less change of refresh and access token becoming stale or out of sync.

  • 207ae38: Tree-shakable API

    The new @nhost/client package is written with tree-shakability in mind. No dead code should be included by a subsequent bundler.

    See #198

  • 207ae38: ## Stable authentication state

    Until now, the Nhost SDK authentication state and its context (access Token, refresh token...) was not held with a reliable system, ending in unconsistencies e.g. #189, #202, #186, #195.
    The @nhost/client handles authentication state as a finite state machine with xstate. Xstate is framework agnostic and the authentication state will be easily plugable in most reactive frameworks such as React, Vue and Svelte.

@nhost/[email protected]

04 Mar 09:16
Compare
Choose a tag to compare

Minor Changes

  • 207ae38: Rewrite of the Apollo GraphQL client

    • Introducing a new @nhost/apollo that will be reusable by other frameworks than React e.g. Vue
    • The new package works together with the @nhost/client and its new state management system
    • BREACKING CHANGE The react client @nhost/react-apollo is set to use the new @nhost/client package and won't work anymore with @nhost/nhost-js. See the documentation for further information.

    Closes #8

Patch Changes

@nhost/[email protected]

02 Mar 13:00
94fda09
Compare
Choose a tag to compare

Patch Changes

  • 38f0093: Correct Nhost context type
    const { user } = useNhostAuth(): user type was null. It is now User | null.

@nhost/[email protected]

23 Feb 11:55
22a8d2d
Compare
Choose a tag to compare

Patch Changes

  • c8f2488: optimize npm packages: only include the dist directory, and introduce the exports field in package.json as per Vite's recommendations.
  • Updated dependencies [c8f2488]

@nhost/[email protected]

23 Feb 11:55
22a8d2d
Compare
Choose a tag to compare

Patch Changes

  • c8f2488: optimize npm packages: only include the dist directory, and introduce the exports field in package.json as per Vite's recommendations.
  • Updated dependencies [c8f2488]

@nhost/[email protected]

23 Feb 11:55
22a8d2d
Compare
Choose a tag to compare

Patch Changes