Releases: nhost/nhost
@nhost/[email protected]
Patch Changes
- 0d8afde: Bump xstate version 4.30.5
@nhost/[email protected]
Patch Changes
- 0d8afde: Bump xstate version 4.30.5
- Updated dependencies [0d8afde]
- @nhost/[email protected]
@nhost/[email protected]
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. UseuseAuthenticated
together withuseAuthLoading
anduseUserData
instead
Patch Changes
- Updated dependencies [207ae38]
- @nhost/[email protected]
@nhost/[email protected]
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 ingetServerSideProps
into anhostSession
pageProps in using thegetNhostSession
method.Every
@nhost/react
hook is compatible with this package.See the documentation for further information.
Patch Changes
- Updated dependencies [207ae38]
- @nhost/[email protected]
- @nhost/[email protected]
@nhost/[email protected]
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]
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
- Introducing a new
Patch Changes
- Updated dependencies [207ae38]
- @nhost/[email protected]
@nhost/[email protected]
Patch Changes
- 38f0093: Correct Nhost context type
const { user } = useNhostAuth()
: user type wasnull
. It is nowUser | null
.
@nhost/[email protected]
Patch Changes
- c8f2488: optimize npm packages: only include the
dist
directory, and introduce theexports
field in package.json as per Vite's recommendations. - Updated dependencies [c8f2488]
- @nhost/[email protected]
@nhost/[email protected]
Patch Changes
- c8f2488: optimize npm packages: only include the
dist
directory, and introduce theexports
field in package.json as per Vite's recommendations. - Updated dependencies [c8f2488]
- @nhost/[email protected]
@nhost/[email protected]
Patch Changes
- c8f2488: build npm package with esbuild instead of vite. Vite does not build isomorphic packages correctly, in particular the dependency to axios
- Updated dependencies [c8f2488]
- @nhost/[email protected]
- @nhost/[email protected]