Compare commits

..

30 Commits

Author SHA1 Message Date
Szilárd Dóró
62b2de59d4 Merge pull request #2073 from nhost/changeset-release/main
chore: update versions
2023-06-25 17:50:18 +02:00
github-actions[bot]
2a760593db chore: update versions 2023-06-25 15:34:14 +00:00
Szilárd Dóró
9288873ce8 Merge pull request #2070 from nhost/renovate/react-monorepo
chore(deps): update react monorepo
2023-06-25 17:32:26 +02:00
Szilárd Dóró
47014be8e3 Merge pull request #2065 from nhost/renovate/turbo-monorepo
chore(deps): update dependency turbo to v1.10.6
2023-06-25 15:37:07 +02:00
Szilárd Dóró
49719f7a84 fix: don't break build 2023-06-25 15:23:22 +02:00
Szilárd Dóró
b3b64a3b74 chore: sync versions and add changeset 2023-06-25 15:21:13 +02:00
Szilárd Dóró
3a56c12df4 chore(dashboard): bump turbo to v1.10.6 2023-06-25 15:15:46 +02:00
renovate[bot]
5b15a4f235 chore(deps): update react monorepo 2023-06-25 13:13:47 +00:00
renovate[bot]
83303017c3 chore(deps): update dependency turbo to v1.10.6 2023-06-25 13:12:39 +00:00
Szilárd Dóró
e0739a5883 Merge pull request #2067 from nhost/renovate/graphiql-react-0.x
fix(deps): update dependency @graphiql/react to ^0.18.0
2023-06-25 15:10:36 +02:00
Szilárd Dóró
0a5a841cc8 fix: don't break builds 2023-06-25 14:57:31 +02:00
Szilárd Dóró
3309835f06 chore: revert PNPM version in flake.nix 2023-06-25 14:05:35 +02:00
Szilárd Dóró
32b221f944 chore: add changeset 2023-06-25 14:02:47 +02:00
renovate[bot]
e8a99badb8 fix(deps): update dependency @graphiql/react to ^0.18.0 2023-06-25 11:54:28 +00:00
Szilárd Dóró
1ea6e01963 Merge pull request #2066 from nhost/renovate/tj-actions-changed-files-37.x
chore(deps): update tj-actions/changed-files action to v37
2023-06-25 13:54:11 +02:00
Szilárd Dóró
958dec5dfe Merge pull request #2060 from nhost/changeset-release/main
chore: update versions
2023-06-25 13:50:55 +02:00
renovate[bot]
09257fbfb2 chore(deps): update tj-actions/changed-files action to v37 2023-06-24 17:15:19 +00:00
github-actions[bot]
61e3497a13 chore: update versions 2023-06-24 17:12:27 +00:00
Szilárd Dóró
a7b4e5606d Merge pull request #2069 from nhost/fix/security-keys
fix(webauthn): don't break webauthn form on save
2023-06-24 19:11:12 +02:00
Szilárd Dóró
34d77c9db1 fix(webauthn): don't break webauthn form on save 2023-06-24 18:54:06 +02:00
Szilárd Dóró
4f1efd28a6 Merge pull request #2058 from nhost/renovate/graphql-16.x
chore(deps): update dependency graphql to v16.7.1
2023-06-23 16:00:02 +02:00
Szilárd Dóró
07a45fde0e chore: add changeset 2023-06-23 14:30:07 +02:00
renovate[bot]
9d0380eef3 chore(deps): update dependency graphql to v16.7.1 2023-06-23 12:12:53 +00:00
Szilárd Dóró
ce3ec36b0a Merge pull request #2059 from nhost/fix/404
fix(dashboard): don't redirect to 404 page
2023-06-23 14:10:21 +02:00
Szilárd Dóró
b62a9d19b5 chore(dashboard): improve verbosity of variables 2023-06-23 13:02:32 +02:00
Szilárd Dóró
c1472079c5 Merge pull request #2057 from nhost/renovate/turbo-monorepo
chore(deps): update dependency turbo to v1.10.5
2023-06-23 12:23:29 +02:00
Szilárd Dóró
dd36971798 chore(pnpm): revert pnpm-lock file 2023-06-23 12:17:08 +02:00
Szilárd Dóró
6199c1c555 fix(dashboard): don't redirect to 404 page 2023-06-23 12:11:22 +02:00
Szilárd Dóró
f41fdc12af chore: bump turbo in the Dockerfile, add changeset 2023-06-23 10:23:43 +02:00
renovate[bot]
fc419ffa4d chore(deps): update dependency turbo to v1.10.5 2023-06-22 19:20:02 +00:00
38 changed files with 1770 additions and 1189 deletions

