Skip to content

Commit 8da73d7

Browse files
Upgrade Biome to 2.3 and Next.js to 16 with Cache Components
1 parent 5d5fbdd commit 8da73d7

File tree

8 files changed

+304
-257
lines changed

8 files changed

+304
-257
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
},
5656
"devDependencies": {
5757
"@arethetypeswrong/cli": "^0.17.4",
58-
"@biomejs/biome": "^2.2.0",
58+
"@biomejs/biome": "^2.3.8",
5959
"@release-it/keep-a-changelog": "^7.0.0",
6060
"@testing-library/jest-dom": "^6.6.3",
6161
"@testing-library/react": "^16.2.0",

site/biome.jsonc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
},
1212
"linter": {
1313
"rules": {
14-
"suspicious": {
15-
"noUnknownAtRules": "off"
16-
},
1714
"nursery": {
1815
"useSortedClasses": {
1916
"fix": "safe",
@@ -27,7 +24,8 @@
2724
},
2825
"css": {
2926
"parser": {
30-
"cssModules": true
27+
"cssModules": true,
28+
"tailwindDirectives": true
3129
}
3230
}
3331
}

site/next-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3+
import "./.next/types/routes.d.ts";
34

45
// NOTE: This file should not be edited
56
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

site/next.config.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
import type { NextConfig } from "next";
22

33
const nextConfig: NextConfig = {
4-
experimental: {
5-
dynamicIO: true,
6-
useCache: true,
7-
ppr: true,
8-
},
4+
cacheComponents: true,
95
async rewrites() {
106
return [
117
{

site/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"frimousse": "file:../",
3030
"lucide-react": "^0.482.0",
3131
"motion": "^12.5.0",
32-
"next": "15.3.0-canary.10",
32+
"next": "16.0.7",
3333
"next-themes": "^0.4.6",
3434
"react": "^19.0.0",
3535
"react-dom": "^19.0.0",

site/src/components/reactions.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
type ReactionsJson,
55
ROOM_ID,
66
} from "liveblocks.config";
7-
import { unstable_cacheLife as cachelife } from "next/cache";
7+
import { cacheLife } from "next/cache";
88
import { type ComponentProps, Suspense } from "react";
99
import {
1010
Reactions as ClientReactions,
@@ -19,7 +19,7 @@ const liveblocks = new LiveblocksClient({
1919
async function ServerReactions() {
2020
"use cache";
2121

22-
cachelife("seconds");
22+
cacheLife("seconds");
2323

2424
let reactions: ReactionsJson;
2525

site/src/components/sections/footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { unstable_cacheLife as cacheLife } from "next/cache";
1+
import { cacheLife } from "next/cache";
22
import { type ComponentProps, Suspense } from "react";
33
import { cn } from "@/lib/utils";
44
import { buttonVariants } from "../ui/button";

0 commit comments

Comments
 (0)