The Open Source Firebase Alternative with GraphQL.
MIT License
Bot releases are visible (Hide)
Published by github-actions[bot] almost 2 years ago
@nhost/nextjs
<NhostProvider></NhostProvider>
useFileUpload
to be reuseduseFileUpload
, it was not possible to reuse it as the returned file id were kept in memory and sent again to hasura-storage, leading to a conflict error.Published by github-actions[bot] almost 2 years ago
useFileUpload
to be reuseduseFileUpload
, it was not possible to reuse it as the returned file id were kept in memory and sent again to hasura-storage, leading to a conflict error.Published by github-actions[bot] almost 2 years ago
Published by github-actions[bot] almost 2 years ago
Published by github-actions[bot] almost 2 years ago
19cca7f4: Deprecate Axios
Axios will be replaced by cross-fetch in the near future.
To prepare for the transition, we are deprecating the old signature for the following methods:
nhost.functions.call()
nhost.graphql.request()
Both methods now accept an optional useAxios
parameter that can be used to opt-in ({ useAxios: false }
) to the new method signature. By default, useAxios
is set to true
so you can update it on your own time.
When using useAxios: false
:
headers: Record<string,string>
nhost.functions.call
:
error
is using the same standard error type as in hasura-auth-js
and hasura-storage-js
res
is using { status: number; statusText: string; data: T }
nhost.graphql.request
:
error
is either using the standard error type, or GraphQlError[]
65687bee: Remove @nhost/hasura-auth-js
and @nhost/hasura-storage-js
from peerDepencencies
The contents of both clients are now available from @nhost/nhost-js
.
b21222b3: chore(deps): update dependency @types/node to v16
54df0df4: Improve the initialisation of the internal authentication state to support React 18 strict mode
1a9e1fde: Remove unused query-string dependency
5be9abb0: Allow custom values for the Accept-Encoding
header in nhost.graphql.request
54df0df4: Use initial session sent from the server
When running a SSR page, the session was correctly created from the refresh token on the server side and was sent to the client side, but was not used correctly on the client side.
As a result, the client was refreshing the access token when loading the page, rather than using the access token sent by the server.
The client now uses the session sent from the server.
Updated dependencies [b21222b3]
Updated dependencies [19cca7f4]
Updated dependencies [54df0df4]
Published by github-actions[bot] almost 2 years ago
Published by github-actions[bot] almost 2 years ago
Published by github-actions[bot] almost 2 years ago
Published by github-actions[bot] almost 2 years ago
Published by github-actions[bot] almost 2 years ago
Published by github-actions[bot] almost 2 years ago
65687bee: Remove @nhost/nhost-js
from peerDepencencies
The contents of the @nhost/nhost-js
package are now exported by @nhost/react
.
Published by github-actions[bot] almost 2 years ago
Published by github-actions[bot] almost 2 years ago
19cca7f4: Deprecate Axios
Axios will be replaced by cross-fetch in the near future.
To prepare for the transition, we are deprecating the old signature for the following methods:
nhost.functions.call()
nhost.graphql.request()
Both methods now accept an optional useAxios
parameter that can be used to opt-in ({ useAxios: false }
) to the new method signature. By default, useAxios
is set to true
so you can update it on your own time.
When using useAxios: false
:
headers: Record<string,string>
nhost.functions.call
:
error
is using the same standard error type as in hasura-auth-js
and hasura-storage-js
res
is using { status: number; statusText: string; data: T }
nhost.graphql.request
:
error
is either using the standard error type, or GraphQlError[]
Published by github-actions[bot] almost 2 years ago
65687bee: Remove @nhost/react
from peerDepencencies
The contents of the @nhost/react
package are now exported by @nhost/nextjs
. As a result,
It is not required to install @nhost/react
alongside @nhost/nextjs
.
Before:
yarn add @nhost/react @nhost/nextjs graphql
After:
yarn add @nhost/nextjs graphql
Closes #1335
b21222b3: chore(deps): update dependency @types/node to v16
54df0df4: Use initial session sent from the server
When running a SSR page, the session was correctly created from the refresh token on the server side and was sent to the client side, but was not used correctly on the client side.
As a result, the client was refreshing the access token when loading the page, rather than using the access token sent by the server.
The client now uses the session sent from the server.
Updated dependencies [b21222b3]
Updated dependencies [54df0df4]
Updated dependencies [54df0df4]
Updated dependencies [65687bee]
Published by github-actions[bot] almost 2 years ago
Published by github-actions[bot] almost 2 years ago
Published by github-actions[bot] almost 2 years ago
@nhost/core
Published by github-actions[bot] almost 2 years ago
@nhost/core
Published by github-actions[bot] almost 2 years ago
@nhost/core
Published by github-actions[bot] almost 2 years ago
@nhost/core