You can track v5 beta progress in #751
You can install the v5 beta using the next
tag: npm add history@next
Lots of updates in this release! Here's a quick summary:
New features:
- Remove legacy browser support (pre pushState)
- Add state to hash history
- Use custom window when creating history objects
- Better history.block API w/ tx.retry for retrying transitions
- Fix location.pathname encoding issues
- About 50% smaller
- No dependencies
Removed features:
- Removes basename support
- Removes relative pathname support in hash + memory histories
- Removes getUserConfirmation
- Removes keyLength
- Removes hashType
A migration guide will be available soon. For now, you can either browse around the docs on the dev
branch or the tests.
Enjoy!