Skip to content

Commit

Permalink
[optimize] upgrade to React 18 & React LeafLet 4
Browse files Browse the repository at this point in the history
  • Loading branch information
TechQuery committed Oct 30, 2023
1 parent 18aeb98 commit 19db1ff
Show file tree
Hide file tree
Showing 5 changed files with 143 additions and 140 deletions.
2 changes: 1 addition & 1 deletion ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Preview site: https://idea2app.github.io/OpenReactMap/preview/
#### Command

```shell
npm i open-react-map mobx mobx-react react@17 react-dom@17
npm i open-react-map mobx mobx-react react react-dom
```

#### `index.html`
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "open-react-map",
"version": "0.6.5",
"version": "0.7.0",
"license": "LGPL-3.0-or-later",
"author": "shiy2008@gmail.com",
"description": "Compatible Map component supports Geo services with Freedom or Open API, based on TypeScript, MobX & React.",
Expand Down Expand Up @@ -32,20 +32,20 @@
"koajax": "^0.9.4",
"leaflet": "^1.9.4",
"mobx-react-helper": "^0.2.7",
"react-leaflet": "^3.2.5",
"react-leaflet": "^4.2.1",
"web-utility": "^4.1.3"
},
"peerDependencies": {
"mobx": ">=4",
"mobx-react": ">=6",
"react": ">=16 <18",
"react-dom": ">=16 <18"
"react": ">=18",
"react-dom": ">=18"
},
"devDependencies": {
"@parcel/packager-ts": "~2.10.1",
"@parcel/transformer-typescript-types": "~2.10.1",
"@types/react": "^17.0.69",
"@types/react-dom": "^17.0.22",
"@types/react": "^18.2.33",
"@types/react-dom": "^18.2.14",
"husky": "^8.0.3",
"idea-react": "^1.0.0-rc.30",
"koapache": "^2.2.2",
Expand All @@ -56,9 +56,9 @@
"prettier": "^3.0.3",
"prismjs": "^1.29.0",
"process": "^0.11.10",
"react": "^17.0.2",
"react": "^18.2.0",
"react-bootstrap": "^2.9.1",
"react-dom": "^17.0.2",
"react-dom": "^18.2.0",
"typedoc": "^0.25.3",
"typedoc-plugin-mdn-links": "^3.1.0",
"typescript": "^5.2.2"
Expand Down

0 comments on commit 19db1ff

Please sign in to comment.