Skip to content

Commit 06c386d

Browse files
committed
Update dependencies and remove default exports in preact and react packages
Closes #230
1 parent 7daa8fc commit 06c386d

File tree

9 files changed

+1790
-1884
lines changed

9 files changed

+1790
-1884
lines changed

package.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,31 +18,31 @@
1818
"release:patch": "lerna version patch"
1919
},
2020
"devDependencies": {
21-
"@eslint/js": "9.15.0",
22-
"@preact/preset-vite": "2.9.1",
23-
"@types/node": "22.9.0",
24-
"@types/react": "18.3.12",
25-
"@types/react-dom": "18.3.1",
26-
"@typescript-eslint/eslint-plugin": "8.15.0",
27-
"@typescript-eslint/parser": "8.15.0",
28-
"@vitejs/plugin-react": "4.3.3",
29-
"@vitejs/plugin-vue": "5.2.0",
21+
"@eslint/js": "9.17.0",
22+
"@preact/preset-vite": "2.9.3",
23+
"@types/node": "22.10.5",
24+
"@types/react": "19.0.2",
25+
"@types/react-dom": "19.0.2",
26+
"@typescript-eslint/eslint-plugin": "8.19.0",
27+
"@typescript-eslint/parser": "8.19.0",
28+
"@vitejs/plugin-react": "4.3.4",
29+
"@vitejs/plugin-vue": "5.2.1",
3030
"@vue/compiler-sfc": "3.5.13",
31-
"@vue/eslint-config-typescript": "14.1.3",
32-
"eslint": "9.15.0",
31+
"@vue/eslint-config-typescript": "14.2.0",
32+
"eslint": "9.17.0",
3333
"eslint-plugin-prefer-arrow-functions": "3.4.1",
34-
"eslint-plugin-react": "7.37.2",
35-
"eslint-plugin-vue": "9.31.0",
34+
"eslint-plugin-react": "7.37.3",
35+
"eslint-plugin-vue": "9.32.0",
3636
"lerna": "8.1.9",
37-
"preact": "10.24.3",
38-
"react": "18.3.1",
39-
"react-dom": "18.3.1",
40-
"typescript": "5.6.3",
41-
"typescript-eslint": "8.15.0",
42-
"vite": "5.4.11",
37+
"preact": "10.25.4",
38+
"react": "19.0.0",
39+
"react-dom": "19.0.0",
40+
"typescript": "5.7.2",
41+
"typescript-eslint": "8.19.0",
42+
"vite": "6.0.7",
4343
"vite-plugin-banner": "0.8.0",
44-
"vite-plugin-dts": "4.3.0",
44+
"vite-plugin-dts": "4.4.0",
4545
"vue": "3.5.13",
46-
"vue-tsc": "2.1.10"
46+
"vue-tsc": "2.2.0"
4747
}
4848
}

packages/preact/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ If you don't care about text-selection, add the following to the container where
8484
> They're a one-to-one mapping of the original options found in the [vanilla](../vanilla#configuration) version!
8585
8686
```tsx
87-
import SelectionArea, {SelectionEvent} from '@viselect/preact';
87+
import {SelectionArea, SelectionEvent} from '@viselect/preact';
8888
import {FunctionalComponent} from 'preact';
8989
import {useState} from 'preact/hooks';
9090

packages/preact/demo/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {render} from 'preact';
22
import {useState} from 'preact/hooks';
3-
import SelectionArea, {SelectionEvent} from '../src';
3+
import {SelectionArea, SelectionEvent} from '../src';
44
import './index.css';
55

66
const SelectableArea = ({boxes, offset, className}: {

packages/preact/src/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import {SelectionArea} from './SelectionArea';
2-
export {useSelection} from './SelectionArea';
1+
export * from './SelectionArea';
32
export {default as VanillaSelectionArea} from '@viselect/vanilla';
43
export * from '@viselect/vanilla';
5-
export default SelectionArea;

packages/react/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ If you don't care about text-selection, add the following to the container where
8787
> They're a one-to-one mapping of the original options found in the [vanilla](../vanilla#configuration) version!
8888
8989
```tsx
90-
import SelectionArea, {SelectionEvent} from '@viselect/react';
90+
import {SelectionArea, SelectionEvent} from '@viselect/react';
9191
import React, {FunctionComponent, useState} from 'react';
9292

9393
const App: FunctionComponent = () => {

packages/react/demo/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, {useState} from 'react';
22
import {createRoot} from 'react-dom/client';
3-
import SelectionArea, {SelectionEvent} from '../src';
3+
import {SelectionArea, SelectionEvent} from '../src';
44
import './index.css';
55

66
const SelectableArea = ({boxes, offset, className}: {

packages/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"ui"
3737
],
3838
"peerDependencies": {
39-
"react": ">=17.0.2"
39+
"react": ">=19.0.0"
4040
},
4141
"dependencies": {
4242
"@viselect/vanilla": "workspace:*"

packages/react/src/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import {SelectionArea} from './SelectionArea';
2-
export {useSelection} from './SelectionArea';
1+
export * from './SelectionArea';
32
export {default as VanillaSelectionArea} from '@viselect/vanilla';
43
export * from '@viselect/vanilla';
5-
export default SelectionArea;

0 commit comments

Comments
 (0)