Update dependency history to v5
This PR contains the following updates:
| Package | Change | Age | Confidence |
|---|---|---|---|
| history | 4.10.1 -> 5.3.0 |
Release Notes
remix-run/history (history)
v5.3.0
This release provides support for native ESM consumption of all exports.
v5.2.0
🐛 Bug fixes
- Fixed a few type declarations and deprecated the following types:
State(now set tounknownwhich will require consumer type narrowing)PartialPath(usePartial<Path>instead)PartialLocation(usePartial<Location>instead)
- Fixed a regression related to the
createPathreturn value (#813)
✨ Features
- We now use statically analyzable CJS exports. This enables named imports in Node ESM scripts (See the commit).
Full Changelog: https://github.com/remix-run/history/compare/v5.1.0...v5.2.0
v5.1.0
Because the prior 5.0.2 release removed the State type parameter from Location, this was technically a breaking change. To correct for this, I'm bumping this as a minor release. It won't affect runtime code, but it may affect your development experience and tests if you were using that parameter.
The State type export is also restored, so you shouldn't have issues with installing React Router v6.
Oh, by the way, did you hear we released React Router v6?
Full Changelog: https://github.com/remix-run/history/compare/v5.0.3...v5.1.0
v5.0.3
Fixed parsePath adding incorrectly adding search
v5.0.2
Just a couple fixes:
- Fixed search params persisting on redirects
- Changed the
location.statetype toanyand removed the generic onLocation
Full Changelog: https://github.com/remix-run/history/compare/v5.0.1...v5.0.2
v5.0.1
This patch release contains a tiny TypeScript update to use the built-in Partial utility for PartialPath and PartialLocation. We always love it when we can ship just a little less code!
🙏 Credits
Thanks to @liuhanqu, @hanquliu, @chaance and @mjackson for your contributions!
v5.0.0
Today we are very pleased to announce the stable release of history version 5!
Overview
This version includes many enhancements and fixes a few important issues with the library.
New Features
- Hash history now has support for
location.state - Better
history.blockAPI, with support for retrying transitions - Full TypeScript declarations and IntelliSense docs
- Adds development and production builds for
<script type=module>users - Both browser and hash history have support for iframes (custom
windowobjects) - About 50% smaller than v4 (and no dependencies)
Bugfixes
- Fixed some long-standing encoding issues with
location.pathname - Removed unfixable warnings about pushing the same path in hash history
- Renamed browser global to
HistoryLibraryso it doesn't conflict withwindow.History
Breaking Changes
- Removed support for browsers that do not support the HTML5 history API (no
pushState) - Removed relative pathname support in hash history and memory history
- Removed
getUserConfirmation,keyLength, andhashTypeAPIs
Usage
Please refer to our installation guide for instructions about how to install the library.
There is also a getting started guide as well as a complete API reference in the docs folder.
We are very excited about this release, especially because it will serve as the foundation for the upcoming release of React Router version 6.
Thank you for your support. Enjoy! 😀
Configuration
📅 Schedule: Branch creation - Between 12:00 AM and 03:59 AM, only on Monday ( * 0-3 * * 1 ) (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.
@beatrice-acasandrei this is another upgrade that is failing on perfherder specific tests- passing it over to your team to look into
@jmaher There's a compatibility issue with this version of the history package - history v5 is only compatible with react-router-dom v6, so I think this update needs to be included in the upgrade of react-router-dom to v6 (https://github.com/mozilla/treeherder/pull/7683).