Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: upgrade yup (#22252)

Kevin Grüneberg65a440806d4e
diff --git a/apps/studio/components/interfaces/Auth/BasicAuthSettingsForm/BasicAuthSettingsForm.tsx b/apps/studio/components/interfaces/Auth/BasicAuthSettingsForm/BasicAuthSettingsForm.tsx
index 1f92215b86e..5736dc333a1 100644
--- a/apps/studio/components/interfaces/Auth/BasicAuthSettingsForm/BasicAuthSettingsForm.tsx
+++ b/apps/studio/components/interfaces/Auth/BasicAuthSettingsForm/BasicAuthSettingsForm.tsx
@@ -46,13 +46,14 @@ const schema = object({
SECURITY_CAPTCHA_ENABLED: boolean().required(),
SECURITY_CAPTCHA_SECRET: string().when('SECURITY_CAPTCHA_ENABLED', {
is: true,
- then: string().required('Must have a Captcha secret'),
+ then: (schema) => schema.required('Must have a Captcha secret'),
}),
SECURITY_CAPTCHA_PROVIDER: string().when('SECURITY_CAPTCHA_ENABLED', {
is: true,
- then: string()
- .oneOf(['hcaptcha', 'turnstile'])
- .required('Captcha provider must be either hcaptcha or turnstile'),
+ then: (schema) =>
+ schema
+ .oneOf(['hcaptcha', 'turnstile'])
+ .required('Captcha provider must be either hcaptcha or turnstile'),
}),
SESSIONS_TIMEBOX: number().min(0, 'Must be a positive number'),
SESSIONS_INACTIVITY_TIMEOUT: number().min(0, 'Must be a positive number'),
diff --git a/apps/studio/package.json b/apps/studio/package.json
index 9c39304b49a..514a87f5ff8 100644
--- a/apps/studio/package.json
+++ b/apps/studio/package.json
@@ -101,8 +101,8 @@
"ui-patterns": "*",
"uuid": "^9.0.1",
"valtio": "^1.12.0",
- "yup": "^0.32.11",
- "yup-password": "^0.2.2",
+ "yup": "^1.4.0",
+ "yup-password": "^0.3.0",
"zxcvbn": "^4.4.2"
},
"devDependencies": {
diff --git a/apps/www/package.json b/apps/www/package.json
index d5724d29a89..e6896ddd9a5 100644
--- a/apps/www/package.json
+++ b/apps/www/package.json
@@ -67,7 +67,7 @@
"ui-patterns": "*",
"use-debounce": "^7.0.1",
"vanilla-tilt": "1.7.0",
- "yup": "^0.32.11"
+ "yup": "^1.4.0"
},
"devDependencies": {
"@types/classnames": "^2.3.1",
diff --git a/apps/www/pages/legal/dpa.tsx b/apps/www/pages/legal/dpa.tsx
index 3ac0b22af5b..62b72450f44 100644
--- a/apps/www/pages/legal/dpa.tsx
+++ b/apps/www/pages/legal/dpa.tsx
@@ -1,5 +1,4 @@
import * as Yup from 'yup'
-import Link from 'next/link'
import { useState } from 'react'
import { Button, Form, IconDownload, Input } from 'ui'
diff --git a/package-lock.json b/package-lock.json
index 1ee29c01570..0eb1940d320 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -2413,8 +2413,8 @@
"ui-patterns": "*",
"uuid": "^9.0.1",
"valtio": "^1.12.0",
- "yup": "^0.32.11",
- "yup-password": "^0.2.2",
+ "yup": "^1.4.0",
+ "yup-password": "^0.3.0",
"zxcvbn": "^4.4.2"
},
"devDependencies": {
@@ -3848,7 +3848,7 @@
"ui-patterns": "*",
"use-debounce": "^7.0.1",
"vanilla-tilt": "1.7.0",
- "yup": "^0.32.11"
+ "yup": "^1.4.0"
},
"devDependencies": {
"@types/classnames": "^2.3.1",
@@ -17406,7 +17406,8 @@
"node_modules/@types/lodash": {
"version": "4.14.202",
"resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.202.tgz",
- "integrity": "sha512-OvlIYQK9tNneDlS0VN54LLd5uiPCBOp7gS5Z0f1mjoJYBrtStzgmJBxONW3U6OZqdtNzZPmn9BS/7WI7BFFcFQ=="
+ "integrity": "sha512-OvlIYQK9tNneDlS0VN54LLd5uiPCBOp7gS5Z0f1mjoJYBrtStzgmJBxONW3U6OZqdtNzZPmn9BS/7WI7BFFcFQ==",
+ "dev": true
},
"node_modules/@types/markdown-table": {
"version": "3.0.0",
@@ -35194,10 +35195,6 @@
"react-dom": "*"
}
},
- "node_modules/nanoclone": {
- "version": "0.2.1",
- "license": "MIT"
- },
"node_modules/nanoid": {
"version": "3.3.6",
"funding": [
@@ -43917,6 +43914,11 @@
"tiny-updater": "^3.5.1"
}
},
+ "node_modules/tiny-case": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/tiny-case/-/tiny-case-1.0.3.tgz",
+ "integrity": "sha512-Eet/eeMhkO6TX8mnUteS9zgPbUMQa4I6Kkp5ORiBD5476/m+PIRiumP5tmh5ioJpH7k51Kehawy2UDfsnxxY8Q=="
+ },
"node_modules/tiny-colors": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/tiny-colors/-/tiny-colors-2.1.2.tgz",
@@ -44685,7 +44687,6 @@
},
"node_modules/type-fest": {
"version": "2.19.0",
- "dev": true,
"license": "(MIT OR CC0-1.0)",
"engines": {
"node": ">=12.20"
@@ -46554,24 +46555,20 @@
}
},
"node_modules/yup": {
- "version": "0.32.11",
- "license": "MIT",
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/yup/-/yup-1.4.0.tgz",
+ "integrity": "sha512-wPbgkJRCqIf+OHyiTBQoJiP5PFuAXaWiJK6AmYkzQAh5/c2K9hzSApBZG5wV9KoKSePF7sAxmNSvh/13YHkFDg==",
"dependencies": {
- "@babel/runtime": "^7.15.4",
- "@types/lodash": "^4.14.175",
- "lodash": "^4.17.21",
- "lodash-es": "^4.17.21",
- "nanoclone": "^0.2.1",
- "property-expr": "^2.0.4",
- "toposort": "^2.0.2"
- },
- "engines": {
- "node": ">=10"
+ "property-expr": "^2.0.5",
+ "tiny-case": "^1.0.3",
+ "toposort": "^2.0.2",
+ "type-fest": "^2.19.0"
}
},
"node_modules/yup-password": {
- "version": "0.2.2",
- "license": "MIT"
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/yup-password/-/yup-password-0.3.0.tgz",
+ "integrity": "sha512-dNQdrm4Va21bKmk4mFUJ7UuBcYhAY+SRhBjs2nUgJOk6DAZZOUw3uzz4DA43lznsvEL9ex2BmC4qdeSimUB1ng=="
},
"node_modules/zeptomatch": {
"version": "1.2.2",
@@ -46993,7 +46990,7 @@
"tailwindcss": "^3.4.1",
"tailwindcss-animate": "^1.0.6",
"tailwindcss-radix": "^2.0.0",
- "yup": "^0.32.11",
+ "yup": "^1.4.0",
"zod": "^3.22.3"
},
"devDependencies": {
diff --git a/packages/ui/package.json b/packages/ui/package.json
index 573f69e54f3..f43c246d82b 100644
--- a/packages/ui/package.json
+++ b/packages/ui/package.json
@@ -81,7 +81,7 @@
"tailwindcss": "^3.4.1",
"tailwindcss-animate": "^1.0.6",
"tailwindcss-radix": "^2.0.0",
- "yup": "^0.32.11",
+ "yup": "^1.4.0",
"zod": "^3.22.3"
},
"devDependencies": {