View File

@@ -43,7 +43,7 @@ jobs:
BUILD: 'all'
- name: Check if the pnpm lockfile changed
id: changed-lockfile
uses: tj-actions/changed-files@v36
uses: tj-actions/changed-files@v37
with:
files: pnpm-lock.yaml
# * Determine a pnpm filter argument for packages that have been modified.

View File

@@ -1,5 +1,26 @@
# @nhost/dashboard
## 0.17.16
### Patch Changes
- b3b64a3b7: chore(deps): bump `@types/react` to `v18.2.14` and `@types/react-dom` to `v18.2.6`
- 32b221f94: chore(deps): bump `graphiql` to `v3`
- 3a56c12df: chore(deps): bump `turbo` to `v1.10.6`
- Updated dependencies [b3b64a3b7]
- @nhost/react-apollo@5.0.29
- @nhost/nextjs@1.13.31
## 0.17.15
### Patch Changes
- f41fdc12a: chore(deps): bump `turbo` to `1.10.5`
- 6199c1c55: fix(projects): don't redirect to 404 page
- Updated dependencies [07a45fde0]
- @nhost/react-apollo@5.0.28
- @nhost/nextjs@1.13.30
## 0.17.14
### Patch Changes

View File

@@ -3,7 +3,7 @@ RUN apk add --no-cache libc6-compat
RUN apk update
WORKDIR /app
RUN yarn global add turbo@1.10.3
RUN yarn global add turbo@1.10.6
COPY . .
RUN turbo prune --scope="@nhost/dashboard" --docker

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/dashboard",
"version": "0.17.14",
"version": "0.17.16",
"private": true,
"scripts": {
"preinstall": "npx only-allow pnpm",
@@ -26,7 +26,7 @@
"@emotion/styled": "^11.10.5",
"@fontsource/inter": "^5.0.0",
"@fontsource/roboto-mono": "^5.0.0",
"@graphiql/react": "^0.17.0",
"@graphiql/react": "^0.18.0",
"@graphiql/toolkit": "^0.8.2",
"@headlessui/react": "^1.6.5",
"@heroicons/react": "^1.0.6",
@@ -49,7 +49,7 @@
"clsx": "^1.2.1",
"date-fns": "^2.29.3",
"generate-password": "^1.7.0",
"graphiql": "^2.4.0",
"graphiql": "^3.0.0",
"graphql": "^16.6.0",
"graphql-request": "^6.0.0",
"graphql-tag": "^2.12.6",
@@ -104,8 +104,8 @@
"@types/lodash.debounce": "^4.0.7",
"@types/node": "^16.11.7",
"@types/pluralize": "^0.0.29",
"@types/react": "18.2.13",
"@types/react-dom": "18.2.6",
"@types/react": "^18.2.14",
"@types/react-dom": "^18.2.6",
"@types/react-table": "^7.7.12",
"@types/testing-library__jest-dom": "^5.14.5",
"@types/validator": "^13.7.10",

View File

@@ -66,7 +66,10 @@ export default function WebAuthnSettings() {
config: {
auth: {
method: {
webauthn: values,
webauthn: {...values,
relyingParty: {
name: currentProject.name,
}},
},
},
},

View File

@@ -3,7 +3,7 @@ import type { Project, Workspace } from '@/types/application';
import { ApplicationStatus } from '@/types/application';
import { getHasuraAdminSecret } from '@/utils/env';
import { GetWorkspaceAndProjectDocument } from '@/utils/__generated__/graphql';
import { useNhostClient, useUserData } from '@nhost/nextjs';
import { useAuthenticationStatus, useNhostClient } from '@nhost/nextjs';
import type { RefetchOptions } from '@tanstack/react-query';
import { useQuery } from '@tanstack/react-query';
import { useRouter } from 'next/router';
@@ -34,14 +34,24 @@ export interface UseCurrentWorkspaceAndProjectReturnType {
export default function useCurrentWorkspaceAndProject(): UseCurrentWorkspaceAndProjectReturnType {
const client = useNhostClient();
const user = useUserData();
const isPlatform = useIsPlatform();
const { isAuthenticated, isLoading: isAuthLoading } =
useAuthenticationStatus();
const {
query: { workspaceSlug, appSlug },
isReady,
isReady: isRouterReady,
} = useRouter();
const isWorkspaceSlugAvailable = Boolean(workspaceSlug);
const shouldFetchWorkspaceAndProject =
isPlatform &&
isRouterReady &&
isWorkspaceSlugAvailable &&
isAuthenticated &&
!isAuthLoading;
// We can't use the hook exported by the codegen here because there are cases
// where it doesn't target the Nhost backend, but the currently active project
// instead.
@@ -59,7 +69,7 @@ export default function useCurrentWorkspaceAndProject(): UseCurrentWorkspaceAndP
}),
{
keepPreviousData: true,
enabled: isPlatform && isReady && !!workspaceSlug && !!user,
enabled: shouldFetchWorkspaceAndProject,
// multiple components are relying on this query, so we don't want to
// refetch it too often - kind of a hack, should be improved later
staleTime: 1000,
@@ -142,7 +152,7 @@ export default function useCurrentWorkspaceAndProject(): UseCurrentWorkspaceAndP
return {
currentWorkspace,
currentProject,
loading: response ? false : isFetching,
loading: response ? false : isFetching || isAuthLoading,
error: response?.error
? new Error(error?.message || 'Unknown error occurred.')
: null,

View File

@@ -1,5 +1,14 @@
# @nhost-examples/codegen-react-apollo
## 0.1.10
### Patch Changes
- b3b64a3b7: chore(deps): bump `@types/react` to `v18.2.14` and `@types/react-dom` to `v18.2.6`
- Updated dependencies [b3b64a3b7]
- @nhost/react-apollo@5.0.29
- @nhost/react@2.0.25
## 0.1.9
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost-examples/codegen-react-apollo",
"version": "0.1.9",
"version": "0.1.10",
"private": true,
"scripts": {
"codegen": "graphql-codegen",
@@ -29,8 +29,8 @@
"@graphql-typed-document-node/core": "^3.1.1",
"@tailwindcss/forms": "^0.5.3",
"@types/node": "^18.11.9",
"@types/react": "^18.0.34",
"@types/react-dom": "^18.0.11",
"@types/react": "^18.2.14",
"@types/react-dom": "^18.2.6",
"@vitejs/plugin-react": "^3.0.0",
"autoprefixer": "^10.4.13",
"postcss": "^8.4.19",

View File

@@ -1,5 +1,13 @@
# @nhost-examples/codegen-react-query
## 0.1.11
### Patch Changes
- b3b64a3b7: chore(deps): bump `@types/react` to `v18.2.14` and `@types/react-dom` to `v18.2.6`
- Updated dependencies [b3b64a3b7]
- @nhost/react@2.0.25
## 0.1.10
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost-examples/codegen-react-query",
"version": "0.1.10",
"version": "0.1.11",
"private": true,
"scripts": {
"codegen": "graphql-codegen",
@@ -30,8 +30,8 @@
"@graphql-typed-document-node/core": "^3.1.1",
"@tailwindcss/forms": "^0.5.3",
"@types/node": "^16.11.56",
"@types/react": "^18.0.34",
"@types/react-dom": "^18.0.11",
"@types/react": "^18.2.14",
"@types/react-dom": "^18.2.6",
"autoprefixer": "^10.4.13",
"eslint": "^8.23.0",
"postcss": "^8.4.20",

View File

@@ -1,5 +1,14 @@
# @nhost-examples/react-urql
## 0.0.7
### Patch Changes
- b3b64a3b7: chore(deps): bump `@types/react` to `v18.2.14` and `@types/react-dom` to `v18.2.6`
- Updated dependencies [b3b64a3b7]
- @nhost/react-urql@2.0.26
- @nhost/react@2.0.25
## 0.0.6
### Patch Changes

View File

@@ -1,7 +1,7 @@
{
"name": "@nhost-examples/codegen-react-urql",
"private": true,
"version": "0.0.6",
"version": "0.0.7",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
@@ -23,8 +23,8 @@
"@graphql-typed-document-node/core": "^3.1.1",
"@tailwindcss/forms": "^0.5.3",
"@types/node": "^16.11.7",
"@types/react": "^18.0.34",
"@types/react-dom": "^18.0.11",
"@types/react": "^18.2.14",
"@types/react-dom": "^18.2.6",
"@vitejs/plugin-react": "^3.0.0",
"autoprefixer": "^10.4.13",
"postcss": "^8.4.19",

View File

@@ -1,5 +1,15 @@
# @nhost-examples/nextjs
## 0.1.12
### Patch Changes
- b3b64a3b7: chore(deps): bump `@types/react` to `v18.2.14` and `@types/react-dom` to `v18.2.6`
- Updated dependencies [b3b64a3b7]
- @nhost/react-apollo@5.0.29
- @nhost/react@2.0.25
- @nhost/nextjs@1.13.31
## 0.1.11
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost-examples/nextjs",
"version": "0.1.11",
"version": "0.1.12",
"private": true,
"scripts": {
"dev": "next dev",
@@ -32,7 +32,7 @@
"devDependencies": {
"@next/bundle-analyzer": "^12.2.5",
"@types/node": "^16.11.7",
"@types/react": "18.0.34",
"@types/react": "^18.2.14",
"@xstate/inspect": "^0.6.2",
"eslint-config-next": "12.0.10",
"typescript": "^4.8.2",

View File

@@ -1,5 +1,14 @@
# @nhost-examples/react-apollo
## 0.1.14
### Patch Changes
- b3b64a3b7: chore(deps): bump `@types/react` to `v18.2.14` and `@types/react-dom` to `v18.2.6`
- Updated dependencies [b3b64a3b7]
- @nhost/react-apollo@5.0.29
- @nhost/react@2.0.25
## 0.1.13
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost-examples/react-apollo",
"version": "0.1.13",
"version": "0.1.14",
"private": true,
"dependencies": {
"@apollo/client": "^3.7.14",
@@ -54,8 +54,8 @@
"@nuintun/qrcode": "^3.3.2",
"@playwright/test": "1.31.0",
"@types/pngjs": "^6.0.1",
"@types/react": "^18.2.6",
"@types/react-dom": "^18.2.4",
"@types/react": "^18.2.14",
"@types/react-dom": "^18.2.6",
"@types/totp-generator": "^0.0.4",
"@vitejs/plugin-react": "^3.1.0",
"@xstate/inspect": "^0.6.5",

View File

@@ -1,5 +1,13 @@
# @nhost-examples/react-gqty
## 0.0.9
### Patch Changes
- b3b64a3b7: chore(deps): bump `@types/react` to `v18.2.14` and `@types/react-dom` to `v18.2.6`
- Updated dependencies [b3b64a3b7]
- @nhost/react@2.0.25
## 0.0.8
### Patch Changes

View File

@@ -1,7 +1,7 @@
{
"name": "@nhost-examples/react-gqty",
"private": true,
"version": "0.0.8",
"version": "0.0.9",
"type": "module",
"scripts": {
"dev": "vite",
@@ -20,8 +20,8 @@
"devDependencies": {
"@gqty/cli": "3.3.0-alpha-d8cdbf6.0",
"@tailwindcss/forms": "^0.5.3",
"@types/react": "^18.0.34",
"@types/react-dom": "^18.0.11",
"@types/react": "^18.2.14",
"@types/react-dom": "^18.2.6",
"@vitejs/plugin-react": "^3.0.0",
"autoprefixer": "^10.4.12",
"postcss": "^8.4.18",

View File

@@ -1,5 +1,13 @@
# @nhost/apollo
## 5.2.12
### Patch Changes
- 07a45fde0: chore(deps): bump `graphql` to `v16.7.1`
- Updated dependencies [07a45fde0]
- @nhost/nhost-js@2.2.10
## 5.2.11
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/apollo",
"version": "5.2.11",
"version": "5.2.12",
"description": "Nhost Apollo Client library",
"license": "MIT",
"keywords": [
@@ -64,7 +64,7 @@
"@nhost/nhost-js": "workspace:*"
},
"dependencies": {
"graphql": "16.6.0",
"graphql": "16.7.1",
"graphql-ws": "^5.10.1"
},
"devDependencies": {

View File

@@ -1,5 +1,22 @@
# @nhost/react-apollo
## 5.0.29
### Patch Changes
- b3b64a3b7: chore(deps): bump `@types/react` to `v18.2.14` and `@types/react-dom` to `v18.2.6`
- Updated dependencies [b3b64a3b7]
- @nhost/react@2.0.25
## 5.0.28
### Patch Changes
- 07a45fde0: chore(deps): bump `graphql` to `v16.7.1`
- Updated dependencies [07a45fde0]
- @nhost/apollo@5.2.12
- @nhost/react@2.0.24
## 5.0.27
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/react-apollo",
"version": "5.0.27",
"version": "5.0.29",
"description": "Nhost React Apollo client",
"license": "MIT",
"keywords": [
@@ -73,8 +73,8 @@
"devDependencies": {
"@apollo/client": "^3.7.10",
"@nhost/react": "workspace:*",
"@types/react": "^18.0.34",
"graphql": "16.6.0",
"@types/react": "^18.2.14",
"graphql": "16.7.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}

View File

@@ -1,5 +1,20 @@
# @nhost/react-urql
## 2.0.26
### Patch Changes
- b3b64a3b7: chore(deps): bump `@types/react` to `v18.2.14` and `@types/react-dom` to `v18.2.6`
- Updated dependencies [b3b64a3b7]
- @nhost/react@2.0.25
## 2.0.25
### Patch Changes
- 07a45fde0: chore(deps): bump `graphql` to `v16.7.1`
- @nhost/react@2.0.24
## 2.0.24
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/react-urql",
"version": "2.0.24",
"version": "2.0.26",
"description": "Nhost React URQL client",
"license": "MIT",
"keywords": [
@@ -72,8 +72,8 @@
},
"devDependencies": {
"@nhost/react": "workspace:*",
"@types/react": "^18.0.34",
"graphql": "16.6.0",
"@types/react": "^18.2.14",
"graphql": "16.7.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"urql": "^4.0.0"

View File

@@ -1,5 +1,11 @@
# @nhost/stripe-graphql-js
## 1.0.4
### Patch Changes
- 07a45fde0: chore(deps): bump `graphql` to `v16.7.1`
## 1.0.3
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/stripe-graphql-js",
"version": "1.0.3",
"version": "1.0.4",
"description": "Stripe GraphQL API",
"license": "MIT",
"keywords": [
@@ -41,7 +41,7 @@
},
"dependencies": {
"@pothos/core": "^3.21.0",
"graphql": "16.6.0",
"graphql": "16.7.1",
"graphql-scalars": "^1.18.0",
"graphql-yoga": "^3.4.0",
"jsonwebtoken": "^9.0.0",

View File

@@ -76,7 +76,7 @@
"husky": "^8.0.1",
"npm-run-all": "^4.1.5",
"prettier": "^2.7.1",
"turbo": "1.10.3",
"turbo": "1.10.6",
"typedoc": "^0.22.18",
"typescript": "4.9.5",
"vite": "^4.3.8",
@@ -85,7 +85,7 @@
"vitest": "^0.32.0"
},
"resolutions": {
"graphql": "16.6.0"
"graphql": "16.7.1"
},
"packageManager": "pnpm@8.6.2",
"engines": {

View File

@@ -1,5 +1,11 @@
# @nhost/graphql-js
## 0.1.4
### Patch Changes
- 07a45fde0: chore(deps): bump `graphql` to `v16.7.1`
## 0.1.3
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/graphql-js",
"version": "0.1.3",
"version": "0.1.4",
"description": "Nhost GraphQL client",
"license": "MIT",
"keywords": [
@@ -61,6 +61,6 @@
},
"devDependencies": {
"@nhost/docgen": "workspace:*",
"graphql": "16.6.0"
"graphql": "16.7.1"
}
}

View File

@@ -1,5 +1,18 @@
# @nhost/nextjs
## 1.13.31
### Patch Changes
- Updated dependencies [b3b64a3b7]
- @nhost/react@2.0.25
## 1.13.30
### Patch Changes
- @nhost/react@2.0.24
## 1.13.29
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/nextjs",
"version": "1.13.29",
"version": "1.13.31",
"description": "Nhost NextJS library",
"license": "MIT",
"keywords": [

View File

@@ -1,5 +1,13 @@
# @nhost/nhost-js
## 2.2.10
### Patch Changes
- 07a45fde0: chore(deps): bump `graphql` to `v16.7.1`
- Updated dependencies [07a45fde0]
- @nhost/graphql-js@0.1.4
## 2.2.9
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/nhost-js",
"version": "2.2.9",
"version": "2.2.10",
"description": "Nhost JavaScript SDK",
"license": "MIT",
"keywords": [
@@ -69,7 +69,7 @@
},
"devDependencies": {
"@nhost/docgen": "workspace:*",
"graphql": "16.6.0"
"graphql": "16.7.1"
},
"peerDependencies": {
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"

View File

@@ -1,5 +1,18 @@
# @nhost/react
## 2.0.25
### Patch Changes
- b3b64a3b7: chore(deps): bump `@types/react` to `v18.2.14` and `@types/react-dom` to `v18.2.6`
## 2.0.24
### Patch Changes
- Updated dependencies [07a45fde0]
- @nhost/nhost-js@2.2.10
## 2.0.23
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/react",
"version": "2.0.23",
"version": "2.0.25",
"description": "Nhost React library",
"license": "MIT",
"keywords": [
@@ -69,7 +69,7 @@
},
"devDependencies": {
"@nhost/docgen": "workspace:*",
"@types/react": "^18.0.34",
"@types/react": "^18.2.14",
"react": "^18.2.0"
},
"peerDependencies": {

View File

@@ -1,5 +1,12 @@
# @nhost/vue
## 1.13.30
### Patch Changes
- Updated dependencies [07a45fde0]
- @nhost/nhost-js@2.2.10
## 1.13.29
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/vue",
"version": "1.13.29",
"version": "1.13.30",
"description": "Nhost Vue library",
"license": "MIT",
"keywords": [

2679
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff