Skip to content

Commit 66d8e3c

Browse files
authored
Merge pull request #133 from daku10/feat/bump-deps
feat: bump deps
2 parents 75dc870 + e1183df commit 66d8e3c

File tree

18 files changed

+1353
-1111
lines changed

18 files changed

+1353
-1111
lines changed

.prettierrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2+
"tailwindStylesheet": "./src/app/styles/globals.css",
23
"plugins": ["prettier-plugin-tailwindcss"]
34
}

next.config.mjs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ const withBundleAnalyzer =
1313
/** @type {import('next').NextConfig} */
1414
const nextConfig = {
1515
output: "export",
16-
experimental: {
17-
typedRoutes: true,
18-
},
1916
};
2017

2118
export default withBundleAnalyzer(nextConfig);

package.json

Lines changed: 39 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.1.0",
44
"private": true,
55
"scripts": {
6-
"dev": "next dev",
6+
"dev": "next dev --turbopack",
77
"build": "next build",
88
"start": "serve out",
99
"lint": "concurrently 'pnpm:lint:*'",
@@ -15,16 +15,17 @@
1515
"format": "prettier src --write"
1616
},
1717
"dependencies": {
18-
"@headlessui/react": "2.1.3",
19-
"@next/third-parties": "14.2.7",
18+
"@headlessui/react": "2.2.1",
19+
"@next/third-parties": "15.2.4",
2020
"@tabler/icons-react": "3.14.0",
2121
"clsx": "2.1.1",
2222
"gray-matter": "4.0.3",
23+
"hast-util-to-jsx-runtime": "2.3.6",
2324
"image-size": "1.1.1",
24-
"next": "14.2.10",
25-
"next-themes": "0.3.0",
26-
"react": "18.3.1",
27-
"react-dom": "18.3.1",
25+
"next": "15.2.4",
26+
"next-themes": "0.4.6",
27+
"react": "19.1.0",
28+
"react-dom": "19.1.0",
2829
"rehype-autolink-headings": "7.1.0",
2930
"rehype-external-links": "3.0.0",
3031
"rehype-pretty-code": "0.14.0",
@@ -42,41 +43,49 @@
4243
"valibot": "0.40.0"
4344
},
4445
"devDependencies": {
45-
"@eslint/js": "8.57.0",
46+
"@eslint/js": "9.24.0",
4647
"@markuplint/jsx-parser": "4.6.1",
4748
"@markuplint/ml-core": "4.6.1",
4849
"@markuplint/react-spec": "4.4.1",
49-
"@next/bundle-analyzer": "14.2.7",
50-
"@next/eslint-plugin-next": "14.2.7",
51-
"@tailwindcss/typography": "0.5.15",
52-
"@types/eslint": "8.56.11",
53-
"@types/eslint__js": "8.42.3",
50+
"@next/bundle-analyzer": "15.2.4",
51+
"@next/eslint-plugin-next": "15.2.4",
52+
"@tailwindcss/postcss": "^4.1.3",
53+
"@tailwindcss/typography": "0.5.16",
54+
"@types/eslint": "9.6.1",
5455
"@types/hast": "3.0.4",
55-
"@types/node": "20.16.2",
56-
"@types/react": "18.3.5",
57-
"@types/react-dom": "18.3.0",
56+
"@types/node": "22.14.0",
57+
"@types/react": "19.1.0",
58+
"@types/react-dom": "19.1.1",
5859
"@types/rss": "0.0.32",
59-
"@typescript-eslint/eslint-plugin": "7.18.0",
60-
"@typescript-eslint/parser": "7.18.0",
61-
"autoprefixer": "10.4.20",
60+
"@typescript-eslint/eslint-plugin": "8.29.0",
61+
"@typescript-eslint/parser": "8.29.0",
6262
"concurrently": "9.0.1",
63-
"eslint": "8.57.0",
64-
"eslint-config-next": "14.2.7",
65-
"eslint-plugin-import": "2.29.1",
66-
"eslint-plugin-react": "7.35.0",
67-
"eslint-plugin-react-hooks": "4.6.2",
68-
"eslint-plugin-unused-imports": "3.2.0",
63+
"eslint": "9.24.0",
64+
"eslint-config-next": "15.2.4",
65+
"eslint-plugin-import": "2.31.0",
66+
"eslint-plugin-react": "7.37.5",
67+
"eslint-plugin-react-hooks": "5.2.0",
68+
"eslint-plugin-unused-imports": "4.1.4",
6969
"markuplint": "4.6.1",
70-
"postcss": "8.4.41",
71-
"prettier": "3.3.3",
72-
"prettier-plugin-tailwindcss": "0.6.6",
70+
"postcss": "8.5.3",
71+
"prettier": "3.5.3",
72+
"prettier-plugin-tailwindcss": "0.6.11",
7373
"serve": "14.2.3",
74-
"tailwindcss": "3.4.10",
74+
"tailwindcss": "4.1.3",
7575
"textlint": "14.2.0",
7676
"textlint-rule-preset-ja-spacing": "2.4.3",
7777
"textlint-rule-preset-ja-technical-writing": "10.0.1",
7878
"textlint-rule-spellcheck-tech-word": "5.0.0",
7979
"typescript": "5.5.4"
8080
},
81-
"packageManager": "[email protected]+sha512.ee592eda8815a8a293c206bb0917c4bb0ff274c50def7cbc17be05ec641fc2d1b02490ce660061356bd0d126a4d7eb2ec8830e6959fb8a447571c631d5a2442d"
81+
"packageManager": "[email protected]+sha512.2d92c86b7928dc8284f53494fb4201f983da65f0fb4f0d40baafa5cf628fa31dae3e5968f12466f17df7e97310e30f343a648baea1b9b350685dafafffdf5808",
82+
"pnpm": {
83+
"onlyBuiltDependencies": [
84+
"es5-ext",
85+
"sharp"
86+
],
87+
"patchedDependencies": {
88+
89+
}
90+
}
8291
}

