diff --git a/apps/app/package.json b/apps/app/package.json index 15eebc1f68..d9cfbadb1b 100644 --- a/apps/app/package.json +++ b/apps/app/package.json @@ -62,7 +62,7 @@ "@trpc/server": "10.45.2", "@vercel/analytics": "1.2.2", "@vercel/edge-config": "1.1.1", - "@vercel/kv": "1.0.1", + "@vercel/kv": "2.0.0", "@vercel/speed-insights": "1.0.10", "@weareinreach/analytics": "workspace:*", "@weareinreach/api": "workspace:*", diff --git a/packages/api/package.json b/packages/api/package.json index 241b9418bd..23134ccb06 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -25,7 +25,7 @@ "@trpc/react-query": "10.45.2", "@trpc/server": "10.45.2", "@vercel/edge-config": "1.1.1", - "@vercel/kv": "1.0.1", + "@vercel/kv": "2.0.0", "@weareinreach/auth": "workspace:*", "@weareinreach/crowdin": "workspace:*", "@weareinreach/db": "workspace:*", diff --git a/packages/api/router/user/mutation.resendCode.handler.ts b/packages/api/router/user/mutation.resendCode.handler.ts index ce6cf255e5..a4f17ee594 100644 --- a/packages/api/router/user/mutation.resendCode.handler.ts +++ b/packages/api/router/user/mutation.resendCode.handler.ts @@ -1,4 +1,4 @@ -import { resendVerificationCode } from '@weareinreach/auth/lib/resendCode' +import { resendVerificationCode } from '@weareinreach/auth/resendCode' import { handleError } from '~api/lib/errorHandler' import { type TRPCHandlerParams } from '~api/types/handler' diff --git a/packages/auth/package.json b/packages/auth/package.json index eae93fb12f..c79b894167 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -31,6 +31,9 @@ "default": "./next-auth/types.ts", "types": "./next-auth/types.ts" }, + "./resendCode": { + "default": "./lib/resendCode.ts" + }, "./resetPassword": { "default": "./lib/resetPassword.ts" }, diff --git a/packages/crowdin/package.json b/packages/crowdin/package.json index 8879e7293c..75ef24f84c 100644 --- a/packages/crowdin/package.json +++ b/packages/crowdin/package.json @@ -42,7 +42,7 @@ "@crowdin/crowdin-api-client": "1.33.1", "@crowdin/ota-client": "1.0.0", "@opentelemetry/api": "1.8.0", - "@vercel/kv": "1.0.1", + "@vercel/kv": "2.0.0", "@weareinreach/env": "workspace:*", "@weareinreach/util": "workspace:*", "flat": "6.0.1", diff --git a/packages/db/package.json b/packages/db/package.json index 04134728fb..cdd4020e5d 100644 --- a/packages/db/package.json +++ b/packages/db/package.json @@ -47,7 +47,7 @@ "@opentelemetry/semantic-conventions": "1.24.1", "@prisma/client": "5.14.0", "@prisma/instrumentation": "5.14.0", - "@vercel/kv": "1.0.1", + "@vercel/kv": "2.0.0", "@vercel/postgres-kysely": "0.8.0", "@weareinreach/crowdin": "workspace:*", "@weareinreach/env": "workspace:*", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b0656fd3a1..854b04a8a0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -217,8 +217,8 @@ importers: specifier: 1.1.1 version: 1.1.1(@opentelemetry/api@1.8.0)(typescript@5.4.5) '@vercel/kv': - specifier: 1.0.1 - version: 1.0.1 + specifier: 2.0.0 + version: 2.0.0 '@vercel/speed-insights': specifier: 1.0.10 version: 1.0.10(next@14.2.3(@opentelemetry/api@1.8.0)(@playwright/test@1.44.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1) @@ -666,8 +666,8 @@ importers: specifier: 1.1.1 version: 1.1.1(@opentelemetry/api@1.8.0)(typescript@5.4.5) '@vercel/kv': - specifier: 1.0.1 - version: 1.0.1 + specifier: 2.0.0 + version: 2.0.0 '@weareinreach/auth': specifier: workspace:* version: link:../auth @@ -896,8 +896,8 @@ importers: specifier: 1.8.0 version: 1.8.0 '@vercel/kv': - specifier: 1.0.1 - version: 1.0.1 + specifier: 2.0.0 + version: 2.0.0 '@weareinreach/env': specifier: workspace:* version: link:../env @@ -957,8 +957,8 @@ importers: specifier: 5.14.0 version: 5.14.0 '@vercel/kv': - specifier: 1.0.1 - version: 1.0.1 + specifier: 2.0.0 + version: 2.0.0 '@vercel/postgres-kysely': specifier: 0.8.0 version: 0.8.0(kysely@0.27.3) @@ -5999,8 +5999,8 @@ packages: '@ungap/structured-clone@1.2.0': resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} - '@upstash/redis@1.25.1': - resolution: {integrity: sha512-ACj0GhJ4qrQyBshwFgPod6XufVEfKX2wcaihsEvSdLYnY+m+pa13kGt1RXm/yTHKf4TQi/Dy2A8z/y6WUEOmlg==} + '@upstash/redis@1.31.3': + resolution: {integrity: sha512-KtVgWBUEx/LGbR8oRwYexwzHh3s5DNqYW0bjkD+gjFZVOnREJITvK+hC4PjSSD+8D4qJ+Xbkfmy8ANADZ9EUFg==} '@vercel/analytics@1.2.2': resolution: {integrity: sha512-X0rctVWkQV1e5Y300ehVNqpOfSOufo7ieA5PIdna8yX/U7Vjz0GFsGf4qvAhxV02uQ2CVt7GYcrFfddXXK2Y4A==} @@ -6025,8 +6025,8 @@ packages: '@opentelemetry/api': optional: true - '@vercel/kv@1.0.1': - resolution: {integrity: sha512-uTKddsqVYS2GRAM/QMNNXCTuw9N742mLoGRXoNDcyECaxEXvIHG0dEY+ZnYISV4Vz534VwJO+64fd9XeSggSKw==} + '@vercel/kv@2.0.0': + resolution: {integrity: sha512-zdVrhbzZBYo5d1Hfn4bKtqCeKf0FuzW8rSHauzQVMUgv1+1JOwof2mWcBuI+YMJy8s0G0oqAUfQ7HgUDzb8EbA==} engines: {node: '>=14.6'} '@vercel/ncc@0.38.1': @@ -8728,10 +8728,12 @@ packages: glob@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} + deprecated: Glob versions prior to v9 are no longer supported glob@8.1.0: resolution: {integrity: sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==} engines: {node: '>=12'} + deprecated: Glob versions prior to v9 are no longer supported global-dirs@3.0.1: resolution: {integrity: sha512-NBcGGFbBA9s1VzD41QXDG+3++t9Mn5t1FpLdhESY6oKY4gYTFpX4wO3sqGUa0Srjtbfj3szX0RnemmrVRUdULA==} @@ -9192,6 +9194,7 @@ packages: inflight@1.0.6: resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} + deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. inherits@2.0.3: resolution: {integrity: sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==} @@ -12615,14 +12618,17 @@ packages: rimraf@2.6.3: resolution: {integrity: sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==} + deprecated: Rimraf versions prior to v4 are no longer supported hasBin: true rimraf@2.7.1: resolution: {integrity: sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==} + deprecated: Rimraf versions prior to v4 are no longer supported hasBin: true rimraf@3.0.2: resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} + deprecated: Rimraf versions prior to v4 are no longer supported hasBin: true ripemd160@2.0.2: @@ -20726,7 +20732,7 @@ snapshots: '@ungap/structured-clone@1.2.0': {} - '@upstash/redis@1.25.1': + '@upstash/redis@1.31.3': dependencies: crypto-js: 4.2.0 @@ -20748,9 +20754,9 @@ snapshots: transitivePeerDependencies: - typescript - '@vercel/kv@1.0.1': + '@vercel/kv@2.0.0': dependencies: - '@upstash/redis': 1.25.1 + '@upstash/redis': 1.31.3 '@vercel/ncc@0.38.1': {}