Compare commits

...

16 Commits

Author SHA1 Message Date
Pilou
bbc9c6131b Merge pull request #758 from nhost/changeset-release/main
chore: update versions
2022-06-27 11:59:51 +02:00
github-actions[bot]
c16be7fb05 chore: update versions 2022-06-27 09:51:39 +00:00
Szilárd Dóró
872e44ebe0 Merge pull request #756 from nhost/fix/bundling-improvements
fix: `exports` field to support server-side environments
2022-06-27 11:50:21 +02:00
Szilárd Dóró
dbc10e6205 fix: fixed exports field in all packages
- added changeset
2022-06-27 10:35:17 +02:00
Pilou
b04d01f022 Merge pull request #755 from nhost/docs/readme
docs: update twitter handle & hasura-storage link
2022-06-27 09:30:20 +02:00
Pilou
29d0c7250f Merge pull request #754 from nhost/docs/fix-provider-links
React-apollo example: correct links to external urls (social providers)
2022-06-27 09:30:02 +02:00
Pierre-Louis Mercereau
b59f571048 docs: update twitter handle & hasura-storage link 2022-06-26 22:34:56 +02:00
Pierre-Louis Mercereau
64cc648d19 docs(example): correct react-apollo external links 2022-06-26 21:10:39 +02:00
Pilou
30f4e53181 Merge pull request #746 from nhost/docs/fix-typo
docs: fix typo
2022-06-24 13:52:24 +02:00
Pilou
5a141453f0 Merge pull request #745 from nhost/contributors-readme-action-wA3mZijrN6
contributors readme action update
2022-06-23 18:55:11 +02:00
Pierre-Louis Mercereau
788bb9c90d docs: fix typo 2022-06-23 18:53:24 +02:00
github-actions[bot]
09fa429125 contrib-readme-action has updated readme 2022-06-23 15:04:08 +00:00
Johan Eliasson
c505281250 Merge pull request #744 from MelodicCrypter/patch-1
Deleted typo error
2022-06-23 17:03:50 +02:00
Hugh Caluscusin
7ea5523375 Deleted typo error
Edited line 34, from "decvices" to "devices"
2022-06-23 22:57:53 +08:00
Pilou
c5cd6b1d7b Merge pull request #740 from nhost/contributors-readme-action-_AZSPBOfXF
contributors readme action update
2022-06-22 16:40:55 +02:00
github-actions[bot]
90a7999346 contrib-readme-action has updated readme 2022-06-22 12:09:31 +00:00
27 changed files with 197 additions and 81 deletions

View File

