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> <span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>
<a href="https://nhost.io/blog">Blog</a> <a href="https://nhost.io/blog">Blog</a>
<span>&nbsp;&nbsp;•&nbsp;&nbsp;</span> <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> <span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>
<a href="https://nhost.io/discord">Discord</a> <a href="https://nhost.io/discord">Discord</a>
<br /> <br />
@@ -32,7 +32,7 @@ Nhost consists of open source software:
- Database: [PostgreSQL](https://www.postgresql.org/) - Database: [PostgreSQL](https://www.postgresql.org/)
- Instant GraphQL API: [Hasura](https://hasura.io/) - Instant GraphQL API: [Hasura](https://hasura.io/)
- Authentication: [Hasura Auth](https://github.com/nhost/hasura-auth/) - 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) - Serverless Functions: Node.js (JavaScript and TypeScript)
- [Nhost CLI](https://docs.nhost.io/reference/cli) for local development - [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> <sub><b>Nuno Pato</b></sub>
</a> </a>
</td> </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"> <td align="center">
<a href="https://github.com/guicurcio"> <a href="https://github.com/guicurcio">
<img src="https://avatars.githubusercontent.com/u/20285232?v=4" width="100;" alt="guicurcio"/> <img src="https://avatars.githubusercontent.com/u/20285232?v=4" width="100;" alt="guicurcio"/>
<br /> <br />
<sub><b>Guido Curcio</b></sub> <sub><b>Guido Curcio</b></sub>
</a> </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>
<td align="center"> <td align="center">
<a href="https://github.com/sebagudelo"> <a href="https://github.com/sebagudelo">
@@ -262,6 +262,13 @@ Here are some ways of contributing to making Nhost better:
</a> </a>
</td></tr> </td></tr>
<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"> <td align="center">
<a href="https://github.com/jerryjappinen"> <a href="https://github.com/jerryjappinen">
<img src="https://avatars.githubusercontent.com/u/1101002?v=4" width="100;" alt="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 /> <br />
<sub><b>Muttenzer</b></sub> <sub><b>Muttenzer</b></sub>
</a> </a>
</td> </td></tr>
<tr>
<td align="center"> <td align="center">
<a href="https://github.com/ahmic"> <a href="https://github.com/ahmic">
<img src="https://avatars.githubusercontent.com/u/13452362?v=4" width="100;" alt="ahmic"/> <img src="https://avatars.githubusercontent.com/u/13452362?v=4" width="100;" alt="ahmic"/>
<br /> <br />
<sub><b>Amir Ahmic</b></sub> <sub><b>Amir Ahmic</b></sub>
</a> </a>
</td></tr> </td>
<tr>
<td align="center"> <td align="center">
<a href="https://github.com/akd-io"> <a href="https://github.com/akd-io">
<img src="https://avatars.githubusercontent.com/u/30059155?v=4" width="100;" alt="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 /> <br />
<sub><b>Gaurav Agrawal</b></sub> <sub><b>Gaurav Agrawal</b></sub>
</a> </a>
</td> </td></tr>
<tr>
<td align="center"> <td align="center">
<a href="https://github.com/alveshelio"> <a href="https://github.com/alveshelio">
<img src="https://avatars.githubusercontent.com/u/8176422?v=4" width="100;" alt="alveshelio"/> <img src="https://avatars.githubusercontent.com/u/8176422?v=4" width="100;" alt="alveshelio"/>
<br /> <br />
<sub><b>Helio Alves</b></sub> <sub><b>Helio Alves</b></sub>
</a> </a>
</td></tr> </td>
<tr>
<td align="center"> <td align="center">
<a href="https://github.com/nkhdo"> <a href="https://github.com/nkhdo">
<img src="https://avatars.githubusercontent.com/u/26102306?v=4" width="100;" alt="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> <sub><b>Hoang Do</b></sub>
</a> </a>
</td> </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"> <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"/>

View File

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

View File

@@ -1,38 +1,41 @@
import { Link } from 'react-router-dom' import { Link } from 'react-router-dom'
import { Button, ButtonVariant } from '@mantine/core' import { Button, ButtonProps, SharedButtonProps } from '@mantine/core'
const AuthLink: React.FC<{ const AuthButton: <C = 'button'>(props: ButtonProps<C>) => React.ReactElement = ({
icon?: React.ReactNode color,
link: string ...rest
color?: string }) => (
children?: React.ReactNode <Button
variant?: ButtonVariant role="button"
}> = ({ icon, color, link, variant, children }) => { fullWidth
return ( radius="sm"
<Button styles={(theme) => ({
role="button" root: {
component={Link} backgroundColor: color,
fullWidth '&:hover': {
radius="sm" backgroundColor: color && theme.fn.darken(color, 0.05)
variant={variant}
to={link}
leftIcon={icon}
styles={(theme) => ({
root: {
backgroundColor: color,
'&:hover': {
backgroundColor: color && theme.fn.darken(color, 0.05)
}
},
leftIcon: {
marginRight: 15
} }
})} },
>
{children} leftIcon: {
</Button> 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() const { github, google, facebook } = useProviderLink()
return ( return (
<> <>
<AuthLink icon={<FaGithub />} link={github} color="#333"> <AuthLink leftIcon={<FaGithub />} link={github} color="#333">
Continue with GitHub Continue with GitHub
</AuthLink> </AuthLink>
<AuthLink icon={<FaGoogle />} link={google} color="#de5246"> <AuthLink leftIcon={<FaGoogle />} link={google} color="#de5246">
Continue with Google Continue with Google
</AuthLink> </AuthLink>
<AuthLink icon={<FaFacebook />} link={facebook} color="#3b5998"> <AuthLink leftIcon={<FaFacebook />} link={facebook} color="#3b5998">
Continue with Facebook Continue with Facebook
</AuthLink> </AuthLink>
</> </>

View File

@@ -16,7 +16,7 @@ const Index: React.FC = () => (
<> <>
<OAuthLinks /> <OAuthLinks />
<Divider my="sm" /> <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 Continue with passwordless email
</AuthLink> </AuthLink>
<AuthLink variant="subtle" link="/sign-in/email-password"> <AuthLink variant="subtle" link="/sign-in/email-password">

View File

@@ -21,7 +21,7 @@ const Index: React.FC = () => {
<Divider my="sm" /> <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 Continue with passwordless email
</AuthLink> </AuthLink>
<AuthLink variant="subtle" link="/sign-up/email-password"> <AuthLink variant="subtle" link="/sign-up/email-password">

View File

@@ -1,5 +1,13 @@
# @nhost/apollo # @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 ## 0.5.17
### Patch Changes ### Patch Changes

View File

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

View File

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

View File

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

View File

@@ -1,5 +1,13 @@
# @nhost/hasura-auth-js # @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 ## 1.3.0
### Minor Changes ### Minor Changes

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,5 +1,15 @@
# @nhost/nextjs # @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 ## 1.4.1
### Patch Changes ### Patch Changes

View File

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

View File

@@ -1,5 +1,14 @@
# @nhost/nhost-js # @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 ## 1.4.1
### Patch Changes ### Patch Changes

View File

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

View File

@@ -1,5 +1,14 @@
# @nhost/react-apollo # @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 ## 4.4.1
### Patch Changes ### Patch Changes

View File

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

View File

@@ -1,5 +1,14 @@
# @nhost/react-auth # @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 ## 3.2.1
### Patch Changes ### Patch Changes

View File

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

View File

@@ -1,5 +1,14 @@
# @nhost/react # @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 ## 0.9.1
### Patch Changes ### Patch Changes

View File

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

View File

@@ -1,5 +1,14 @@
# @nhost/vue # @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 ## 0.3.1
### Patch Changes ### Patch Changes

View File

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