Skip to content

Commit 7275d4a

Browse files
committed
Bump deps & Version.
1 parent c65a38b commit 7275d4a

File tree

4 files changed

+1022
-849
lines changed

4 files changed

+1022
-849
lines changed

package.json

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nosferatu500/react-sortable-tree",
3-
"version": "4.0.0-beta.1",
3+
"version": "4.0.0-beta.2",
44
"description": "Drag-and-drop sortable component for nested data and hierarchies",
55
"main": "./index.js",
66
"types": "./index.d.ts",
@@ -126,49 +126,49 @@
126126
"prop-types": "^15.7.2",
127127
"react-dnd": "^14.0.4",
128128
"react-dnd-html5-backend": "^14.0.2",
129-
"react-virtuoso": "^2.2.1"
129+
"react-virtuoso": "^2.2.2"
130130
},
131131
"devDependencies": {
132-
"@babel/core": "^7.15.5",
133-
"@babel/eslint-parser": "^7.15.7",
132+
"@babel/core": "^7.15.8",
133+
"@babel/eslint-parser": "^7.15.8",
134134
"@babel/helper-module-imports": "^7.15.4",
135135
"@babel/plugin-transform-react-jsx": "^7.14.9",
136-
"@babel/preset-env": "^7.15.6",
136+
"@babel/preset-env": "^7.15.8",
137137
"@babel/types": "^7.15.6",
138-
"@nosferatu500/theme-file-explorer": "^3.0.6",
138+
"@nosferatu500/theme-file-explorer": "^3.0.9",
139139
"@rollup/plugin-babel": "^5.3.0",
140140
"@rollup/plugin-node-resolve": "^13.0.5",
141141
"@rollup/plugin-typescript": "^8.2.5",
142-
"@storybook/addon-storyshots": "^6.3.9",
143-
"@storybook/addons": "^6.3.9",
144-
"@storybook/react": "^6.3.9",
145-
"@storybook/theming": "^6.3.9",
146-
"@testing-library/react": "^12.1.1",
142+
"@storybook/addon-storyshots": "^6.3.11",
143+
"@storybook/addons": "^6.3.11",
144+
"@storybook/react": "^6.3.11",
145+
"@storybook/theming": "^6.3.11",
146+
"@testing-library/react": "^12.1.2",
147147
"@types/babel-plugin-macros": "^2.8.5",
148148
"@types/enzyme": "^3.10.9",
149149
"@types/jest": "^27.0.2",
150150
"@types/lodash.isequal": "^4.5.5",
151-
"@types/react": "^17.0.26",
151+
"@types/react": "^17.0.29",
152152
"@types/react-dom": "^17.0.9",
153153
"@types/react-test-renderer": "^17.0.1",
154-
"@typescript-eslint/eslint-plugin": "^4.32.0",
155-
"@typescript-eslint/parser": "^4.32.0",
154+
"@typescript-eslint/eslint-plugin": "^5.0.0",
155+
"@typescript-eslint/parser": "^5.0.0",
156156
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.3",
157157
"acorn-jsx": "^5.3.2",
158158
"babel-plugin-macros": "^3.1.0",
159159
"babel-plugin-tester": "^10.1.0",
160160
"enzyme": "^3.11.0",
161-
"esbuild": "^0.13.3",
162-
"eslint": "^7.32.0",
161+
"esbuild": "^0.13.6",
162+
"eslint": "^8.0.1",
163163
"eslint-config-prettier": "^8.3.0",
164-
"eslint-plugin-import": "^2.24.2",
165-
"eslint-plugin-jest": "^24.5.0",
164+
"eslint-plugin-import": "^2.25.2",
165+
"eslint-plugin-jest": "^25.0.5",
166166
"eslint-plugin-prettier": "^4.0.0",
167167
"eslint-plugin-react": "^7.26.1",
168-
"jest": "^27.2.4",
168+
"jest": "^27.2.5",
169169
"jest-enzyme": "^7.1.2",
170170
"json": "^11.0.0",
171-
"postcss": "^8.3.8",
171+
"postcss": "^8.3.9",
172172
"prettier": "^2.4.1",
173173
"react": "^17.0.2",
174174
"react-dnd-test-backend": "^14.0.1",
@@ -182,12 +182,12 @@
182182
"shx": "^0.3.3",
183183
"ts-jest": "^27.0.5",
184184
"tslib": "^2.3.1",
185-
"typescript": "^4.4.3"
185+
"typescript": "^4.4.4"
186186
},
187187
"peerDependencies": {
188-
"react": ">=17.0.0",
189-
"react-dnd": ">=14.0.0",
190-
"react-dom": ">=17.0.0"
188+
"react": ">=17.0.2",
189+
"react-dnd": ">=14.0.4",
190+
"react-dom": ">=17.0.2"
191191
},
192192
"browserslist": {
193193
"production": [

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function createESMConfig(input, output) {
6161
plugins: [
6262
nodeResolve({ extensions }),
6363
postcss({ extract: 'style.css' }),
64-
getEsbuild('node12'),
64+
getEsbuild('node14'),
6565
],
6666
}
6767
}

src/utils/classnames.ts

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,13 @@
88
// active && "class3"
99
// ); // returns -> class1 class3";
1010
//
11-
export const classnames = (...classes: string[]) => {
12-
// Use Boolean constructor as a filter callback
13-
// Allows for loose type truthy/falsey checks
14-
// Boolean("") === false;
15-
// Boolean(false) === false;
16-
// Boolean(undefined) === false;
17-
// Boolean(null) === false;
18-
// Boolean(0) === false;
19-
// Boolean("classname") === true;
20-
return classes.filter(Boolean).join(' ')
21-
}
11+
// Use Boolean constructor as a filter callback
12+
// Allows for loose type truthy/falsey checks
13+
// Boolean("") === false;
14+
// Boolean(false) === false;
15+
// Boolean(undefined) === false;
16+
// Boolean(null) === false;
17+
// Boolean(0) === false;
18+
// Boolean("classname") === true;
19+
export const classnames = (...classes: string[]) =>
20+
classes.filter(Boolean).join(' ')

0 commit comments

Comments
 (0)