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 2 years ago

Minor Changes

  • 744fd69: Unify vanilla, react and next APIs so they can work together
    React and NextJS libraries now works together with @nhost/nhost-js. It also means the Nhost client needs to be initiated before passing it to the React provider.
    See the React and NextJS configuration documentation for additional information.

Patch Changes

  • 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.

nhost - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

nhost - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

nhost - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

Minor Changes

  • ff7ae21: Introducing setAdminSecret to allow users of the SDK to use x-hasura-admin-secret request header in storage related functions
nhost - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

  • 9bd01e7: Export refresh function
nhost - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

  • e688600: fix: current options when sign in with a provider
    We currently only support setting the redirectTo option for providers.
    This patch removes the options that do not work and adds the redirectTo option correctly to the provider sign-in URL.
  • 8f7643a: Change target ES module build target to es2019
    Some systems based on older versions of Webpack or Babel don't support the current esbuild configuration e.g, this issue.
  • e688600: fix: Correct available options for provider sign-in.
  • 50b9d76: feat: correct available providers (Discord & Twitch added)
nhost - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

  • 8f7643a: Change target ES module build target to es2019
    Some systems based on older versions of Webpack or Babel don't support the current esbuild configuration e.g, this issue.
  • Updated dependencies [e688600]
  • Updated dependencies [8f7643a]
  • Updated dependencies [e688600]
  • Updated dependencies [50b9d76]
nhost - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

nhost - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

  • 8f7643a: Change target ES module build target to es2019
    Some systems based on older versions of Webpack or Babel don't support the current esbuild configuration e.g, this issue.
nhost - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

  • 0d8afde: Bump xstate version 4.30.5
nhost - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

Minor Changes

  • 0d8afde: Use @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 errors

Patch Changes

nhost - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

Minor Changes

  • 0d8afde: Use @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 errors

Patch Changes

  • 0d8afde: Bump xstate version 4.30.5
  • 0d8afde: Capture the Nextjs/xstate warning about useLayoutEffect
    When using Xstate on the server side, Nextjs raises a warning about the use of useLayoutEffect whereas xstate is actually using an isomorphic version of layout effects. Such warnings are now captured.
  • Updated dependencies [0d8afde]
nhost - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

  • 0d8afde: Bump xstate version 4.30.5
  • Updated dependencies [0d8afde]
nhost - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

  • 0d8afde: Bump xstate version 4.30.5
  • Updated dependencies [0d8afde]
nhost - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

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 - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

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 - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

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 - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

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 - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

  • 38f0093: Correct Nhost context type
    const { user } = useNhostAuth(): user type was null. It is now User | null.
nhost - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

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]
Package Rankings
Top 1.38% on Npmjs.org
Related Projects