Skip to content

Commit bbb1e7d

Browse files
committed
support React 19
1 parent 6a728c3 commit bbb1e7d

File tree

4 files changed

+36
-34
lines changed

4 files changed

+36
-34
lines changed

.storybook/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ const config: StorybookConfig = {
2121
getAbsolutePath("@storybook/addon-actions"),
2222
getAbsolutePath("@storybook/addon-webpack5-compiler-babel"),
2323
getAbsolutePath("@chromatic-com/storybook"),
24-
"@storybook/addon-webpack5-compiler-babel"
24+
"@storybook/addon-webpack5-compiler-babel",
25+
"@chromatic-com/storybook"
2526
],
2627

2728
framework: {

.storybook/preview.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ export const preview: Preview = {
66
},
77
tags: ['autodocs'],
88
}
9+
export const tags = ['autodocs'];

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Note: Support React-DND: 16, React: 17/18
1+
# Note: Support React-DND: 16, React: 17/18/19
22

33
# Note: Doesn't support React Strict mode
44

package.json

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@exytab/react-sortable-tree",
3-
"version": "0.6.1",
3+
"version": "0.7.0",
44
"description": "Drag-and-drop sortable component for nested data and hierarchies",
55
"homepage": "https://exytab.github.io/react-sortable-tree",
66
"main": "dist/index.js",
@@ -53,30 +53,30 @@
5353
"license": "MIT",
5454
"bugs": "https://github.com/exytab/react-sortable-tree/issues",
5555
"devDependencies": {
56-
"@babel/core": "^7.24.7",
57-
"@babel/eslint-parser": "^7.24.7",
58-
"@babel/preset-env": "^7.24.7",
59-
"@babel/preset-react": "^7.24.7",
60-
"@babel/preset-typescript": "^7.24.7",
61-
"@chromatic-com/storybook": "1",
62-
"@rollup/plugin-commonjs": "^25.0.7",
63-
"@rollup/plugin-node-resolve": "^15.2.3",
56+
"@babel/core": "^7.26.0",
57+
"@babel/eslint-parser": "^7.26.5",
58+
"@babel/preset-env": "^7.26.0",
59+
"@babel/preset-react": "^7.26.3",
60+
"@babel/preset-typescript": "^7.26.0",
61+
"@chromatic-com/storybook": "3",
62+
"@rollup/plugin-commonjs": "^28.0.2",
63+
"@rollup/plugin-node-resolve": "^16.0.0",
6464
"@rollup/plugin-terser": "^0.4.4",
65-
"@rollup/plugin-typescript": "^11.1.6",
66-
"@storybook/addon-actions": "^8.1.11",
67-
"@storybook/addon-essentials": "^8.1.11",
68-
"@storybook/addon-links": "^8.1.11",
69-
"@storybook/addon-styling-webpack": "1.0.0",
70-
"@storybook/addon-themes": "^8.1.11",
71-
"@storybook/addon-webpack5-compiler-babel": "3.0.3",
72-
"@storybook/react": "^8.1.11",
73-
"@storybook/react-webpack5": "^8.1.11",
65+
"@rollup/plugin-typescript": "^12.1.2",
66+
"@storybook/addon-actions": "^8.4.7",
67+
"@storybook/addon-essentials": "^8.4.7",
68+
"@storybook/addon-links": "^8.4.7",
69+
"@storybook/addon-styling-webpack": "1.0.1",
70+
"@storybook/addon-themes": "^8.4.7",
71+
"@storybook/addon-webpack5-compiler-babel": "3.0.5",
72+
"@storybook/react": "^8.4.7",
73+
"@storybook/react-webpack5": "^8.4.7",
7474
"@types/lodash.isequal": "^4.5.8",
75-
"@types/react": "^18.3.3",
76-
"@types/react-dom": "^18.3.0",
75+
"@types/react": "^19.0.5",
76+
"@types/react-dom": "^19.0.3",
7777
"@typescript-eslint/eslint-plugin": "^7.15.0",
7878
"@typescript-eslint/parser": "^7.15.0",
79-
"babel-loader": "^9.1.3",
79+
"babel-loader": "^9.2.1",
8080
"eslint": "^8.57.0",
8181
"eslint-config-airbnb": "^19.0.4",
8282
"eslint-config-airbnb-typescript": "^18.0.0",
@@ -91,31 +91,31 @@
9191
"eslint-plugin-sonarjs": "^0.25.1",
9292
"eslint-plugin-storybook": "^0.8.0",
9393
"eslint-plugin-unicorn": "^52.0.0",
94-
"gh-pages": "^6.1.1",
95-
"postcss": "^8.4.39",
96-
"prettier": "^3.3.2",
97-
"react": "^18.3.1",
94+
"gh-pages": "^6.3.0",
95+
"postcss": "^8.4.49",
96+
"prettier": "^3.4.2",
97+
"react": "^19.0.0",
9898
"react-dnd-touch-backend": "^16.0.1",
99-
"react-dom": "^18.3.1",
100-
"rollup": "^4.17.2",
99+
"react-dom": "^19.0.0",
100+
"rollup": "^4.30.1",
101101
"rollup-plugin-dts": "^6.1.1",
102102
"rollup-plugin-peer-deps-external": "^2.2.4",
103103
"rollup-plugin-postcss": "^4.0.2",
104-
"storybook": "^8.1.11",
105-
"typescript": "^5.5.3"
104+
"storybook": "^8.4.7",
105+
"typescript": "^5.7.3"
106106
},
107107
"peerDependencies": {
108-
"react": "^17.0.0 || ^18.0.0",
108+
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
109109
"react-dnd": "16.0.1",
110-
"react-dom": "^17.0.0 || ^18.0.0"
110+
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
111111
},
112112
"dependencies": {
113113
"@nosferatu500/react-dnd-scrollzone": "^3.0.0",
114114
"ajv-keywords": "^5.1.0",
115115
"lodash.isequal": "^4.5.0",
116116
"react-dnd": "16.0.1",
117117
"react-dnd-html5-backend": "^16.0.1",
118-
"react-virtuoso": "^4.7.11"
118+
"react-virtuoso": "^4.12.3"
119119
},
120120
"browserslist": {
121121
"production": [

0 commit comments

Comments
 (0)