patches/[email protected]

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
diff --git a/index.d.ts b/index.d.ts
2+
index dee7c4db8b7fabb3818f5d38d0bb6fa8dc00cdac..53fe373bfdd96e7eed61361c07b693a5acdec978 100644
3+
--- a/index.d.ts
4+
+++ b/index.d.ts
5+
@@ -4,6 +4,11 @@ import type {Options} from './lib/index.js'
6+
7+
export type {Components, Options} from 'hast-util-to-jsx-runtime'
8+
9+
+/**
10+
+ * react-rehypeがJSX.Elementを使用しているが、@types/react@19以降で、globalなJSX namespaceは消えた。そのため、@types/react@19以降を使用する場合、any型として解決されてしまう。これを避けるためにReact.JSX.Elementを使用するようにパッチを当てている。
11+
+ * また、この問題はhast-util-to-jsx-runtimeにも存在しており、2.3.5以降で修正されているため、そのバージョンを使用する必要がある。(修正というよりts-ignoreをしているだけなのだが……)
12+
+ */
13+
+
14+
/**
15+
* Turn HTML into preact, react, solid, svelte, vue, etc.
16+
*
17+
@@ -36,12 +41,12 @@ export type {Components, Options} from 'hast-util-to-jsx-runtime'
18+
* @returns
19+
* Nothing.
20+
*/
21+
-declare const rehypeReact: Plugin<[Options], Root, JSX.Element>
22+
+declare const rehypeReact: Plugin<[Options], Root, React.JSX.Element>
23+
export default rehypeReact
24+
25+
// Register the result type.
26+
declare module 'unified' {
27+
interface CompileResultMap {
28+
- JsxElement: JSX.Element
29+
+ JsxElement: React.JSX.Element
30+
}
31+
}

0 commit comments

Comments
 (0)