The Open Source Firebase Alternative with GraphQL.
MIT License
Bot releases are visible (Hide)
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
@testing-library/react
to v14 and @testing-library/dom
to v9
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
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.
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
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
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}
.
Published by github-actions[bot] over 1 year ago
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
insteaduseAuthLoading
: use useAuthenticationStatus
insteaduseAvatarUrl
: 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>
clientsPublished by github-actions[bot] over 1 year ago
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 })
axios
by cross-fetch
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
@types/react
to v18.0.28 and @types/react-dom
to v18.0.11Published by github-actions[bot] over 1 year ago
react-is
version to 18.2.0
Published by github-actions[bot] over 1 year ago