Compare commits
27 Commits
@nhost/rea
...
@nhost/rea
| 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>
|
||||
</a>
|
||||
</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">
|
||||
<a href="https://github.com/subhendukundu">
|
||||
<img src="https://avatars.githubusercontent.com/u/20059141?v=4" width="100;" alt="subhendukundu"/>
|
||||
<br />
|
||||
<sub><b>Subhendu Kundu</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<a href="https://github.com/heygambo">
|
||||
<img src="https://avatars.githubusercontent.com/u/449438?v=4" width="100;" alt="heygambo"/>
|
||||
<br />
|
||||
<sub><b>Christian Gambardella</b></sub>
|
||||
</a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
</td>
|
||||
<td align="center">
|
||||
<a href="https://github.com/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 />
|
||||
<sub><b>Jerry Jäppinen</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<a href="https://github.com/mustafa-hanif">
|
||||
<img src="https://avatars.githubusercontent.com/u/30019262?v=4" width="100;" alt="mustafa-hanif"/>
|
||||
<br />
|
||||
<sub><b>Mustafa Hanif</b></sub>
|
||||
</a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
</td>
|
||||
<td align="center">
|
||||
<a href="https://github.com/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 />
|
||||
<sub><b>Animesh Pathak</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<a href="https://github.com/rustyb">
|
||||
<img src="https://avatars.githubusercontent.com/u/53086?v=4" width="100;" alt="rustyb"/>
|
||||
<br />
|
||||
<sub><b>Colin Broderick</b></sub>
|
||||
</a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
</td>
|
||||
<td align="center">
|
||||
<a href="https://github.com/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 />
|
||||
<sub><b>Hugh Caluscusin</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<a href="https://github.com/jladuval">
|
||||
<img src="https://avatars.githubusercontent.com/u/1935359?v=4" width="100;" alt="jladuval"/>
|
||||
<br />
|
||||
<sub><b>Jacob Duval</b></sub>
|
||||
</a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
</td>
|
||||
<td align="center">
|
||||
<a href="https://github.com/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 />
|
||||
<sub><b>Quentin Decré</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<a href="https://github.com/atapas">
|
||||
<img src="https://avatars.githubusercontent.com/u/3633137?v=4" width="100;" alt="atapas"/>
|
||||
<br />
|
||||
<sub><b>Tapas Adhikary</b></sub>
|
||||
</a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
</td>
|
||||
<td align="center">
|
||||
<a href="https://github.com/komninoschat">
|
||||
<img src="https://avatars.githubusercontent.com/u/29049104?v=4" width="100;" alt="komninoschat"/>
|
||||
|
||||
@@ -44,7 +44,7 @@ export default defineConfig({
|
||||
lib: {
|
||||
entry,
|
||||
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']
|
||||
},
|
||||
rollupOptions: {
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
title: 'Introduction to Nhost'
|
||||
sidebar_label: Introduction
|
||||
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.
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
title: Nhost Authentication
|
||||
sidebar_label: Authentication
|
||||
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.
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
title: Sign In with Email and Password
|
||||
sidebar_label: 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.
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
title: Sign In with Magic Link
|
||||
sidebar_label: 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.
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
title: Sign In with Phone Number (SMS)
|
||||
sidebar_label: 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).
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
title: Sign In with Google
|
||||
sidebar_label: 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.
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
title: Sign In with Facebook
|
||||
sidebar_label: 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.
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
title: Sign In with GitHub
|
||||
sidebar_label: 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.
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
title: Sign In with LinkedIn
|
||||
sidebar_label: 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.
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
title: Sign In with Spotify
|
||||
sidebar_label: 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.
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: '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:
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
title: Tokens
|
||||
sidebar_label: Tokens
|
||||
sidebar_position: 10
|
||||
image: /img/og/platform/tokens.png
|
||||
---
|
||||
|
||||
Nhost Authentication makes use of two types of tokens:
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
title: Users
|
||||
sidebar_label: Users
|
||||
sidebar_position: 1
|
||||
image: /img/og/platform/users.png
|
||||
---
|
||||
|
||||
Users are stored in the database in the `users` table in the `auth` schema.
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: 'CLI'
|
||||
sidebar_position: 11
|
||||
image: /img/og/platform/cli.png
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs'
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: 'Event triggers'
|
||||
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.
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: 'Database'
|
||||
sidebar_position: 1
|
||||
image: /img/og/platform/database.png
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs'
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: 'Environment Variables'
|
||||
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.
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: 'GitHub Integration'
|
||||
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.
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: 'GraphQL'
|
||||
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).
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: 'Permissions'
|
||||
sidebar_position: 1
|
||||
image: /img/og/platform/permissions.png
|
||||
---
|
||||
|
||||
The GraphQL API is protected by a role-based permission system.
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: 'Architecture'
|
||||
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.
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: 'Get Started with Nhost CLI'
|
||||
sidebar_position: 2
|
||||
image: /img/og/platform/get-started-with-nhost-cli.png
|
||||
---
|
||||
|
||||
# Get started with Nhost CLI
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: 'Quickstart: Next.js'
|
||||
sidebar_position: 2
|
||||
image: /img/og/platform/quickstart-nextjs.png
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs'
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: 'Quickstart: React'
|
||||
sidebar_position: 1
|
||||
image: /img/og/platform/quickstart-react.png
|
||||
---
|
||||
|
||||
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'
|
||||
|
||||
<CreateApp />
|
||||
|
||||
:::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).
|
||||
:::
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: 'Quickstart: RedwoodJS'
|
||||
sidebar_position: 3
|
||||
image: /img/og/platform/quickstart-redwoodjs.png
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs'
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: 'Quickstart: Vue'
|
||||
sidebar_position: 3
|
||||
image: /img/og/platform/quickstart-vue.png
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs'
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: 'Serverless Functions'
|
||||
sidebar_position: 8
|
||||
image: /img/og/platform/serverless-functions.png
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs'
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: 'Storage'
|
||||
sidebar_position: 7
|
||||
image: /img/og/platform/storage.png
|
||||
---
|
||||
|
||||
Nhost stores and serves files of any type in your backend.
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
---
|
||||
title: 'Overview'
|
||||
title: 'JavaScript'
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs'
|
||||
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)
|
||||
- [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
|
||||
|
||||
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
|
||||
---
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
title: 'Overview'
|
||||
title: 'React'
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
@@ -31,20 +31,27 @@ yarn add @nhost/react graphql
|
||||
|
||||
## 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
|
||||
import React from 'react'
|
||||
import ReactDOM from 'react-dom'
|
||||
|
||||
import { NhostClient, NhostReactProvider } from '@nhost/react'
|
||||
import { nhost } from './lib/nhost'
|
||||
|
||||
import App from './App'
|
||||
|
||||
const nhost = new NhostClient({
|
||||
backendUrl: '<Your Nhost Backend URL>'
|
||||
})
|
||||
|
||||
ReactDOM.render(
|
||||
<React.StrictMode>
|
||||
<NhostReactProvider nhost={nhost}>
|
||||
@@ -53,8 +60,11 @@ ReactDOM.render(
|
||||
</React.StrictMode>,
|
||||
document.getElementById('root')
|
||||
)
|
||||
export { nhost }
|
||||
```
|
||||
|
||||
|
||||
|
||||
:::info
|
||||
|
||||
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
|
||||
---
|
||||
|
||||
|
||||
@@ -4,19 +4,28 @@
|
||||
const lightCodeTheme = require('prism-react-renderer/themes/github')
|
||||
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} */
|
||||
const config = {
|
||||
title: 'Nhost Docs',
|
||||
tagline:
|
||||
'Nhost is an open-source, real-time, server-less backend platform for building reliable apps that scale with your business.',
|
||||
url: 'https://docs.nhost.io',
|
||||
tagline: 'Nhost is an open source Firebase alternative with GraphQL.',
|
||||
url: getBaseUrl(),
|
||||
trailingSlash: false,
|
||||
baseUrl: '/',
|
||||
onBrokenLinks: 'throw',
|
||||
onBrokenMarkdownLinks: 'warn',
|
||||
favicon: 'img/favicon.png',
|
||||
organizationName: 'nhost', // Usually your GitHub org/user name.
|
||||
projectName: 'docs', // Usually your repo name.
|
||||
organizationName: 'nhost',
|
||||
projectName: 'docs',
|
||||
|
||||
presets: [
|
||||
[
|
||||
@@ -33,7 +42,6 @@ const config = {
|
||||
breadcrumbs: false,
|
||||
sidebarPath: require.resolve('./sidebars.js'),
|
||||
remarkPlugins: [require('mdx-mermaid')],
|
||||
// Please change this to your repo.
|
||||
editUrl: 'https://github.com/nhost/nhost/edit/main/docs/'
|
||||
},
|
||||
theme: {
|
||||
@@ -46,17 +54,13 @@ const config = {
|
||||
themeConfig:
|
||||
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
||||
({
|
||||
image: 'img/splash.png',
|
||||
colorMode: {
|
||||
defaultMode: 'light',
|
||||
disableSwitch: false,
|
||||
respectPrefersColorScheme: true
|
||||
},
|
||||
metadata: [
|
||||
{
|
||||
name: 'og:image',
|
||||
content: 'https://docs.nhost.io/img/splash.png'
|
||||
}
|
||||
],
|
||||
metadata: [{ name: 'robots', content: 'max-image-preview:large' }],
|
||||
navbar: {
|
||||
hideOnScroll: true,
|
||||
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
|
||||
|
||||
## 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
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/apollo",
|
||||
"version": "0.5.9",
|
||||
"version": "0.5.10",
|
||||
"description": "Nhost Apollo Client library",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
@@ -22,7 +22,7 @@
|
||||
"url": "https://github.com/nhost/nhost.git"
|
||||
},
|
||||
"main": "dist/index.cjs.js",
|
||||
"module": "dist/index.mjs",
|
||||
"module": "dist/index.esm.mjs",
|
||||
"types": "dist/index.d.ts",
|
||||
"source": "src/index.ts",
|
||||
"files": [
|
||||
@@ -33,10 +33,10 @@
|
||||
"exports": {
|
||||
".": {
|
||||
"node": {
|
||||
"import": "./dist/index.mjs",
|
||||
"import": "./dist/index.esm.mjs",
|
||||
"require": "./dist/index.cjs.js"
|
||||
},
|
||||
"default": "./dist/index.es.js"
|
||||
"default": "./dist/index.esm.js"
|
||||
}
|
||||
},
|
||||
"publishConfig": {
|
||||
@@ -45,7 +45,7 @@
|
||||
"scripts": {
|
||||
"dev": "vite build --config ../../config/vite.lib.dev.config.js",
|
||||
"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",
|
||||
"test": "vitest run --config ../../config/vite.lib.config.js",
|
||||
"test:watch": "vitest --config ../../config/vite.lib.config.js",
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
# @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
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/core",
|
||||
"version": "0.6.1",
|
||||
"version": "0.6.2",
|
||||
"description": "Nhost core client library",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
@@ -21,7 +21,7 @@
|
||||
"url": "https://github.com/nhost/nhost.git"
|
||||
},
|
||||
"main": "dist/index.cjs.js",
|
||||
"module": "dist/index.mjs",
|
||||
"module": "dist/index.esm.mjs",
|
||||
"types": "dist/index.d.ts",
|
||||
"source": "src/index.ts",
|
||||
"files": [
|
||||
@@ -32,10 +32,10 @@
|
||||
"exports": {
|
||||
".": {
|
||||
"node": {
|
||||
"import": "./dist/index.mjs",
|
||||
"import": "./dist/index.esm.mjs",
|
||||
"require": "./dist/index.cjs.js"
|
||||
},
|
||||
"default": "./dist/index.es.js"
|
||||
"default": "./dist/index.esm.js"
|
||||
}
|
||||
},
|
||||
"publishConfig": {
|
||||
@@ -44,7 +44,7 @@
|
||||
"scripts": {
|
||||
"dev": "vite build --config ../../config/vite.lib.dev.config.js",
|
||||
"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",
|
||||
"test": "vitest run --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 { interpret } from 'xstate'
|
||||
import { waitFor } from 'xstate/lib/waitFor'
|
||||
import { waitFor } from 'xstate/lib/waitFor.js'
|
||||
import { AuthClient } from '../src/client'
|
||||
import { INVALID_EMAIL_ERROR } from '../src/errors'
|
||||
import { createAuthMachine, createChangeEmailMachine } from '../src/machines'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import faker from '@faker-js/faker'
|
||||
import { interpret } from 'xstate'
|
||||
import { waitFor } from 'xstate/lib/waitFor'
|
||||
import { waitFor } from 'xstate/lib/waitFor.js'
|
||||
import { AuthClient } from '../src/client'
|
||||
import { INVALID_PASSWORD_ERROR } from '../src/errors'
|
||||
import { createAuthMachine, createChangePasswordMachine } from '../src/machines'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import faker from '@faker-js/faker'
|
||||
import { afterAll, afterEach, beforeAll, expect, test } from 'vitest'
|
||||
import { interpret } from 'xstate'
|
||||
import { waitFor } from 'xstate/lib/waitFor'
|
||||
import { waitFor } from 'xstate/lib/waitFor.js'
|
||||
import { AuthClient } from '../src/client'
|
||||
import { INVALID_MFA_CODE_ERROR, INVALID_MFA_TYPE_ERROR } from '../src/errors'
|
||||
import { createAuthMachine, createEnableMfaMachine } from '../src/machines'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import faker from '@faker-js/faker'
|
||||
import { afterAll, afterEach, beforeAll, expect, test } from 'vitest'
|
||||
import { interpret } from 'xstate'
|
||||
import { waitFor } from 'xstate/lib/waitFor'
|
||||
import { waitFor } from 'xstate/lib/waitFor.js'
|
||||
import { createAuthMachine } from '../src/machines'
|
||||
import { Typegen0 } from '../src/machines/index.typegen'
|
||||
import { BASE_URL } from './helpers/config'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import faker from '@faker-js/faker'
|
||||
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 { createAuthMachine } from '../src/machines'
|
||||
import { Typegen0 } from '../src/machines/index.typegen'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import faker from '@faker-js/faker'
|
||||
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 { createAuthMachine } from '../src/machines'
|
||||
import { Typegen0 } from '../src/machines/index.typegen'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import faker from '@faker-js/faker'
|
||||
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 { createAuthMachine } from '../src/machines'
|
||||
import { Typegen0 } from '../src/machines/index.typegen'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import faker from '@faker-js/faker'
|
||||
import { afterAll, afterEach, beforeAll, beforeEach, describe, test, vi } from 'vitest'
|
||||
import { BaseActionObject, interpret, Interpreter, ResolveTypegenMeta, ServiceMap } from 'xstate'
|
||||
import { waitFor } from 'xstate/lib/waitFor'
|
||||
import { waitFor } from 'xstate/lib/waitFor.js'
|
||||
import {
|
||||
NHOST_JWT_EXPIRES_AT_KEY,
|
||||
NHOST_REFRESH_TOKEN_KEY,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import faker from '@faker-js/faker'
|
||||
import { interpret } from 'xstate'
|
||||
import { waitFor } from 'xstate/lib/waitFor'
|
||||
import { waitFor } from 'xstate/lib/waitFor.js'
|
||||
import { AuthClient } from '../src/client'
|
||||
import { INVALID_EMAIL_ERROR } from '../src/errors'
|
||||
import { createResetPasswordMachine } from '../src/machines'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import faker from '@faker-js/faker'
|
||||
import { interpret } from 'xstate'
|
||||
import { waitFor } from 'xstate/lib/waitFor'
|
||||
import { waitFor } from 'xstate/lib/waitFor.js'
|
||||
import { AuthClient } from '../src/client'
|
||||
import { INVALID_EMAIL_ERROR } from '../src/errors'
|
||||
import { createSendVerificationEmailMachine } from '../src/machines'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import faker from '@faker-js/faker'
|
||||
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 { createAuthMachine } from '../src/machines'
|
||||
import { Typegen0 } from '../src/machines/index.typegen'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import faker from '@faker-js/faker'
|
||||
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 { createAuthMachine } from '../src/machines'
|
||||
import { Typegen0 } from '../src/machines/index.typegen'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import faker from '@faker-js/faker'
|
||||
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 { createAuthMachine } from '../src/machines'
|
||||
import { Typegen0 } from '../src/machines/index.typegen'
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
# @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
|
||||
|
||||
### 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",
|
||||
"version": "1.1.10",
|
||||
"version": "1.1.11",
|
||||
"description": "Hasura-auth client",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
@@ -20,7 +20,7 @@
|
||||
"url": "https://github.com/nhost/nhost.git"
|
||||
},
|
||||
"main": "dist/index.cjs.js",
|
||||
"module": "dist/index.mjs",
|
||||
"module": "dist/index.esm.mjs",
|
||||
"types": "dist/index.d.ts",
|
||||
"source": "src/index.ts",
|
||||
"files": [
|
||||
@@ -31,10 +31,10 @@
|
||||
"exports": {
|
||||
".": {
|
||||
"node": {
|
||||
"import": "./dist/index.mjs",
|
||||
"import": "./dist/index.esm.mjs",
|
||||
"require": "./dist/index.cjs.js"
|
||||
},
|
||||
"default": "./dist/index.es.js"
|
||||
"default": "./dist/index.esm.js"
|
||||
}
|
||||
},
|
||||
"publishConfig": {
|
||||
@@ -43,7 +43,7 @@
|
||||
"scripts": {
|
||||
"dev": "vite build --config ../../config/vite.lib.dev.config.js",
|
||||
"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",
|
||||
"test": "vitest run",
|
||||
"test:watch": "vitest",
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
# @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
|
||||
|
||||
### Minor Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/hasura-storage-js",
|
||||
"version": "0.3.0",
|
||||
"version": "0.3.1",
|
||||
"description": "Hasura-storage client",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
@@ -18,7 +18,7 @@
|
||||
"url": "https://github.com/nhost/hasura-storage-js.git"
|
||||
},
|
||||
"main": "dist/index.cjs.js",
|
||||
"module": "dist/index.mjs",
|
||||
"module": "dist/index.esm.mjs",
|
||||
"types": "dist/index.d.ts",
|
||||
"source": "src/index.ts",
|
||||
"files": [
|
||||
@@ -29,10 +29,10 @@
|
||||
"exports": {
|
||||
".": {
|
||||
"node": {
|
||||
"import": "./dist/index.mjs",
|
||||
"import": "./dist/index.esm.mjs",
|
||||
"require": "./dist/index.cjs.js"
|
||||
},
|
||||
"default": "./dist/index.es.js"
|
||||
"default": "./dist/index.esm.js"
|
||||
}
|
||||
},
|
||||
"publishConfig": {
|
||||
@@ -41,7 +41,7 @@
|
||||
"scripts": {
|
||||
"dev": "vite build --config ../../config/vite.lib.dev.config.js",
|
||||
"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",
|
||||
"test": "vitest run --config ../../config/vite.lib.config.js",
|
||||
"test:watch": "vitest --config ../../config/vite.lib.config.js",
|
||||
|
||||
@@ -1,5 +1,16 @@
|
||||
# @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
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/nextjs",
|
||||
"version": "1.2.9",
|
||||
"version": "1.2.10",
|
||||
"description": "Nhost NextJS library",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
@@ -24,7 +24,7 @@
|
||||
"url": "https://github.com/nhost/nhost.git"
|
||||
},
|
||||
"main": "dist/index.cjs.js",
|
||||
"module": "dist/index.mjs",
|
||||
"module": "dist/index.esm.mjs",
|
||||
"types": "dist/index.d.ts",
|
||||
"source": "src/index.ts",
|
||||
"files": [
|
||||
@@ -35,10 +35,10 @@
|
||||
"exports": {
|
||||
".": {
|
||||
"node": {
|
||||
"import": "./dist/index.mjs",
|
||||
"import": "./dist/index.esm.mjs",
|
||||
"require": "./dist/index.cjs.js"
|
||||
},
|
||||
"default": "./dist/index.es.js"
|
||||
"default": "./dist/index.esm.js"
|
||||
}
|
||||
},
|
||||
"publishConfig": {
|
||||
@@ -47,7 +47,7 @@
|
||||
"scripts": {
|
||||
"dev": "vite build --config ../../config/vite.react.dev.config.js",
|
||||
"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",
|
||||
"test": "vitest run --config ../../config/vite.react.config.js",
|
||||
"test:watch": "vitest --config ../../config/vite.react.config.js",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import Cookies from 'cookies'
|
||||
import { GetServerSidePropsContext } from 'next'
|
||||
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 { NhostClient } from '@nhost/nhost-js'
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
# @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
|
||||
|
||||
### Minor Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/nhost-js",
|
||||
"version": "1.2.0",
|
||||
"version": "1.2.1",
|
||||
"description": "Nhost JavaScript SDK",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
@@ -21,7 +21,7 @@
|
||||
"url": "git+https://github.com/nhost/nhost.git"
|
||||
},
|
||||
"main": "dist/index.cjs.js",
|
||||
"module": "dist/index.mjs",
|
||||
"module": "dist/index.esm.mjs",
|
||||
"types": "dist/index.d.ts",
|
||||
"source": "src/index.ts",
|
||||
"files": [
|
||||
@@ -32,10 +32,10 @@
|
||||
"exports": {
|
||||
".": {
|
||||
"node": {
|
||||
"import": "./dist/index.mjs",
|
||||
"import": "./dist/index.esm.mjs",
|
||||
"require": "./dist/index.cjs.js"
|
||||
},
|
||||
"default": "./dist/index.es.js"
|
||||
"default": "./dist/index.esm.js"
|
||||
}
|
||||
},
|
||||
"publishConfig": {
|
||||
@@ -44,7 +44,7 @@
|
||||
"scripts": {
|
||||
"dev": "vite build --config ../../config/vite.lib.dev.config.js",
|
||||
"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",
|
||||
"test": "vitest run --config ../../config/vite.lib.config.js",
|
||||
"test:watch": "vitest --config ../../config/vite.lib.config.js",
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
# @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
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/react-apollo",
|
||||
"version": "4.2.10",
|
||||
"version": "4.2.11",
|
||||
"description": "Nhost React Apollo client",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
@@ -23,7 +23,7 @@
|
||||
"url": "git+https://github.com/nhost/nhost.git"
|
||||
},
|
||||
"main": "dist/index.cjs.js",
|
||||
"module": "dist/index.mjs",
|
||||
"module": "dist/index.esm.mjs",
|
||||
"types": "dist/index.d.ts",
|
||||
"source": "src/index.ts",
|
||||
"files": [
|
||||
@@ -34,10 +34,10 @@
|
||||
"exports": {
|
||||
".": {
|
||||
"node": {
|
||||
"import": "./dist/index.mjs",
|
||||
"import": "./dist/index.esm.mjs",
|
||||
"require": "./dist/index.cjs.js"
|
||||
},
|
||||
"default": "./dist/index.es.js"
|
||||
"default": "./dist/index.esm.js"
|
||||
}
|
||||
},
|
||||
"publishConfig": {
|
||||
@@ -46,7 +46,7 @@
|
||||
"scripts": {
|
||||
"dev": "vite build --config ../../config/vite.react.dev.config.js",
|
||||
"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",
|
||||
"test": "vitest run --config ../../config/vite.react.config.js",
|
||||
"test:watch": "vitest --config ../../config/vite.react.config.js",
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
# @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
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/react-auth",
|
||||
"version": "3.0.7",
|
||||
"version": "3.0.8",
|
||||
"description": "Nhost React client",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
@@ -22,7 +22,7 @@
|
||||
"url": "git+https://github.com/nhost/nhost.git"
|
||||
},
|
||||
"main": "dist/index.cjs.js",
|
||||
"module": "dist/index.mjs",
|
||||
"module": "dist/index.esm.mjs",
|
||||
"types": "dist/index.d.ts",
|
||||
"source": "src/index.tsx",
|
||||
"files": [
|
||||
@@ -33,10 +33,10 @@
|
||||
"exports": {
|
||||
".": {
|
||||
"node": {
|
||||
"import": "./dist/index.mjs",
|
||||
"import": "./dist/index.esm.mjs",
|
||||
"require": "./dist/index.cjs.js"
|
||||
},
|
||||
"default": "./dist/index.es.js"
|
||||
"default": "./dist/index.esm.js"
|
||||
}
|
||||
},
|
||||
"publishConfig": {
|
||||
@@ -45,7 +45,7 @@
|
||||
"scripts": {
|
||||
"dev": "vite build --config ../../config/vite.react.dev.config.js",
|
||||
"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",
|
||||
"test": "vitest run --config ../../config/vite.react.config.js",
|
||||
"test:watch": "vitest --config ../../config/vite.react.config.js",
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
# @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
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/react",
|
||||
"version": "0.7.9",
|
||||
"version": "0.7.10",
|
||||
"description": "Nhost React library",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
@@ -22,7 +22,7 @@
|
||||
"url": "https://github.com/nhost/nhost.git"
|
||||
},
|
||||
"main": "dist/index.cjs.js",
|
||||
"module": "dist/index.mjs",
|
||||
"module": "dist/index.esm.mjs",
|
||||
"types": "dist/index.d.ts",
|
||||
"source": "src/index.ts",
|
||||
"files": [
|
||||
@@ -33,10 +33,10 @@
|
||||
"exports": {
|
||||
".": {
|
||||
"node": {
|
||||
"import": "./dist/index.mjs",
|
||||
"import": "./dist/index.esm.mjs",
|
||||
"require": "./dist/index.cjs.js"
|
||||
},
|
||||
"default": "./dist/index.es.js"
|
||||
"default": "./dist/index.esm.js"
|
||||
}
|
||||
},
|
||||
"publishConfig": {
|
||||
@@ -45,7 +45,7 @@
|
||||
"scripts": {
|
||||
"dev": "vite build --config ../../config/vite.react.dev.config.js",
|
||||
"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",
|
||||
"test": "vitest run --config ../../config/vite.react.config.js",
|
||||
"test:watch": "vitest --config ../../config/vite.react.config.js",
|
||||
@@ -62,7 +62,7 @@
|
||||
"@nhost/core": "workspace:*",
|
||||
"@nhost/nhost-js": "workspace:*",
|
||||
"@xstate/react": "^3.0.0",
|
||||
"immer": "^9.0.12",
|
||||
"immer": "^9.0.14",
|
||||
"jwt-decode": "^3.1.2",
|
||||
"xstate": "^4.31.0"
|
||||
},
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
# @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
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/vue",
|
||||
"version": "0.1.2",
|
||||
"version": "0.1.3",
|
||||
"description": "Nhost Vue library",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
@@ -22,7 +22,7 @@
|
||||
"url": "https://github.com/nhost/nhost.git"
|
||||
},
|
||||
"main": "dist/index.cjs.js",
|
||||
"module": "dist/index.mjs",
|
||||
"module": "dist/index.esm.mjs",
|
||||
"types": "dist/index.d.ts",
|
||||
"source": "src/index.ts",
|
||||
"files": [
|
||||
@@ -33,10 +33,10 @@
|
||||
"exports": {
|
||||
".": {
|
||||
"node": {
|
||||
"import": "./dist/index.mjs",
|
||||
"import": "./dist/index.esm.mjs",
|
||||
"require": "./dist/index.cjs.js"
|
||||
},
|
||||
"default": "./dist/index.es.js"
|
||||
"default": "./dist/index.esm.js"
|
||||
}
|
||||
},
|
||||
"publishConfig": {
|
||||
@@ -45,7 +45,7 @@
|
||||
"scripts": {
|
||||
"dev": "vite build --config ../../config/vite.vue.dev.config.js",
|
||||
"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",
|
||||
"test": "vitest run --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:*
|
||||
'@types/react': ^18.0.8
|
||||
'@xstate/react': ^3.0.0
|
||||
immer: ^9.0.12
|
||||
immer: ^9.0.14
|
||||
jwt-decode: ^3.1.2
|
||||
react: ^18.1.0
|
||||
xstate: ^4.31.0
|
||||
@@ -557,7 +557,7 @@ importers:
|
||||
'@nhost/core': link:../core
|
||||
'@nhost/nhost-js': link:../nhost-js
|
||||
'@xstate/react': 3.0.0_65f3e99bcdc7699822790fc36fa14e77
|
||||
immer: 9.0.12
|
||||
immer: 9.0.14
|
||||
jwt-decode: 3.1.2
|
||||
xstate: 4.31.0
|
||||
devDependencies:
|
||||
@@ -4594,6 +4594,7 @@ packages:
|
||||
url-regex-safe: 3.0.0_re2@1.17.4
|
||||
video-extensions: 1.2.0
|
||||
transitivePeerDependencies:
|
||||
- bluebird
|
||||
- bufferutil
|
||||
- canvas
|
||||
- supports-color
|
||||
@@ -7896,6 +7897,8 @@ packages:
|
||||
ssri: 8.0.1
|
||||
tar: 6.1.11
|
||||
unique-filename: 1.1.1
|
||||
transitivePeerDependencies:
|
||||
- bluebird
|
||||
dev: true
|
||||
|
||||
/cacheable-request/6.1.0:
|
||||
@@ -12419,6 +12422,7 @@ packages:
|
||||
lodash: 4.17.21
|
||||
matcher: 4.0.0
|
||||
transitivePeerDependencies:
|
||||
- bluebird
|
||||
- bufferutil
|
||||
- canvas
|
||||
- supports-color
|
||||
@@ -12629,6 +12633,10 @@ packages:
|
||||
resolution: {integrity: sha512-lk7UNmSbAukB5B6dh9fnh5D0bJTOFKxVg2cyJWTYrWRfhLrLMBquONcUs3aFq507hNoIZEDDh8lb8UtOizSMhA==}
|
||||
dev: false
|
||||
|
||||
/immer/9.0.14:
|
||||
resolution: {integrity: sha512-ubBeqQutOSLIFCUBN03jGeOS6a3DoYlSYwYJTa+gSKEZKU5redJIqkIdZ3JVv/4RZpfcXdAWH5zCNLWPRv2WDw==}
|
||||
dev: false
|
||||
|
||||
/immutable/3.7.6:
|
||||
resolution: {integrity: sha1-E7TTyxK++hVIKib+Gy665kAHHks=}
|
||||
engines: {node: '>=0.8.0'}
|
||||
@@ -13178,6 +13186,7 @@ packages:
|
||||
re2: 1.17.4
|
||||
url-regex-safe: 3.0.0_re2@1.17.4
|
||||
transitivePeerDependencies:
|
||||
- bluebird
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
@@ -14613,6 +14622,7 @@ packages:
|
||||
socks-proxy-agent: 6.2.0
|
||||
ssri: 8.0.1
|
||||
transitivePeerDependencies:
|
||||
- bluebird
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
@@ -15262,6 +15272,7 @@ packages:
|
||||
tar: 6.1.11
|
||||
which: 2.0.2
|
||||
transitivePeerDependencies:
|
||||
- bluebird
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
@@ -16506,6 +16517,11 @@ packages:
|
||||
|
||||
/promise-inflight/1.0.1:
|
||||
resolution: {integrity: sha1-mEcocL8igTL8vdhoEputEsPAKeM=}
|
||||
peerDependencies:
|
||||
bluebird: '*'
|
||||
peerDependenciesMeta:
|
||||
bluebird:
|
||||
optional: true
|
||||
dev: true
|
||||
|
||||
/promise-retry/2.0.1:
|
||||
@@ -16782,6 +16798,7 @@ packages:
|
||||
nan: 2.15.0
|
||||
node-gyp: 8.4.1
|
||||
transitivePeerDependencies:
|
||||
- bluebird
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
@@ -17933,6 +17950,8 @@ packages:
|
||||
escape-html: 1.0.3
|
||||
parseurl: 1.3.3
|
||||
send: 0.17.2
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
/set-blocking/2.0.0:
|
||||
resolution: {integrity: sha1-BF+XgtARrppoA93TgrJDkrPYkPc=}
|
||||
|
||||