Releases: oedotme/generouted
Releases · oedotme/generouted
v1.20.0
Breaking changes - React Router integration ONLY
To avoid runtime errors due to React Router versions mismatch, it's now recommended to:
- Upgrade
react-router-dom
tov7+
- Replace
react-router-dom
package withreact-router
Here are the upgrade steps from the upgrade guide to v7 at React Router docs:
- Upgrade
react-router-dom
tov7+
npm install react-router-dom@latest
- Replace
react-router-dom
withreact-router
npm uninstall react-router-dom npm install react-router@latest
- Update imports
-import { useLocation } from 'react-router-dom' +import { useLocation } from 'react-router'Instead of manually updating imports, you can use this command. Make sure your git working tree is clean though so you can revert if it doesn't work as expected.
find ./path/to/src \( -name "*.tsx" -o -name "*.ts" -o -name "*.js" -o -name "*.jsx" \) -type f -exec sed -i '' 's|from "react-router-dom"|from "react-router"|g' {} +If you have GNU sed installed (most Linux distributions), use this command instead:
find ./path/to/src \( -name "*.tsx" -o -name "*.ts" -o -name "*.js" -o -name "*.jsx" \) -type f -exec sed -i 's|from "react-router-dom"|from "react-router"|g' {} +
Commits
- feat: replace
react-router-dom
withreact-router
0d314b0 by @oedotme - chore: update to
react-router-dom@7
c42a12b by @oedotme - chore: update packages 403b0fd by @oedotme
Changelog: v1.19.11...v1.20.0
v1.19.11
Commits
- chore: update module spacing and format f15b696 by @oedotme
- fix: prevent undefined module imports from parent routes (#193) d370467 by @denyncrawford
Changelog: v1.19.10...v1.19.11
v1.19.10
v1.19.9
Commits
- chore: update packages fdfb5d4 by @oedotme
- fix: typo overridden (#183) b8f2c65 by @parasbansal
Changelog: v1.19.8...v1.19.9
v1.19.8
Commits
- fix: ensure internal browser router is instantiated once (#182) 8faed5a by @ethanwu10 fixes #181
Changelog: v1.19.7...v1.19.8
v1.19.7
Commits
- chore: update packages 57b6697 by @oedotme
- fix: react browser router registration w/ custom usage edafb69 by @oedotme fixes #180
- chore: update packages a3fb166 by @oedotme
- chore: update packages b025ca5 by @oedotme
- docs: update example link (#176) 3dde75f by @henrikvilhelmberglund
- chore: update packages 7926bde by @oedotme
- chore: update badges a3b4971 by @oedotme
Changelog: v1.19.6...v1.19.7