diff --git a/package-lock.json b/package-lock.json index 89a757a..f05b677 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,9 +10,9 @@ "dependencies": { "@fontsource-variable/inter": "^5.2.6", "@getalby/sdk": "^5.1.1", - "@hookform/resolvers": "^3.9.0", - "@nostrify/nostrify": "^0.48.3", - "@nostrify/react": "^0.2.22", + "@hookform/resolvers": "^5.2.2", + "@nostrify/nostrify": "^0.49.2", + "@nostrify/react": "^0.2.24", "@radix-ui/react-accordion": "^1.2.0", "@radix-ui/react-alert-dialog": "^1.1.1", "@radix-ui/react-aspect-ratio": "^1.1.0", @@ -57,7 +57,7 @@ "react": "^18.3.1", "react-day-picker": "^8.10.1", "react-dom": "^18.3.1", - "react-hook-form": "^7.53.0", + "react-hook-form": "^7.71.1", "react-intersection-observer": "^9.16.0", "react-resizable-panels": "^2.1.3", "react-router-dom": "^6.26.2", @@ -65,7 +65,7 @@ "tailwind-merge": "^2.5.2", "tailwindcss-animate": "^1.0.7", "vaul": "^0.9.3", - "zod": "^3.25.71" + "zod": "^4.3.6" }, "devDependencies": { "@eslint/js": "^9.9.0", @@ -986,12 +986,15 @@ } }, "node_modules/@hookform/resolvers": { - "version": "3.10.0", - "resolved": "https://registry.npmjs.org/@hookform/resolvers/-/resolvers-3.10.0.tgz", - "integrity": "sha512-79Dv+3mDF7i+2ajj7SkypSKHhl1cbln1OGavqrsF7p6mbUv11xpqpacPsGDCTRvCSjEEIez2ef1NveSVL3b0Ag==", + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/@hookform/resolvers/-/resolvers-5.2.2.tgz", + "integrity": "sha512-A/IxlMLShx3KjV/HeTcTfaMxdwy690+L/ZADoeaTltLx+CVuzkeVIPuybK3jrRfw7YZnmdKsVVHAlEPIAEUNlA==", "license": "MIT", + "dependencies": { + "@standard-schema/utils": "^0.3.0" + }, "peerDependencies": { - "react-hook-form": "^7.0.0" + "react-hook-form": "^7.55.0" } }, "node_modules/@html-eslint/eslint-plugin": { @@ -1253,9 +1256,9 @@ } }, "node_modules/@nostrify/nostrify": { - "version": "0.48.3", - "resolved": "https://registry.npmjs.org/@nostrify/nostrify/-/nostrify-0.48.3.tgz", - "integrity": "sha512-nnmOaQRE5zT3G/De8QaxysVOuCvJG+gPVnXC3VROLDJwQQPg5y9xmKkF0Cr2+eXY396xeWHA7bxFtu3jRYQVvg==", + "version": "0.49.2", + "resolved": "https://registry.npmjs.org/@nostrify/nostrify/-/nostrify-0.49.2.tgz", + "integrity": "sha512-JMiGifc/XX4QhzFnmJVw00UjcOS295w/NYth9mJH0cbS0EqPQ/4HBn33P0DGW3iE5EAkk+n98cnwzYeIPtn9pQ==", "dependencies": { "@nostrify/types": "0.36.9", "@scure/base": "^2.0.0", @@ -1266,7 +1269,7 @@ "nostr-tools": "^2.13.0", "websocket-ts": "^2.2.1", "ws": "^8.18.3", - "zod": "^3.23.8" + "zod": "^4.3.6" } }, "node_modules/@nostrify/nostrify/node_modules/@scure/base": { @@ -1294,11 +1297,11 @@ "license": "MIT" }, "node_modules/@nostrify/react": { - "version": "0.2.22", - "resolved": "https://registry.npmjs.org/@nostrify/react/-/react-0.2.22.tgz", - "integrity": "sha512-J6nRbwlcNAbetvHuq8BJIgPhD8Sq/xreRnYevDJOUbYEh3BKA+Q04kAm2YkU5+6EMUysdlLCy/1HDKK3H+Z7QQ==", + "version": "0.2.24", + "resolved": "https://registry.npmjs.org/@nostrify/react/-/react-0.2.24.tgz", + "integrity": "sha512-LdB6UjNKZ/Xhz+jj8CRCcudHt4WNNVZMgJsiO+XAloqWE8oPRf1G2i1k6I/eF6buCJokKE1PFUTMlyieOpIXNQ==", "dependencies": { - "@nostrify/nostrify": "0.49.0", + "@nostrify/nostrify": "0.49.2", "@nostrify/types": "0.36.9", "@tanstack/react-query": "^5.69.0", "nostr-tools": "^2.13.0", @@ -1306,47 +1309,6 @@ "react-dom": "^18.0.0" } }, - "node_modules/@nostrify/react/node_modules/@nostrify/nostrify": { - "version": "0.49.0", - "resolved": "https://registry.npmjs.org/@nostrify/nostrify/-/nostrify-0.49.0.tgz", - "integrity": "sha512-sxNmpGclfhNAHxjLf1S/dSAgaai4ZnKX8huyVpNySKSFeWP2yWODd5+koKDkse3VEWwaH5251CGSzhNkjS9REQ==", - "dependencies": { - "@nostrify/types": "0.36.9", - "@scure/base": "^2.0.0", - "@smithy/util-base64": "^4.3.0", - "@smithy/util-hex-encoding": "^4.2.0", - "@types/node": "^24.1.0", - "lru-cache": "^10.2.0", - "nostr-tools": "^2.13.0", - "websocket-ts": "^2.2.1", - "ws": "^8.18.3", - "zod": "^3.23.8" - } - }, - "node_modules/@nostrify/react/node_modules/@scure/base": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@scure/base/-/base-2.0.0.tgz", - "integrity": "sha512-3E1kpuZginKkek01ovG8krQ0Z44E3DHPjc5S2rjJw9lZn3KSQOs8S7wqikF/AH7iRanHypj85uGyxk0XAyC37w==", - "license": "MIT", - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@nostrify/react/node_modules/@types/node": { - "version": "24.10.9", - "resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.9.tgz", - "integrity": "sha512-ne4A0IpG3+2ETuREInjPNhUGis1SFjv1d5asp8MzEAGtOZeTeHVDOYqOgqfhvseqg/iXty2hjBf1zAOb7RNiNw==", - "license": "MIT", - "dependencies": { - "undici-types": "~7.16.0" - } - }, - "node_modules/@nostrify/react/node_modules/undici-types": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", - "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", - "license": "MIT" - }, "node_modules/@nostrify/types": { "version": "0.36.9", "resolved": "https://registry.npmjs.org/@nostrify/types/-/types-0.36.9.tgz", @@ -2772,7 +2734,6 @@ "cpu": [ "arm" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2786,7 +2747,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2800,7 +2760,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2814,7 +2773,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2828,7 +2786,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2842,7 +2799,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2856,7 +2812,6 @@ "cpu": [ "arm" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2870,7 +2825,6 @@ "cpu": [ "arm" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2884,7 +2838,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2898,7 +2851,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2912,7 +2864,6 @@ "cpu": [ "loong64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2926,7 +2877,6 @@ "cpu": [ "ppc64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2940,7 +2890,6 @@ "cpu": [ "riscv64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2954,7 +2903,6 @@ "cpu": [ "riscv64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2968,7 +2916,6 @@ "cpu": [ "s390x" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2982,7 +2929,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2996,7 +2942,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -3010,7 +2955,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -3024,7 +2968,6 @@ "cpu": [ "ia32" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -3038,7 +2981,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -3160,6 +3102,12 @@ "node": ">=18.0.0" } }, + "node_modules/@standard-schema/utils": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@standard-schema/utils/-/utils-0.3.0.tgz", + "integrity": "sha512-e7Mew686owMaPJVNNLs55PUvgz371nKgwsc4vxE49zsODpJEnxgxRo2y/OKrqueavXgZNMDVj3DdHFlaSAeU8g==", + "license": "MIT" + }, "node_modules/@swc/core": { "version": "1.11.24", "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.11.24.tgz", @@ -6781,9 +6729,9 @@ } }, "node_modules/react-hook-form": { - "version": "7.56.1", - "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.56.1.tgz", - "integrity": "sha512-qWAVokhSpshhcEuQDSANHx3jiAEFzu2HAaaQIzi/r9FNPm1ioAvuJSD4EuZzWd7Al7nTRKcKPnBKO7sRn+zavQ==", + "version": "7.71.1", + "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.71.1.tgz", + "integrity": "sha512-9SUJKCGKo8HUSsCO+y0CtqkqI5nNuaDqTxyqPsZPqIwudpj4rCrAz/jZV+jn57bx5gtZKOh3neQu94DXMc+w5w==", "license": "MIT", "engines": { "node": ">=18.0.0" @@ -8562,9 +8510,9 @@ } }, "node_modules/zod": { - "version": "3.25.71", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.71.tgz", - "integrity": "sha512-BsBc/NPk7h8WsUWYWYL+BajcJPY8YhjelaWu2NMLuzgraKAz4Lb4/6K11g9jpuDetjMiqhZ6YaexFLOC0Ogi3Q==", + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.3.6.tgz", + "integrity": "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==", "license": "MIT", "funding": { "url": "https://github.com/sponsors/colinhacks" diff --git a/package.json b/package.json index eb513a9..88465f0 100644 --- a/package.json +++ b/package.json @@ -11,9 +11,9 @@ "dependencies": { "@fontsource-variable/inter": "^5.2.6", "@getalby/sdk": "^5.1.1", - "@hookform/resolvers": "^3.9.0", - "@nostrify/nostrify": "^0.48.3", - "@nostrify/react": "^0.2.22", + "@hookform/resolvers": "^5.2.2", + "@nostrify/nostrify": "^0.49.2", + "@nostrify/react": "^0.2.24", "@radix-ui/react-accordion": "^1.2.0", "@radix-ui/react-alert-dialog": "^1.1.1", "@radix-ui/react-aspect-ratio": "^1.1.0", @@ -58,7 +58,7 @@ "react": "^18.3.1", "react-day-picker": "^8.10.1", "react-dom": "^18.3.1", - "react-hook-form": "^7.53.0", + "react-hook-form": "^7.71.1", "react-intersection-observer": "^9.16.0", "react-resizable-panels": "^2.1.3", "react-router-dom": "^6.26.2", @@ -66,7 +66,7 @@ "tailwind-merge": "^2.5.2", "tailwindcss-animate": "^1.0.7", "vaul": "^0.9.3", - "zod": "^3.25.71" + "zod": "^4.3.6" }, "devDependencies": { "@eslint/js": "^9.9.0", diff --git a/src/components/AppProvider.tsx b/src/components/AppProvider.tsx index 8b72567..8bacdac 100644 --- a/src/components/AppProvider.tsx +++ b/src/components/AppProvider.tsx @@ -14,7 +14,7 @@ interface AppProviderProps { // Zod schema for RelayMetadata validation const RelayMetadataSchema = z.object({ relays: z.array(z.object({ - url: z.string().url(), + url: z.url(), read: z.boolean(), write: z.boolean(), })),