The Open Source Firebase Alternative with GraphQL.
MIT License
Bot releases are visible (Hide)
Published by github-actions[bot] over 2 years ago
@nhost/nhost-js
. It also means the Nhost client needs to be initiated before passing it to the React provider.744fd69: Rename @nhost/client
to @nhost/core
The @nhost/client
name was somehow misleading, as it was implying it could somehow work as a vanilla client, whereas it only contained the state machine that could be used for vanilla or framework specific libraries e.g. @nhost/react
.
It is therefore renamed to @nhost/core
, and keeps the same versionning and changelog.
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
setAdminSecret
to allow users of the SDK to use x-hasura-admin-secret
request header in storage related functionsPublished by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
@nhost/react
as a peer dependency@nhost/react
was bundled where it shouldn't. As a result, @nhost/react-apollo
did not have access to the Nhost React context, leading to errorsPublished by github-actions[bot] over 2 years ago
@nhost/react
as a peer dependency@nhost/react
was bundled where it shouldn't. As a result, @nhost/react-apollo
did not have access to the Nhost React context, leading to errorsuseLayoutEffect
whereas xstate is actually using an isomorphic version of layout effects. Such warnings are now captured.Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
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.
Published by github-actions[bot] over 2 years ago
207ae38: Rewrite of the Apollo GraphQL client
@nhost/apollo
that will be reusable by other frameworks than React e.g. Vue@nhost/client
and its new state management system@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
Published by github-actions[bot] over 2 years ago
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.
useAccessToken
useAnonymousSignIn
useAuthenticated
useChangeEmail
useChangePassword
useEmail
useEmailPasswordlessSignIn
useEmailPasswordSignIn
useEmailPasswordSignUp
useIsAnonymous
useAuthLoading
useNhost
useNhostBackendUrl
useNhostInterpreter
useResetPassword
useSignOut
useUserData
useUserLocale
useNhostAuth
has not been included. Use useAuthenticated
together with useAuthLoading
and useUserData
insteadPublished by github-actions[bot] over 2 years ago
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.
Published by github-actions[bot] over 2 years ago
const { user } = useNhostAuth()
: user type was null
. It is now User | null
.Published by github-actions[bot] over 2 years ago
dist
directory, and introduce the exports
field in package.json as per Vite's recommendations.