Compare commits

..

14 Commits

Author SHA1 Message Date
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
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
25 changed files with 887 additions and 793 deletions

View File

@@ -1,5 +1,15 @@
# @nhost/dashboard
## 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.5
COPY . .
RUN turbo prune --scope="@nhost/dashboard" --docker

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/dashboard",
"version": "0.17.14",
"version": "0.17.15",
"private": true,
"scripts": {
"preinstall": "npx only-allow pnpm",
@@ -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.12",
"@types/react-dom": "18.2.5",
"@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,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,14 @@
# @nhost/react-apollo
## 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.28",
"description": "Nhost React Apollo client",
"license": "MIT",
"keywords": [
@@ -74,7 +74,7 @@
"@apollo/client": "^3.7.10",
"@nhost/react": "workspace:*",
"@types/react": "^18.0.34",
"graphql": "16.6.0",
"graphql": "16.7.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}

View File

@@ -1,5 +1,12 @@
# @nhost/react-urql
## 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.25",
"description": "Nhost React URQL client",
"license": "MIT",
"keywords": [
@@ -73,7 +73,7 @@
"devDependencies": {
"@nhost/react": "workspace:*",
"@types/react": "^18.0.34",
"graphql": "16.6.0",
"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.5",
"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,11 @@
# @nhost/nextjs
## 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.30",
"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,12 @@
# @nhost/react
## 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.24",
"description": "Nhost React library",
"license": "MIT",
"keywords": [

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": [

1539
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff