Skip to content

Commit 3173ecc

Browse files
setup(next.js) 15.2
1 parent 267eb73 commit 3173ecc

File tree

4 files changed

+193
-289
lines changed

4 files changed

+193
-289
lines changed

apps/site/components/Common/AvatarGroup/Avatar/index.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
12
import classNames from 'classnames';
23
import Image from 'next/image';
3-
import type { HTMLAttributes } from 'react';
4-
import { forwardRef } from 'react';
4+
import type {FC, HTMLAttributes } from 'react';
55

66
import Link from '@/components/Link';
77

@@ -14,21 +14,17 @@ export type AvatarProps = {
1414
fallback?: string;
1515
size?: 'small' | 'medium';
1616
url?: string;
17-
};
17+
} & HTMLAttributes<HTMLSpanElement>;
1818

1919
// @TODO: We temporarily removed the Avatar Radix UI primitive, since it was causing flashing
2020
// during initial load and not being able to render nicely when images are already cached.
2121
// @see https://github.com/radix-ui/primitives/pull/3008
22-
const Avatar = forwardRef<
23-
HTMLSpanElement,
24-
HTMLAttributes<HTMLSpanElement> & AvatarProps
25-
>(({ image, nickname, name, fallback, url, size = 'small', ...props }, ref) => {
22+
const Avatar: FC<AvatarProps> = (({ image, nickname, name, fallback, url, size = 'small', ...props }) => {
2623
const Wrapper = url ? Link : 'div';
2724

2825
return (
2926
<span
3027
{...props}
31-
ref={ref}
3228
className={classNames(styles.avatar, styles[size], props.className)}
3329
>
3430
<Wrapper

apps/site/next.config.mjs renamed to apps/site/next.config.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
'use strict';
2-
1+
import type { NextConfig } from 'next';
32
import withNextIntl from 'next-intl/plugin';
43

54
import { BASE_PATH, ENABLE_STATIC_EXPORT } from './next.constants.mjs';
65
import { redirects, rewrites } from './next.rewrites.mjs';
76

8-
/** @type {import('next').NextConfig} */
97
const nextConfig = {
108
// We don't use trailing slashes on URLs from the Node.js Website
119
trailingSlash: false,
@@ -97,6 +95,6 @@ const nextConfig = {
9795
'shiki',
9896
],
9997
},
100-
};
98+
} as NextConfig;
10199

102100
export default withNextIntl('./i18n.tsx')(nextConfig);

apps/site/package.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,17 @@
5353
"github-slugger": "~2.0.0",
5454
"glob": "~11.0.0",
5555
"gray-matter": "~4.0.3",
56-
"next": "15.1.6",
57-
"next-intl": "~3.26.3",
58-
"next-themes": "~0.4.3",
56+
"next": "15.2.0",
57+
"next-intl": "~3.26.5",
58+
"next-themes": "~0.4.4",
5959
"postcss": "~8.4.49",
6060
"postcss-calc": "~10.0.2",
6161
"postcss-import": "~16.1.0",
6262
"postcss-loader": "~8.1.1",
6363
"postcss-mixins": "~11.0.3",
6464
"postcss-simple-vars": "~7.0.1",
65-
"react": "^18.3.1",
66-
"react-dom": "^18.3.1",
65+
"react": "^19.0.0",
66+
"react-dom": "^19.0.0",
6767
"rehype-autolink-headings": "~7.1.0",
6868
"rehype-slug": "~6.0.0",
6969
"remark-gfm": "~4.0.0",
@@ -78,7 +78,7 @@
7878
},
7979
"devDependencies": {
8080
"@eslint/compat": "~1.2.3",
81-
"@next/eslint-plugin-next": "15.1.6",
81+
"@next/eslint-plugin-next": "15.2.0",
8282
"@storybook/addon-controls": "^8.5.2",
8383
"@storybook/addon-interactions": "^8.5.2",
8484
"@storybook/addon-styling-webpack": "^1.0.1",
@@ -90,10 +90,9 @@
9090
"@testing-library/react": "~16.2.0",
9191
"@testing-library/user-event": "~14.6.1",
9292
"@types/jest": "29.5.14",
93-
"@types/react": "^18.3.12",
94-
"@types/react-dom": "^18.3.1",
93+
"@types/react": "^19.0.10",
94+
"@types/react-dom": "^19.0.4",
9595
"@types/semver": "~7.5.8",
96-
"eslint-config-next": "15.1.3",
9796
"eslint-import-resolver-typescript": "~3.7.0",
9897
"eslint-plugin-mdx": "~3.1.5",
9998
"eslint-plugin-react": "~7.37.2",

0 commit comments

Comments
 (0)