Compare commits

...

3 Commits

Author SHA1 Message Date
github-actions[bot]
71a8ce4446 chore: update versions (#2524)
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @nhost/docs@2.4.0

### Minor Changes

-   791b729: fix: remove auth method

## @nhost/dashboard@1.6.7

### Patch Changes

-   5ef5189: fix: update `@apollo/client` to `3.9.4` to fix a cache bug

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-12 16:33:16 +01:00
Hassan Ben Jobrane
5ef5189898 fix(dashboard): resolve change plan modal cache issue (#2532)
related to https://github.com/nhost/nhost/issues/2530
2024-02-12 16:08:22 +01:00
Nuno Pato
791b7295fb fix: docs: remove auth method (#2475)
- https://github.com/nhost/nhost/issues/2474
2024-02-08 10:36:51 -01:00
16 changed files with 83 additions and 65 deletions

View File

@@ -1,5 +1,11 @@
# @nhost/dashboard
## 1.6.7
### Patch Changes
- 5ef5189: fix: update `@apollo/client` to `3.9.4` to fix a cache bug
## 1.6.6
### Patch Changes

View File

@@ -4,7 +4,6 @@ const withBundleAnalyzer = require('@next/bundle-analyzer')({
});
const { version } = require('./package.json');
const cspHeader = `
default-src 'self' *.nhost.run ws://*.nhost.run nhost.run ws://nhost.run;
script-src 'self' 'unsafe-eval' 'unsafe-inline' cdn.segment.com js.stripe.com;
@@ -19,7 +18,7 @@ const cspHeader = `
frame-src 'self' js.stripe.com;
block-all-mixed-content;
upgrade-insecure-requests;
`
`;
module.exports = withBundleAnalyzer({
reactStrictMode: true,
@@ -41,7 +40,7 @@ module.exports = withBundleAnalyzer({
headers: [
{
key: 'X-Frame-Options',
value: 'SAMEORIGIN'
value: 'SAMEORIGIN',
},
{
key: 'Content-Security-Policy',
@@ -49,7 +48,7 @@ module.exports = withBundleAnalyzer({
},
],
},
]
];
},
async redirects() {
return [

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/dashboard",
"version": "1.6.6",
"version": "1.6.7",
"private": true,
"scripts": {
"preinstall": "npx only-allow pnpm",
@@ -19,7 +19,7 @@
"e2e": "pnpm install-browsers && pnpm playwright test"
},
"dependencies": {
"@apollo/client": "^3.9.1",
"@apollo/client": "^3.9.4",
"@codemirror/lang-sql": "^6.5.5",
"@emotion/cache": "^11.11.0",
"@emotion/react": "^11.11.3",

View File

@@ -25,12 +25,12 @@ function Plan({ planName, price, setPlan, planId, selectedPlanId }: any) {
return (
<button
type="button"
className="my-4 grid w-full grid-flow-col items-center justify-between gap-2 px-1"
className="grid items-center justify-between w-full grid-flow-col gap-2 px-1 my-4"
onClick={setPlan}
tabIndex={-1}
>
<div className="grid grid-flow-row gap-y-0.5">
<div className="grid grid-flow-col items-center justify-start gap-2">
<div className="grid items-center justify-start grid-flow-col gap-2">
<Checkbox
onChange={setPlan}
checked={selectedPlanId === planId}
@@ -40,7 +40,7 @@ function Plan({ planName, price, setPlan, planId, selectedPlanId }: any) {
<Text
variant="h3"
component="p"
className="self-center text-left font-medium"
className="self-center font-medium text-left"
>
Upgrade to {planName}
</Text>
@@ -156,7 +156,7 @@ export function ChangePlanModalWithData({ app, plans, close }: any) {
if (pollingCurrentProject) {
return (
<Box className="mx-auto w-full max-w-xl rounded-lg p-6 text-left">
<Box className="w-full max-w-xl p-6 mx-auto text-left rounded-lg">
<div className="flex flex-col">
<div className="mx-auto">
<Image
@@ -179,7 +179,7 @@ export function ChangePlanModalWithData({ app, plans, close }: any) {
<Button
variant="outlined"
color="secondary"
className="mx-auto mt-4 w-full max-w-sm"
className="w-full max-w-sm mx-auto mt-4"
onClick={() => {
if (close) {
close();
@@ -196,7 +196,7 @@ export function ChangePlanModalWithData({ app, plans, close }: any) {
}
return (
<Box className="w-full max-w-xl rounded-lg p-6 text-left">
<Box className="w-full max-w-xl p-6 text-left rounded-lg">
<BaseDialog
open={showPaymentModal}
onClose={() => setShowPaymentModal(false)}
@@ -241,7 +241,7 @@ export function ChangePlanModalWithData({ app, plans, close }: any) {
))}
</div>
<div className="mt-2 grid grid-flow-row gap-2">
<div className="grid grid-flow-row gap-2 mt-2">
<Button
onClick={handleChangePlanClick}
disabled={!selectedPlan}

View File

@@ -1,5 +1,11 @@
# @nhost/docs
## 2.4.0
### Minor Changes
- 791b729: fix: remove auth method
## 2.3.0
### Minor Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/docs",
"version": "2.3.0",
"version": "2.4.0",
"private": true,
"scripts": {
"start": "mintlify dev"

View File

@@ -11,18 +11,9 @@ info:
servers:
- url: https://local.auth.nhost.run/v1
description: API Server
security:
- AdminSecret: []
- BearerAuth: []
components:
securitySchemes:
AdminSecret:
type: apiKey
in: header
name: X-Hasura-Admin-Secret
description: Hasura Admin Secret
BearerAuth:
scheme: bearer
type: http
@@ -1524,7 +1515,6 @@ paths:
schema:
$ref: '#/components/schemas/DisabledEndpointError'
description: The feature is not activated
security: []
summary: Sign In TOTP
tags:
- Authentication

View File

@@ -15,7 +15,7 @@
]
},
"dependencies": {
"@apollo/client": "^3.9.1",
"@apollo/client": "^3.9.4",
"@nhost/react": "workspace:^",
"@nhost/react-apollo": "workspace:^",
"clsx": "^1.2.1",

View File

@@ -15,7 +15,7 @@
"verify:fix": "run-p prettier:fix lint:fix"
},
"dependencies": {
"@apollo/client": "^3.9.1",
"@apollo/client": "^3.9.4",
"@mantine/core": "^4.2.12",
"@mantine/hooks": "^4.2.12",
"@mantine/next": "^4.2.12",

View File

@@ -9,7 +9,7 @@
"lint": "next lint"
},
"dependencies": {
"@apollo/client": "^3.9.1",
"@apollo/client": "^3.9.4",
"@nhost/nhost-js": "workspace:^",
"autoprefixer": "10.4.15",
"cookies-next": "^3.0.0",

View File

@@ -3,7 +3,7 @@
"version": "0.2.0",
"private": true,
"dependencies": {
"@apollo/client": "^3.9.1",
"@apollo/client": "^3.9.4",
"@mantine/core": "^4.2.12",
"@mantine/dropzone": "^4.2.12",
"@mantine/hooks": "^4.2.12",

View File

@@ -14,7 +14,7 @@
"verify:fix": "run-p prettier:fix lint:fix"
},
"dependencies": {
"@apollo/client": "^3.9.1",
"@apollo/client": "^3.9.4",
"@mdi/font": "5.9.55",
"@nhost/apollo": "workspace:^",
"@nhost/nhost-js": "workspace:^",

View File

@@ -11,7 +11,7 @@
"test": "vitest"
},
"dependencies": {
"@apollo/client": "^3.9.1",
"@apollo/client": "^3.9.4",
"@nhost/apollo": "workspace:^",
"@nhost/vue": "workspace:^",
"@vue/apollo-composable": "4.0.0-alpha.18",

View File

@@ -68,7 +68,7 @@
"graphql-ws": "^5.14.3"
},
"devDependencies": {
"@apollo/client": "^3.9.1",
"@apollo/client": "^3.9.4",
"@nhost/nhost-js": "workspace:*"
}
}

View File

@@ -71,7 +71,7 @@
"react-dom": "^17.0.0 || ^18.0.0"
},
"devDependencies": {
"@apollo/client": "^3.9.1",
"@apollo/client": "^3.9.4",
"@nhost/react": "workspace:*",
"@types/react": "^18.2.50",
"graphql": "16.8.1",

83
pnpm-lock.yaml generated
View File

@@ -149,8 +149,8 @@ importers:
dashboard:
dependencies:
'@apollo/client':
specifier: ^3.9.1
version: 3.9.1(@types/react@18.2.50)(graphql-ws@5.14.3)(graphql@16.8.1)(react-dom@18.2.0)(react@18.2.0)
specifier: ^3.9.4
version: 3.9.4(@types/react@18.2.50)(graphql-ws@5.14.3)(graphql@16.8.1)(react-dom@18.2.0)(react@18.2.0)
'@codemirror/lang-sql':
specifier: ^6.5.5
version: 6.5.5
@@ -606,8 +606,8 @@ importers:
examples/codegen-react-apollo:
dependencies:
'@apollo/client':
specifier: ^3.9.1
version: 3.9.1(@types/react@18.2.50)(graphql-ws@5.14.3)(graphql@16.8.1)(react-dom@18.2.0)(react@18.2.0)
specifier: ^3.9.4
version: 3.9.4(@types/react@18.2.50)(graphql-ws@5.14.3)(graphql@16.8.1)(react-dom@18.2.0)(react@18.2.0)
'@nhost/react':
specifier: workspace:^
version: link:../../packages/react
@@ -827,8 +827,8 @@ importers:
examples/nextjs:
dependencies:
'@apollo/client':
specifier: ^3.9.1
version: 3.9.1(@types/react@18.2.50)(graphql-ws@5.14.3)(graphql@16.8.1)(react-dom@18.2.0)(react@18.2.0)
specifier: ^3.9.4
version: 3.9.4(@types/react@18.2.50)(graphql-ws@5.14.3)(graphql@16.8.1)(react-dom@18.2.0)(react@18.2.0)
'@mantine/core':
specifier: ^4.2.12
version: 4.2.12(@babel/core@7.23.9)(@mantine/hooks@4.2.12)(@types/react@18.2.50)(react-dom@18.2.0)(react@18.2.0)
@@ -922,8 +922,8 @@ importers:
examples/quickstarts/nextjs-server-components:
dependencies:
'@apollo/client':
specifier: ^3.9.1
version: 3.9.1(@types/react@18.2.50)(graphql-ws@5.14.3)(graphql@16.8.1)(react-dom@18.2.0)(react@18.2.0)
specifier: ^3.9.4
version: 3.9.4(@types/react@18.2.50)(graphql-ws@5.14.3)(graphql@16.8.1)(react-dom@18.2.0)(react@18.2.0)
'@nhost/nhost-js':
specifier: workspace:^
version: link:../../../packages/nhost-js
@@ -1062,8 +1062,8 @@ importers:
examples/react-apollo:
dependencies:
'@apollo/client':
specifier: ^3.9.1
version: 3.9.1(@types/react@18.2.50)(graphql-ws@5.14.3)(graphql@16.8.1)(react-dom@18.2.0)(react@18.2.0)
specifier: ^3.9.4
version: 3.9.4(@types/react@18.2.50)(graphql-ws@5.14.3)(graphql@16.8.1)(react-dom@18.2.0)(react@18.2.0)
'@mantine/core':
specifier: ^4.2.12
version: 4.2.12(@babel/core@7.23.9)(@mantine/hooks@4.2.12)(@types/react@18.2.50)(react-dom@18.2.0)(react@18.2.0)
@@ -1250,8 +1250,8 @@ importers:
examples/vue-apollo:
dependencies:
'@apollo/client':
specifier: ^3.9.1
version: 3.9.1(graphql-ws@5.14.3)(graphql@16.8.1)
specifier: ^3.9.4
version: 3.9.4(graphql-ws@5.14.3)(graphql@16.8.1)
'@mdi/font':
specifier: 5.9.55
version: 5.9.55
@@ -1266,7 +1266,7 @@ importers:
version: link:../../packages/vue
'@vue/apollo-composable':
specifier: 4.0.0-alpha.18
version: 4.0.0-alpha.18(@apollo/client@3.9.1)(graphql@16.8.1)(typescript@4.9.4)(vue@3.4.15)
version: 4.0.0-alpha.18(@apollo/client@3.9.4)(graphql@16.8.1)(typescript@4.9.4)(vue@3.4.15)
graphql:
specifier: 16.8.1
version: 16.8.1
@@ -1323,8 +1323,8 @@ importers:
examples/vue-quickstart:
dependencies:
'@apollo/client':
specifier: ^3.9.1
version: 3.9.1(graphql-ws@5.14.3)(graphql@16.8.1)
specifier: ^3.9.4
version: 3.9.4(graphql-ws@5.14.3)(graphql@16.8.1)
'@nhost/apollo':
specifier: workspace:^
version: link:../../integrations/apollo
@@ -1333,7 +1333,7 @@ importers:
version: link:../../packages/vue
'@vue/apollo-composable':
specifier: 4.0.0-alpha.18
version: 4.0.0-alpha.18(@apollo/client@3.9.1)(graphql@16.8.1)(typescript@4.9.5)(vue@3.4.15)
version: 4.0.0-alpha.18(@apollo/client@3.9.4)(graphql@16.8.1)(typescript@4.9.5)(vue@3.4.15)
'@vueuse/core':
specifier: ^8.9.4
version: 8.9.4(vue@3.4.15)
@@ -1409,8 +1409,8 @@ importers:
version: 5.14.3(graphql@16.8.1)
devDependencies:
'@apollo/client':
specifier: ^3.9.1
version: 3.9.1(graphql-ws@5.14.3)(graphql@16.8.1)
specifier: ^3.9.4
version: 3.9.4(graphql-ws@5.14.3)(graphql@16.8.1)
'@nhost/nhost-js':
specifier: workspace:*
version: link:../../packages/nhost-js
@@ -1450,8 +1450,8 @@ importers:
version: link:../apollo
devDependencies:
'@apollo/client':
specifier: ^3.9.1
version: 3.9.1(@types/react@18.2.50)(graphql-ws@5.14.3)(graphql@16.8.1)(react-dom@18.2.0)(react@18.2.0)
specifier: ^3.9.4
version: 3.9.4(@types/react@18.2.50)(graphql-ws@5.14.3)(graphql@16.8.1)(react-dom@18.2.0)(react@18.2.0)
'@nhost/react':
specifier: workspace:*
version: link:../../packages/react
@@ -1981,8 +1981,8 @@ packages:
openapi-types: 12.1.3
dev: true
/@apollo/client@3.9.1(@types/react@18.2.50)(graphql-ws@5.14.3)(graphql@16.8.1)(react-dom@18.2.0)(react@18.2.0):
resolution: {integrity: sha512-gpnIwMrEZ4n811gy2Ksz51Ax4zjAR5O5Tg1vlKs70Eig5Qj7kGGfnWfH5B37LSCIXanRyuMgVbQx+Aty5WruBA==}
/@apollo/client@3.9.4(@types/react@18.2.50)(graphql-ws@5.14.3)(graphql@16.8.1)(react-dom@18.2.0)(react@18.2.0):
resolution: {integrity: sha512-Ip6dxjshDT2Dp6foLASTnKBW45Fytew/5JZutZwgc78hVrrGpO9UtZA9xteHXYdap0wIgCxCfeIQwbSu1ZdQpw==}
peerDependencies:
graphql: 16.8.1
graphql-ws: ^5.5.5
@@ -2011,7 +2011,7 @@ packages:
prop-types: 15.8.1
react: 18.2.0
react-dom: 18.2.0(react@18.2.0)
rehackt: 0.0.3(@types/react@18.2.50)(react@18.2.0)
rehackt: 0.0.4(@types/react@18.2.50)(react@18.2.0)
response-iterator: 0.2.6
symbol-observable: 4.0.0
ts-invariant: 0.10.3
@@ -2020,8 +2020,8 @@ packages:
transitivePeerDependencies:
- '@types/react'
/@apollo/client@3.9.1(graphql-ws@5.14.3)(graphql@16.8.1):
resolution: {integrity: sha512-gpnIwMrEZ4n811gy2Ksz51Ax4zjAR5O5Tg1vlKs70Eig5Qj7kGGfnWfH5B37LSCIXanRyuMgVbQx+Aty5WruBA==}
/@apollo/client@3.9.4(graphql-ws@5.14.3)(graphql@16.8.1):
resolution: {integrity: sha512-Ip6dxjshDT2Dp6foLASTnKBW45Fytew/5JZutZwgc78hVrrGpO9UtZA9xteHXYdap0wIgCxCfeIQwbSu1ZdQpw==}
peerDependencies:
graphql: 16.8.1
graphql-ws: ^5.5.5
@@ -2048,7 +2048,7 @@ packages:
hoist-non-react-statics: 3.3.2
optimism: 0.18.0
prop-types: 15.8.1
rehackt: 0.0.3(@types/react@18.2.50)(react@18.2.0)
rehackt: 0.0.4(@types/react@18.2.50)(react@18.2.0)
response-iterator: 0.2.6
symbol-observable: 4.0.0
ts-invariant: 0.10.3
@@ -11782,7 +11782,7 @@ packages:
'@vue/reactivity': 3.4.15
dev: true
/@vue/apollo-composable@4.0.0-alpha.18(@apollo/client@3.9.1)(graphql@16.8.1)(typescript@4.9.4)(vue@3.4.15):
/@vue/apollo-composable@4.0.0-alpha.18(@apollo/client@3.9.4)(graphql@16.8.1)(typescript@4.9.4)(vue@3.4.15):
resolution: {integrity: sha512-AasMZnAOG9fH+vcnQu6C3eyBMWXCsjdF0Njh7gGzQYBdo/CG9g9OKtrmHizq5AbgR2KJe/0RHE9yLBj7SZrcdQ==}
peerDependencies:
'@apollo/client': ^3.4.13
@@ -11793,7 +11793,7 @@ packages:
'@vue/composition-api':
optional: true
dependencies:
'@apollo/client': 3.9.1(graphql-ws@5.14.3)(graphql@16.8.1)
'@apollo/client': 3.9.4(graphql-ws@5.14.3)(graphql@16.8.1)
graphql: 16.8.1
throttle-debounce: 3.0.1
ts-essentials: 9.4.1(typescript@4.9.4)
@@ -11803,7 +11803,7 @@ packages:
- typescript
dev: false
/@vue/apollo-composable@4.0.0-alpha.18(@apollo/client@3.9.1)(graphql@16.8.1)(typescript@4.9.5)(vue@3.4.15):
/@vue/apollo-composable@4.0.0-alpha.18(@apollo/client@3.9.4)(graphql@16.8.1)(typescript@4.9.5)(vue@3.4.15):
resolution: {integrity: sha512-AasMZnAOG9fH+vcnQu6C3eyBMWXCsjdF0Njh7gGzQYBdo/CG9g9OKtrmHizq5AbgR2KJe/0RHE9yLBj7SZrcdQ==}
peerDependencies:
'@apollo/client': ^3.4.13
@@ -11814,7 +11814,7 @@ packages:
'@vue/composition-api':
optional: true
dependencies:
'@apollo/client': 3.9.1(graphql-ws@5.14.3)(graphql@16.8.1)
'@apollo/client': 3.9.4(graphql-ws@5.14.3)(graphql@16.8.1)
graphql: 16.8.1
throttle-debounce: 3.0.1
ts-essentials: 9.4.1(typescript@4.9.5)
@@ -14105,6 +14105,23 @@ packages:
optionalDependencies:
fsevents: 2.3.3
/chokidar@3.6.0:
resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==}
engines: {node: '>= 8.10.0'}
requiresBuild: true
dependencies:
anymatch: 3.1.3
braces: 3.0.2
glob-parent: 5.1.2
is-binary-path: 2.1.0
is-glob: 4.0.3
normalize-path: 3.0.0
readdirp: 3.6.0
optionalDependencies:
fsevents: 2.3.3
dev: true
optional: true
/chownr@1.1.4:
resolution: {integrity: sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==}
dev: true
@@ -25048,8 +25065,8 @@ packages:
jsesc: 0.5.0
dev: true
/rehackt@0.0.3(@types/react@18.2.50)(react@18.2.0):
resolution: {integrity: sha512-aBRHudKhOWwsTvCbSoinzq+Lej/7R8e8UoPvLZo5HirZIIBLGAgdG7SL9QpdcBoQ7+3QYPi3lRLknAzXBlhZ7g==}
/rehackt@0.0.4(@types/react@18.2.50)(react@18.2.0):
resolution: {integrity: sha512-xFroSGCbMEK/cTJVhq+c8l/AzIeMeojVyLqtZmr2jmIAFvePjapkCSGg9MnrcNk68HPaMxGf+Ndqozotu78ITw==}
peerDependencies:
'@types/react': '*'
react: '*'
@@ -29289,7 +29306,7 @@ packages:
graceful-fs: 4.2.11
neo-async: 2.6.2
optionalDependencies:
chokidar: 3.5.3
chokidar: 3.6.0
watchpack-chokidar2: 2.0.1
transitivePeerDependencies:
- supports-color