Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore: upgrade next (#3603)

Max Deichmanne139b40167d5
diff --git a/.env.dev.example b/.env.dev.example
index aa60d4db90..faaf87cd7b 100644
--- a/.env.dev.example
+++ b/.env.dev.example
@@ -53,4 +53,4 @@ LANGFUSE_WORKER_PASSWORD=mybasicauthsecret
ENCRYPTION_KEY=0000000000000000000000000000000000000000000000000000000000000000
# speeds up local development by not executing init scripts on server startup
-NEXT_PUBLIC_LANGFUSE_RUN_NEXT_INIT="false"
+NEXT_PUBLIC_LANGFUSE_RUN_NEXT_INIT="false"
\ No newline at end of file
diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml
index 50e3d885f9..d51d6c6170 100644
--- a/.github/workflows/pipeline.yml
+++ b/.github/workflows/pipeline.yml
@@ -35,6 +35,7 @@ jobs:
run: pnpm run lint
test-docker-build:
+ timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- name: Checkout
@@ -48,14 +49,6 @@ jobs:
docker compose -f docker-compose.build.yml up -d
sleep 5 # Wait for PostgreSQL to accept connections
- - name: Check server health
- run: |
- timeout 10 bash -c 'until curl -f http://localhost:3000/api/public/health; do sleep 2; done'
-
- - name: Check worker health
- run: |
- timeout 10 bash -c 'until curl -f http://localhost:3030/api/health; do sleep 2; done'
-
- name: Ensure no unhealthy status
run: |
if docker-compose ps | grep "(unhealthy)"; then
@@ -65,6 +58,14 @@ jobs:
echo "All services are healthy"
fi
+ - name: Check worker health
+ run: |
+ timeout 10 bash -c 'until curl -f http://localhost:3030/api/health; do sleep 2; done'
+
+ - name: Check server health
+ run: |
+ timeout 10 bash -c 'until curl -f http://localhost:3000/api/public/health; do sleep 2; done'
+
tests-web:
timeout-minutes: 20
runs-on: ubuntu-latest
diff --git a/ee/package.json b/ee/package.json
index 092981a1bd..b55b370243 100644
--- a/ee/package.json
+++ b/ee/package.json
@@ -27,7 +27,7 @@
"@langfuse/shared": "workspace:*",
"@opentelemetry/api": ">=1.0.0 <1.10.0",
"axios": "^1.7.7",
- "next": "^14.2.6",
+ "next": "^14.2.14",
"next-auth": "^4.24.7",
"zod": "^3.23.8"
},
diff --git a/packages/config-eslint/package.json b/packages/config-eslint/package.json
index b0a99359b3..002025ad7e 100644
--- a/packages/config-eslint/package.json
+++ b/packages/config-eslint/package.json
@@ -11,7 +11,7 @@
"@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.12.0",
"@vercel/style-guide": "^6.0.0",
- "eslint-config-next": "^14.2.6",
+ "eslint-config-next": "^14.2.14",
"eslint-config-prettier": "^9.1.0",
"eslint-config-turbo": "^1.13.4",
"eslint-plugin-only-warn": "^1.1.0",
diff --git a/packages/shared/src/server/services/email/organizationInvitation/sendMembershipInvitationEmail.ts b/packages/shared/src/server/services/email/organizationInvitation/sendMembershipInvitationEmail.ts
index e0b4e29240..737937183d 100644
--- a/packages/shared/src/server/services/email/organizationInvitation/sendMembershipInvitationEmail.ts
+++ b/packages/shared/src/server/services/email/organizationInvitation/sendMembershipInvitationEmail.ts
@@ -36,7 +36,7 @@ export const sendMembershipInvitationEmail = async ({
}: SendMembershipInvitationParams) => {
if (!env.EMAIL_FROM_ADDRESS || !env.SMTP_CONNECTION_URL) {
logger.error(
- "Missing environment variables for sending membership invitation email.",
+ "Missing environment variables for sending membership invitation email."
);
return;
}
@@ -51,7 +51,7 @@ export const sendMembershipInvitationEmail = async ({
const authUrl = getAuthURL();
if (!authUrl) {
logger.error(
- "Missing NEXTAUTH_URL or NEXT_PUBLIC_LANGFUSE_CLOUD_REGION environment variable.",
+ "Missing NEXTAUTH_URL or NEXT_PUBLIC_LANGFUSE_CLOUD_REGION environment variable."
);
return;
}
@@ -68,7 +68,7 @@ export const sendMembershipInvitationEmail = async ({
inviteLink: authUrl,
emailFromAddress: env.EMAIL_FROM_ADDRESS,
langfuseCloudRegion: env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION,
- }),
+ })
);
await mailer.sendMail({
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index df6b6c04a0..4ce5c27d4f 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -42,11 +42,11 @@ importers:
specifier: ^1.7.7
version: 1.7.7
next:
- specifier: ^14.2.6
+ specifier: ^14.2.14
next-auth:
specifier: ^4.24.7
zod:
specifier: ^3.23.8
version: 3.23.8
@@ -98,10 +98,10 @@ importers:
'@vercel/style-guide':
specifier: ^6.0.0
eslint-config-next:
- specifier: ^14.2.6
+ specifier: ^14.2.14
eslint-config-prettier:
specifier: ^9.1.0
version: 9.1.0([email protected])
@@ -193,7 +193,7 @@ importers:
version: 4.17.21
next-auth:
specifier: ^4.24.7
nodemailer:
specifier: ^6.9.15
version: 6.9.15
@@ -347,7 +347,7 @@ importers:
'@next-auth/prisma-adapter':
specifier: ^1.0.7
'@opentelemetry/api':
specifier: ^1.9.0
version: 1.9.0
@@ -467,10 +467,10 @@ importers:
version: link:../packages/config-typescript
'@sentry/nextjs':
specifier: ^8.33.1
'@t3-oss/env-nextjs':
- specifier: ^0.10.1
+ specifier: ^0.11.1
'@tailwindcss/container-queries':
specifier: ^0.1.1
@@ -488,7 +488,7 @@ importers:
version: 10.45.2(@trpc/[email protected])
'@trpc/next':
specifier: ^10.45.0
'@trpc/react-query':
specifier: ^10.45.0
@@ -565,14 +565,14 @@ importers:
specifier: ^0.436.0
version: 0.436.0([email protected])
next:
- specifier: ^14.2.6
+ specifier: ^14.2.14
next-auth:
specifier: ^4.24.7
next-query-params:
- specifier: ^5.0.0
+ specifier: ^5.0.1
next-themes:
specifier: ^0.3.0
@@ -673,7 +673,7 @@ importers:
'@testing-library/jest-dom':
specifier: ^6.4.6
'@testing-library/react':
specifier: ^15.0.7
@@ -2445,62 +2445,65 @@ packages:
'@prisma/client': '>=2.26.0 || >=3'
next-auth: ^4
- resolution: {integrity: sha512-bs5DFKV+08EjWrl8EB+KKqev1ZTNONH1vFCaHh911aaB362NnP32UDTbE9VQhyiAgbFqJsfDkSxFERNDDb3j0g==}
+ resolution: {integrity: sha512-/0hWQfiaD5//LvGNgc8PjvyqV50vGK0cADYzaoOOGN8fxzBn3iAiaq3S0tCRnFBldq0LVveLcxCTi41ZoYgAgg==}
+
+ resolution: {integrity: sha512-kV+OsZ56xhj0rnTn6HegyTGkoa16Mxjrpk7pjWumyB2P8JVQb8S9qtkjy/ye0GnTr4JWtWG4x/2qN40lKZ3iVQ==}
resolution: {integrity: sha512-d3+p4AjIYmhqzYHhhmkRYYN6ZU35TwZAKX08xKRfnHkz72KhWL2kxMFsDptpZs5e8bBGdepn7vn1+9DaF8iX+A==}
- resolution: {integrity: sha512-BtJZb+hYXGaVJJivpnDoi3JFVn80SHKCiiRUW3kk1SY6UCUy5dWFFSbh+tGi5lHAughzeduMyxbLt3pspvXNSg==}
+ resolution: {integrity: sha512-bsxbSAUodM1cjYeA4o6y7sp9wslvwjSkWw57t8DtC8Zig8aG8V6r+Yc05/9mDzLKcybb6EN85k1rJDnMKBd9Gw==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [darwin]
- resolution: {integrity: sha512-ZHRbGpH6KHarzm6qEeXKSElSXh8dS2DtDPjQt3IMwY8QVk7GbdDYjvV4NgSnDA9huGpGgnyy3tH8i5yHCqVkiQ==}
+ resolution: {integrity: sha512-cC9/I+0+SK5L1k9J8CInahduTVWGMXhQoXFeNvF0uNs3Bt1Ub0Azb8JzTU9vNCr0hnaMqiWu/Z0S1hfKc3+dww==}
engines: {node: '>= 10'}
cpu: [x64]
os: [darwin]
- resolution: {integrity: sha512-O4HqUEe3ZvKshXHcDUXn1OybN4cSZg7ZdwHJMGCXSUEVUqGTJVsOh17smqilIjooP/sIJksgl+1kcf2IWMZWHg==}
+ resolution: {integrity: sha512-RMLOdA2NU4O7w1PQ3Z9ft3PxD6Htl4uB2TJpocm+4jcllHySPkFaUIFacQ3Jekcg6w+LBaFvjSPthZHiPmiAUg==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
- resolution: {integrity: sha512-xUcdhr2hfalG8RDDGSFxQ75yOG894UlmFS4K2M0jLrUhauRBGOtUOxoDVwiIIuZQwZ3Y5hDsazNjdYGB0cQ9yQ==}
+ resolution: {integrity: sha512-WgLOA4hT9EIP7jhlkPnvz49iSOMdZgDJVvbpb8WWzJv5wBD07M2wdJXLkDYIpZmCFfo/wPqFsFR4JS4V9KkQ2A==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
- resolution: {integrity: sha512-InosKxw8UMcA/wEib5n2QttwHSKHZHNSbGcMepBM0CTcNwpxWzX32KETmwbhKod3zrS8n1vJ+DuJKbL9ZAB0Ag==}
+ resolution: {integrity: sha512-lbn7svjUps1kmCettV/R9oAvEW+eUI0lo0LJNFOXoQM5NGNxloAyFRNByYeZKL3+1bF5YE0h0irIJfzXBq9Y6w==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
- resolution: {integrity: sha512-d4QXfJmt5pGJ7cG8qwxKSBnO5AXuKAFYxV7qyDRHnUNvY/dgDh+oX292gATpB2AAHgjdHd5ks1wXxIEj6muLUQ==}
+ resolution: {integrity: sha512-7TcQCvLQ/hKfQRgjxMN4TZ2BRB0P7HwrGAYL+p+m3u3XcKTraUFerVbV3jkNZNwDeQDa8zdxkKkw2els/S5onQ==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
- resolution: {integrity: sha512-AlgIhk4/G+PzOG1qdF1b05uKTMsuRatFlFzAi5G8RZ9h67CVSSuZSbqGHbJDlcV1tZPxq/d4G0q6qcHDKWf4aQ==}
+ resolution: {integrity: sha512-8i0Ou5XjTLEje0oj0JiI0Xo9L/93ghFtAUYZ24jARSeTMXLUx8yFIdhS55mTExq5Tj4/dC2fJuaT4e3ySvXU1A==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [win32]
- resolution: {integrity: sha512-hNukAxq7hu4o5/UjPp5jqoBEtrpCbOmnUqZSKNJG8GrUVzfq0ucdhQFVrHcLRMvQcwqqDh1a5AJN9ORnNDpgBQ==}
+ resolution: {integrity: sha512-2u2XcSaDEOj+96eXpyjHjtVPLhkAFw2nlaz83EPeuK4obF+HmtDJHqgR1dZB7Gb6V/d55FL26/lYVd0TwMgcOQ==}
engines: {node: '>= 10'}
cpu: [ia32]
os: [win32]
- resolution: {integrity: sha512-NANtw+ead1rSDK1jxmzq3TYkl03UNK2KHqUYf1nIhNci6NkeqBD4s1njSzYGIlSHxCK+wSaL8RXZm4v+NF/pMw==}
+ resolution: {integrity: sha512-MZom+OvZ1NZxuRovKt1ApevjiUJTcU2PmdJKL66xUPaJeRywnbGGRWUlaAOwunD6dX+pm83vj979NTC8QXjGWg==}
engines: {node: '>= 10'}
cpu: [x64]
os: [win32]
@@ -4400,8 +4403,8 @@ packages:
resolution: {integrity: sha512-+PmQX0PiAYPMeVYe237LJAYvOMYW1j2rH5YROyS3b4CTVJum34HfRvKvAzozHAQG0TnHNdUfY9nCeUyRAs//cw==}
engines: {node: '>=14.16'}
- '@t3-oss/[email protected]':
- resolution: {integrity: sha512-GcKZiCfWks5CTxhezn9k5zWX3sMDIYf6Kaxy2Gx9YEQftFcz8hDRN56hcbylyAO3t4jQnQ5ifLawINsNgCDpOg==}
+ '@t3-oss/[email protected]':
+ resolution: {integrity: sha512-MaxOwEoG1ntCFoKJsS7nqwgcxLW1SJw238AJwfJeaz3P/8GtkxXZsPPolsz1AdYvUTbe3XvqZ/VCdfjt+3zmKw==}
peerDependencies:
typescript: '>=5.0.0'
zod: ^3.0.0
@@ -4409,8 +4412,8 @@ packages:
typescript:
optional: true
- '@t3-oss/[email protected]':
- resolution: {integrity: sha512-iy2qqJLnFh1RjEWno2ZeyTu0ufomkXruUsOZludzDIroUabVvHsrSjtkHqwHp1/pgPUzN3yBRHMILW162X7x2Q==}
+ '@t3-oss/[email protected]':
+ resolution: {integrity: sha512-rx2XL9+v6wtOqLNJbD5eD8OezKlQD1BtC0WvvtHwBgK66jnF5+wGqtgkKK4Ygie1LVmoDClths2T4tdFmRvGrQ==}
peerDependencies:
typescript: '>=5.0.0'
zod: ^3.0.0
@@ -5611,9 +5614,6 @@ packages:
resolution: {integrity: sha512-LRAQHZ4yT1+f9LemSMeqdMpMxZcc4RMWdj4tiFe3G8tNkWK+E58g+/tzotb5cU6TbcVJLr4fySiAW7XmxQvZQA==}
- resolution: {integrity: sha512-9Cf+Xv1jJNe1xPZLGuUXLNkE1BoDkqRqYyFJ9TDYSqhduqA4hu4oR9HluGoWYQC/aj8WHjsGVV+bwkh0+tegRg==}
-
resolution: {integrity: sha512-7LTwJjcRkzKFmtqGsibMeuXmvFDfZq/nzIjnmgCGzKKRVzjD72selLDK1oPF/Oxzmt4fNcPvTDvGqSDG4tCALw==}
@@ -6634,6 +6634,15 @@ packages:
peerDependencies:
eslint: '>=6.0.0'
+ resolution: {integrity: sha512-TXwyjGICAlWC9O0OufS3koTsBKQH8l1xt3SY/aDuvtKHIwjTHplJKWVb1WOEX0OsDaxGbFXmfD2EY1sNfG0Y/w==}
+ peerDependencies:
+ eslint: ^7.23.0 || ^8.0.0
+ typescript: '>=3.3.1'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+
resolution: {integrity: sha512-z0URA5LO6y8lS/YLN0EDW/C4LEkDODjJzA37dvLVdzCPzuewjzTe1os5g3XclZAZrQ8X8hPaSMQ2JuVWwMmrTA==}
peerDependencies:
@@ -8807,8 +8816,8 @@ packages:
nodemailer:
optional: true
- resolution: {integrity: sha512-Zm9nc0QgrTMaQwGdbICcTDaYS4oRcXo628Ye6JQGdp/9JzlhzDpzcGRqciK0S62yAyE3b5ozFpgzY0gDUEbLtw==}
+ resolution: {integrity: sha512-QFumNTpdc/MtT1IresYoMKkRWOaplutzKJoRl6Uv9mIOdc3jGyWD7yCHE79AiGYlRCyo+4oMVvkLYpdV2trFKA==}
peerDependencies:
next: ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0
react: ^16.8.0 || ^17.0.0 || ^18.0.0
@@ -8820,8 +8829,8 @@ packages:
react: ^16.8 || ^17 || ^18
react-dom: ^16.8 || ^17 || ^18
- resolution: {integrity: sha512-57Su7RqXs5CBKKKOagt8gPhMM3CpjgbeQhrtei2KLAA1vTNm7jfKS+uDARkSW8ZETUflDCBIsUKGSyQdRs4U4g==}
+ resolution: {integrity: sha512-Q1coZG17MW0Ly5x76shJ4dkC23woLAhhnDnw+DfTc7EpZSGuWrlsZ3bZaO8t6u1Yu8FVfhkqJE+U8GC7E0GLPQ==}
engines: {node: '>=18.17.0'}
hasBin: true
peerDependencies:
@@ -10710,9 +10719,6 @@ packages:
resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==}
- resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==}
-
resolution: {integrity: sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==}
@@ -12245,7 +12251,7 @@ snapshots:
'@babel/helper-split-export-declaration': 7.22.6
'@babel/parser': 7.24.1
'@babel/types': 7.24.0
- debug: 4.3.5([email protected])
+ debug: 4.3.7
globals: 11.12.0
transitivePeerDependencies:
- supports-color
@@ -12922,6 +12928,42 @@ snapshots:
jest-util: 29.7.0
slash: 3.0.0
+ dependencies:
+ '@jest/console': 29.7.0
+ '@jest/reporters': 29.7.0
+ '@jest/test-result': 29.7.0
+ '@jest/transform': 29.7.0
+ '@jest/types': 29.6.3
+ '@types/node': 20.14.8
+ ansi-escapes: 4.3.2
+ chalk: 4.1.2
+ ci-info: 3.9.0
+ exit: 0.1.2
+ graceful-fs: 4.2.11
+ jest-changed-files: 29.7.0
+ jest-config: 29.7.0(@types/[email protected])
+ jest-haste-map: 29.7.0
+ jest-message-util: 29.7.0
+ jest-regex-util: 29.6.3
+ jest-resolve: 29.7.0
+ jest-resolve-dependencies: 29.7.0
+ jest-runner: 29.7.0
+ jest-runtime: 29.7.0
+ jest-snapshot: 29.7.0
+ jest-util: 29.7.0
+ jest-validate: 29.7.0
+ jest-watcher: 29.7.0
+ micromatch: 4.0.8
+ pretty-format: 29.7.0
+ slash: 3.0.0
+ strip-ansi: 6.0.1
+ transitivePeerDependencies:
+ - babel-plugin-macros
+ - supports-color
+ - ts-node
+ optional: true
+
dependencies:
'@jest/console': 29.7.0
@@ -13370,42 +13412,46 @@ snapshots:
transitivePeerDependencies:
- '@types/react'
dependencies:
'@prisma/client': 5.20.0([email protected])
+
+ '@next/[email protected]': {}
- '@next/[email protected]': {}
+ dependencies:
+ glob: 10.3.10
dependencies:
glob: 10.3.10
optional: true
optional: true
optional: true
optional: true
optional: true
optional: true
optional: true
optional: true
optional: true
'@nicolo-ribaudo/[email protected]':
@@ -15154,7 +15200,7 @@ snapshots:
'@sentry/types': 8.33.1
'@sentry/utils': 8.33.1
dependencies:
'@opentelemetry/instrumentation-http': 0.53.0(@opentelemetry/[email protected])
'@opentelemetry/semantic-conventions': 1.27.0
@@ -15169,7 +15215,7 @@ snapshots:
'@sentry/vercel-edge': 8.33.1
'@sentry/webpack-plugin': 2.22.3([email protected])
chalk: 3.0.0
resolve: 1.22.8
rollup: 3.29.5
stacktrace-parser: 0.1.10
@@ -15774,15 +15820,15 @@ snapshots:
dependencies:
defer-to-connect: 2.0.1
dependencies:
zod: 3.23.8
optionalDependencies:
typescript: 5.4.5
dependencies:
- '@t3-oss/env-core': 0.10.1([email protected])([email protected])
+ '@t3-oss/env-core': 0.11.1([email protected])([email protected])
zod: 3.23.8
optionalDependencies:
typescript: 5.4.5
@@ -15833,7 +15879,7 @@ snapshots:
lz-string: 1.5.0
pretty-format: 27.5.1
dependencies:
'@adobe/css-tools': 4.4.0
'@babel/runtime': 7.24.7
@@ -15847,7 +15893,7 @@ snapshots:
'@jest/globals': 29.7.0
'@types/jest': 29.5.12
+ vitest: 2.1.2(@types/[email protected])
dependencies:
@@ -15882,13 +15928,13 @@ snapshots:
dependencies:
'@trpc/server': 10.45.2
dependencies:
'@tanstack/react-query': 4.36.1([email protected]([email protected]))([email protected])
'@trpc/client': 10.45.2(@trpc/[email protected])
'@trpc/server': 10.45.2
react: 18.2.0
react-dom: 18.2.0([email protected])
@@ -16362,7 +16408,7 @@ snapshots:
dependencies:
'@typescript-eslint/types': 6.21.0
'@typescript-eslint/visitor-keys': 6.21.0
- debug: 4.3.4
+ debug: 4.3.7
globby: 11.1.0
is-glob: 4.0.3
minimatch: 9.0.3
@@ -16392,7 +16438,7 @@ snapshots:
dependencies:
'@typescript-eslint/types': 7.2.0
'@typescript-eslint/visitor-keys': 7.2.0
- debug: 4.3.6
+ debug: 4.3.7
globby: 11.1.0
is-glob: 4.0.3
minimatch: 9.0.3
@@ -16407,7 +16453,7 @@ snapshots:
dependencies:
'@typescript-eslint/types': 7.3.1
'@typescript-eslint/visitor-keys': 7.3.1
- debug: 4.3.4
+ debug: 4.3.7
globby: 11.1.0
is-glob: 4.0.3
minimatch: 9.0.3
@@ -16543,7 +16589,7 @@ snapshots:
'@ungap/[email protected]': {}
dependencies:
'@babel/core': 7.24.3
'@babel/eslint-parser': 7.24.1(@babel/[email protected])([email protected])
@@ -16551,22 +16597,22 @@ snapshots:
'@typescript-eslint/eslint-plugin': 7.3.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])
'@typescript-eslint/parser': 7.12.0([email protected])([email protected])
eslint-config-prettier: 9.1.0([email protected])
+ eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])
eslint-plugin-eslint-comments: 3.2.0([email protected])
eslint-plugin-jsx-a11y: 6.8.0([email protected])
eslint-plugin-react: 7.34.1([email protected])
eslint-plugin-react-hooks: 4.6.0([email protected])
eslint-plugin-testing-library: 6.2.0([email protected])([email protected])
eslint-plugin-tsdoc: 0.2.17
eslint-plugin-unicorn: 51.0.1([email protected])
prettier-plugin-packagejson: 2.4.12([email protected])
optionalDependencies:
- '@next/eslint-plugin-next': 14.2.6
+ '@next/eslint-plugin-next': 14.2.14
eslint: 8.57.0
prettier: 3.2.5
typescript: 5.4.5
@@ -16584,16 +16630,6 @@ snapshots:
chai: 5.1.1
tinyrainbow: 1.2.0
- dependencies:
- '@vitest/spy': 2.1.2
- estree-walker: 3.0.3
- magic-string: 0.30.11
- optionalDependencies:
- vite: 5.2.14(@types/[email protected])([email protected])
- optional: true
-
dependencies:
'@vitest/spy': 2.1.2
@@ -16603,14 +16639,13 @@ snapshots:
vite: 5.2.14(@types/[email protected])([email protected])
dependencies:
'@vitest/spy': 2.1.2
estree-walker: 3.0.3
magic-string: 0.30.11
optionalDependencies:
- vite: 5.2.14(@types/[email protected])([email protected])
+ vite: 5.2.14(@types/[email protected])
optional: true
'@vitest/[email protected]':
@@ -16813,7 +16848,7 @@ snapshots:
dependencies:
- debug: 4.3.5([email protected])
+ debug: 4.3.7
transitivePeerDependencies:
- supports-color
@@ -17212,7 +17247,7 @@ snapshots:
dependencies:
- caniuse-lite: 1.0.30001651
+ caniuse-lite: 1.0.30001667
electron-to-chromium: 1.4.710
node-releases: 2.0.14
update-browserslist-db: 1.0.13([email protected])
@@ -17304,8 +17339,6 @@ snapshots:
-
@@ -17647,13 +17680,13 @@ snapshots:
crc-32: 1.2.2
readable-stream: 3.6.2
dependencies:
'@jest/types': 29.6.3
chalk: 4.1.2
exit: 0.1.2
graceful-fs: 4.2.11
+ jest-config: 29.7.0(@types/[email protected])
jest-util: 29.7.0
prompts: 2.4.2
transitivePeerDependencies:
@@ -17661,14 +17694,15 @@ snapshots:
- babel-plugin-macros
- supports-color
- ts-node
+ optional: true
dependencies:
'@jest/types': 29.6.3
chalk: 4.1.2
exit: 0.1.2
graceful-fs: 4.2.11
jest-util: 29.7.0
prompts: 2.4.2
transitivePeerDependencies:
@@ -17676,7 +17710,6 @@ snapshots:
- babel-plugin-macros
- supports-color
- ts-node
- optional: true
@@ -18435,6 +18468,25 @@ snapshots:
eslint: 8.57.0
semver: 7.6.3
+ dependencies:
+ '@next/eslint-plugin-next': 14.2.14
+ '@rushstack/eslint-patch': 1.7.2
+ '@typescript-eslint/eslint-plugin': 7.3.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])
+ '@typescript-eslint/parser': 7.12.0([email protected])([email protected])
+ eslint: 8.57.0
+ eslint-import-resolver-node: 0.3.9
+ eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected])
+ eslint-plugin-jsx-a11y: 6.8.0([email protected])
+ eslint-plugin-react: 7.34.1([email protected])
+ eslint-plugin-react-hooks: 4.6.0([email protected])
+ optionalDependencies:
+ typescript: 5.4.5
+ transitivePeerDependencies:
+ - eslint-import-resolver-webpack
+ - supports-color
+
dependencies:
'@next/eslint-plugin-next': 14.2.6
@@ -18443,7 +18495,7 @@ snapshots:
eslint: 8.57.0
eslint-import-resolver-node: 0.3.9
eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected])
eslint-plugin-jsx-a11y: 6.8.0([email protected])
eslint-plugin-react: 7.34.1([email protected])
eslint-plugin-react-hooks: 4.6.0([email protected])
@@ -18460,7 +18512,7 @@ snapshots:
dependencies:
eslint: 8.57.0
eslint-plugin-n: 16.6.2([email protected])
eslint-plugin-promise: 6.4.0([email protected])
@@ -18469,9 +18521,9 @@ snapshots:
eslint: 8.57.0
eslint-plugin-turbo: 1.13.4([email protected])
dependencies:
dependencies:
@@ -18481,15 +18533,32 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
- debug: 4.3.6
+ debug: 4.3.7
enhanced-resolve: 5.17.1
eslint: 8.57.0
fast-glob: 3.3.2
- get-tsconfig: 4.8.0
+ get-tsconfig: 4.8.1
+ is-core-module: 2.15.1
+ is-glob: 4.0.3
+ transitivePeerDependencies:
+ - '@typescript-eslint/parser'
+ - eslint-import-resolver-node
+ - eslint-import-resolver-webpack
+ - supports-color
+
+ dependencies:
+ debug: 4.3.7
+ enhanced-resolve: 5.17.1
+ eslint: 8.57.0
+ fast-glob: 3.3.2
+ get-tsconfig: 4.8.1
is-core-module: 2.15.1
is-glob: 4.0.3
transitivePeerDependencies:
@@ -18500,13 +18569,13 @@ snapshots:
dependencies:
- debug: 4.3.6
+ debug: 4.3.7
enhanced-resolve: 5.17.1
eslint: 8.57.0
fast-glob: 3.3.2
- get-tsconfig: 4.8.0
+ get-tsconfig: 4.8.1
is-core-module: 2.15.1
is-glob: 4.0.3
transitivePeerDependencies:
@@ -18515,14 +18584,25 @@ snapshots:
- eslint-import-resolver-webpack
- supports-color
+ dependencies:
+ debug: 3.2.7
+ optionalDependencies:
+ '@typescript-eslint/parser': 7.12.0([email protected])([email protected])
+ eslint: 8.57.0
+ eslint-import-resolver-node: 0.3.9
+ eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected])
+ transitivePeerDependencies:
+ - supports-color
+
dependencies:
debug: 3.2.7
optionalDependencies:
'@typescript-eslint/parser': 7.12.0([email protected])([email protected])
eslint: 8.57.0
eslint-import-resolver-node: 0.3.9
+ eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])
transitivePeerDependencies:
- supports-color
@@ -18550,7 +18630,7 @@ snapshots:
eslint: 8.57.0
ignore: 5.3.1
dependencies:
array-includes: 3.1.7
array.prototype.findlastindex: 1.2.4
@@ -18560,7 +18640,7 @@ snapshots:
doctrine: 2.1.0
eslint: 8.57.0
eslint-import-resolver-node: 0.3.9
hasown: 2.0.2
is-core-module: 2.15.1
is-glob: 4.0.3
@@ -18577,20 +18657,20 @@ snapshots:
- eslint-import-resolver-webpack
- supports-color
dependencies:
'@typescript-eslint/utils': 5.62.0([email protected])([email protected])
eslint: 8.57.0
optionalDependencies:
'@typescript-eslint/eslint-plugin': 7.3.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])
- jest: 29.7.0(@types/[email protected])([email protected])
+ jest: 29.7.0
transitivePeerDependencies:
- supports-color
- typescript
dependencies:
- '@babel/runtime': 7.24.7
+ '@babel/runtime': 7.25.7
aria-query: 5.3.2
array-includes: 3.1.7
array.prototype.flatmap: 1.3.2
@@ -18625,12 +18705,12 @@ snapshots:
dependencies:
eslint: 8.57.0
globals: 13.24.0
optionalDependencies:
dependencies:
@@ -18712,13 +18792,13 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@typescript-eslint/utils': 7.3.1([email protected])([email protected])
eslint: 8.57.0
optionalDependencies:
'@typescript-eslint/eslint-plugin': 7.3.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])
transitivePeerDependencies:
- supports-color
- typescript
@@ -19458,7 +19538,7 @@ snapshots:
dependencies:
agent-base: 7.1.1
- debug: 4.3.5([email protected])
+ debug: 4.3.7
transitivePeerDependencies:
- supports-color
@@ -19484,7 +19564,7 @@ snapshots:
dependencies:
agent-base: 7.1.1
- debug: 4.3.5([email protected])
+ debug: 4.3.7
transitivePeerDependencies:
- supports-color
@@ -19944,16 +20024,16 @@ snapshots:
- babel-plugin-macros
- supports-color
dependencies:
+ '@jest/core': 29.7.0
'@jest/test-result': 29.7.0
'@jest/types': 29.6.3
chalk: 4.1.2
+ create-jest: 29.7.0
exit: 0.1.2
import-local: 3.1.0
+ jest-config: 29.7.0(@types/[email protected])
jest-util: 29.7.0
jest-validate: 29.7.0
yargs: 17.7.2
@@ -19962,17 +20042,18 @@ snapshots:
- babel-plugin-macros
- supports-color
- ts-node
+ optional: true
dependencies:
'@jest/test-result': 29.7.0
'@jest/types': 29.6.3
chalk: 4.1.2
- create-jest: 29.7.0(@types/[email protected])([email protected])
exit: 0.1.2
import-local: 3.1.0
jest-util: 29.7.0
jest-validate: 29.7.0
yargs: 17.7.2
@@ -19981,7 +20062,6 @@ snapshots:
- babel-plugin-macros
- supports-color
- ts-node
- optional: true
dependencies:
@@ -20014,6 +20094,37 @@ snapshots:
- babel-plugin-macros
- supports-color
+ dependencies:
+ '@babel/core': 7.24.3
+ '@jest/test-sequencer': 29.7.0
+ '@jest/types': 29.6.3
+ babel-jest: 29.7.0(@babel/[email protected])
+ chalk: 4.1.2
+ ci-info: 3.9.0
+ deepmerge: 4.3.1
+ glob: 7.2.3
+ graceful-fs: 4.2.11
+ jest-circus: 29.7.0([email protected])
+ jest-environment-node: 29.7.0
+ jest-get-type: 29.6.3
+ jest-regex-util: 29.6.3
+ jest-resolve: 29.7.0
+ jest-runner: 29.7.0
+ jest-util: 29.7.0
+ jest-validate: 29.7.0
+ micromatch: 4.0.8
+ parse-json: 5.2.0
+ pretty-format: 29.7.0
+ slash: 3.0.0
+ strip-json-comments: 3.1.1
+ optionalDependencies:
+ '@types/node': 20.14.8
+ transitivePeerDependencies:
+ - babel-plugin-macros
+ - supports-color
+ optional: true
+
dependencies:
'@babel/core': 7.24.3
@@ -20281,30 +20392,30 @@ snapshots:
merge-stream: 2.0.0
supports-color: 8.1.1
dependencies:
+ '@jest/core': 29.7.0
'@jest/types': 29.6.3
import-local: 3.1.0
+ jest-cli: 29.7.0
transitivePeerDependencies:
- '@types/node'
- babel-plugin-macros
- supports-color
- ts-node
+ optional: true
dependencies:
'@jest/types': 29.6.3
import-local: 3.1.0
- jest-cli: 29.7.0(@types/[email protected])([email protected])
transitivePeerDependencies:
- '@types/node'
- babel-plugin-macros
- supports-color
- ts-node
- optional: true
@@ -21242,13 +21353,13 @@ snapshots:
dependencies:
type-fest: 2.19.0
dependencies:
'@babel/runtime': 7.24.5
'@panva/hkdf': 1.1.1
cookie: 0.5.0
jose: 4.15.5
oauth: 0.9.15
openid-client: 5.6.5
preact: 10.19.7
@@ -21259,11 +21370,11 @@ snapshots:
optionalDependencies:
nodemailer: 6.9.15
dependencies:
react: 18.2.0
- tslib: 2.6.2
+ tslib: 2.6.3
@@ -21271,27 +21382,27 @@ snapshots:
react: 18.2.0
react-dom: 18.2.0([email protected])
dependencies:
- '@next/env': 14.2.6
+ '@next/env': 14.2.14
'@swc/helpers': 0.5.5
busboy: 1.6.0
- caniuse-lite: 1.0.30001651
+ caniuse-lite: 1.0.30001667
graceful-fs: 4.2.11
postcss: 8.4.31
react: 18.2.0
react-dom: 18.2.0([email protected])
optionalDependencies:
- '@next/swc-darwin-arm64': 14.2.6
- '@next/swc-darwin-x64': 14.2.6
- '@next/swc-linux-arm64-gnu': 14.2.6
- '@next/swc-linux-arm64-musl': 14.2.6
- '@next/swc-linux-x64-gnu': 14.2.6
- '@next/swc-linux-x64-musl': 14.2.6
- '@next/swc-win32-arm64-msvc': 14.2.6
- '@next/swc-win32-ia32-msvc': 14.2.6
- '@next/swc-win32-x64-msvc': 14.2.6
+ '@next/swc-darwin-arm64': 14.2.14
+ '@next/swc-darwin-x64': 14.2.14
+ '@next/swc-linux-arm64-gnu': 14.2.14
+ '@next/swc-linux-arm64-musl': 14.2.14
+ '@next/swc-linux-x64-gnu': 14.2.14
+ '@next/swc-linux-x64-musl': 14.2.14
+ '@next/swc-win32-arm64-msvc': 14.2.14
+ '@next/swc-win32-ia32-msvc': 14.2.14
+ '@next/swc-win32-x64-msvc': 14.2.14
'@opentelemetry/api': 1.9.0
'@playwright/test': 1.47.2
transitivePeerDependencies:
@@ -21617,7 +21728,7 @@ snapshots:
dependencies:
'@tootallnate/quickjs-emscripten': 0.23.0
agent-base: 7.1.1
- debug: 4.3.5([email protected])
+ debug: 4.3.7
get-uri: 6.0.3
http-proxy-agent: 7.0.2
https-proxy-agent: 7.0.4
@@ -21864,7 +21975,7 @@ snapshots:
dependencies:
nanoid: 3.3.7
picocolors: 1.1.0
- source-map-js: 1.2.0
+ source-map-js: 1.2.1
dependencies:
@@ -22792,7 +22903,7 @@ snapshots:
dependencies:
agent-base: 7.1.1
- debug: 4.3.5([email protected])
+ debug: 4.3.7
socks: 2.8.3
transitivePeerDependencies:
- supports-color
@@ -23340,8 +23451,6 @@ snapshots:
-
@@ -23661,12 +23770,12 @@ snapshots:
d3-time: 3.1.0
d3-timer: 3.0.1
dependencies:
cac: 6.7.14
debug: 4.3.7
pathe: 1.1.2
- vite: 5.2.14(@types/[email protected])([email protected])
+ vite: 5.2.14(@types/[email protected])
transitivePeerDependencies:
- '@types/node'
- less
@@ -23694,24 +23803,7 @@ snapshots:
- supports-color
- terser
- dependencies:
- cac: 6.7.14
- debug: 4.3.7
- pathe: 1.1.2
- vite: 5.2.14(@types/[email protected])([email protected])
- transitivePeerDependencies:
- - '@types/node'
- - less
- - lightningcss
- - sass
- - stylus
- - sugarss
- - supports-color
- - terser
- optional: true
-
dependencies:
esbuild: 0.20.2
postcss: 8.4.47
@@ -23719,7 +23811,6 @@ snapshots:
optionalDependencies:
'@types/node': 20.10.5
fsevents: 2.3.3
- terser: 5.34.1
optional: true
@@ -23732,21 +23823,10 @@ snapshots:
fsevents: 2.3.3
terser: 5.34.1
- dependencies:
- esbuild: 0.20.2
- postcss: 8.4.47
- rollup: 4.13.0
- optionalDependencies:
- '@types/node': 20.14.8
- fsevents: 2.3.3
- terser: 5.34.1
- optional: true
-
dependencies:
'@vitest/expect': 2.1.2
+ '@vitest/mocker': 2.1.2(@vitest/[email protected])([email protected](@types/[email protected]))
'@vitest/pretty-format': 2.1.2
'@vitest/runner': 2.1.2
'@vitest/snapshot': 2.1.2
@@ -23761,12 +23841,11 @@ snapshots:
tinyexec: 0.3.0
tinypool: 1.0.1
tinyrainbow: 1.2.0
- vite: 5.2.14(@types/[email protected])([email protected])
- vite-node: 2.1.2(@types/[email protected])([email protected])
+ vite: 5.2.14(@types/[email protected])
+ vite-node: 2.1.2(@types/[email protected])
why-is-node-running: 2.3.0
optionalDependencies:
'@types/node': 20.10.5
- jsdom: 20.0.3
transitivePeerDependencies:
- less
- lightningcss
@@ -23812,41 +23891,6 @@ snapshots:
- supports-color
- terser
- dependencies:
- '@vitest/expect': 2.1.2
- '@vitest/pretty-format': 2.1.2
- '@vitest/runner': 2.1.2
- '@vitest/snapshot': 2.1.2
- '@vitest/spy': 2.1.2
- '@vitest/utils': 2.1.2
- chai: 5.1.1
- debug: 4.3.7
- magic-string: 0.30.11
- pathe: 1.1.2
- std-env: 3.7.0
- tinybench: 2.9.0
- tinyexec: 0.3.0
- tinypool: 1.0.1
- tinyrainbow: 1.2.0
- vite: 5.2.14(@types/[email protected])([email protected])
- vite-node: 2.1.2(@types/[email protected])([email protected])
- why-is-node-running: 2.3.0
- optionalDependencies:
- '@types/node': 20.14.8
- jsdom: 20.0.3
- transitivePeerDependencies:
- - less
- - lightningcss
- - msw
- - sass
- - stylus
- - sugarss
- - supports-color
- - terser
- optional: true
-
diff --git a/web/package.json b/web/package.json
index ff2d5fe678..8ee2f60217 100644
--- a/web/package.json
+++ b/web/package.json
@@ -83,7 +83,7 @@
"@repo/eslint-config": "workspace:*",
"@repo/typescript-config": "workspace:*",
"@sentry/nextjs": "^8.33.1",
- "@t3-oss/env-nextjs": "^0.10.1",
+ "@t3-oss/env-nextjs": "^0.11.1",
"@tailwindcss/container-queries": "^0.1.1",
"@tanstack/react-query": "^4.36.1",
"@tanstack/react-table": "^8.20.5",
@@ -115,9 +115,9 @@
"langchain": "^0.3.2",
"lodash": "^4.17.21",
"lucide-react": "^0.436.0",
- "next": "^14.2.6",
+ "next": "^14.2.14",
"next-auth": "^4.24.7",
- "next-query-params": "^5.0.0",
+ "next-query-params": "^5.0.1",
"next-themes": "^0.3.0",
"posthog-js": "^1.161.3",
"posthog-node": "^3.6.3",
diff --git a/web/src/__tests__/rate-limit.servertest.ts b/web/src/__tests__/rate-limit.servertest.ts
index f90f7241d3..7e630ab893 100644
--- a/web/src/__tests__/rate-limit.servertest.ts
+++ b/web/src/__tests__/rate-limit.servertest.ts
@@ -39,6 +39,8 @@ describe("RateLimitService", () => {
rateLimitOverrides: [],
};
+ expect(redis).toBeDefined();
+
const rateLimitService = new RateLimitService(redis!);
const result = await rateLimitService.rateLimitRequest(scope, "public-api");
diff --git a/web/src/env.mjs b/web/src/env.mjs
index 69b2307fdd..1668676c81 100644
--- a/web/src/env.mjs
+++ b/web/src/env.mjs
@@ -195,15 +195,42 @@ export const env = createEnv({
SENTRY_AUTH_TOKEN: z.string().optional(),
SENTRY_CSP_REPORT_URI: z.string().optional(),
LANGFUSE_RATE_LIMITS_ENABLED: z.enum(["true", "false"]).default("true"),
- LANGFUSE_INIT_ORG_ID: z.string().optional().transform((v) => v === "" ? undefined : v),
- LANGFUSE_INIT_ORG_NAME: z.string().optional().transform((v) => v === "" ? undefined : v),
- LANGFUSE_INIT_PROJECT_ID: z.string().optional().transform((v) => v === "" ? undefined : v),
- LANGFUSE_INIT_PROJECT_NAME: z.string().optional().transform((v) => v === "" ? undefined : v),
- LANGFUSE_INIT_PROJECT_PUBLIC_KEY: z.string().optional().transform((v) => v === "" ? undefined : v),
- LANGFUSE_INIT_PROJECT_SECRET_KEY: z.string().optional().transform((v) => v === "" ? undefined : v),
- LANGFUSE_INIT_USER_EMAIL: z.union([z.string().email(), z.string().length(0)]).optional().transform((v) => v === "" ? undefined : v),
- LANGFUSE_INIT_USER_NAME: z.string().optional().transform((v) => v === "" ? undefined : v),
- LANGFUSE_INIT_USER_PASSWORD: z.string().optional().transform((v) => v === "" ? undefined : v),
+ LANGFUSE_INIT_ORG_ID: z
+ .string()
+ .optional()
+ .transform((v) => (v === "" ? undefined : v)),
+ LANGFUSE_INIT_ORG_NAME: z
+ .string()
+ .optional()
+ .transform((v) => (v === "" ? undefined : v)),
+ LANGFUSE_INIT_PROJECT_ID: z
+ .string()
+ .optional()
+ .transform((v) => (v === "" ? undefined : v)),
+ LANGFUSE_INIT_PROJECT_NAME: z
+ .string()
+ .optional()
+ .transform((v) => (v === "" ? undefined : v)),
+ LANGFUSE_INIT_PROJECT_PUBLIC_KEY: z
+ .string()
+ .optional()
+ .transform((v) => (v === "" ? undefined : v)),
+ LANGFUSE_INIT_PROJECT_SECRET_KEY: z
+ .string()
+ .optional()
+ .transform((v) => (v === "" ? undefined : v)),
+ LANGFUSE_INIT_USER_EMAIL: z
+ .union([z.string().email(), z.string().length(0)])
+ .optional()
+ .transform((v) => (v === "" ? undefined : v)),
+ LANGFUSE_INIT_USER_NAME: z
+ .string()
+ .optional()
+ .transform((v) => (v === "" ? undefined : v)),
+ LANGFUSE_INIT_USER_PASSWORD: z
+ .string()
+ .optional()
+ .transform((v) => (v === "" ? undefined : v)),
},
/**
@@ -218,11 +245,27 @@ export const env = createEnv({
// NEXT_PUBLIC_CLIENTVAR: z.string().min(1),
NEXT_PUBLIC_LANGFUSE_CLOUD_REGION: z
- .enum(["US", "EU", "STAGING", "DEV"])
- .optional(),
+ .string()
+ .optional()
+ .transform((v) => {
+ // for some reason, empty strings are not being transformed to undefined
+ if (v === undefined) return undefined;
+ if (v === "") return undefined;
+ return v;
+ })
+ .pipe(z.enum(["US", "EU", "STAGING", "DEV"]).optional()),
NEXT_PUBLIC_DEMO_PROJECT_ID: z.string().optional(),
NEXT_PUBLIC_DEMO_ORG_ID: z.string().optional(),
- NEXT_PUBLIC_SIGN_UP_DISABLED: z.enum(["true", "false"]).optional(),
+ NEXT_PUBLIC_SIGN_UP_DISABLED: z
+ .string()
+ .optional()
+ .transform((v) => {
+ // for some reason, empty strings are not being transformed to undefined
+ if (v === undefined) return undefined;
+ if (v === "") return undefined;
+ return v;
+ })
+ .pipe(z.enum(["true", "false"]).optional()),
NEXT_PUBLIC_TURNSTILE_SITE_KEY: z.string().optional(),
NEXT_PUBLIC_POSTHOG_KEY: z.string().optional(),
NEXT_PUBLIC_POSTHOG_HOST: z.string().optional(),