Skip to content

Commit

Permalink
breaking: drop react < 18 (#124)
Browse files Browse the repository at this point in the history
* breaking: drop react < 18

* update lock file

* update CHANGELOG

* fix comment
  • Loading branch information
dai-shi authored Apr 27, 2024
1 parent 73ac3ec commit 31fab06
Show file tree
Hide file tree
Showing 6 changed files with 404 additions and 1,810 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## [Unreleased]

### Removed
- Breaking: drop react < 18 support

## [1.4.4] - 2024-03-08
### Changed
- fix(react-native): metro without exports support #118
Expand Down
14 changes: 2 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"compile": "run-s compile:*",
"compile:dom": "microbundle build -f modern,umd --globals react=React,react-dom=ReactDOM --no-compress",
"postcompile:dom": "cp dist/index.modern.mjs dist/index.modern.js && cp dist/index.modern.mjs.map dist/index.modern.js.map",
"precompile:native": "mkdir src/native && cp src/index.ts src/native/index.ts && cp src/batchedUpdates.native.ts src/native/batchedUpdates.ts",
"precompile:native": "mkdir src/native && cp src/index.ts src/native/index.ts",
"compile:native": "microbundle build -f modern,umd -i ./src/native/index.ts -o ./dist/index.native.js --no-compress",
"postcompile:native": "rm -r src/native",
"test": "run-s eslint tsc-test jest",
Expand Down Expand Up @@ -84,17 +84,7 @@
"webpack-dev-server": "^5.0.2"
},
"peerDependencies": {
"react": ">=16.8.0",
"react-dom": "*",
"react-native": "*",
"react": ">=18.0.0",
"scheduler": ">=0.19.0"
},
"peerDependenciesMeta": {
"react-dom": {
"optional": true
},
"react-native": {
"optional": true
}
}
}
Loading

0 comments on commit 31fab06

Please sign in to comment.