Skip to content

Commit ac977e3

Browse files
committed
[optimize] MobX 6 & React 18 compatibility
[fix] Dependency Badge based on Libraries.io
1 parent 04e618e commit ac977e3

6 files changed

Lines changed: 1900 additions & 1481 deletions

File tree

React/ReadMe.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
Lightweight **Rich Text Editor** based on [Edkit][1], [React][2] & [Bootstrap][3]
44

5-
[![NPM](https://nodei.co/npm/react-bootstrap-editor.png?downloads=true&downloadRank=true&stars=true)][4]
5+
[![NPM Dependency](https://img.shields.io/librariesio/release/npm/react-bootstrap-editor)][4]
6+
7+
[![NPM](https://nodei.co/npm/react-bootstrap-editor.png?downloads=true&downloadRank=true&stars=true)][5]
68

79
## Demo
810

@@ -59,4 +61,5 @@ export class PostEdit extends PureComponent {
5961
[1]: https://github.com/idea2app/Edkit/
6062
[2]: https://reactjs.org/
6163
[3]: https://getbootstrap.com/
62-
[4]: https://nodei.co/npm/react-bootstrap-editor/
64+
[4]: https://libraries.io/npm/react-bootstrap-editor
65+
[5]: https://nodei.co/npm/react-bootstrap-editor/

React/package.json

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-bootstrap-editor",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"license": "LGPL-3.0",
55
"author": "shiy2008@gmail.com",
66
"contributors": [
@@ -24,25 +24,32 @@
2424
"source": "source/index.ts",
2525
"types": "dist/index.d.ts",
2626
"dependencies": {
27-
"@swc/helpers": "^0.4.14",
28-
"edkit": "^1.0.0",
29-
"mobx": "^5.15.7",
30-
"mobx-react": "^6.3.1",
31-
"web-utility": "^4.0.0"
27+
"@swc/helpers": "^0.5.1",
28+
"edkit": "^1.0.1",
29+
"mobx": ">=4",
30+
"mobx-react": ">=6",
31+
"web-utility": "^4.1.0"
3232
},
3333
"peerDependencies": {
3434
"react": ">=16",
3535
"react-dom": ">=16"
3636
},
3737
"devDependencies": {
38-
"@types/react": "^17.0.62",
39-
"@types/react-dom": "^17.0.20",
40-
"parcel": "~2.8.3",
41-
"react": "^17.0.2",
42-
"react-dom": "^17.0.2",
43-
"typescript": "~5.1.3"
38+
"@parcel/packager-ts": "2.9.3",
39+
"@parcel/transformer-typescript-types": "2.9.3",
40+
"@types/react": "^18.2.20",
41+
"@types/react-dom": "^18.2.7",
42+
"parcel": "~2.9.3",
43+
"react": "^18.2.0",
44+
"react-dom": "^18.2.0",
45+
"typescript": "~5.1.6"
4446
},
4547
"browserslist": "> 0.5%, last 2 versions, not dead, IE 11",
48+
"targets": {
49+
"main": {
50+
"optimize": true
51+
}
52+
},
4653
"scripts": {
4754
"start": "cd test/ && parcel index.html --open",
4855
"build": "rm -rf dist/ && parcel build",

0 commit comments

Comments
 (0)