Compare commits
27 Commits
@nhost/rea
...
@nhost/cor
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
050cb288fc | ||
|
|
cd120c61fb | ||
|
|
5ddb5a751b | ||
|
|
92209b6690 | ||
|
|
bdb11c0fa4 | ||
|
|
63c3e7cb2c | ||
|
|
78341491cd | ||
|
|
cd8560e6d3 | ||
|
|
fced43f55d | ||
|
|
47cc5d1562 | ||
|
|
9ab4d49421 | ||
|
|
4bdd29c2ea | ||
|
|
a43fa284b4 | ||
|
|
e68ca9b0c8 | ||
|
|
ad26b8392f | ||
|
|
09ffcb961a | ||
|
|
42879a26da | ||
|
|
cdba9aa5a0 | ||
|
|
b092e13ba0 | ||
|
|
a2343c8ef2 | ||
|
|
2cbe8a5045 | ||
|
|
a38ddeed5e | ||
|
|
1fbf990c79 | ||
|
|
c5a9fc568b | ||
|
|
0b79b4f492 | ||
|
|
832702ff45 | ||
|
|
1791452fc2 |
37
README.md
@@ -199,21 +199,28 @@ Here are some ways of contributing to making Nhost better:
|
|||||||
<sub><b>Vadim Smirnov</b></sub>
|
<sub><b>Vadim Smirnov</b></sub>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://github.com/macmac49">
|
||||||
|
<img src="https://avatars.githubusercontent.com/u/831190?v=4" width="100;" alt="macmac49"/>
|
||||||
|
<br />
|
||||||
|
<sub><b>Macmac49</b></sub>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
<td align="center">
|
<td align="center">
|
||||||
<a href="https://github.com/subhendukundu">
|
<a href="https://github.com/subhendukundu">
|
||||||
<img src="https://avatars.githubusercontent.com/u/20059141?v=4" width="100;" alt="subhendukundu"/>
|
<img src="https://avatars.githubusercontent.com/u/20059141?v=4" width="100;" alt="subhendukundu"/>
|
||||||
<br />
|
<br />
|
||||||
<sub><b>Subhendu Kundu</b></sub>
|
<sub><b>Subhendu Kundu</b></sub>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td></tr>
|
||||||
|
<tr>
|
||||||
<td align="center">
|
<td align="center">
|
||||||
<a href="https://github.com/heygambo">
|
<a href="https://github.com/heygambo">
|
||||||
<img src="https://avatars.githubusercontent.com/u/449438?v=4" width="100;" alt="heygambo"/>
|
<img src="https://avatars.githubusercontent.com/u/449438?v=4" width="100;" alt="heygambo"/>
|
||||||
<br />
|
<br />
|
||||||
<sub><b>Christian Gambardella</b></sub>
|
<sub><b>Christian Gambardella</b></sub>
|
||||||
</a>
|
</a>
|
||||||
</td></tr>
|
</td>
|
||||||
<tr>
|
|
||||||
<td align="center">
|
<td align="center">
|
||||||
<a href="https://github.com/chrtze">
|
<a href="https://github.com/chrtze">
|
||||||
<img src="https://avatars.githubusercontent.com/u/3797215?v=4" width="100;" alt="chrtze"/>
|
<img src="https://avatars.githubusercontent.com/u/3797215?v=4" width="100;" alt="chrtze"/>
|
||||||
@@ -248,15 +255,15 @@ Here are some ways of contributing to making Nhost better:
|
|||||||
<br />
|
<br />
|
||||||
<sub><b>Jerry Jäppinen</b></sub>
|
<sub><b>Jerry Jäppinen</b></sub>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td></tr>
|
||||||
|
<tr>
|
||||||
<td align="center">
|
<td align="center">
|
||||||
<a href="https://github.com/mustafa-hanif">
|
<a href="https://github.com/mustafa-hanif">
|
||||||
<img src="https://avatars.githubusercontent.com/u/30019262?v=4" width="100;" alt="mustafa-hanif"/>
|
<img src="https://avatars.githubusercontent.com/u/30019262?v=4" width="100;" alt="mustafa-hanif"/>
|
||||||
<br />
|
<br />
|
||||||
<sub><b>Mustafa Hanif</b></sub>
|
<sub><b>Mustafa Hanif</b></sub>
|
||||||
</a>
|
</a>
|
||||||
</td></tr>
|
</td>
|
||||||
<tr>
|
|
||||||
<td align="center">
|
<td align="center">
|
||||||
<a href="https://github.com/timpratim">
|
<a href="https://github.com/timpratim">
|
||||||
<img src="https://avatars.githubusercontent.com/u/32492961?v=4" width="100;" alt="timpratim"/>
|
<img src="https://avatars.githubusercontent.com/u/32492961?v=4" width="100;" alt="timpratim"/>
|
||||||
@@ -291,15 +298,15 @@ Here are some ways of contributing to making Nhost better:
|
|||||||
<br />
|
<br />
|
||||||
<sub><b>Animesh Pathak</b></sub>
|
<sub><b>Animesh Pathak</b></sub>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td></tr>
|
||||||
|
<tr>
|
||||||
<td align="center">
|
<td align="center">
|
||||||
<a href="https://github.com/rustyb">
|
<a href="https://github.com/rustyb">
|
||||||
<img src="https://avatars.githubusercontent.com/u/53086?v=4" width="100;" alt="rustyb"/>
|
<img src="https://avatars.githubusercontent.com/u/53086?v=4" width="100;" alt="rustyb"/>
|
||||||
<br />
|
<br />
|
||||||
<sub><b>Colin Broderick</b></sub>
|
<sub><b>Colin Broderick</b></sub>
|
||||||
</a>
|
</a>
|
||||||
</td></tr>
|
</td>
|
||||||
<tr>
|
|
||||||
<td align="center">
|
<td align="center">
|
||||||
<a href="https://github.com/dohomi">
|
<a href="https://github.com/dohomi">
|
||||||
<img src="https://avatars.githubusercontent.com/u/489221?v=4" width="100;" alt="dohomi"/>
|
<img src="https://avatars.githubusercontent.com/u/489221?v=4" width="100;" alt="dohomi"/>
|
||||||
@@ -334,15 +341,15 @@ Here are some ways of contributing to making Nhost better:
|
|||||||
<br />
|
<br />
|
||||||
<sub><b>Hugh Caluscusin</b></sub>
|
<sub><b>Hugh Caluscusin</b></sub>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td></tr>
|
||||||
|
<tr>
|
||||||
<td align="center">
|
<td align="center">
|
||||||
<a href="https://github.com/jladuval">
|
<a href="https://github.com/jladuval">
|
||||||
<img src="https://avatars.githubusercontent.com/u/1935359?v=4" width="100;" alt="jladuval"/>
|
<img src="https://avatars.githubusercontent.com/u/1935359?v=4" width="100;" alt="jladuval"/>
|
||||||
<br />
|
<br />
|
||||||
<sub><b>Jacob Duval</b></sub>
|
<sub><b>Jacob Duval</b></sub>
|
||||||
</a>
|
</a>
|
||||||
</td></tr>
|
</td>
|
||||||
<tr>
|
|
||||||
<td align="center">
|
<td align="center">
|
||||||
<a href="https://github.com/leothorp">
|
<a href="https://github.com/leothorp">
|
||||||
<img src="https://avatars.githubusercontent.com/u/12928449?v=4" width="100;" alt="leothorp"/>
|
<img src="https://avatars.githubusercontent.com/u/12928449?v=4" width="100;" alt="leothorp"/>
|
||||||
@@ -377,15 +384,15 @@ Here are some ways of contributing to making Nhost better:
|
|||||||
<br />
|
<br />
|
||||||
<sub><b>Quentin Decré</b></sub>
|
<sub><b>Quentin Decré</b></sub>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td></tr>
|
||||||
|
<tr>
|
||||||
<td align="center">
|
<td align="center">
|
||||||
<a href="https://github.com/atapas">
|
<a href="https://github.com/atapas">
|
||||||
<img src="https://avatars.githubusercontent.com/u/3633137?v=4" width="100;" alt="atapas"/>
|
<img src="https://avatars.githubusercontent.com/u/3633137?v=4" width="100;" alt="atapas"/>
|
||||||
<br />
|
<br />
|
||||||
<sub><b>Tapas Adhikary</b></sub>
|
<sub><b>Tapas Adhikary</b></sub>
|
||||||
</a>
|
</a>
|
||||||
</td></tr>
|
</td>
|
||||||
<tr>
|
|
||||||
<td align="center">
|
<td align="center">
|
||||||
<a href="https://github.com/komninoschat">
|
<a href="https://github.com/komninoschat">
|
||||||
<img src="https://avatars.githubusercontent.com/u/29049104?v=4" width="100;" alt="komninoschat"/>
|
<img src="https://avatars.githubusercontent.com/u/29049104?v=4" width="100;" alt="komninoschat"/>
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ export default defineConfig({
|
|||||||
lib: {
|
lib: {
|
||||||
entry,
|
entry,
|
||||||
name: pkg.name,
|
name: pkg.name,
|
||||||
fileName: (format) => (format === 'cjs' ? `index.cjs.js` : `index.mjs`),
|
fileName: (format) => (format === 'cjs' ? `index.cjs.js` : `index.esm.mjs`),
|
||||||
formats: ['cjs', 'es']
|
formats: ['cjs', 'es']
|
||||||
},
|
},
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
title: 'Introduction to Nhost'
|
title: 'Introduction to Nhost'
|
||||||
sidebar_label: Introduction
|
sidebar_label: Introduction
|
||||||
sidebar_position: 1
|
sidebar_position: 1
|
||||||
|
image: /img/og/platform/introduction-to-nhost.png
|
||||||
---
|
---
|
||||||
|
|
||||||
Nhost is the open source GraphQL backend (Firebase Alternative) and a development platform. Nhost is doing for the backend, what [Netlify](https://netlify.com/) and [Vercel](https://vercel.com/) are doing for the frontend.
|
Nhost is the open source GraphQL backend (Firebase Alternative) and a development platform. Nhost is doing for the backend, what [Netlify](https://netlify.com/) and [Vercel](https://vercel.com/) are doing for the frontend.
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
title: Nhost Authentication
|
title: Nhost Authentication
|
||||||
sidebar_label: Authentication
|
sidebar_label: Authentication
|
||||||
sidebar_position: 1
|
sidebar_position: 1
|
||||||
|
image: /img/og/platform/authentication.png
|
||||||
---
|
---
|
||||||
|
|
||||||
Nhost Authentication is a ready-to-use authentication service that is integrated with the [GraphQL API](/platform/graphql) and its permission system from Hasura.
|
Nhost Authentication is a ready-to-use authentication service that is integrated with the [GraphQL API](/platform/graphql) and its permission system from Hasura.
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
title: Sign In with Email and Password
|
title: Sign In with Email and Password
|
||||||
sidebar_label: Email and Password
|
sidebar_label: Email and Password
|
||||||
slug: /platform/authentication/sign-in-with-email-and-password
|
slug: /platform/authentication/sign-in-with-email-and-password
|
||||||
|
image: /img/og/platform/sign-in-with-email-and-password.png
|
||||||
---
|
---
|
||||||
|
|
||||||
Follow this guide to sign in users with email and password.
|
Follow this guide to sign in users with email and password.
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
title: Sign In with Magic Link
|
title: Sign In with Magic Link
|
||||||
sidebar_label: Magic Link
|
sidebar_label: Magic Link
|
||||||
slug: /platform/authentication/sign-in-with-magic-link
|
slug: /platform/authentication/sign-in-with-magic-link
|
||||||
|
image: /img/og/platform/sign-in-with-magic-link.png
|
||||||
---
|
---
|
||||||
|
|
||||||
Follow this guide to sign in users with Magic Link, also called passwordless email.
|
Follow this guide to sign in users with Magic Link, also called passwordless email.
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
title: Sign In with Phone Number (SMS)
|
title: Sign In with Phone Number (SMS)
|
||||||
sidebar_label: Phone Number (SMS)
|
sidebar_label: Phone Number (SMS)
|
||||||
slug: /platform/authentication/sign-in-with-phone-number-sms
|
slug: /platform/authentication/sign-in-with-phone-number-sms
|
||||||
|
image: /img/og/platform/sign-in-with-phone-number-sms.png
|
||||||
---
|
---
|
||||||
|
|
||||||
Follow this guide to sign in users with a phone number (SMS).
|
Follow this guide to sign in users with a phone number (SMS).
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
title: Sign In with Google
|
title: Sign In with Google
|
||||||
sidebar_label: Google
|
sidebar_label: Google
|
||||||
slug: /platform/authentication/sign-in-with-google
|
slug: /platform/authentication/sign-in-with-google
|
||||||
|
image: /img/og/platform/sign-in-with-google.png
|
||||||
---
|
---
|
||||||
|
|
||||||
Follow this guide to sign in users with Google with your Nhost App.
|
Follow this guide to sign in users with Google with your Nhost App.
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
title: Sign In with Facebook
|
title: Sign In with Facebook
|
||||||
sidebar_label: Facebook
|
sidebar_label: Facebook
|
||||||
slug: /platform/authentication/sign-in-with-facebook
|
slug: /platform/authentication/sign-in-with-facebook
|
||||||
|
image: /img/og/platform/sign-in-with-facebook.png
|
||||||
---
|
---
|
||||||
|
|
||||||
Follow this guide to sign in users with Facebook with your Nhost App.
|
Follow this guide to sign in users with Facebook with your Nhost App.
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
title: Sign In with GitHub
|
title: Sign In with GitHub
|
||||||
sidebar_label: GitHub
|
sidebar_label: GitHub
|
||||||
slug: /platform/authentication/sign-in-with-github
|
slug: /platform/authentication/sign-in-with-github
|
||||||
|
image: /img/og/platform/sign-in-with-github.png
|
||||||
---
|
---
|
||||||
|
|
||||||
Follow this guide to sign in users with GitHub with your Nhost App.
|
Follow this guide to sign in users with GitHub with your Nhost App.
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
title: Sign In with LinkedIn
|
title: Sign In with LinkedIn
|
||||||
sidebar_label: LinkedIn
|
sidebar_label: LinkedIn
|
||||||
slug: /platform/authentication/sign-in-with-linkedin
|
slug: /platform/authentication/sign-in-with-linkedin
|
||||||
|
image: /img/og/platform/sign-in-with-linkedin.png
|
||||||
---
|
---
|
||||||
|
|
||||||
Follow this guide to sign in users with LinkedIn with your Nhost App.
|
Follow this guide to sign in users with LinkedIn with your Nhost App.
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
title: Sign In with Spotify
|
title: Sign In with Spotify
|
||||||
sidebar_label: Spotify
|
sidebar_label: Spotify
|
||||||
slug: /platform/authentication/sign-in-with-spotify
|
slug: /platform/authentication/sign-in-with-spotify
|
||||||
|
image: /img/og/platform/sign-in-with-spotify.png
|
||||||
---
|
---
|
||||||
|
|
||||||
Follow this guide to sign in users with Spotify with your Nhost App.
|
Follow this guide to sign in users with Spotify with your Nhost App.
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: 'Sign-In Methods'
|
title: 'Sign-In Methods'
|
||||||
slug: /platform/authentication/sign-in-methods
|
slug: /platform/authentication/sign-in-methods
|
||||||
|
image: /img/og/platform/sign-in-methods.png
|
||||||
---
|
---
|
||||||
|
|
||||||
Nhost Authentication support the following sign-in methods:
|
Nhost Authentication support the following sign-in methods:
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
title: Tokens
|
title: Tokens
|
||||||
sidebar_label: Tokens
|
sidebar_label: Tokens
|
||||||
sidebar_position: 10
|
sidebar_position: 10
|
||||||
|
image: /img/og/platform/tokens.png
|
||||||
---
|
---
|
||||||
|
|
||||||
Nhost Authentication makes use of two types of tokens:
|
Nhost Authentication makes use of two types of tokens:
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
title: Users
|
title: Users
|
||||||
sidebar_label: Users
|
sidebar_label: Users
|
||||||
sidebar_position: 1
|
sidebar_position: 1
|
||||||
|
image: /img/og/platform/users.png
|
||||||
---
|
---
|
||||||
|
|
||||||
Users are stored in the database in the `users` table in the `auth` schema.
|
Users are stored in the database in the `users` table in the `auth` schema.
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: 'CLI'
|
title: 'CLI'
|
||||||
sidebar_position: 11
|
sidebar_position: 11
|
||||||
|
image: /img/og/platform/cli.png
|
||||||
---
|
---
|
||||||
|
|
||||||
import Tabs from '@theme/Tabs'
|
import Tabs from '@theme/Tabs'
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: 'Event triggers'
|
title: 'Event triggers'
|
||||||
sidebar_position: 2
|
sidebar_position: 2
|
||||||
|
image: /img/og/platform/event-triggers.png
|
||||||
---
|
---
|
||||||
|
|
||||||
Event Triggers enable you to invoke webhooks when a database event happens. Event Triggers are typically used to do post-processing tasks, using custom backend code, based on database events.
|
Event Triggers enable you to invoke webhooks when a database event happens. Event Triggers are typically used to do post-processing tasks, using custom backend code, based on database events.
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: 'Database'
|
title: 'Database'
|
||||||
sidebar_position: 1
|
sidebar_position: 1
|
||||||
|
image: /img/og/platform/database.png
|
||||||
---
|
---
|
||||||
|
|
||||||
import Tabs from '@theme/Tabs'
|
import Tabs from '@theme/Tabs'
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: 'Environment Variables'
|
title: 'Environment Variables'
|
||||||
sidebar_position: 9
|
sidebar_position: 9
|
||||||
|
image: /img/og/platform/environment-variables.png
|
||||||
---
|
---
|
||||||
|
|
||||||
Environment Variables are key-value pairs configured outside your source code. They are used to store environment-specific values such as API keys.
|
Environment Variables are key-value pairs configured outside your source code. They are used to store environment-specific values such as API keys.
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: 'GitHub Integration'
|
title: 'GitHub Integration'
|
||||||
sidebar_position: 10
|
sidebar_position: 10
|
||||||
|
image: /img/og/platform/github-integration.png
|
||||||
---
|
---
|
||||||
|
|
||||||
The GitHub integration allows you to automatically deploy your Nhost app when on push and merge to a GitHub repository that is connected to your Nhost app.
|
The GitHub integration allows you to automatically deploy your Nhost app when on push and merge to a GitHub repository that is connected to your Nhost app.
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: 'GraphQL'
|
title: 'GraphQL'
|
||||||
sidebar_position: 1
|
sidebar_position: 1
|
||||||
|
image: /img/og/platform/graphql.png
|
||||||
---
|
---
|
||||||
|
|
||||||
A GraphQL API is automatically and instantly available based on the tables and columns in your [database](/platform/database).
|
A GraphQL API is automatically and instantly available based on the tables and columns in your [database](/platform/database).
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: 'Permissions'
|
title: 'Permissions'
|
||||||
sidebar_position: 1
|
sidebar_position: 1
|
||||||
|
image: /img/og/platform/permissions.png
|
||||||
---
|
---
|
||||||
|
|
||||||
The GraphQL API is protected by a role-based permission system.
|
The GraphQL API is protected by a role-based permission system.
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: 'Architecture'
|
title: 'Architecture'
|
||||||
sidebar_position: 2
|
sidebar_position: 2
|
||||||
|
image: /img/og/platform/architecture.png
|
||||||
---
|
---
|
||||||
|
|
||||||
Nhost is a backend as a service built with open source tools to provide developers the general building blocks required to build fantastic digital apps and products.
|
Nhost is a backend as a service built with open source tools to provide developers the general building blocks required to build fantastic digital apps and products.
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: 'Get Started with Nhost CLI'
|
title: 'Get Started with Nhost CLI'
|
||||||
sidebar_position: 2
|
sidebar_position: 2
|
||||||
|
image: /img/og/platform/get-started-with-nhost-cli.png
|
||||||
---
|
---
|
||||||
|
|
||||||
# Get started with Nhost CLI
|
# Get started with Nhost CLI
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: 'Quickstart: Next.js'
|
title: 'Quickstart: Next.js'
|
||||||
sidebar_position: 2
|
sidebar_position: 2
|
||||||
|
image: /img/og/platform/quickstart-nextjs.png
|
||||||
---
|
---
|
||||||
|
|
||||||
import Tabs from '@theme/Tabs'
|
import Tabs from '@theme/Tabs'
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: 'Quickstart: React'
|
title: 'Quickstart: React'
|
||||||
sidebar_position: 1
|
sidebar_position: 1
|
||||||
|
image: /img/og/platform/quickstart-react.png
|
||||||
---
|
---
|
||||||
|
|
||||||
import Tabs from '@theme/Tabs'
|
import Tabs from '@theme/Tabs'
|
||||||
@@ -35,6 +36,7 @@ You'll need **Node.js** version 14 or later: [install it from here](https://node
|
|||||||
import CreateApp from '@site/src/components/create-nhost-app.mdx'
|
import CreateApp from '@site/src/components/create-nhost-app.mdx'
|
||||||
|
|
||||||
<CreateApp />
|
<CreateApp />
|
||||||
|
|
||||||
:::info
|
:::info
|
||||||
You can also connect your Nhost app to a GitHub repository. When you do this, any updates you push to your code will automatically be deployed. [Learn more](https://docs.nhost.io/platform/github-integration).
|
You can also connect your Nhost app to a GitHub repository. When you do this, any updates you push to your code will automatically be deployed. [Learn more](https://docs.nhost.io/platform/github-integration).
|
||||||
:::
|
:::
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: 'Quickstart: RedwoodJS'
|
title: 'Quickstart: RedwoodJS'
|
||||||
sidebar_position: 3
|
sidebar_position: 3
|
||||||
|
image: /img/og/platform/quickstart-redwoodjs.png
|
||||||
---
|
---
|
||||||
|
|
||||||
import Tabs from '@theme/Tabs'
|
import Tabs from '@theme/Tabs'
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: 'Quickstart: Vue'
|
title: 'Quickstart: Vue'
|
||||||
sidebar_position: 3
|
sidebar_position: 3
|
||||||
|
image: /img/og/platform/quickstart-vue.png
|
||||||
---
|
---
|
||||||
|
|
||||||
import Tabs from '@theme/Tabs'
|
import Tabs from '@theme/Tabs'
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: 'Serverless Functions'
|
title: 'Serverless Functions'
|
||||||
sidebar_position: 8
|
sidebar_position: 8
|
||||||
|
image: /img/og/platform/serverless-functions.png
|
||||||
---
|
---
|
||||||
|
|
||||||
import Tabs from '@theme/Tabs'
|
import Tabs from '@theme/Tabs'
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: 'Storage'
|
title: 'Storage'
|
||||||
sidebar_position: 7
|
sidebar_position: 7
|
||||||
|
image: /img/og/platform/storage.png
|
||||||
---
|
---
|
||||||
|
|
||||||
Nhost stores and serves files of any type in your backend.
|
Nhost stores and serves files of any type in your backend.
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
---
|
---
|
||||||
title: 'Overview'
|
title: 'JavaScript'
|
||||||
sidebar_position: 1
|
sidebar_position: 1
|
||||||
---
|
---
|
||||||
|
|
||||||
import Tabs from '@theme/Tabs'
|
import Tabs from '@theme/Tabs'
|
||||||
import TabItem from '@theme/TabItem'
|
import TabItem from '@theme/TabItem'
|
||||||
|
|
||||||
The Nhost client is the primary way of interacting with your Nhost app. It exposes a standard interface for each of the following services:
|
The Nhost JavaScript client is the primary way of interacting with your Nhost app. It exposes a standard interface for each of the following services:
|
||||||
|
|
||||||
- [Authentication](/reference/javascript/auth)
|
- [Authentication](/reference/javascript/auth)
|
||||||
- [Storage](/reference/javascript/storage)
|
- [Storage](/reference/javascript/storage)
|
||||||
@@ -63,4 +63,4 @@ If the user is not signed in no authorization header is set. If no authorization
|
|||||||
|
|
||||||
## TypeScript Support
|
## TypeScript Support
|
||||||
|
|
||||||
The Nhost JS SDK has TypeScript typings included. You don’t have to import types separately.
|
The Nhost JavaScript client is written in TypeScript and has full TypeScript support.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
title: 'Overview'
|
title: 'Next.js'
|
||||||
sidebar_position: 1
|
sidebar_position: 1
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
title: 'Overview'
|
title: 'React'
|
||||||
sidebar_position: 1
|
sidebar_position: 1
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -31,20 +31,27 @@ yarn add @nhost/react graphql
|
|||||||
|
|
||||||
## Initializing
|
## Initializing
|
||||||
|
|
||||||
Initialize a single `nhost` instance and wrap your app with the `NhostReactProvider`.
|
After installation, initialize a single Nhost Client (`nhost`) under `src/lib/nhost.js`.
|
||||||
|
|
||||||
|
```jsx title=src/lib/nhost.js
|
||||||
|
import { NhostClient } from '@nhost/react'
|
||||||
|
const nhost = new NhostClient({
|
||||||
|
backendUrl: '<Your Nhost Backend URL>'
|
||||||
|
})
|
||||||
|
export { nhost }
|
||||||
|
```
|
||||||
|
|
||||||
|
Import `nhost` and wrap your app with the `NhostReactProvider`.
|
||||||
|
|
||||||
```jsx title=src/App.tsx
|
```jsx title=src/App.tsx
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import ReactDOM from 'react-dom'
|
import ReactDOM from 'react-dom'
|
||||||
|
|
||||||
import { NhostClient, NhostReactProvider } from '@nhost/react'
|
import { NhostClient, NhostReactProvider } from '@nhost/react'
|
||||||
|
import { nhost } from './lib/nhost'
|
||||||
|
|
||||||
import App from './App'
|
import App from './App'
|
||||||
|
|
||||||
const nhost = new NhostClient({
|
|
||||||
backendUrl: '<Your Nhost Backend URL>'
|
|
||||||
})
|
|
||||||
|
|
||||||
ReactDOM.render(
|
ReactDOM.render(
|
||||||
<React.StrictMode>
|
<React.StrictMode>
|
||||||
<NhostReactProvider nhost={nhost}>
|
<NhostReactProvider nhost={nhost}>
|
||||||
@@ -53,8 +60,11 @@ ReactDOM.render(
|
|||||||
</React.StrictMode>,
|
</React.StrictMode>,
|
||||||
document.getElementById('root')
|
document.getElementById('root')
|
||||||
)
|
)
|
||||||
|
export { nhost }
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
:::info
|
:::info
|
||||||
|
|
||||||
The `nhost` instance created with the `NhostClient` above is the same as the [JavaScript Nhost client](/reference/javascript).
|
The `nhost` instance created with the `NhostClient` above is the same as the [JavaScript Nhost client](/reference/javascript).
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
title: 'Overview'
|
title: 'Vue'
|
||||||
sidebar_position: 1
|
sidebar_position: 1
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -4,19 +4,28 @@
|
|||||||
const lightCodeTheme = require('prism-react-renderer/themes/github')
|
const lightCodeTheme = require('prism-react-renderer/themes/github')
|
||||||
const darkCodeTheme = require('prism-react-renderer/themes/dracula')
|
const darkCodeTheme = require('prism-react-renderer/themes/dracula')
|
||||||
|
|
||||||
|
const getBaseUrl = () => {
|
||||||
|
if (process.env.VERCEL_ENV === 'production') {
|
||||||
|
return 'https://docs.nhost.io'
|
||||||
|
} else if (process.env.VERCEL_ENV === 'preview') {
|
||||||
|
return `https://${process.env.VERCEL_URL}`
|
||||||
|
} else {
|
||||||
|
return `http://localhost:3000`
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/** @type {import('@docusaurus/types').Config} */
|
/** @type {import('@docusaurus/types').Config} */
|
||||||
const config = {
|
const config = {
|
||||||
title: 'Nhost Docs',
|
title: 'Nhost Docs',
|
||||||
tagline:
|
tagline: 'Nhost is an open source Firebase alternative with GraphQL.',
|
||||||
'Nhost is an open-source, real-time, server-less backend platform for building reliable apps that scale with your business.',
|
url: getBaseUrl(),
|
||||||
url: 'https://docs.nhost.io',
|
|
||||||
trailingSlash: false,
|
trailingSlash: false,
|
||||||
baseUrl: '/',
|
baseUrl: '/',
|
||||||
onBrokenLinks: 'throw',
|
onBrokenLinks: 'throw',
|
||||||
onBrokenMarkdownLinks: 'warn',
|
onBrokenMarkdownLinks: 'warn',
|
||||||
favicon: 'img/favicon.png',
|
favicon: 'img/favicon.png',
|
||||||
organizationName: 'nhost', // Usually your GitHub org/user name.
|
organizationName: 'nhost',
|
||||||
projectName: 'docs', // Usually your repo name.
|
projectName: 'docs',
|
||||||
|
|
||||||
presets: [
|
presets: [
|
||||||
[
|
[
|
||||||
@@ -33,7 +42,6 @@ const config = {
|
|||||||
breadcrumbs: false,
|
breadcrumbs: false,
|
||||||
sidebarPath: require.resolve('./sidebars.js'),
|
sidebarPath: require.resolve('./sidebars.js'),
|
||||||
remarkPlugins: [require('mdx-mermaid')],
|
remarkPlugins: [require('mdx-mermaid')],
|
||||||
// Please change this to your repo.
|
|
||||||
editUrl: 'https://github.com/nhost/nhost/edit/main/docs/'
|
editUrl: 'https://github.com/nhost/nhost/edit/main/docs/'
|
||||||
},
|
},
|
||||||
theme: {
|
theme: {
|
||||||
@@ -46,17 +54,13 @@ const config = {
|
|||||||
themeConfig:
|
themeConfig:
|
||||||
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
||||||
({
|
({
|
||||||
|
image: 'img/splash.png',
|
||||||
colorMode: {
|
colorMode: {
|
||||||
defaultMode: 'light',
|
defaultMode: 'light',
|
||||||
disableSwitch: false,
|
disableSwitch: false,
|
||||||
respectPrefersColorScheme: true
|
respectPrefersColorScheme: true
|
||||||
},
|
},
|
||||||
metadata: [
|
metadata: [{ name: 'robots', content: 'max-image-preview:large' }],
|
||||||
{
|
|
||||||
name: 'og:image',
|
|
||||||
content: 'https://docs.nhost.io/img/splash.png'
|
|
||||||
}
|
|
||||||
],
|
|
||||||
navbar: {
|
navbar: {
|
||||||
hideOnScroll: true,
|
hideOnScroll: true,
|
||||||
logo: {
|
logo: {
|
||||||
|
|||||||
BIN
docs/static/img/og/platform/architecture.png
vendored
Normal file
|
After Width: | Height: | Size: 159 KiB |
BIN
docs/static/img/og/platform/authentication.png
vendored
Normal file
|
After Width: | Height: | Size: 159 KiB |
BIN
docs/static/img/og/platform/cli.png
vendored
Normal file
|
After Width: | Height: | Size: 155 KiB |
BIN
docs/static/img/og/platform/database.png
vendored
Normal file
|
After Width: | Height: | Size: 159 KiB |
BIN
docs/static/img/og/platform/email-templates.png
vendored
Normal file
|
After Width: | Height: | Size: 160 KiB |
BIN
docs/static/img/og/platform/environment-variables.png
vendored
Normal file
|
After Width: | Height: | Size: 161 KiB |
BIN
docs/static/img/og/platform/event-triggers.png
vendored
Normal file
|
After Width: | Height: | Size: 160 KiB |
BIN
docs/static/img/og/platform/get-started-with-nhost-cli.png
vendored
Normal file
|
After Width: | Height: | Size: 163 KiB |
BIN
docs/static/img/og/platform/github-integration.png
vendored
Normal file
|
After Width: | Height: | Size: 160 KiB |
BIN
docs/static/img/og/platform/graphql.png
vendored
Normal file
|
After Width: | Height: | Size: 158 KiB |
BIN
docs/static/img/og/platform/introduction-to-nhost.png
vendored
Normal file
|
After Width: | Height: | Size: 160 KiB |
BIN
docs/static/img/og/platform/permissions.png
vendored
Normal file
|
After Width: | Height: | Size: 159 KiB |
BIN
docs/static/img/og/platform/quickstart-nextjs.png
vendored
Normal file
|
After Width: | Height: | Size: 166 KiB |
BIN
docs/static/img/og/platform/quickstart-react.png
vendored
Normal file
|
After Width: | Height: | Size: 168 KiB |
BIN
docs/static/img/og/platform/quickstart-redwoodjs.png
vendored
Normal file
|
After Width: | Height: | Size: 174 KiB |
BIN
docs/static/img/og/platform/quickstart-vue.png
vendored
Normal file
|
After Width: | Height: | Size: 166 KiB |
BIN
docs/static/img/og/platform/serverless-functions.png
vendored
Normal file
|
After Width: | Height: | Size: 163 KiB |
BIN
docs/static/img/og/platform/sign-in-methods.png
vendored
Normal file
|
After Width: | Height: | Size: 161 KiB |
BIN
docs/static/img/og/platform/sign-in-with-email-and-password.png
vendored
Normal file
|
After Width: | Height: | Size: 165 KiB |
BIN
docs/static/img/og/platform/sign-in-with-facebook.png
vendored
Normal file
|
After Width: | Height: | Size: 166 KiB |
BIN
docs/static/img/og/platform/sign-in-with-github.png
vendored
Normal file
|
After Width: | Height: | Size: 164 KiB |
BIN
docs/static/img/og/platform/sign-in-with-google.png
vendored
Normal file
|
After Width: | Height: | Size: 167 KiB |
BIN
docs/static/img/og/platform/sign-in-with-linkedin.png
vendored
Normal file
|
After Width: | Height: | Size: 163 KiB |
BIN
docs/static/img/og/platform/sign-in-with-magic-link.png
vendored
Normal file
|
After Width: | Height: | Size: 163 KiB |
BIN
docs/static/img/og/platform/sign-in-with-phone-number-sms.png
vendored
Normal file
|
After Width: | Height: | Size: 166 KiB |
BIN
docs/static/img/og/platform/sign-in-with-spotify.png
vendored
Normal file
|
After Width: | Height: | Size: 166 KiB |
BIN
docs/static/img/og/platform/storage.png
vendored
Normal file
|
After Width: | Height: | Size: 159 KiB |
BIN
docs/static/img/og/platform/tokens.png
vendored
Normal file
|
After Width: | Height: | Size: 157 KiB |
BIN
docs/static/img/og/platform/users.png
vendored
Normal file
|
After Width: | Height: | Size: 157 KiB |
@@ -1,5 +1,14 @@
|
|||||||
# @nhost/apollo
|
# @nhost/apollo
|
||||||
|
|
||||||
|
## 0.5.10
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- 78341491: fix: Next.js and React issues with ESM packages
|
||||||
|
chore: Updated output bundle names
|
||||||
|
- Updated dependencies [78341491]
|
||||||
|
- @nhost/nhost-js@1.2.1
|
||||||
|
|
||||||
## 0.5.9
|
## 0.5.9
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost/apollo",
|
"name": "@nhost/apollo",
|
||||||
"version": "0.5.9",
|
"version": "0.5.10",
|
||||||
"description": "Nhost Apollo Client library",
|
"description": "Nhost Apollo Client library",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
"url": "https://github.com/nhost/nhost.git"
|
"url": "https://github.com/nhost/nhost.git"
|
||||||
},
|
},
|
||||||
"main": "dist/index.cjs.js",
|
"main": "dist/index.cjs.js",
|
||||||
"module": "dist/index.mjs",
|
"module": "dist/index.esm.mjs",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"source": "src/index.ts",
|
"source": "src/index.ts",
|
||||||
"files": [
|
"files": [
|
||||||
@@ -33,10 +33,10 @@
|
|||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"node": {
|
"node": {
|
||||||
"import": "./dist/index.mjs",
|
"import": "./dist/index.esm.mjs",
|
||||||
"require": "./dist/index.cjs.js"
|
"require": "./dist/index.cjs.js"
|
||||||
},
|
},
|
||||||
"default": "./dist/index.es.js"
|
"default": "./dist/index.esm.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite build --config ../../config/vite.lib.dev.config.js",
|
"dev": "vite build --config ../../config/vite.lib.dev.config.js",
|
||||||
"build": "run-p build:lib build:umd",
|
"build": "run-p build:lib build:umd",
|
||||||
"build:lib": "vite build --config ../../config/vite.lib.config.js && cpy --flat dist/index.mjs dist --rename=index.es.js && cpy --flat dist/index.mjs.map dist --rename index.es.js.map",
|
"build:lib": "vite build --config ../../config/vite.lib.config.js && cpy --flat dist/index.esm.mjs dist --rename=index.esm.js && cpy --flat dist/index.esm.mjs.map dist --rename index.esm.js.map",
|
||||||
"build:umd": "vite build --config ../../config/vite.lib.umd.config.js",
|
"build:umd": "vite build --config ../../config/vite.lib.umd.config.js",
|
||||||
"test": "vitest run --config ../../config/vite.lib.config.js",
|
"test": "vitest run --config ../../config/vite.lib.config.js",
|
||||||
"test:watch": "vitest --config ../../config/vite.lib.config.js",
|
"test:watch": "vitest --config ../../config/vite.lib.config.js",
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
# @nhost/core
|
# @nhost/core
|
||||||
|
|
||||||
|
## 0.6.2
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- 78341491: fix: Next.js and React issues with ESM packages
|
||||||
|
chore: Updated output bundle names
|
||||||
|
|
||||||
## 0.6.1
|
## 0.6.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost/core",
|
"name": "@nhost/core",
|
||||||
"version": "0.6.1",
|
"version": "0.6.2",
|
||||||
"description": "Nhost core client library",
|
"description": "Nhost core client library",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
"url": "https://github.com/nhost/nhost.git"
|
"url": "https://github.com/nhost/nhost.git"
|
||||||
},
|
},
|
||||||
"main": "dist/index.cjs.js",
|
"main": "dist/index.cjs.js",
|
||||||
"module": "dist/index.mjs",
|
"module": "dist/index.esm.mjs",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"source": "src/index.ts",
|
"source": "src/index.ts",
|
||||||
"files": [
|
"files": [
|
||||||
@@ -32,10 +32,10 @@
|
|||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"node": {
|
"node": {
|
||||||
"import": "./dist/index.mjs",
|
"import": "./dist/index.esm.mjs",
|
||||||
"require": "./dist/index.cjs.js"
|
"require": "./dist/index.cjs.js"
|
||||||
},
|
},
|
||||||
"default": "./dist/index.es.js"
|
"default": "./dist/index.esm.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite build --config ../../config/vite.lib.dev.config.js",
|
"dev": "vite build --config ../../config/vite.lib.dev.config.js",
|
||||||
"build": "run-p build:lib build:umd",
|
"build": "run-p build:lib build:umd",
|
||||||
"build:lib": "vite build --config ../../config/vite.lib.config.js && cpy --flat dist/index.mjs dist --rename=index.es.js && cpy --flat dist/index.mjs.map dist --rename index.es.js.map",
|
"build:lib": "vite build --config ../../config/vite.lib.config.js && cpy --flat dist/index.esm.mjs dist --rename=index.esm.js && cpy --flat dist/index.esm.mjs.map dist --rename index.esm.js.map",
|
||||||
"build:umd": "vite build --config ../../config/vite.lib.umd.config.js",
|
"build:umd": "vite build --config ../../config/vite.lib.umd.config.js",
|
||||||
"test": "vitest run --config ../../config/vite.lib.config.js",
|
"test": "vitest run --config ../../config/vite.lib.config.js",
|
||||||
"test:watch": "vitest --config ../../config/vite.lib.config.js",
|
"test:watch": "vitest --config ../../config/vite.lib.config.js",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import faker from '@faker-js/faker'
|
import faker from '@faker-js/faker'
|
||||||
import { interpret } from 'xstate'
|
import { interpret } from 'xstate'
|
||||||
import { waitFor } from 'xstate/lib/waitFor'
|
import { waitFor } from 'xstate/lib/waitFor.js'
|
||||||
import { AuthClient } from '../src/client'
|
import { AuthClient } from '../src/client'
|
||||||
import { INVALID_EMAIL_ERROR } from '../src/errors'
|
import { INVALID_EMAIL_ERROR } from '../src/errors'
|
||||||
import { createAuthMachine, createChangeEmailMachine } from '../src/machines'
|
import { createAuthMachine, createChangeEmailMachine } from '../src/machines'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import faker from '@faker-js/faker'
|
import faker from '@faker-js/faker'
|
||||||
import { interpret } from 'xstate'
|
import { interpret } from 'xstate'
|
||||||
import { waitFor } from 'xstate/lib/waitFor'
|
import { waitFor } from 'xstate/lib/waitFor.js'
|
||||||
import { AuthClient } from '../src/client'
|
import { AuthClient } from '../src/client'
|
||||||
import { INVALID_PASSWORD_ERROR } from '../src/errors'
|
import { INVALID_PASSWORD_ERROR } from '../src/errors'
|
||||||
import { createAuthMachine, createChangePasswordMachine } from '../src/machines'
|
import { createAuthMachine, createChangePasswordMachine } from '../src/machines'
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import faker from '@faker-js/faker'
|
import faker from '@faker-js/faker'
|
||||||
import { afterAll, afterEach, beforeAll, expect, test } from 'vitest'
|
import { afterAll, afterEach, beforeAll, expect, test } from 'vitest'
|
||||||
import { interpret } from 'xstate'
|
import { interpret } from 'xstate'
|
||||||
import { waitFor } from 'xstate/lib/waitFor'
|
import { waitFor } from 'xstate/lib/waitFor.js'
|
||||||
import { AuthClient } from '../src/client'
|
import { AuthClient } from '../src/client'
|
||||||
import { INVALID_MFA_CODE_ERROR, INVALID_MFA_TYPE_ERROR } from '../src/errors'
|
import { INVALID_MFA_CODE_ERROR, INVALID_MFA_TYPE_ERROR } from '../src/errors'
|
||||||
import { createAuthMachine, createEnableMfaMachine } from '../src/machines'
|
import { createAuthMachine, createEnableMfaMachine } from '../src/machines'
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import faker from '@faker-js/faker'
|
import faker from '@faker-js/faker'
|
||||||
import { afterAll, afterEach, beforeAll, expect, test } from 'vitest'
|
import { afterAll, afterEach, beforeAll, expect, test } from 'vitest'
|
||||||
import { interpret } from 'xstate'
|
import { interpret } from 'xstate'
|
||||||
import { waitFor } from 'xstate/lib/waitFor'
|
import { waitFor } from 'xstate/lib/waitFor.js'
|
||||||
import { createAuthMachine } from '../src/machines'
|
import { createAuthMachine } from '../src/machines'
|
||||||
import { Typegen0 } from '../src/machines/index.typegen'
|
import { Typegen0 } from '../src/machines/index.typegen'
|
||||||
import { BASE_URL } from './helpers/config'
|
import { BASE_URL } from './helpers/config'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import faker from '@faker-js/faker'
|
import faker from '@faker-js/faker'
|
||||||
import { interpret } from 'xstate'
|
import { interpret } from 'xstate'
|
||||||
import { waitFor } from 'xstate/lib/waitFor'
|
import { waitFor } from 'xstate/lib/waitFor.js'
|
||||||
import { INVALID_EMAIL_ERROR, INVALID_PASSWORD_ERROR } from '../src/errors'
|
import { INVALID_EMAIL_ERROR, INVALID_PASSWORD_ERROR } from '../src/errors'
|
||||||
import { createAuthMachine } from '../src/machines'
|
import { createAuthMachine } from '../src/machines'
|
||||||
import { Typegen0 } from '../src/machines/index.typegen'
|
import { Typegen0 } from '../src/machines/index.typegen'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import faker from '@faker-js/faker'
|
import faker from '@faker-js/faker'
|
||||||
import { interpret } from 'xstate'
|
import { interpret } from 'xstate'
|
||||||
import { waitFor } from 'xstate/lib/waitFor'
|
import { waitFor } from 'xstate/lib/waitFor.js'
|
||||||
import { INVALID_EMAIL_ERROR } from '../src/errors'
|
import { INVALID_EMAIL_ERROR } from '../src/errors'
|
||||||
import { createAuthMachine } from '../src/machines'
|
import { createAuthMachine } from '../src/machines'
|
||||||
import { Typegen0 } from '../src/machines/index.typegen'
|
import { Typegen0 } from '../src/machines/index.typegen'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import faker from '@faker-js/faker'
|
import faker from '@faker-js/faker'
|
||||||
import { interpret } from 'xstate'
|
import { interpret } from 'xstate'
|
||||||
import { waitFor } from 'xstate/lib/waitFor'
|
import { waitFor } from 'xstate/lib/waitFor.js'
|
||||||
import { INVALID_PHONE_NUMBER_ERROR } from '../src/errors'
|
import { INVALID_PHONE_NUMBER_ERROR } from '../src/errors'
|
||||||
import { createAuthMachine } from '../src/machines'
|
import { createAuthMachine } from '../src/machines'
|
||||||
import { Typegen0 } from '../src/machines/index.typegen'
|
import { Typegen0 } from '../src/machines/index.typegen'
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import faker from '@faker-js/faker'
|
import faker from '@faker-js/faker'
|
||||||
import { afterAll, afterEach, beforeAll, beforeEach, describe, test, vi } from 'vitest'
|
import { afterAll, afterEach, beforeAll, beforeEach, describe, test, vi } from 'vitest'
|
||||||
import { BaseActionObject, interpret, Interpreter, ResolveTypegenMeta, ServiceMap } from 'xstate'
|
import { BaseActionObject, interpret, Interpreter, ResolveTypegenMeta, ServiceMap } from 'xstate'
|
||||||
import { waitFor } from 'xstate/lib/waitFor'
|
import { waitFor } from 'xstate/lib/waitFor.js'
|
||||||
import {
|
import {
|
||||||
NHOST_JWT_EXPIRES_AT_KEY,
|
NHOST_JWT_EXPIRES_AT_KEY,
|
||||||
NHOST_REFRESH_TOKEN_KEY,
|
NHOST_REFRESH_TOKEN_KEY,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import faker from '@faker-js/faker'
|
import faker from '@faker-js/faker'
|
||||||
import { interpret } from 'xstate'
|
import { interpret } from 'xstate'
|
||||||
import { waitFor } from 'xstate/lib/waitFor'
|
import { waitFor } from 'xstate/lib/waitFor.js'
|
||||||
import { AuthClient } from '../src/client'
|
import { AuthClient } from '../src/client'
|
||||||
import { INVALID_EMAIL_ERROR } from '../src/errors'
|
import { INVALID_EMAIL_ERROR } from '../src/errors'
|
||||||
import { createResetPasswordMachine } from '../src/machines'
|
import { createResetPasswordMachine } from '../src/machines'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import faker from '@faker-js/faker'
|
import faker from '@faker-js/faker'
|
||||||
import { interpret } from 'xstate'
|
import { interpret } from 'xstate'
|
||||||
import { waitFor } from 'xstate/lib/waitFor'
|
import { waitFor } from 'xstate/lib/waitFor.js'
|
||||||
import { AuthClient } from '../src/client'
|
import { AuthClient } from '../src/client'
|
||||||
import { INVALID_EMAIL_ERROR } from '../src/errors'
|
import { INVALID_EMAIL_ERROR } from '../src/errors'
|
||||||
import { createSendVerificationEmailMachine } from '../src/machines'
|
import { createSendVerificationEmailMachine } from '../src/machines'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import faker from '@faker-js/faker'
|
import faker from '@faker-js/faker'
|
||||||
import { interpret } from 'xstate'
|
import { interpret } from 'xstate'
|
||||||
import { waitFor } from 'xstate/lib/waitFor'
|
import { waitFor } from 'xstate/lib/waitFor.js'
|
||||||
import { NHOST_REFRESH_TOKEN_KEY } from '../src/constants'
|
import { NHOST_REFRESH_TOKEN_KEY } from '../src/constants'
|
||||||
import { createAuthMachine } from '../src/machines'
|
import { createAuthMachine } from '../src/machines'
|
||||||
import { Typegen0 } from '../src/machines/index.typegen'
|
import { Typegen0 } from '../src/machines/index.typegen'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import faker from '@faker-js/faker'
|
import faker from '@faker-js/faker'
|
||||||
import { interpret } from 'xstate'
|
import { interpret } from 'xstate'
|
||||||
import { waitFor } from 'xstate/lib/waitFor'
|
import { waitFor } from 'xstate/lib/waitFor.js'
|
||||||
import { INVALID_EMAIL_ERROR, INVALID_PASSWORD_ERROR } from '../src/errors'
|
import { INVALID_EMAIL_ERROR, INVALID_PASSWORD_ERROR } from '../src/errors'
|
||||||
import { createAuthMachine } from '../src/machines'
|
import { createAuthMachine } from '../src/machines'
|
||||||
import { Typegen0 } from '../src/machines/index.typegen'
|
import { Typegen0 } from '../src/machines/index.typegen'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import faker from '@faker-js/faker'
|
import faker from '@faker-js/faker'
|
||||||
import { interpret } from 'xstate'
|
import { interpret } from 'xstate'
|
||||||
import { waitFor } from 'xstate/lib/waitFor'
|
import { waitFor } from 'xstate/lib/waitFor.js'
|
||||||
import { INVALID_PHONE_NUMBER_ERROR } from '../src/errors'
|
import { INVALID_PHONE_NUMBER_ERROR } from '../src/errors'
|
||||||
import { createAuthMachine } from '../src/machines'
|
import { createAuthMachine } from '../src/machines'
|
||||||
import { Typegen0 } from '../src/machines/index.typegen'
|
import { Typegen0 } from '../src/machines/index.typegen'
|
||||||
|
|||||||
@@ -1,5 +1,14 @@
|
|||||||
# @nhost/hasura-auth-js
|
# @nhost/hasura-auth-js
|
||||||
|
|
||||||
|
## 1.1.11
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- 78341491: fix: Next.js and React issues with ESM packages
|
||||||
|
chore: Updated output bundle names
|
||||||
|
- Updated dependencies [78341491]
|
||||||
|
- @nhost/core@0.6.2
|
||||||
|
|
||||||
## 1.1.10
|
## 1.1.10
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,31 +0,0 @@
|
|||||||
const esbuild = require('esbuild')
|
|
||||||
|
|
||||||
// Automatically exclude all node_modules from the bundled version
|
|
||||||
const { nodeExternalsPlugin } = require('esbuild-node-externals')
|
|
||||||
|
|
||||||
esbuild
|
|
||||||
.build({
|
|
||||||
entryPoints: ['./src/index.ts'],
|
|
||||||
outfile: 'dist/index.cjs.js',
|
|
||||||
bundle: true,
|
|
||||||
minify: false,
|
|
||||||
platform: 'node',
|
|
||||||
format: 'cjs',
|
|
||||||
sourcemap: true,
|
|
||||||
target: 'node14',
|
|
||||||
plugins: [nodeExternalsPlugin()]
|
|
||||||
})
|
|
||||||
.catch(() => process.exit(1))
|
|
||||||
|
|
||||||
esbuild
|
|
||||||
.build({
|
|
||||||
entryPoints: ['./src/index.ts'],
|
|
||||||
outfile: 'dist/index.es.js',
|
|
||||||
bundle: true,
|
|
||||||
minify: false, // TODO
|
|
||||||
platform: 'browser',
|
|
||||||
format: 'esm',
|
|
||||||
sourcemap: true,
|
|
||||||
target: 'esnext'
|
|
||||||
})
|
|
||||||
.catch(() => process.exit(1))
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost/hasura-auth-js",
|
"name": "@nhost/hasura-auth-js",
|
||||||
"version": "1.1.10",
|
"version": "1.1.11",
|
||||||
"description": "Hasura-auth client",
|
"description": "Hasura-auth client",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
"url": "https://github.com/nhost/nhost.git"
|
"url": "https://github.com/nhost/nhost.git"
|
||||||
},
|
},
|
||||||
"main": "dist/index.cjs.js",
|
"main": "dist/index.cjs.js",
|
||||||
"module": "dist/index.mjs",
|
"module": "dist/index.esm.mjs",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"source": "src/index.ts",
|
"source": "src/index.ts",
|
||||||
"files": [
|
"files": [
|
||||||
@@ -31,10 +31,10 @@
|
|||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"node": {
|
"node": {
|
||||||
"import": "./dist/index.mjs",
|
"import": "./dist/index.esm.mjs",
|
||||||
"require": "./dist/index.cjs.js"
|
"require": "./dist/index.cjs.js"
|
||||||
},
|
},
|
||||||
"default": "./dist/index.es.js"
|
"default": "./dist/index.esm.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite build --config ../../config/vite.lib.dev.config.js",
|
"dev": "vite build --config ../../config/vite.lib.dev.config.js",
|
||||||
"build": "run-p build:lib build:umd",
|
"build": "run-p build:lib build:umd",
|
||||||
"build:lib": "vite build && cpy --flat dist/index.mjs dist --rename=index.es.js && cpy --flat dist/index.mjs.map dist --rename index.es.js.map",
|
"build:lib": "vite build && cpy --flat dist/index.esm.mjs dist --rename=index.esm.js && cpy --flat dist/index.esm.mjs.map dist --rename index.esm.js.map",
|
||||||
"build:umd": "vite build --config ../../config/vite.lib.umd.config.js",
|
"build:umd": "vite build --config ../../config/vite.lib.umd.config.js",
|
||||||
"test": "vitest run",
|
"test": "vitest run",
|
||||||
"test:watch": "vitest",
|
"test:watch": "vitest",
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
# @nhost/hasura-storage-js
|
# @nhost/hasura-storage-js
|
||||||
|
|
||||||
|
## 0.3.1
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- 78341491: fix: Next.js and React issues with ESM packages
|
||||||
|
chore: Updated output bundle names
|
||||||
|
|
||||||
## 0.3.0
|
## 0.3.0
|
||||||
|
|
||||||
### Minor Changes
|
### Minor Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost/hasura-storage-js",
|
"name": "@nhost/hasura-storage-js",
|
||||||
"version": "0.3.0",
|
"version": "0.3.1",
|
||||||
"description": "Hasura-storage client",
|
"description": "Hasura-storage client",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
"url": "https://github.com/nhost/hasura-storage-js.git"
|
"url": "https://github.com/nhost/hasura-storage-js.git"
|
||||||
},
|
},
|
||||||
"main": "dist/index.cjs.js",
|
"main": "dist/index.cjs.js",
|
||||||
"module": "dist/index.mjs",
|
"module": "dist/index.esm.mjs",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"source": "src/index.ts",
|
"source": "src/index.ts",
|
||||||
"files": [
|
"files": [
|
||||||
@@ -29,10 +29,10 @@
|
|||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"node": {
|
"node": {
|
||||||
"import": "./dist/index.mjs",
|
"import": "./dist/index.esm.mjs",
|
||||||
"require": "./dist/index.cjs.js"
|
"require": "./dist/index.cjs.js"
|
||||||
},
|
},
|
||||||
"default": "./dist/index.es.js"
|
"default": "./dist/index.esm.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite build --config ../../config/vite.lib.dev.config.js",
|
"dev": "vite build --config ../../config/vite.lib.dev.config.js",
|
||||||
"build": "run-p build:lib build:umd",
|
"build": "run-p build:lib build:umd",
|
||||||
"build:lib": "vite build --config ../../config/vite.lib.config.js && cpy --flat dist/index.mjs dist --rename=index.es.js && cpy --flat dist/index.mjs.map dist --rename index.es.js.map",
|
"build:lib": "vite build --config ../../config/vite.lib.config.js && cpy --flat dist/index.esm.mjs dist --rename=index.esm.js && cpy --flat dist/index.esm.mjs.map dist --rename index.esm.js.map",
|
||||||
"build:umd": "vite build --config ../../config/vite.lib.umd.config.js",
|
"build:umd": "vite build --config ../../config/vite.lib.umd.config.js",
|
||||||
"test": "vitest run --config ../../config/vite.lib.config.js",
|
"test": "vitest run --config ../../config/vite.lib.config.js",
|
||||||
"test:watch": "vitest --config ../../config/vite.lib.config.js",
|
"test:watch": "vitest --config ../../config/vite.lib.config.js",
|
||||||
|
|||||||
@@ -1,5 +1,16 @@
|
|||||||
# @nhost/nextjs
|
# @nhost/nextjs
|
||||||
|
|
||||||
|
## 1.2.10
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- 78341491: fix: Next.js and React issues with ESM packages
|
||||||
|
chore: Updated output bundle names
|
||||||
|
- Updated dependencies [78341491]
|
||||||
|
- @nhost/core@0.6.2
|
||||||
|
- @nhost/nhost-js@1.2.1
|
||||||
|
- @nhost/react@0.7.10
|
||||||
|
|
||||||
## 1.2.9
|
## 1.2.9
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost/nextjs",
|
"name": "@nhost/nextjs",
|
||||||
"version": "1.2.9",
|
"version": "1.2.10",
|
||||||
"description": "Nhost NextJS library",
|
"description": "Nhost NextJS library",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
"url": "https://github.com/nhost/nhost.git"
|
"url": "https://github.com/nhost/nhost.git"
|
||||||
},
|
},
|
||||||
"main": "dist/index.cjs.js",
|
"main": "dist/index.cjs.js",
|
||||||
"module": "dist/index.mjs",
|
"module": "dist/index.esm.mjs",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"source": "src/index.ts",
|
"source": "src/index.ts",
|
||||||
"files": [
|
"files": [
|
||||||
@@ -35,10 +35,10 @@
|
|||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"node": {
|
"node": {
|
||||||
"import": "./dist/index.mjs",
|
"import": "./dist/index.esm.mjs",
|
||||||
"require": "./dist/index.cjs.js"
|
"require": "./dist/index.cjs.js"
|
||||||
},
|
},
|
||||||
"default": "./dist/index.es.js"
|
"default": "./dist/index.esm.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
@@ -47,7 +47,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite build --config ../../config/vite.react.dev.config.js",
|
"dev": "vite build --config ../../config/vite.react.dev.config.js",
|
||||||
"build": "run-p build:lib build:umd",
|
"build": "run-p build:lib build:umd",
|
||||||
"build:lib": "vite build --config ../../config/vite.react.config.js && cpy --flat dist/index.mjs dist --rename=index.es.js && cpy --flat dist/index.mjs.map dist --rename index.es.js.map",
|
"build:lib": "vite build --config ../../config/vite.react.config.js && cpy --flat dist/index.esm.mjs dist --rename=index.esm.js && cpy --flat dist/index.esm.mjs.map dist --rename index.esm.js.map",
|
||||||
"build:umd": "vite build --config ../../config/vite.react.umd.config.js",
|
"build:umd": "vite build --config ../../config/vite.react.umd.config.js",
|
||||||
"test": "vitest run --config ../../config/vite.react.config.js",
|
"test": "vitest run --config ../../config/vite.react.config.js",
|
||||||
"test:watch": "vitest --config ../../config/vite.react.config.js",
|
"test:watch": "vitest --config ../../config/vite.react.config.js",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import Cookies from 'cookies'
|
import Cookies from 'cookies'
|
||||||
import { GetServerSidePropsContext } from 'next'
|
import { GetServerSidePropsContext } from 'next'
|
||||||
import { StateFrom } from 'xstate'
|
import { StateFrom } from 'xstate'
|
||||||
import { waitFor } from 'xstate/lib/waitFor'
|
import { waitFor } from 'xstate/lib/waitFor.js'
|
||||||
|
|
||||||
import { AuthMachine, NHOST_REFRESH_TOKEN_KEY } from '@nhost/core'
|
import { AuthMachine, NHOST_REFRESH_TOKEN_KEY } from '@nhost/core'
|
||||||
import { NhostClient } from '@nhost/nhost-js'
|
import { NhostClient } from '@nhost/nhost-js'
|
||||||
|
|||||||
@@ -1,5 +1,15 @@
|
|||||||
# @nhost/nhost-js
|
# @nhost/nhost-js
|
||||||
|
|
||||||
|
## 1.2.1
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- 78341491: fix: Next.js and React issues with ESM packages
|
||||||
|
chore: Updated output bundle names
|
||||||
|
- Updated dependencies [78341491]
|
||||||
|
- @nhost/hasura-auth-js@1.1.11
|
||||||
|
- @nhost/hasura-storage-js@0.3.1
|
||||||
|
|
||||||
## 1.2.0
|
## 1.2.0
|
||||||
|
|
||||||
### Minor Changes
|
### Minor Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost/nhost-js",
|
"name": "@nhost/nhost-js",
|
||||||
"version": "1.2.0",
|
"version": "1.2.1",
|
||||||
"description": "Nhost JavaScript SDK",
|
"description": "Nhost JavaScript SDK",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
"url": "git+https://github.com/nhost/nhost.git"
|
"url": "git+https://github.com/nhost/nhost.git"
|
||||||
},
|
},
|
||||||
"main": "dist/index.cjs.js",
|
"main": "dist/index.cjs.js",
|
||||||
"module": "dist/index.mjs",
|
"module": "dist/index.esm.mjs",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"source": "src/index.ts",
|
"source": "src/index.ts",
|
||||||
"files": [
|
"files": [
|
||||||
@@ -32,10 +32,10 @@
|
|||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"node": {
|
"node": {
|
||||||
"import": "./dist/index.mjs",
|
"import": "./dist/index.esm.mjs",
|
||||||
"require": "./dist/index.cjs.js"
|
"require": "./dist/index.cjs.js"
|
||||||
},
|
},
|
||||||
"default": "./dist/index.es.js"
|
"default": "./dist/index.esm.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite build --config ../../config/vite.lib.dev.config.js",
|
"dev": "vite build --config ../../config/vite.lib.dev.config.js",
|
||||||
"build": "run-p build:lib build:umd",
|
"build": "run-p build:lib build:umd",
|
||||||
"build:lib": "vite build --config ../../config/vite.lib.config.js && cpy --flat dist/index.mjs dist --rename=index.es.js && cpy --flat dist/index.mjs.map dist --rename index.es.js.map",
|
"build:lib": "vite build --config ../../config/vite.lib.config.js && cpy --flat dist/index.esm.mjs dist --rename=index.esm.js && cpy --flat dist/index.esm.mjs.map dist --rename index.esm.js.map",
|
||||||
"build:umd": "vite build --config ../../config/vite.lib.umd.config.js",
|
"build:umd": "vite build --config ../../config/vite.lib.umd.config.js",
|
||||||
"test": "vitest run --config ../../config/vite.lib.config.js",
|
"test": "vitest run --config ../../config/vite.lib.config.js",
|
||||||
"test:watch": "vitest --config ../../config/vite.lib.config.js",
|
"test:watch": "vitest --config ../../config/vite.lib.config.js",
|
||||||
|
|||||||
@@ -1,5 +1,15 @@
|
|||||||
# @nhost/react-apollo
|
# @nhost/react-apollo
|
||||||
|
|
||||||
|
## 4.2.11
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- 78341491: fix: Next.js and React issues with ESM packages
|
||||||
|
chore: Updated output bundle names
|
||||||
|
- Updated dependencies [78341491]
|
||||||
|
- @nhost/apollo@0.5.10
|
||||||
|
- @nhost/react@0.7.10
|
||||||
|
|
||||||
## 4.2.10
|
## 4.2.10
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost/react-apollo",
|
"name": "@nhost/react-apollo",
|
||||||
"version": "4.2.10",
|
"version": "4.2.11",
|
||||||
"description": "Nhost React Apollo client",
|
"description": "Nhost React Apollo client",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
"url": "git+https://github.com/nhost/nhost.git"
|
"url": "git+https://github.com/nhost/nhost.git"
|
||||||
},
|
},
|
||||||
"main": "dist/index.cjs.js",
|
"main": "dist/index.cjs.js",
|
||||||
"module": "dist/index.mjs",
|
"module": "dist/index.esm.mjs",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"source": "src/index.ts",
|
"source": "src/index.ts",
|
||||||
"files": [
|
"files": [
|
||||||
@@ -34,10 +34,10 @@
|
|||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"node": {
|
"node": {
|
||||||
"import": "./dist/index.mjs",
|
"import": "./dist/index.esm.mjs",
|
||||||
"require": "./dist/index.cjs.js"
|
"require": "./dist/index.cjs.js"
|
||||||
},
|
},
|
||||||
"default": "./dist/index.es.js"
|
"default": "./dist/index.esm.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite build --config ../../config/vite.react.dev.config.js",
|
"dev": "vite build --config ../../config/vite.react.dev.config.js",
|
||||||
"build": "run-p build:lib build:umd",
|
"build": "run-p build:lib build:umd",
|
||||||
"build:lib": "vite build --config ../../config/vite.react.config.js && cpy --flat dist/index.mjs dist --rename=index.es.js && cpy --flat dist/index.mjs.map dist --rename index.es.js.map",
|
"build:lib": "vite build --config ../../config/vite.react.config.js && cpy --flat dist/index.esm.mjs dist --rename=index.esm.js && cpy --flat dist/index.esm.mjs.map dist --rename index.esm.js.map",
|
||||||
"build:umd": "vite build --config ../../config/vite.react.umd.config.js",
|
"build:umd": "vite build --config ../../config/vite.react.umd.config.js",
|
||||||
"test": "vitest run --config ../../config/vite.react.config.js",
|
"test": "vitest run --config ../../config/vite.react.config.js",
|
||||||
"test:watch": "vitest --config ../../config/vite.react.config.js",
|
"test:watch": "vitest --config ../../config/vite.react.config.js",
|
||||||
|
|||||||
@@ -1,5 +1,15 @@
|
|||||||
# @nhost/react-auth
|
# @nhost/react-auth
|
||||||
|
|
||||||
|
## 3.0.8
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- 78341491: fix: Next.js and React issues with ESM packages
|
||||||
|
chore: Updated output bundle names
|
||||||
|
- Updated dependencies [78341491]
|
||||||
|
- @nhost/hasura-auth-js@1.1.11
|
||||||
|
- @nhost/react@0.7.10
|
||||||
|
|
||||||
## 3.0.7
|
## 3.0.7
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost/react-auth",
|
"name": "@nhost/react-auth",
|
||||||
"version": "3.0.7",
|
"version": "3.0.8",
|
||||||
"description": "Nhost React client",
|
"description": "Nhost React client",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
"url": "git+https://github.com/nhost/nhost.git"
|
"url": "git+https://github.com/nhost/nhost.git"
|
||||||
},
|
},
|
||||||
"main": "dist/index.cjs.js",
|
"main": "dist/index.cjs.js",
|
||||||
"module": "dist/index.mjs",
|
"module": "dist/index.esm.mjs",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"source": "src/index.tsx",
|
"source": "src/index.tsx",
|
||||||
"files": [
|
"files": [
|
||||||
@@ -33,10 +33,10 @@
|
|||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"node": {
|
"node": {
|
||||||
"import": "./dist/index.mjs",
|
"import": "./dist/index.esm.mjs",
|
||||||
"require": "./dist/index.cjs.js"
|
"require": "./dist/index.cjs.js"
|
||||||
},
|
},
|
||||||
"default": "./dist/index.es.js"
|
"default": "./dist/index.esm.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite build --config ../../config/vite.react.dev.config.js",
|
"dev": "vite build --config ../../config/vite.react.dev.config.js",
|
||||||
"build": "run-p build:lib build:umd",
|
"build": "run-p build:lib build:umd",
|
||||||
"build:lib": "vite build --config ../../config/vite.react.config.js && cpy --flat dist/index.mjs dist --rename=index.es.js && cpy --flat dist/index.mjs.map dist --rename index.es.js.map",
|
"build:lib": "vite build --config ../../config/vite.react.config.js && cpy --flat dist/index.esm.mjs dist --rename=index.esm.js && cpy --flat dist/index.esm.mjs.map dist --rename index.esm.js.map",
|
||||||
"build:umd": "vite build --config ../../config/vite.react.umd.config.js",
|
"build:umd": "vite build --config ../../config/vite.react.umd.config.js",
|
||||||
"test": "vitest run --config ../../config/vite.react.config.js",
|
"test": "vitest run --config ../../config/vite.react.config.js",
|
||||||
"test:watch": "vitest --config ../../config/vite.react.config.js",
|
"test:watch": "vitest --config ../../config/vite.react.config.js",
|
||||||
|
|||||||
@@ -1,5 +1,15 @@
|
|||||||
# @nhost/react
|
# @nhost/react
|
||||||
|
|
||||||
|
## 0.7.10
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- 78341491: fix: Next.js and React issues with ESM packages
|
||||||
|
chore: Updated output bundle names
|
||||||
|
- Updated dependencies [78341491]
|
||||||
|
- @nhost/core@0.6.2
|
||||||
|
- @nhost/nhost-js@1.2.1
|
||||||
|
|
||||||
## 0.7.9
|
## 0.7.9
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost/react",
|
"name": "@nhost/react",
|
||||||
"version": "0.7.9",
|
"version": "0.7.10",
|
||||||
"description": "Nhost React library",
|
"description": "Nhost React library",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
"url": "https://github.com/nhost/nhost.git"
|
"url": "https://github.com/nhost/nhost.git"
|
||||||
},
|
},
|
||||||
"main": "dist/index.cjs.js",
|
"main": "dist/index.cjs.js",
|
||||||
"module": "dist/index.mjs",
|
"module": "dist/index.esm.mjs",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"source": "src/index.ts",
|
"source": "src/index.ts",
|
||||||
"files": [
|
"files": [
|
||||||
@@ -33,10 +33,10 @@
|
|||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"node": {
|
"node": {
|
||||||
"import": "./dist/index.mjs",
|
"import": "./dist/index.esm.mjs",
|
||||||
"require": "./dist/index.cjs.js"
|
"require": "./dist/index.cjs.js"
|
||||||
},
|
},
|
||||||
"default": "./dist/index.es.js"
|
"default": "./dist/index.esm.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite build --config ../../config/vite.react.dev.config.js",
|
"dev": "vite build --config ../../config/vite.react.dev.config.js",
|
||||||
"build": "run-p build:lib build:umd",
|
"build": "run-p build:lib build:umd",
|
||||||
"build:lib": "vite build --config ../../config/vite.react.config.js && cpy --flat dist/index.mjs dist --rename=index.es.js && cpy --flat dist/index.mjs.map dist --rename index.es.js.map",
|
"build:lib": "vite build --config ../../config/vite.react.config.js && cpy --flat dist/index.esm.mjs dist --rename=index.esm.js && cpy --flat dist/index.esm.mjs.map dist --rename index.esm.js.map",
|
||||||
"build:umd": "vite build --config ../../config/vite.react.umd.config.js",
|
"build:umd": "vite build --config ../../config/vite.react.umd.config.js",
|
||||||
"test": "vitest run --config ../../config/vite.react.config.js",
|
"test": "vitest run --config ../../config/vite.react.config.js",
|
||||||
"test:watch": "vitest --config ../../config/vite.react.config.js",
|
"test:watch": "vitest --config ../../config/vite.react.config.js",
|
||||||
@@ -62,7 +62,7 @@
|
|||||||
"@nhost/core": "workspace:*",
|
"@nhost/core": "workspace:*",
|
||||||
"@nhost/nhost-js": "workspace:*",
|
"@nhost/nhost-js": "workspace:*",
|
||||||
"@xstate/react": "^3.0.0",
|
"@xstate/react": "^3.0.0",
|
||||||
"immer": "^9.0.12",
|
"immer": "^9.0.14",
|
||||||
"jwt-decode": "^3.1.2",
|
"jwt-decode": "^3.1.2",
|
||||||
"xstate": "^4.31.0"
|
"xstate": "^4.31.0"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,5 +1,15 @@
|
|||||||
# @nhost/vue
|
# @nhost/vue
|
||||||
|
|
||||||
|
## 0.1.3
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- 78341491: fix: Next.js and React issues with ESM packages
|
||||||
|
chore: Updated output bundle names
|
||||||
|
- Updated dependencies [78341491]
|
||||||
|
- @nhost/core@0.6.2
|
||||||
|
- @nhost/nhost-js@1.2.1
|
||||||
|
|
||||||
## 0.1.2
|
## 0.1.2
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost/vue",
|
"name": "@nhost/vue",
|
||||||
"version": "0.1.2",
|
"version": "0.1.3",
|
||||||
"description": "Nhost Vue library",
|
"description": "Nhost Vue library",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
"url": "https://github.com/nhost/nhost.git"
|
"url": "https://github.com/nhost/nhost.git"
|
||||||
},
|
},
|
||||||
"main": "dist/index.cjs.js",
|
"main": "dist/index.cjs.js",
|
||||||
"module": "dist/index.mjs",
|
"module": "dist/index.esm.mjs",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"source": "src/index.ts",
|
"source": "src/index.ts",
|
||||||
"files": [
|
"files": [
|
||||||
@@ -33,10 +33,10 @@
|
|||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"node": {
|
"node": {
|
||||||
"import": "./dist/index.mjs",
|
"import": "./dist/index.esm.mjs",
|
||||||
"require": "./dist/index.cjs.js"
|
"require": "./dist/index.cjs.js"
|
||||||
},
|
},
|
||||||
"default": "./dist/index.es.js"
|
"default": "./dist/index.esm.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite build --config ../../config/vite.vue.dev.config.js",
|
"dev": "vite build --config ../../config/vite.vue.dev.config.js",
|
||||||
"build": "run-p build:lib build:umd",
|
"build": "run-p build:lib build:umd",
|
||||||
"build:lib": "vite build --config ../../config/vite.vue.config.js && cpy --flat dist/index.mjs dist --rename=index.es.js && cpy --flat dist/index.mjs.map dist --rename index.es.js.map",
|
"build:lib": "vite build --config ../../config/vite.vue.config.js && cpy --flat dist/index.esm.mjs dist --rename=index.esm.js && cpy --flat dist/index.esm.mjs.map dist --rename index.esm.js.map",
|
||||||
"build:umd": "vite build --config ../../config/vite.vue.umd.config.js",
|
"build:umd": "vite build --config ../../config/vite.vue.umd.config.js",
|
||||||
"test": "vitest run --config ../../config/vite.vue.config.js",
|
"test": "vitest run --config ../../config/vite.vue.config.js",
|
||||||
"test:watch": "vitest --config ../../config/vite.vue.config.js",
|
"test:watch": "vitest --config ../../config/vite.vue.config.js",
|
||||||
|
|||||||
23
pnpm-lock.yaml
generated
@@ -549,7 +549,7 @@ importers:
|
|||||||
'@nhost/nhost-js': workspace:*
|
'@nhost/nhost-js': workspace:*
|
||||||
'@types/react': ^18.0.8
|
'@types/react': ^18.0.8
|
||||||
'@xstate/react': ^3.0.0
|
'@xstate/react': ^3.0.0
|
||||||
immer: ^9.0.12
|
immer: ^9.0.14
|
||||||
jwt-decode: ^3.1.2
|
jwt-decode: ^3.1.2
|
||||||
react: ^18.1.0
|
react: ^18.1.0
|
||||||
xstate: ^4.31.0
|
xstate: ^4.31.0
|
||||||
@@ -557,7 +557,7 @@ importers:
|
|||||||
'@nhost/core': link:../core
|
'@nhost/core': link:../core
|
||||||
'@nhost/nhost-js': link:../nhost-js
|
'@nhost/nhost-js': link:../nhost-js
|
||||||
'@xstate/react': 3.0.0_65f3e99bcdc7699822790fc36fa14e77
|
'@xstate/react': 3.0.0_65f3e99bcdc7699822790fc36fa14e77
|
||||||
immer: 9.0.12
|
immer: 9.0.14
|
||||||
jwt-decode: 3.1.2
|
jwt-decode: 3.1.2
|
||||||
xstate: 4.31.0
|
xstate: 4.31.0
|
||||||
devDependencies:
|
devDependencies:
|
||||||
@@ -4594,6 +4594,7 @@ packages:
|
|||||||
url-regex-safe: 3.0.0_re2@1.17.4
|
url-regex-safe: 3.0.0_re2@1.17.4
|
||||||
video-extensions: 1.2.0
|
video-extensions: 1.2.0
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
|
- bluebird
|
||||||
- bufferutil
|
- bufferutil
|
||||||
- canvas
|
- canvas
|
||||||
- supports-color
|
- supports-color
|
||||||
@@ -7896,6 +7897,8 @@ packages:
|
|||||||
ssri: 8.0.1
|
ssri: 8.0.1
|
||||||
tar: 6.1.11
|
tar: 6.1.11
|
||||||
unique-filename: 1.1.1
|
unique-filename: 1.1.1
|
||||||
|
transitivePeerDependencies:
|
||||||
|
- bluebird
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/cacheable-request/6.1.0:
|
/cacheable-request/6.1.0:
|
||||||
@@ -12419,6 +12422,7 @@ packages:
|
|||||||
lodash: 4.17.21
|
lodash: 4.17.21
|
||||||
matcher: 4.0.0
|
matcher: 4.0.0
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
|
- bluebird
|
||||||
- bufferutil
|
- bufferutil
|
||||||
- canvas
|
- canvas
|
||||||
- supports-color
|
- supports-color
|
||||||
@@ -12629,6 +12633,10 @@ packages:
|
|||||||
resolution: {integrity: sha512-lk7UNmSbAukB5B6dh9fnh5D0bJTOFKxVg2cyJWTYrWRfhLrLMBquONcUs3aFq507hNoIZEDDh8lb8UtOizSMhA==}
|
resolution: {integrity: sha512-lk7UNmSbAukB5B6dh9fnh5D0bJTOFKxVg2cyJWTYrWRfhLrLMBquONcUs3aFq507hNoIZEDDh8lb8UtOizSMhA==}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
|
/immer/9.0.14:
|
||||||
|
resolution: {integrity: sha512-ubBeqQutOSLIFCUBN03jGeOS6a3DoYlSYwYJTa+gSKEZKU5redJIqkIdZ3JVv/4RZpfcXdAWH5zCNLWPRv2WDw==}
|
||||||
|
dev: false
|
||||||
|
|
||||||
/immutable/3.7.6:
|
/immutable/3.7.6:
|
||||||
resolution: {integrity: sha1-E7TTyxK++hVIKib+Gy665kAHHks=}
|
resolution: {integrity: sha1-E7TTyxK++hVIKib+Gy665kAHHks=}
|
||||||
engines: {node: '>=0.8.0'}
|
engines: {node: '>=0.8.0'}
|
||||||
@@ -13178,6 +13186,7 @@ packages:
|
|||||||
re2: 1.17.4
|
re2: 1.17.4
|
||||||
url-regex-safe: 3.0.0_re2@1.17.4
|
url-regex-safe: 3.0.0_re2@1.17.4
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
|
- bluebird
|
||||||
- supports-color
|
- supports-color
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
@@ -14613,6 +14622,7 @@ packages:
|
|||||||
socks-proxy-agent: 6.2.0
|
socks-proxy-agent: 6.2.0
|
||||||
ssri: 8.0.1
|
ssri: 8.0.1
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
|
- bluebird
|
||||||
- supports-color
|
- supports-color
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
@@ -15262,6 +15272,7 @@ packages:
|
|||||||
tar: 6.1.11
|
tar: 6.1.11
|
||||||
which: 2.0.2
|
which: 2.0.2
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
|
- bluebird
|
||||||
- supports-color
|
- supports-color
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
@@ -16506,6 +16517,11 @@ packages:
|
|||||||
|
|
||||||
/promise-inflight/1.0.1:
|
/promise-inflight/1.0.1:
|
||||||
resolution: {integrity: sha1-mEcocL8igTL8vdhoEputEsPAKeM=}
|
resolution: {integrity: sha1-mEcocL8igTL8vdhoEputEsPAKeM=}
|
||||||
|
peerDependencies:
|
||||||
|
bluebird: '*'
|
||||||
|
peerDependenciesMeta:
|
||||||
|
bluebird:
|
||||||
|
optional: true
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/promise-retry/2.0.1:
|
/promise-retry/2.0.1:
|
||||||
@@ -16782,6 +16798,7 @@ packages:
|
|||||||
nan: 2.15.0
|
nan: 2.15.0
|
||||||
node-gyp: 8.4.1
|
node-gyp: 8.4.1
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
|
- bluebird
|
||||||
- supports-color
|
- supports-color
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
@@ -17933,6 +17950,8 @@ packages:
|
|||||||
escape-html: 1.0.3
|
escape-html: 1.0.3
|
||||||
parseurl: 1.3.3
|
parseurl: 1.3.3
|
||||||
send: 0.17.2
|
send: 0.17.2
|
||||||
|
transitivePeerDependencies:
|
||||||
|
- supports-color
|
||||||
|
|
||||||
/set-blocking/2.0.0:
|
/set-blocking/2.0.0:
|
||||||
resolution: {integrity: sha1-BF+XgtARrppoA93TgrJDkrPYkPc=}
|
resolution: {integrity: sha1-BF+XgtARrppoA93TgrJDkrPYkPc=}
|
||||||
|
|||||||