@@ -12,7 +12,7 @@
<span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>
<a href="https://nhost.io/blog">Blog</a>
<span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>
<a href="https://twitter.com/nhostio">Twitter</a>
<a href="https://twitter.com/nhost">Twitter</a>
<span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>
<a href="https://nhost.io/discord">Discord</a>
<br />
@@ -32,7 +32,7 @@ Nhost consists of open source software:
- Database: [PostgreSQL](https://www.postgresql.org/)
- Instant GraphQL API: [Hasura](https://hasura.io/)
- Authentication: [Hasura Auth](https://github.com/nhost/hasura-auth/)
- Storage: [Hasura Storage](https://hub.docker.com/r/nhost/hasura-storage)
- Storage: [Hasura Storage](https://github.com/nhost/hasura-storage)
- Serverless Functions: Node.js (JavaScript and TypeScript)
- [Nhost CLI](https://docs.nhost.io/reference/cli) for local development
@@ -168,20 +168,20 @@ Here are some ways of contributing to making Nhost better:
<sub><b>Nuno Pato</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/subatuba21">
<img src="https://avatars.githubusercontent.com/u/34824571?v=4" width="100;" alt="subatuba21"/>
<br />
<sub><b>Subha Das</b></sub>
</a>
</td></tr>
<tr>
<td align="center">
<a href="https://github.com/guicurcio">
<img src="https://avatars.githubusercontent.com/u/20285232?v=4" width="100;" alt="guicurcio"/>
<br />
<sub><b>Guido Curcio</b></sub>
</a>
</td></tr>
<tr>
<td align="center">
<a href="https://github.com/subatuba21">
<img src="https://avatars.githubusercontent.com/u/34824571?v=4" width="100;" alt="subatuba21"/>
<br />
<sub><b>Subha Das</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/sebagudelo">
@@ -262,6 +262,13 @@ Here are some ways of contributing to making Nhost better:
</a>
</td></tr>
<tr>
<td align="center">
<a href="https://github.com/MelodicCrypter">
<img src="https://avatars.githubusercontent.com/u/18341500?v=4" width="100;" alt="MelodicCrypter"/>
<br />
<sub><b>Hugh Caluscusin</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/jerryjappinen">
<img src="https://avatars.githubusercontent.com/u/1101002?v=4" width="100;" alt="jerryjappinen"/>
@@ -296,15 +303,15 @@ Here are some ways of contributing to making Nhost better:
<br />
<sub><b>Muttenzer</b></sub>
</a>
</td>
</td></tr>
<tr>
<td align="center">
<a href="https://github.com/ahmic">
<img src="https://avatars.githubusercontent.com/u/13452362?v=4" width="100;" alt="ahmic"/>
<br />
<sub><b>Amir Ahmic</b></sub>
</a>
</td></tr>
<tr>
</td>
<td align="center">
<a href="https://github.com/akd-io">
<img src="https://avatars.githubusercontent.com/u/30059155?v=4" width="100;" alt="akd-io"/>
@@ -339,15 +346,15 @@ Here are some ways of contributing to making Nhost better:
<br />
<sub><b>Gaurav Agrawal</b></sub>
</a>
</td>
</td></tr>
<tr>
<td align="center">
<a href="https://github.com/alveshelio">
<img src="https://avatars.githubusercontent.com/u/8176422?v=4" width="100;" alt="alveshelio"/>
<br />
<sub><b>Helio Alves</b></sub>
</a>
</td></tr>
<tr>
</td>
<td align="center">
<a href="https://github.com/nkhdo">
<img src="https://avatars.githubusercontent.com/u/26102306?v=4" width="100;" alt="nkhdo"/>
@@ -355,13 +362,6 @@ Here are some ways of contributing to making Nhost better:
<sub><b>Hoang Do</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/MelodicCrypter">
<img src="https://avatars.githubusercontent.com/u/18341500?v=4" width="100;" alt="MelodicCrypter"/>
<br />
<sub><b>Hugh Caluscusin</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/jladuval">
<img src="https://avatars.githubusercontent.com/u/1935359?v=4" width="100;" alt="jladuval"/>

View File

@@ -31,7 +31,7 @@ nhost.auth.signOut()
nhost.auth.signOut()
```
### Sign out the user from all decvices
### Sign out the user from all devices
```ts
nhost.auth.signOut({ all: true })

View File

@@ -1,38 +1,41 @@
import { Link } from 'react-router-dom'
import { Button, ButtonVariant } from '@mantine/core'
import { Button, ButtonProps, SharedButtonProps } from '@mantine/core'
const AuthLink: React.FC<{
icon?: React.ReactNode
link: string
color?: string
children?: React.ReactNode
variant?: ButtonVariant
}> = ({ icon, color, link, variant, children }) => {
return (
<Button
role="button"
component={Link}
fullWidth
radius="sm"
variant={variant}
to={link}
leftIcon={icon}
styles={(theme) => ({
root: {
backgroundColor: color,
'&:hover': {
backgroundColor: color && theme.fn.darken(color, 0.05)
}
},
leftIcon: {
marginRight: 15
const AuthButton: <C = 'button'>(props: ButtonProps<C>) => React.ReactElement = ({
color,
...rest
}) => (
<Button
role="button"
fullWidth
radius="sm"
styles={(theme) => ({
root: {
backgroundColor: color,
'&:hover': {
backgroundColor: color && theme.fn.darken(color, 0.05)
}
})}
>
{children}
</Button>
},
leftIcon: {
marginRight: 15
}
})}
{...rest}
/>
)
const AuthLink: React.FC<
SharedButtonProps & {
link: string
}
> = ({ link, ...rest }) => {
const isExternal = link.startsWith('http://') || link.startsWith('https://')
return isExternal ? (
<AuthButton component={'a'} href={link} {...rest} />
) : (
<AuthButton component={Link} to={link} {...rest} />
)
}

View File

@@ -8,13 +8,13 @@ export default function OauthLinks() {
const { github, google, facebook } = useProviderLink()
return (
<>
<AuthLink icon={<FaGithub />} link={github} color="#333">
<AuthLink leftIcon={<FaGithub />} link={github} color="#333">
Continue with GitHub
</AuthLink>
<AuthLink icon={<FaGoogle />} link={google} color="#de5246">
<AuthLink leftIcon={<FaGoogle />} link={google} color="#de5246">
Continue with Google
</AuthLink>
<AuthLink icon={<FaFacebook />} link={facebook} color="#3b5998">
<AuthLink leftIcon={<FaFacebook />} link={facebook} color="#3b5998">
Continue with Facebook
</AuthLink>
</>

View File

@@ -16,7 +16,7 @@ const Index: React.FC = () => (
<>
<OAuthLinks />
<Divider my="sm" />
<AuthLink icon={<FaLock />} variant="outline" link="/sign-in/email-passwordless">
<AuthLink leftIcon={<FaLock />} variant="outline" link="/sign-in/email-passwordless">
Continue with passwordless email
</AuthLink>
<AuthLink variant="subtle" link="/sign-in/email-password">

View File

@@ -21,7 +21,7 @@ const Index: React.FC = () => {
<Divider my="sm" />
</>
)}
<AuthLink icon={<FaLock />} variant="outline" link="/sign-up/email-passwordless">
<AuthLink leftIcon={<FaLock />} variant="outline" link="/sign-up/email-passwordless">
Continue with passwordless email
</AuthLink>
<AuthLink variant="subtle" link="/sign-up/email-password">

View File

@@ -1,5 +1,13 @@
# @nhost/apollo
## 0.5.18
### Patch Changes
- dbc10e62: fixed `exports` field to support imports in a server-side environment
- Updated dependencies [dbc10e62]
- @nhost/nhost-js@1.4.2
## 0.5.17
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/apollo",
"version": "0.5.17",
"version": "0.5.18",
"description": "Nhost Apollo Client library",
"license": "MIT",
"keywords": [
@@ -32,7 +32,10 @@
],
"exports": {
".": {
"import": "./dist/index.esm.js",
"import": {
"node": "./dist/index.cjs.js",
"default": "./dist/index.esm.js"
},
"require": "./dist/index.cjs.js"
}
},

View File

@@ -1,5 +1,11 @@
# @nhost/core
## 0.7.2
### Patch Changes
- dbc10e62: fixed `exports` field to support imports in a server-side environment
## 0.7.1
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/core",
"version": "0.7.1",
"version": "0.7.2",
"description": "Nhost core client library",
"license": "MIT",
"keywords": [
@@ -31,7 +31,10 @@
],
"exports": {
".": {
"import": "./dist/index.esm.js",
"import": {
"node": "./dist/index.cjs.js",
"default": "./dist/index.esm.js"
},
"require": "./dist/index.cjs.js"
}
},

View File

@@ -1,5 +1,13 @@
# @nhost/hasura-auth-js
## 1.3.1
### Patch Changes
- dbc10e62: fixed `exports` field to support imports in a server-side environment
- Updated dependencies [dbc10e62]
- @nhost/core@0.7.2
## 1.3.0
### Minor Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/hasura-auth-js",
"version": "1.3.0",
"version": "1.3.1",
"description": "Hasura-auth client",
"license": "MIT",
"keywords": [
@@ -30,7 +30,10 @@
],
"exports": {
".": {
"import": "./dist/index.esm.js",
"import": {
"node": "./dist/index.cjs.js",
"default": "./dist/index.esm.js"
},
"require": "./dist/index.cjs.js"
}
},

View File

@@ -220,7 +220,7 @@ export class HasuraAuthClient {
* ```
*
* @example
* ### Sign out the user from all decvices
* ### Sign out the user from all devices
* ```ts
* nhost.auth.signOut({all: true})
* ```

View File

@@ -1,5 +1,11 @@
# @nhost/hasura-storage-js
## 0.3.4
### Patch Changes
- dbc10e62: fixed `exports` field to support imports in a server-side environment
## 0.3.3
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/hasura-storage-js",
"version": "0.3.3",
"version": "0.3.4",
"description": "Hasura-storage client",
"license": "MIT",
"keywords": [
@@ -28,7 +28,10 @@
],
"exports": {
".": {
"import": "./dist/index.esm.js",
"import": {
"node": "./dist/index.cjs.js",
"default": "./dist/index.esm.js"
},
"require": "./dist/index.cjs.js"
}
},

View File

@@ -1,5 +1,15 @@
# @nhost/nextjs
## 1.4.2
### Patch Changes
- dbc10e62: fixed `exports` field to support imports in a server-side environment
- Updated dependencies [dbc10e62]
- @nhost/core@0.7.2
- @nhost/nhost-js@1.4.2
- @nhost/react@0.9.2
## 1.4.1
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/nextjs",
"version": "1.4.1",
"version": "1.4.2",
"description": "Nhost NextJS library",
"license": "MIT",
"keywords": [
@@ -34,7 +34,10 @@
],
"exports": {
".": {
"import": "./dist/index.esm.js",
"import": {
"node": "./dist/index.cjs.js",
"default": "./dist/index.esm.js"
},
"require": "./dist/index.cjs.js"
}
},

View File

@@ -1,5 +1,14 @@
# @nhost/nhost-js
## 1.4.2
### Patch Changes
- dbc10e62: fixed `exports` field to support imports in a server-side environment
- Updated dependencies [dbc10e62]
- @nhost/hasura-auth-js@1.3.1
- @nhost/hasura-storage-js@0.3.4
## 1.4.1
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/nhost-js",
"version": "1.4.1",
"version": "1.4.2",
"description": "Nhost JavaScript SDK",
"license": "MIT",
"keywords": [
@@ -31,7 +31,10 @@
],
"exports": {
".": {
"import": "./dist/index.esm.js",
"import": {
"node": "./dist/index.cjs.js",
"default": "./dist/index.esm.js"
},
"require": "./dist/index.cjs.js"
}
},

View File

@@ -1,5 +1,14 @@
# @nhost/react-apollo
## 4.4.2
### Patch Changes
- dbc10e62: fixed `exports` field to support imports in a server-side environment
- Updated dependencies [dbc10e62]
- @nhost/apollo@0.5.18
- @nhost/react@0.9.2
## 4.4.1
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/react-apollo",
"version": "4.4.1",
"version": "4.4.2",
"description": "Nhost React Apollo client",
"license": "MIT",
"keywords": [
@@ -33,7 +33,10 @@
],
"exports": {
".": {
"import": "./dist/index.esm.js",
"import": {
"node": "./dist/index.cjs.js",
"default": "./dist/index.esm.js"
},
"require": "./dist/index.cjs.js"
}
},

View File

@@ -1,5 +1,14 @@
# @nhost/react-auth
## 3.2.2
### Patch Changes
- dbc10e62: fixed `exports` field to support imports in a server-side environment
- Updated dependencies [dbc10e62]
- @nhost/hasura-auth-js@1.3.1
- @nhost/react@0.9.2
## 3.2.1
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/react-auth",
"version": "3.2.1",
"version": "3.2.2",
"description": "Nhost React client",
"license": "MIT",
"keywords": [
@@ -32,7 +32,10 @@
],
"exports": {
".": {
"import": "./dist/index.esm.js",
"import": {
"node": "./dist/index.cjs.js",
"default": "./dist/index.esm.js"
},
"require": "./dist/index.cjs.js"
}
},

View File

@@ -1,5 +1,14 @@
# @nhost/react
## 0.9.2
### Patch Changes
- dbc10e62: fixed `exports` field to support imports in a server-side environment
- Updated dependencies [dbc10e62]
- @nhost/core@0.7.2
- @nhost/nhost-js@1.4.2
## 0.9.1
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/react",
"version": "0.9.1",
"version": "0.9.2",
"description": "Nhost React library",
"license": "MIT",
"keywords": [
@@ -32,7 +32,10 @@
],
"exports": {
".": {
"import": "./dist/index.esm.js",
"import": {
"node": "./dist/index.cjs.js",
"default": "./dist/index.esm.js"
},
"require": "./dist/index.cjs.js"
}
},

View File

@@ -1,5 +1,14 @@
# @nhost/vue
## 0.3.2
### Patch Changes
- dbc10e62: fixed `exports` field to support imports in a server-side environment
- Updated dependencies [dbc10e62]
- @nhost/core@0.7.2
- @nhost/nhost-js@1.4.2
## 0.3.1
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/vue",
"version": "0.3.1",
"version": "0.3.2",
"description": "Nhost Vue library",
"license": "MIT",
"keywords": [
@@ -32,7 +32,10 @@
],
"exports": {
".": {
"import": "./dist/index.esm.js",
"import": {
"node": "./dist/index.cjs.js",
"default": "./dist/index.esm.js"
},
"require": "./dist/index.cjs.js"
}
},