Skip to content

Commit edb2e6b

Browse files
authored
chore(nextjs): upgrade to 16.4.0 (#8729)
1 parent 00cedfa commit edb2e6b

10 files changed

Lines changed: 57 additions & 50 deletions

File tree

‎apps/docs/app/api/og/route.tsx‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import type { CSSProperties } from 'react'
22
import { ImageResponse } from 'next/og'
33
import type { NextRequest } from 'next/server'
44

5-
export const runtime = 'edge'
6-
75
const TITLE_FONT_SIZE = {
86
large: 110,
97
medium: 96,
@@ -136,10 +134,8 @@ function wrapTitleLines(title: string, fontSize: number): string[] {
136134
* Loads Söhne Kräftig (weight 500), the typeface used on the reference cover
137135
* template this OG image matches. Converted to a plain TTF from the
138136
* last-shipped `soehne-kraftig.woff2` since Satori (`next/og`'s renderer)
139-
* can't parse WOFF2 or variable fonts. Fetched over HTTP since the edge
140-
* runtime has no filesystem access — served from `/static/fonts/` (not
141-
* `/fonts/`) so it isn't intercepted by the site's proxy (`proxy.ts`),
142-
* whose matcher excludes `static` but not `fonts`.
137+
* can't parse WOFF2 or variable fonts. Fetched over HTTP for Next's revalidation
138+
* cache, from `/static/fonts/` so the site's proxy matcher excludes it.
143139
*/
144140
async function loadTitleFont(baseUrl: string): Promise<ArrayBuffer> {
145141
const response = await fetch(new URL('/static/fonts/Soehne-Kraftig.ttf', baseUrl), {

‎apps/docs/lib/openapi.ts‎

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
import { readFileSync } from 'node:fs'
2-
import { join } from 'node:path'
31
import type { MethodInformation } from 'fumadocs-openapi'
42
import type { InlineCodeUsageGenerator } from 'fumadocs-openapi/requests/generators'
53
import { createOpenAPI } from 'fumadocs-openapi/server'
64
import { buildAuthCodeSamples } from '@/lib/openapi-code-samples'
75
import { OPENAPI_SPEC_FILES } from '@/lib/openapi-specs'
6+
import billingSpec from '@/openapi-v2-billing.json'
7+
import filesAuditSpec from '@/openapi-v2-files-audit.json'
8+
import knowledgeSpec from '@/openapi-v2-knowledge.json'
9+
import logsSpec from '@/openapi-v2-logs.json'
10+
import resourcesSpec from '@/openapi-v2-resources.json'
11+
import tablesSpec from '@/openapi-v2-tables.json'
12+
import workflowsSpec from '@/openapi-v2-workflows.json'
813

914
export const openapi = createOpenAPI({
1015
input: OPENAPI_SPEC_FILES.map((file) => `./${file}`),
@@ -66,16 +71,20 @@ function formatSchema(schema: unknown): string {
6671
return JSON.stringify(schema, null, 2)
6772
}
6873

69-
let cachedSpecs: Record<string, unknown>[] | null = null
74+
const SPEC_BY_FILE = {
75+
'openapi-v2-billing.json': billingSpec,
76+
'openapi-v2-files-audit.json': filesAuditSpec,
77+
'openapi-v2-knowledge.json': knowledgeSpec,
78+
'openapi-v2-logs.json': logsSpec,
79+
'openapi-v2-resources.json': resourcesSpec,
80+
'openapi-v2-tables.json': tablesSpec,
81+
'openapi-v2-workflows.json': workflowsSpec,
82+
} satisfies Record<(typeof OPENAPI_SPEC_FILES)[number], Record<string, unknown>>
83+
84+
const SPECS = OPENAPI_SPEC_FILES.map((file) => SPEC_BY_FILE[file])
7085

7186
function getSpecs(): Record<string, unknown>[] {
72-
if (!cachedSpecs) {
73-
cachedSpecs = OPENAPI_SPEC_FILES.map(
74-
(file) =>
75-
JSON.parse(readFileSync(join(process.cwd(), file), 'utf8')) as Record<string, unknown>
76-
)
77-
}
78-
return cachedSpecs
87+
return SPECS
7988
}
8089

8190
type SecurityRequirement = Record<string, string[]>

‎apps/docs/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"fumadocs-mdx": "14.3.2",
3131
"fumadocs-openapi": "10.8.1",
3232
"fumadocs-ui": "16.8.5",
33-
"next": "16.3.6",
33+
"next": "16.4.0",
3434
"next-themes": "^0.4.6",
3535
"react": "19.2.4",
3636
"react-dom": "19.2.4",

‎apps/sim/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@
218218
"mssql": "12.7.0",
219219
"mysql2": "3.24.2",
220220
"neo4j-driver": "6.0.1",
221-
"next": "16.3.6",
221+
"next": "16.4.0",
222222
"next-mdx-remote": "^6.0.0",
223223
"next-themes": "^0.4.6",
224224
"nodemailer": "10.0.10",
@@ -267,7 +267,7 @@
267267
"zustand": "^5.0.13"
268268
},
269269
"devDependencies": {
270-
"@next/env": "16.3.6",
270+
"@next/env": "16.4.0",
271271
"@opentelemetry/context-async-hooks": "2.10.0",
272272
"@sim/testing": "workspace:*",
273273
"@sim/tsconfig": "workspace:*",

‎bun.lock‎

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎bunfig.toml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ exact = true
33
# Supply-chain gate: only install package versions published at least 7 days ago
44
# (blocks freshly published, potentially compromised releases).
55
minimumReleaseAge = 604800
6+
# Explicit framework pins must install before their release reaches the age threshold.
7+
minimumReleaseAgeExcludes = ["next", "@next/env"]
68

79
[run]
810
env = { NEXT_PUBLIC_APP_URL = "http://localhost:3000" }

‎package.json‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@
136136
"overrides": {
137137
"react": "19.2.4",
138138
"react-dom": "19.2.4",
139-
"next": "16.3.6",
140-
"@next/env": "16.3.6",
139+
"next": "16.4.0",
140+
"@next/env": "16.4.0",
141141
"drizzle-orm": "^0.45.2",
142142
"postgres": "^3.4.5",
143143
"minimatch": "^10.2.5",
@@ -160,10 +160,10 @@
160160
"ws": "8.21.3"
161161
},
162162
"optionalDependencies": {
163-
"@next/swc-darwin-arm64": "16.3.6",
164-
"@next/swc-darwin-x64": "16.3.6",
165-
"@next/swc-linux-arm64-gnu": "16.3.6",
166-
"@next/swc-linux-x64-gnu": "16.3.6"
163+
"@next/swc-darwin-arm64": "16.4.0",
164+
"@next/swc-darwin-x64": "16.4.0",
165+
"@next/swc-linux-arm64-gnu": "16.4.0",
166+
"@next/swc-linux-x64-gnu": "16.4.0"
167167
},
168168
"devDependencies": {
169169
"@babel/parser": "7.29.2",

‎packages/emcn/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"class-variance-authority": "^0.7.1",
8686
"framer-motion": "^12.5.0",
8787
"input-otp": "^1.4.2",
88-
"next": "16.3.6",
88+
"next": "16.4.0",
8989
"prismjs": "^1.30.0",
9090
"react": "19.2.4",
9191
"react-dom": "19.2.4",

‎packages/sim-setup/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
},
5050
"devDependencies": {
5151
"@clack/prompts": "1.7.0",
52-
"@next/env": "16.3.6",
52+
"@next/env": "16.4.0",
5353
"@sim/deployment-config": "workspace:*",
5454
"@sim/security": "workspace:*",
5555
"@sim/tsconfig": "workspace:*",

‎packages/testing/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
},
7373
"devDependencies": {
7474
"@sim/tsconfig": "workspace:*",
75-
"next": "16.3.6",
75+
"next": "16.4.0",
7676
"stripe": "18.5.0",
7777
"typescript": "^7.0.2",
7878
"vitest": "^5.0.1"

0 commit comments

Comments
 (0)