This PR was automatically created by Snyk using the credentials of a real user.
Snyk has created this PR to upgrade history from 4.10.1 to 5.3.0.
![merge advice](https://app.snyk.io/badges/merge-advice/?package_manager=npm&package_name=history&from_version=4.10.1&to_version=5.3.0&pr_id=77f9b117-d8e7-46a7-a28a-b4f7339effe9&visibility=true&has_feature_flag=false)
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
*Warning:* This is a major version upgrade, and may be a breaking change.
- The recommended version is **18 versions** ahead of your current version.
- The recommended version was released **3 months ago**, on 2022-02-22.
Release notes Package name: history
</li>
<li>
<b>5.1.0</b> - <a href="https://snyk.io/redirect/github/remix-run/history/releases/tag/v5.1.0">2021-11-02</a></br><p>Because the prior 5.0.2 release removed the <code>State</code> type parameter from <code>Location</code>, 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.</p>
The State type export is also restored, so you shouldn't have issues with installing React Router v6.
</li>
<li>
<b>5.0.1</b> - <a href="https://snyk.io/redirect/github/remix-run/history/releases/tag/v5.0.1">2021-08-13</a></br><p>This patch release contains a <em>tiny</em> TypeScript update to use the built-in <code>Partial</code> utility for <code>PartialPath</code> and <code>PartialLocation</code>. We always love it when we can ship just a little less code!</p>
</li>
<li>
<b>5.0.0</b> - <a href="https://snyk.io/redirect/github/remix-run/history/releases/tag/v5.0.0">2020-06-12</a></br><p>Today we are very pleased to announce the stable release of history version 5!</p>
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.block API, 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 window objects)
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 HistoryLibrary so it doesn't conflict with window.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, and hashType APIs
Usage
Please refer to our installation guide for instructions about how to install the library.
You can install the v5 beta using the next tag: npm add history@next
Changes
In this release the core library was converted to TypeScript, and the type declaration files that are published with the npm package are derived from the source instead of being written by hand. This should make them both more accurate and more useful.
This PR was automatically created by Snyk using the credentials of a real user.
Snyk has created this PR to upgrade history from 4.10.1 to 5.3.0.
![merge advice](https://app.snyk.io/badges/merge-advice/?package_manager=npm&package_name=history&from_version=4.10.1&to_version=5.3.0&pr_id=77f9b117-d8e7-46a7-a28a-b4f7339effe9&visibility=true&has_feature_flag=false) :information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.*Warning:* This is a major version upgrade, and may be a breaking change. - The recommended version is **18 versions** ahead of your current version. - The recommended version was released **3 months ago**, on 2022-02-22.
Release notes
Package name: history
This release provides support for native ESM consumption of all exports.
State
(now set tounknown
which will require consumer type narrowing)PartialPath
(usePartial<Path>
instead)PartialLocation
(usePartial<Location>
instead)createPath
return value (#813)Full Changelog: v5.1.0...v5.2.0
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: v5.0.3...v5.1.0
location.state
type toany
and removed the generic onLocation
Full Changelog: v5.0.1...v5.0.2
Thanks to @ liuhanqu, @ hanquliu, @ chaance and @ mjackson for your contributions!
Overview
This version includes many enhancements and fixes a few important issues with the library.
New Features
location.state
history.block
API, with support for retrying transitions<script type=module>
userswindow
objects)Bugfixes
location.pathname
HistoryLibrary
so it doesn't conflict withwindow.History
Breaking Changes
pushState
)getUserConfirmation
,keyLength
, andhashType
APIsUsage
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!😀
You can install the v5 beta using the
next
tag:npm add history@next
Changes
In this release the core library was converted to TypeScript, and the type declaration files that are published with the npm package are derived from the source instead of being written by hand. This should make them both more accurate and more useful.
A migration guide will be available soon. For now, you can either browse around the docs on the
dev
branch or the tests.Enjoy!
Commit messages
Package name: history
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:![](https://api.segment.io/v1/pixel/track?data=eyJ3cml0ZUtleSI6InJyWmxZcEdHY2RyTHZsb0lYd0dUcVg4WkFRTnNCOUEwIiwiYW5vbnltb3VzSWQiOiI3N2Y5YjExNy1kOGU3LTQ2YTctYTI4YS1iNGY3MzM5ZWZmZTkiLCJldmVudCI6IlBSIHZpZXdlZCIsInByb3BlcnRpZXMiOnsicHJJZCI6Ijc3ZjliMTE3LWQ4ZTctNDZhNy1hMjhhLWI0ZjczMzllZmZlOSJ9fQ==)
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs