Skip to content

Commit 566ac85

Browse files
committed
upgrade
1 parent 9b88cc7 commit 566ac85

File tree

20 files changed

+1380
-1699
lines changed

20 files changed

+1380
-1699
lines changed

.changeset/popular-penguins-swim.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@udecode/react-utils': minor
3+
'@udecode/plate-floating': minor
4+
'@udecode/plate-caption': minor
5+
'@udecode/plate-juice': minor
6+
'@udecode/cmdk': minor
7+
'@udecode/plate-core': minor
8+
'@udecode/plate-math': minor
9+
'@udecode/plate-csv': minor
10+
'@udecode/plate-yjs': minor
11+
'@udecode/plate-ai': minor
12+
---
13+
14+
Upgrade dependencies to latest

apps/www/next-env.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
/// <reference types="next/navigation-types/compat/navigation" />
44

55
// NOTE: This file should not be edited
6-
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
6+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

apps/www/package.json

+64-65
Original file line numberDiff line numberDiff line change
@@ -37,41 +37,41 @@
3737
},
3838
"dependencies": {
3939
"@ai-sdk/openai": "^0.0.67",
40-
"@ariakit/react": "0.4.11",
41-
"@faker-js/faker": "^9.0.2",
42-
"@hookform/resolvers": "3.9.1",
43-
"@next/third-parties": "15.0.3",
40+
"@ariakit/react": "0.4.15",
41+
"@faker-js/faker": "^9.4.0",
42+
"@hookform/resolvers": "3.10.0",
43+
"@next/third-parties": "15.1.6",
4444
"@radix-ui/colors": "3.0.0",
45-
"@radix-ui/react-accessible-icon": "^1.1.0",
46-
"@radix-ui/react-accordion": "^1.2.0",
47-
"@radix-ui/react-alert-dialog": "^1.1.1",
48-
"@radix-ui/react-aspect-ratio": "^1.1.0",
49-
"@radix-ui/react-avatar": "^1.1.0",
50-
"@radix-ui/react-checkbox": "^1.1.1",
51-
"@radix-ui/react-collapsible": "^1.1.0",
52-
"@radix-ui/react-context-menu": "^2.2.1",
53-
"@radix-ui/react-dialog": "^1.1.1",
54-
"@radix-ui/react-dropdown-menu": "^2.1.1",
55-
"@radix-ui/react-hover-card": "^1.1.1",
56-
"@radix-ui/react-icons": "^1.3.0",
57-
"@radix-ui/react-label": "^2.1.0",
58-
"@radix-ui/react-menubar": "^1.1.1",
59-
"@radix-ui/react-navigation-menu": "^1.2.0",
60-
"@radix-ui/react-popover": "^1.1.1",
61-
"@radix-ui/react-progress": "^1.1.0",
62-
"@radix-ui/react-radio-group": "^1.2.0",
63-
"@radix-ui/react-scroll-area": "^1.1.0",
64-
"@radix-ui/react-select": "^2.1.1",
65-
"@radix-ui/react-separator": "^1.1.0",
66-
"@radix-ui/react-slider": "^1.2.0",
67-
"@radix-ui/react-slot": "^1.1.0",
68-
"@radix-ui/react-switch": "^1.1.0",
69-
"@radix-ui/react-tabs": "^1.1.0",
70-
"@radix-ui/react-toast": "^1.2.1",
71-
"@radix-ui/react-toggle": "^1.1.0",
72-
"@radix-ui/react-toggle-group": "^1.1.0",
73-
"@radix-ui/react-toolbar": "^1.1.0",
74-
"@radix-ui/react-tooltip": "^1.1.2",
45+
"@radix-ui/react-accessible-icon": "^1.1.1",
46+
"@radix-ui/react-accordion": "^1.2.2",
47+
"@radix-ui/react-alert-dialog": "^1.1.4",
48+
"@radix-ui/react-aspect-ratio": "^1.1.1",
49+
"@radix-ui/react-avatar": "^1.1.2",
50+
"@radix-ui/react-checkbox": "^1.1.3",
51+
"@radix-ui/react-collapsible": "^1.1.2",
52+
"@radix-ui/react-context-menu": "^2.2.4",
53+
"@radix-ui/react-dialog": "^1.1.4",
54+
"@radix-ui/react-dropdown-menu": "^2.1.4",
55+
"@radix-ui/react-hover-card": "^1.1.4",
56+
"@radix-ui/react-icons": "^1.3.2",
57+
"@radix-ui/react-label": "^2.1.1",
58+
"@radix-ui/react-menubar": "^1.1.4",
59+
"@radix-ui/react-navigation-menu": "^1.2.3",
60+
"@radix-ui/react-popover": "^1.1.4",
61+
"@radix-ui/react-progress": "^1.1.1",
62+
"@radix-ui/react-radio-group": "^1.2.2",
63+
"@radix-ui/react-scroll-area": "^1.2.2",
64+
"@radix-ui/react-select": "^2.1.4",
65+
"@radix-ui/react-separator": "^1.1.1",
66+
"@radix-ui/react-slider": "^1.2.2",
67+
"@radix-ui/react-slot": "^1.1.1",
68+
"@radix-ui/react-switch": "^1.1.2",
69+
"@radix-ui/react-tabs": "^1.1.2",
70+
"@radix-ui/react-toast": "^1.2.4",
71+
"@radix-ui/react-toggle": "^1.1.1",
72+
"@radix-ui/react-toggle-group": "^1.1.1",
73+
"@radix-ui/react-toolbar": "^1.1.1",
74+
"@radix-ui/react-tooltip": "^1.1.6",
7575
"@slate-yjs/react": "1.1.0",
7676
"@udecode/cmdk": "workspace:^",
7777
"@udecode/cn": "workspace:^",
@@ -133,63 +133,62 @@
133133
"@udecode/slate": "workspace:^",
134134
"@udecode/utils": "workspace:^",
135135
"@uploadthing/react": "7.1.0",
136-
"@vercel/og": "^0.6.2",
137-
"ai": "^3.4.10",
138-
"class-variance-authority": "^0.7.0",
139-
"cmdk": "^1.0.0",
136+
"@vercel/og": "^0.6.4",
137+
"ai": "^3.4.33",
138+
"class-variance-authority": "^0.7.1",
139+
"cmdk": "^1.0.4",
140140
"contentlayer2": "^0.4.6",
141-
"date-fns": "^3.6.0",
141+
"date-fns": "^4.1.0",
142142
"dotenv": "16.4.7",
143-
"framer-motion": "^11.5.4",
143+
"framer-motion": "^12.0.1",
144144
"fzf": "0.5.2",
145145
"html2canvas": "^1.4.1",
146146
"lodash.template": "^4.5.0",
147-
"lucide-react": "0.460.0",
148-
"match-sorter": "6.3.4",
149-
"next": "15.0.3",
147+
"lucide-react": "0.473.0",
148+
"next": "15.1.6",
150149
"next-contentlayer2": "^0.4.6",
151-
"next-themes": "^0.4.3",
152-
"nuqs": "^2.3.0",
150+
"next-themes": "^0.4.4",
151+
"nuqs": "^2.3.1",
153152
"pdf-lib": "^1.17.1",
154153
"prismjs": "^1.29.0",
155154
"react": "^18.3.1",
156155
"react-day-picker": "^8.10.1",
157156
"react-dnd": "16.0.1",
158157
"react-dnd-html5-backend": "^16.0.1",
159158
"react-dom": "^18.3.1",
160-
"react-hook-form": "7.53.2",
159+
"react-hook-form": "7.54.2",
161160
"react-lite-youtube-embed": "^2.4.0",
162-
"react-markdown": "9.0.1",
161+
"react-markdown": "9.0.3",
163162
"react-player": "2.16.0",
164-
"react-resizable-panels": "^2.0.22",
165-
"react-syntax-highlighter": "^15.5.0",
166-
"react-textarea-autosize": "^8.5.5",
163+
"react-resizable-panels": "^2.1.7",
164+
"react-syntax-highlighter": "^15.6.1",
165+
"react-textarea-autosize": "^8.5.7",
167166
"react-tweet": "^3.2.1",
168167
"react-wrap-balancer": "^1.1.1",
169168
"remark-emoji": "5.0.1",
170-
"sass": "^1.78.0",
169+
"sass": "^1.83.4",
171170
"slate-test-utils": "1.3.2",
172-
"sonner": "^1.5.0",
173-
"swr": "2.2.6-beta.3",
174-
"tailwind-merge": "^2.5.2",
171+
"sonner": "^1.7.2",
172+
"swr": "2.3.0",
173+
"tailwind-merge": "^2.6.0",
175174
"ts-morph": "^22.0.0",
176175
"unist-builder": "4.0.0",
177176
"unist-util-visit": "^5.0.0",
178177
"uploadthing": "7.2.0",
179178
"use-file-picker": "2.1.2",
180-
"vaul": "1.1.1"
179+
"vaul": "1.1.2"
181180
},
182181
"devDependencies": {
183-
"@shikijs/compat": "^1.17.5",
182+
"@shikijs/compat": "^2.1.0",
184183
"@types/lodash.template": "^4.5.3",
185-
"@types/react-color": "^3.0.12",
184+
"@types/react-color": "^3.0.13",
186185
"@types/react-syntax-highlighter": "^15.5.13",
187186
"autoprefixer": "^10.4.20",
188-
"concurrently": "^9.0.1",
189-
"glob": "^11.0.0",
187+
"concurrently": "^9.1.2",
188+
"glob": "^11.0.1",
190189
"mdast-util-toc": "^7.1.0",
191-
"postcss": "^8.4.45",
192-
"puppeteer": "^23.6.0",
190+
"postcss": "^8.5.1",
191+
"puppeteer": "^24.1.0",
193192
"rehype": "^12.0.1",
194193
"rehype-autolink-headings": "^6.1.1",
195194
"rehype-pretty-code": "^0.6.0",
@@ -198,12 +197,12 @@
198197
"remark-code-import": "^1.2.0",
199198
"remark-gfm": "^4.0.0",
200199
"rimraf": "^6.0.1",
201-
"shiki": "^1.17.5",
200+
"shiki": "^2.1.0",
202201
"tailwind-scrollbar-hide": "1.1.7",
203-
"tailwindcss": "^3.4.11",
202+
"tailwindcss": "^3.4.17",
204203
"tailwindcss-animate": "^1.0.7",
205204
"ts-node": "^10.9.2",
206-
"tsx": "^4.19.1",
207-
"typescript": "5.6.2"
205+
"tsx": "^4.19.2",
206+
"typescript": "5.7.3"
208207
}
209208
}

apps/www/src/lib/bundlephobia.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export function formatBytes(bytes: number, decimals = 2) {
44
if (bytes === 0) return '0 Bytes';
55

66
const k = 1024;
7-
const dm = decimals < 0 ? 0 : decimals;
7+
const dm = Math.max(decimals, 0);
88
const sizes = ['Bytes', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
99
const i = Math.floor(Math.log(bytes) / Math.log(k));
1010

config/eslint/bases/tailwind.cjs

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ module.exports = {
2727
'error',
2828
{
2929
whitelist: [
30+
'scrollbar-hide',
3031
'ignore-click-outside/toolbar',
3132
'chunk-mode',
3233
'preview',

config/eslint/bases/unicorn.cjs

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ module.exports = {
1313
],
1414
plugins: ['unicorn'],
1515
rules: {
16+
'unicorn/prefer-global-this': 'off',
1617
'unicorn/consistent-destructuring': 'off',
1718
'unicorn/consistent-function-scoping': [
1819
'error',

docs/vendor.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@
1010
- `[email protected]`: issue with react-tweet css, etc.
1111
- `cosmiconfig`: cli
1212
- `delay`: cloud
13-
- `diff`: [no changelog](https://github.com/kpdecker/jsdiff/commits/master/)
13+
- `diff`: cli
1414
- `eslint@8`: will upgrade to 9 later
1515
- `execa`: cli
1616
- `https-proxy-agent`: cli
1717
- `[email protected]`: https://github.com/pmndrs/jotai/discussions/2725
1818
- `juice@8`: Jest encountered an unexpected token
19-
- `next`: shadcn
2019
- `next-contentlayer2`: see contentlayer2
2120
- `ora`: cli
2221
- `[email protected]`: shadcn
@@ -26,6 +25,7 @@
2625
- `[email protected]`: shadcn
2726
- `remark@14`: UnexpectedMDXError
2827
- `remark-parse@10`: jest
28+
- `[email protected]`: wait for eslint 9
2929
- `ts-morph`: shadcn
3030
- `tsup`: cli
3131
- `type-fest`: cli

jest.config.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ module.exports = {
6161
},
6262
transformIgnorePatterns: [
6363
'/node_modules/(?!(' +
64-
'react-dnd|dnd-core|@react-dnd|react-dnd-html5-backend|react-tweet|unified' +
64+
'lucide-react|cheerio|react-dnd|dnd-core|@react-dnd|react-dnd-html5-backend|react-tweet|unified' +
6565
'|remark-.*' +
6666
'|mdast-.*' +
6767
'|micromark.*' +

package.json

+50-50
Original file line numberDiff line numberDiff line change
@@ -79,70 +79,70 @@
7979
"terser": "4.8.0"
8080
},
8181
"devDependencies": {
82-
"@changesets/cli": "^2.27.7",
83-
"@changesets/get-github-info": "^0.5.2",
82+
"@changesets/cli": "^2.27.11",
83+
"@changesets/get-github-info": "^0.6.0",
8484
"@dword-design/eslint-plugin-import-alias": "^5.1.1",
85-
"@ianvs/prettier-plugin-sort-imports": "^4.3.1",
86-
"@playwright/test": "1.47.0",
85+
"@ianvs/prettier-plugin-sort-imports": "^4.4.1",
86+
"@playwright/test": "1.49.1",
8787
"@roarr/cli": "^5.12.4",
88-
"@swc/core": "1.7.26",
89-
"@swc/jest": "0.2.36",
90-
"@tailwindcss/typography": "^0.5.15",
88+
"@swc/core": "1.10.9",
89+
"@swc/jest": "0.2.37",
90+
"@tailwindcss/typography": "^0.5.16",
9191
"@testing-library/dom": "10.4.0",
92-
"@testing-library/jest-dom": "6.5.0",
93-
"@testing-library/react": "^16.0.1",
92+
"@testing-library/jest-dom": "6.6.3",
93+
"@testing-library/react": "^16.2.0",
9494
"@testing-library/react-hooks": "^8.0.1",
95-
"@testing-library/user-event": "^14.5.2",
95+
"@testing-library/user-event": "^14.6.1",
9696
"@types/eslint": "^8.56.12",
9797
"@types/is-hotkey": "^0.1.10",
98-
"@types/jest": "^29.5.13",
99-
"@types/lodash": "^4.17.7",
100-
"@types/node": "^22.5.4",
101-
"@types/prismjs": "^1.26.4",
98+
"@types/jest": "^29.5.14",
99+
"@types/lodash": "^4.17.14",
100+
"@types/node": "^22.10.7",
101+
"@types/prismjs": "^1.26.5",
102102
"@types/raf": "^3.4.3",
103-
"@types/react": "^18.3.11",
104-
"@types/react-dom": "^18.3.1",
105-
"@types/validator": "^13.12.1",
106-
"@typescript-eslint/eslint-plugin": "^8.5.0",
107-
"@typescript-eslint/parser": "^8.5.0",
103+
"@types/react": "^18.3.18",
104+
"@types/react-dom": "^18.3.5",
105+
"@types/validator": "^13.12.2",
106+
"@typescript-eslint/eslint-plugin": "^8.21.0",
107+
"@typescript-eslint/parser": "^8.21.0",
108108
"app-root-path": "^3.1.0",
109109
"autoprefixer": "^10.4.20",
110110
"barrelsby": "^2.8.1",
111-
"concurrently": "^9.0.1",
111+
"concurrently": "^9.1.2",
112112
"cross-env": "^7.0.3",
113-
"dotenv": "^16.4.5",
114-
"eslint": "^8.57.0",
115-
"eslint-config-next": "15.0.3",
116-
"eslint-config-prettier": "^9.1.0",
117-
"eslint-config-turbo": "^2.1.2",
118-
"eslint-import-resolver-typescript": "^3.6.3",
119-
"eslint-plugin-boundaries": "^4.2.2",
113+
"dotenv": "^16.4.7",
114+
"eslint": "^8.57.1",
115+
"eslint-config-next": "15.1.6",
116+
"eslint-config-prettier": "^10.0.1",
117+
"eslint-config-turbo": "^2.3.3",
118+
"eslint-import-resolver-typescript": "^3.7.0",
119+
"eslint-plugin-boundaries": "^5.0.1",
120120
"eslint-plugin-chai-friendly": "^1.0.1",
121-
"eslint-plugin-cypress": "^3.5.0",
122-
"eslint-plugin-import": "^2.30.0",
123-
"eslint-plugin-jest": "^28.8.3",
124-
"eslint-plugin-jest-dom": "^5.4.0",
121+
"eslint-plugin-cypress": "^4.1.0",
122+
"eslint-plugin-import": "^2.31.0",
123+
"eslint-plugin-jest": "^28.11.0",
124+
"eslint-plugin-jest-dom": "^5.5.0",
125125
"eslint-plugin-jest-formatting": "^3.1.0",
126-
"eslint-plugin-jsx-a11y": "^6.10.0",
126+
"eslint-plugin-jsx-a11y": "^6.10.2",
127127
"eslint-plugin-mdx": "^3.1.5",
128128
"eslint-plugin-perfectionist": "^3.5.0",
129-
"eslint-plugin-playwright": "^1.6.2",
130-
"eslint-plugin-prettier": "^5.2.1",
131-
"eslint-plugin-promise": "^7.1.0",
132-
"eslint-plugin-react": "^7.36.1",
133-
"eslint-plugin-react-hooks": "^4.6.2",
134-
"eslint-plugin-regexp": "^2.6.0",
135-
"eslint-plugin-tailwindcss": "^3.17.5",
136-
"eslint-plugin-testing-library": "^6.3.0",
137-
"eslint-plugin-unicorn": "^55.0.0",
138-
"eslint-plugin-unused-imports": "^4.1.3",
129+
"eslint-plugin-playwright": "^2.1.0",
130+
"eslint-plugin-prettier": "^5.2.3",
131+
"eslint-plugin-promise": "^7.2.1",
132+
"eslint-plugin-react": "^7.37.4",
133+
"eslint-plugin-react-hooks": "^5.1.0",
134+
"eslint-plugin-regexp": "^2.7.0",
135+
"eslint-plugin-tailwindcss": "^3.18.0",
136+
"eslint-plugin-testing-library": "^7.1.1",
137+
"eslint-plugin-unicorn": "^56.0.1",
138+
"eslint-plugin-unused-imports": "^4.1.4",
139139
"jest": "29.7.0",
140140
"jest-environment-jsdom": "^29.7.0",
141141
"patch-package": "^8.0.0",
142-
"prettier": "^3.3.3",
143-
"prettier-plugin-jsdoc": "^1.3.0",
144-
"prettier-plugin-packagejson": "^2.5.2",
145-
"prettier-plugin-tailwindcss": "^0.6.6",
142+
"prettier": "^3.4.2",
143+
"prettier-plugin-jsdoc": "^1.3.2",
144+
"prettier-plugin-packagejson": "^2.5.8",
145+
"prettier-plugin-tailwindcss": "^0.6.10",
146146
"react": "^18.3.1",
147147
"react-dnd-test-backend": "^16.0.1",
148148
"react-dom": "^18.3.1",
@@ -151,12 +151,12 @@
151151
"rimraf": "^6.0.1",
152152
"shadcx": "workspace:^",
153153
"slate-test-utils": "1.3.2",
154-
"tailwindcss": "^3.4.11",
154+
"tailwindcss": "^3.4.17",
155155
"ts-jest": "^29.2.5",
156-
"tsup": "^8.2.4",
157-
"turbo": "^2.1.2",
156+
"tsup": "^8.3.5",
157+
"turbo": "^2.3.3",
158158
"turbowatch": "2.29.4",
159-
"typescript": "5.6.2"
159+
"typescript": "5.7.3"
160160
},
161161
"packageManager": "[email protected]",
162162
"engines": {

0 commit comments

Comments
 (0)