diff --git a/examples/next-openai-kasada-bot-protection/package.json b/examples/next-openai-kasada-bot-protection/package.json index f08c2dcd5bfb..35b9f029b52e 100644 --- a/examples/next-openai-kasada-bot-protection/package.json +++ b/examples/next-openai-kasada-bot-protection/package.json @@ -11,7 +11,7 @@ "dependencies": { "@ai-sdk/react": "latest", "@upstash/ratelimit": "^0.4.3", - "@vercel/kv": "^0.2.2", + "@vercel/kv": "^3.0.0", "ai": "latest", "next": "latest", "openai": "4.52.6", diff --git a/examples/next-openai-rate-limits/package.json b/examples/next-openai-rate-limits/package.json index e327cd5ccf87..a59ccf36be6b 100644 --- a/examples/next-openai-rate-limits/package.json +++ b/examples/next-openai-rate-limits/package.json @@ -11,7 +11,7 @@ "dependencies": { "@ai-sdk/react": "latest", "@upstash/ratelimit": "^0.4.3", - "@vercel/kv": "^0.2.2", + "@vercel/kv": "^3.0.0", "ai": "latest", "next": "latest", "openai": "4.52.6", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index eba766d510d2..87346e9b7bb3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -559,8 +559,8 @@ importers: specifier: ^0.4.3 version: 0.4.4 '@vercel/kv': - specifier: ^0.2.2 - version: 0.2.4 + specifier: ^3.0.0 + version: 3.0.0 ai: specifier: latest version: link:../../packages/ai @@ -672,8 +672,8 @@ importers: specifier: ^0.4.3 version: 0.4.4 '@vercel/kv': - specifier: ^0.2.2 - version: 0.2.4 + specifier: ^3.0.0 + version: 3.0.0 ai: specifier: latest version: link:../../packages/ai @@ -1243,13 +1243,13 @@ importers: version: link:../../.. next: specifier: canary - version: 15.0.0-canary.171(@playwright/test@1.46.0)(react-dom@19.0.0-rc-04bd67a4-20240924)(react@19.0.0-rc-04bd67a4-20240924) + version: 15.0.0-canary.173(@playwright/test@1.46.0)(react-dom@19.0.0-rc-2d16326d-20240930)(react@19.0.0-rc-2d16326d-20240930) react: specifier: rc - version: 19.0.0-rc-04bd67a4-20240924 + version: 19.0.0-rc-2d16326d-20240930 react-dom: specifier: rc - version: 19.0.0-rc-04bd67a4-20240924(react@19.0.0-rc-04bd67a4-20240924) + version: 19.0.0-rc-2d16326d-20240930(react@19.0.0-rc-2d16326d-20240930) packages/amazon-bedrock: dependencies: @@ -6807,8 +6807,8 @@ packages: resolution: {integrity: sha512-s3lh6K8cbW1h5Nga7NNeXrbe0+2jIIYK9YaA9T7IufDWnZpozdFUp6Hf0d5rNWUKu4fEuSX2rCKlGjCrtylfDw==} dev: false - /@next/env@15.0.0-canary.171: - resolution: {integrity: sha512-yQ9y0m/h43Ca1xB8R9QtcPqt2fbxMvSys7DVqrYg6spp8gAKUOXQEU3Og8PJFjkUbGPTtWi2lRYUsil/7rsYzw==} + /@next/env@15.0.0-canary.173: + resolution: {integrity: sha512-ly6s88DqV1BSu4dthaU9/eTjyZDUeEC7KpXwnH0u4w2hu10ickyEFv52s7MXItoiiurtUorpg8h5nlK98UNQiQ==} dev: false /@next/env@15.0.0-canary.23: @@ -6829,8 +6829,8 @@ packages: dev: false optional: true - /@next/swc-darwin-arm64@15.0.0-canary.171: - resolution: {integrity: sha512-tLb1n/7UVarQZy1ACqqVoZWCHwsUkDZkZZZ3FiWquBdVSqvTpSWk7QYpqH9sI9Jl+8a8qH4oIv9IT3pB0vGyeA==} + /@next/swc-darwin-arm64@15.0.0-canary.173: + resolution: {integrity: sha512-peEFAtJDrSpnVL0VKqmbvBzbgxuOdwT+Y86PGMNkh6zEctodQ0Ka5YBlsu5Tjzkzkbn1xMpIpxurbqnsMwHeOQ==} engines: {node: '>= 10'} cpu: [arm64] os: [darwin] @@ -6856,8 +6856,8 @@ packages: dev: false optional: true - /@next/swc-darwin-x64@15.0.0-canary.171: - resolution: {integrity: sha512-xoOExw5vKKYnzydy7OSr9N9gLX/jES0ufkEH3zyoJ4cnH6aBQO2tGOLapUMNLMg/wBvmUlGTa0jg6C+vj1o6MQ==} + /@next/swc-darwin-x64@15.0.0-canary.173: + resolution: {integrity: sha512-mXrx5JDB8lSSBRrzGOVrvt3155c4B5ctn8hBuWdsHaMpnbwg6zQtSESp2z8pcMyXFAWaJqpYJ+ImH3M0VdYzyw==} engines: {node: '>= 10'} cpu: [x64] os: [darwin] @@ -6883,8 +6883,8 @@ packages: dev: false optional: true - /@next/swc-linux-arm64-gnu@15.0.0-canary.171: - resolution: {integrity: sha512-dSFtk7pJwwEmE1Q4RbFnOkycThF5A5GcOLiW7ZqcuOu2o2kki+2m/fYBZb7DfQACLBlO4Sy1psKVh3UmbPLhEw==} + /@next/swc-linux-arm64-gnu@15.0.0-canary.173: + resolution: {integrity: sha512-1rUBlXBKPQYe12+bddrD5GHG0sS7KD0aKDUoLAxXJ4iCPThdhOmT8PexJDBOE6D9JL1Lp5L4G01ntbRf360Jgw==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] @@ -6910,8 +6910,8 @@ packages: dev: false optional: true - /@next/swc-linux-arm64-musl@15.0.0-canary.171: - resolution: {integrity: sha512-IRW+VvQWkhRviDe4R4NTyyt3HF89Yi3UmgmsvLKz+X2p9XivT4Dmfk/d7NtSBZts4yk3WhKVtgmTChtcZcD8/Q==} + /@next/swc-linux-arm64-musl@15.0.0-canary.173: + resolution: {integrity: sha512-6LjAq3zrmc8Dz8sao+ZtbjdUe9dkTMpv7MazHy6lAB33+mg9SwYuyvsg/YFRKlS2NetB8Gy1Fd+85YX6wYYiSQ==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] @@ -6937,8 +6937,8 @@ packages: dev: false optional: true - /@next/swc-linux-x64-gnu@15.0.0-canary.171: - resolution: {integrity: sha512-wqnNLPreGIb2zWJyc8dn6SOeAzl0L/096OKT33E7K1bDTVOf/VHbvPyN7fWYJHCbXK1kQ4RaIn4L3FwxLQNhCg==} + /@next/swc-linux-x64-gnu@15.0.0-canary.173: + resolution: {integrity: sha512-x72YkJvmqH/1PzMyQ2VUnL/Bsbn+aDodr/KNhj42uEhhxUEXOkfJT8k8iwjbN7rhP+Oid7qWmd7w3FPkL9pOvg==} engines: {node: '>= 10'} cpu: [x64] os: [linux] @@ -6964,8 +6964,8 @@ packages: dev: false optional: true - /@next/swc-linux-x64-musl@15.0.0-canary.171: - resolution: {integrity: sha512-VvTsVAcve43ELNH7P/qNdKvmCncnKmUxxuuPTMqiHbvzLLGqM9vg8XUrO26RY5rfKtr2yHbJ4ZbMqMAdtPL79w==} + /@next/swc-linux-x64-musl@15.0.0-canary.173: + resolution: {integrity: sha512-DYOLKH97iTQRVatqJpxgCgUKdkgwtiza2mmLAC3roPSc/vPltwTvGDPtKKKiZ7Rn18VGe4GMb5j1DVUgnAzKMA==} engines: {node: '>= 10'} cpu: [x64] os: [linux] @@ -6991,8 +6991,8 @@ packages: dev: false optional: true - /@next/swc-win32-arm64-msvc@15.0.0-canary.171: - resolution: {integrity: sha512-drfNZVxUI/uEiQ1MoUD5QMPmEZZNxWXyFZOQtDbRbu5Z3CbIzDk9iBbnN+ezc+oInIQKkYfjDtaPTtIYQjhOsg==} + /@next/swc-win32-arm64-msvc@15.0.0-canary.173: + resolution: {integrity: sha512-wpOF0WMiiGeTbTvdaS20FhjyQl2qUsawN9oUNx/SKcOtHzjt2kBZiwtZmLNSdu9lSW3LPBpRxMA4EPf9ukjAxw==} engines: {node: '>= 10'} cpu: [arm64] os: [win32] @@ -7018,8 +7018,8 @@ packages: dev: false optional: true - /@next/swc-win32-ia32-msvc@15.0.0-canary.171: - resolution: {integrity: sha512-WS/IS/W5uutcx8mqsdVEa0w5iY1WzeLPhdUX+Dw6zPv2kVkjzIIbipMJ7XzsOHXOJ5zjUQBySjrc9ZwpXmXEqw==} + /@next/swc-win32-ia32-msvc@15.0.0-canary.173: + resolution: {integrity: sha512-VSOMf/GbBYHkuly/hSGbam5AQfkdgTPZOdcrFalHd03Q1mEL4GCJBRRqu/ejGBHTI1CNsFekEyVBJ0GpZQkFTg==} engines: {node: '>= 10'} cpu: [ia32] os: [win32] @@ -7045,8 +7045,8 @@ packages: dev: false optional: true - /@next/swc-win32-x64-msvc@15.0.0-canary.171: - resolution: {integrity: sha512-n44GLcdxFEOPIh5UzH/JqKZbflqHc8sL+kZFJnK9wxrwcwDCVndVADMC/abl4EBXwv/K2DHvVhLZOPBWnIfIVA==} + /@next/swc-win32-x64-msvc@15.0.0-canary.173: + resolution: {integrity: sha512-JBwVQkiebNPVxk70TCbbxcG/JpIAnd/XKKt0LDeQf51HDdyGfu6MN3OZC3uqm2h1vb1FGDPOX1u9Klf5yek+nA==} engines: {node: '>= 10'} cpu: [x64] os: [win32] @@ -12004,7 +12004,7 @@ packages: resolution: {integrity: sha512-cpPSR0XJAJs4Ddz9nq3tINlPS5aLfWVCqhhtHnXt4p7qr5+/Znlt1Es736poB/9rnl1hAHrOsOvVj46NEXcVqA==} engines: {node: '>=16.0.0'} dependencies: - '@upstash/redis': 1.25.1 + '@upstash/redis': 1.34.1 dev: false /@upstash/ratelimit@0.4.4: @@ -12013,14 +12013,8 @@ packages: '@upstash/core-analytics': 0.0.6 dev: false - /@upstash/redis@1.24.3: - resolution: {integrity: sha512-gw6d4IA1biB4eye5ESaXc0zOlVQI94aptsBvVcTghYWu1kRmOrJFoMFEDCa8p5uzluyYAOFCuY2GWLR6O4ZoIw==} - dependencies: - crypto-js: 4.2.0 - dev: false - - /@upstash/redis@1.25.1: - resolution: {integrity: sha512-ACj0GhJ4qrQyBshwFgPod6XufVEfKX2wcaihsEvSdLYnY+m+pa13kGt1RXm/yTHKf4TQi/Dy2A8z/y6WUEOmlg==} + /@upstash/redis@1.34.1: + resolution: {integrity: sha512-mammyRf9BTVTFJmyWyTHb0UL0J74vuQGL5yQIIbqFHVa2NPMB+adOZw5ZqpRQb/0AzzVBCrbok/vzBynQ1abiw==} dependencies: crypto-js: 4.2.0 dev: false @@ -12036,11 +12030,11 @@ packages: undici: 5.28.4 dev: false - /@vercel/kv@0.2.4: - resolution: {integrity: sha512-wbIOOXhg6MzmNMzKFSWbbLAS65hCZcJN33z1coENzI1M0fOX55yE9v9LwVGqkzdItp3eZsv6pYvwcmGtllyLTw==} + /@vercel/kv@3.0.0: + resolution: {integrity: sha512-pKT8fRnfyYk2MgvyB6fn6ipJPCdfZwiKDdw7vB+HL50rjboEBHDVBEcnwfkEpVSp2AjNtoaOUH7zG+bVC/rvSg==} engines: {node: '>=14.6'} dependencies: - '@upstash/redis': 1.24.3 + '@upstash/redis': 1.34.1 dev: false /@vercel/nft@0.26.5: @@ -17486,7 +17480,6 @@ packages: standard-as-callback: 2.1.0 transitivePeerDependencies: - supports-color - dev: true /ipaddr.js@1.9.1: resolution: {integrity: sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==} @@ -20166,16 +20159,16 @@ packages: - babel-plugin-macros dev: false - /next@15.0.0-canary.171(@playwright/test@1.46.0)(react-dom@19.0.0-rc-04bd67a4-20240924)(react@19.0.0-rc-04bd67a4-20240924): - resolution: {integrity: sha512-Yic4FzN0CiJrCRI++FAkONZsen0vY5XYe9UkliEFGAmbO9oVx24opzC/JA0N36dTjYtsLFVxcRafoT1dTlJmwg==} + /next@15.0.0-canary.173(@playwright/test@1.46.0)(react-dom@19.0.0-rc-2d16326d-20240930)(react@19.0.0-rc-2d16326d-20240930): + resolution: {integrity: sha512-wD6+sidDZAao/rJ4D/9agqLDTlc/DzlREAnC/+pQSgmpmL8rn41h9Empke6POBxJ4kQWm61dpNDEmz882DknOA==} engines: {node: '>=18.18.0'} hasBin: true peerDependencies: '@opentelemetry/api': ^1.1.0 '@playwright/test': ^1.41.2 babel-plugin-react-compiler: '*' - react: ^18.2.0 || 19.0.0-rc-5d19e1c8-20240923 - react-dom: ^18.2.0 || 19.0.0-rc-5d19e1c8-20240923 + react: ^18.2.0 || 19.0.0-rc-3edc000d-20240926 + react-dom: ^18.2.0 || 19.0.0-rc-3edc000d-20240926 sass: ^1.3.0 peerDependenciesMeta: '@opentelemetry/api': @@ -20187,26 +20180,26 @@ packages: sass: optional: true dependencies: - '@next/env': 15.0.0-canary.171 + '@next/env': 15.0.0-canary.173 '@playwright/test': 1.46.0 '@swc/counter': 0.1.3 '@swc/helpers': 0.5.13 busboy: 1.6.0 caniuse-lite: 1.0.30001649 postcss: 8.4.31 - react: 19.0.0-rc-04bd67a4-20240924 - react-dom: 19.0.0-rc-04bd67a4-20240924(react@19.0.0-rc-04bd67a4-20240924) - styled-jsx: 5.1.6(react@19.0.0-rc-04bd67a4-20240924) + react: 19.0.0-rc-2d16326d-20240930 + react-dom: 19.0.0-rc-2d16326d-20240930(react@19.0.0-rc-2d16326d-20240930) + styled-jsx: 5.1.6(react@19.0.0-rc-2d16326d-20240930) optionalDependencies: - '@next/swc-darwin-arm64': 15.0.0-canary.171 - '@next/swc-darwin-x64': 15.0.0-canary.171 - '@next/swc-linux-arm64-gnu': 15.0.0-canary.171 - '@next/swc-linux-arm64-musl': 15.0.0-canary.171 - '@next/swc-linux-x64-gnu': 15.0.0-canary.171 - '@next/swc-linux-x64-musl': 15.0.0-canary.171 - '@next/swc-win32-arm64-msvc': 15.0.0-canary.171 - '@next/swc-win32-ia32-msvc': 15.0.0-canary.171 - '@next/swc-win32-x64-msvc': 15.0.0-canary.171 + '@next/swc-darwin-arm64': 15.0.0-canary.173 + '@next/swc-darwin-x64': 15.0.0-canary.173 + '@next/swc-linux-arm64-gnu': 15.0.0-canary.173 + '@next/swc-linux-arm64-musl': 15.0.0-canary.173 + '@next/swc-linux-x64-gnu': 15.0.0-canary.173 + '@next/swc-linux-x64-musl': 15.0.0-canary.173 + '@next/swc-win32-arm64-msvc': 15.0.0-canary.173 + '@next/swc-win32-ia32-msvc': 15.0.0-canary.173 + '@next/swc-win32-x64-msvc': 15.0.0-canary.173 sharp: 0.33.5 transitivePeerDependencies: - '@babel/core' @@ -20671,7 +20664,7 @@ packages: unimport: 3.7.2(rollup@4.18.0) unplugin: 1.11.0 unplugin-vue-router: 0.10.0(vue-router@4.4.0)(vue@3.4.31) - unstorage: 1.10.2(ioredis@5.3.2) + unstorage: 1.10.2(ioredis@5.4.1) untyped: 1.4.2 vue: 3.4.31 vue-bundle-renderer: 2.1.0 @@ -22210,13 +22203,13 @@ packages: react: 18.3.1 scheduler: 0.23.2 - /react-dom@19.0.0-rc-04bd67a4-20240924(react@19.0.0-rc-04bd67a4-20240924): - resolution: {integrity: sha512-9MbUcK/HGBwzdDsbgHO6TtSMBO4/lUPyxVhTuKz2shznd4t7T17ObtM7m39JhPaz0uCdlOeErWkzzCKNxt57/g==} + /react-dom@19.0.0-rc-2d16326d-20240930(react@19.0.0-rc-2d16326d-20240930): + resolution: {integrity: sha512-eBmzUwg2n0SkG+LFoQbRM/b6GyKSDFDnUEPWS+Oepbv6O6XCLSEzoJzPu7bFgNzL0tOA8gjjtP4ZJChcasldqA==} peerDependencies: - react: 19.0.0-rc-04bd67a4-20240924 + react: 19.0.0-rc-2d16326d-20240930 dependencies: - react: 19.0.0-rc-04bd67a4-20240924 - scheduler: 0.25.0-rc-04bd67a4-20240924 + react: 19.0.0-rc-2d16326d-20240930 + scheduler: 0.25.0-rc-2d16326d-20240930 dev: false /react-dom@19.0.0-rc-cc1ec60d0d-20240607(react@19.0.0-rc-cc1ec60d0d-20240607): @@ -22271,8 +22264,8 @@ packages: dependencies: loose-envify: 1.4.0 - /react@19.0.0-rc-04bd67a4-20240924: - resolution: {integrity: sha512-oldOS+RU4b0cXzOxK0TuJXVhcMMtsjEFew0GQFsRTcYH1vwlWnwcAEBwRRWczZfhykpA1VFcCzS6+sZ3qdnBzw==} + /react@19.0.0-rc-2d16326d-20240930: + resolution: {integrity: sha512-XeaCnXQ5lZoOtPaVZPDEcx2TUDDt6JPIEviTKhIBkQNAYKcQkAT6SPbEqxC2KqkLPnilvPi9zz+c8iikstrwRg==} engines: {node: '>=0.10.0'} dev: false @@ -22747,8 +22740,8 @@ packages: dependencies: loose-envify: 1.4.0 - /scheduler@0.25.0-rc-04bd67a4-20240924: - resolution: {integrity: sha512-gAD5Ob6qimTeOixl9Icmzrgs6572HsxD3AoK/b6VAMKgoDhIa/NXSD8Po1f4SFNysAXVBDCpT1CSvFwy8MtpRQ==} + /scheduler@0.25.0-rc-2d16326d-20240930: + resolution: {integrity: sha512-P0lFGsD0rOhDQR2AA3ls0MYXeWnw/Tuu5bERwBC92DXSASB/493N9LQKe4AuCwVC671tjktLckGAxghUqJq7yg==} dev: false /scheduler@0.25.0-rc-cc1ec60d0d-20240607: @@ -23536,7 +23529,7 @@ packages: react: 18.3.1 dev: false - /styled-jsx@5.1.6(react@19.0.0-rc-04bd67a4-20240924): + /styled-jsx@5.1.6(react@19.0.0-rc-2d16326d-20240930): resolution: {integrity: sha512-qSVyDTeMotdvQYoHWLNGwRFJHC+i+ZvdBRYosOFgC+Wg1vx4frN2/RG/NA7SYqqvKNLf39P2LSRA2pu6n0XYZA==} engines: {node: '>= 12.0.0'} peerDependencies: @@ -23550,7 +23543,7 @@ packages: optional: true dependencies: client-only: 0.0.1 - react: 19.0.0-rc-04bd67a4-20240924 + react: 19.0.0-rc-2d16326d-20240930 dev: false /styled-jsx@5.1.6(react@19.0.0-rc-cc1ec60d0d-20240607): @@ -24993,7 +24986,6 @@ packages: ufo: 1.5.3 transitivePeerDependencies: - uWebSockets.js - dev: true /untildify@4.0.0: resolution: {integrity: sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==} @@ -25174,7 +25166,7 @@ packages: ufo: 1.5.3 unctx: 2.3.1 unenv: 1.9.0 - unstorage: 1.10.2(ioredis@5.3.2) + unstorage: 1.10.2(ioredis@5.4.1) vite: 5.2.11(@types/node@18.18.9) zod: 3.23.8 transitivePeerDependencies: