Releases: remix-run/history
v5.3.0
v5.3.0-pre.0
v5.3.0-pre.0
v5.2.0
π Bug fixes
- Fixed a few type declarations and deprecated the following types:
State
(now set tounknown
which will require consumer type narrowing)PartialPath
(usePartial<Path>
instead)PartialLocation
(usePartial<Location>
instead)
- Fixed a regression related to the
createPath
return value (#813)
β¨ Features
- We now use statically analyzable CJS exports. This enables named imports in Node ESM scripts (See the commit).
Full Changelog: 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: 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.state
type toany
and removed the generic onLocation
Full Changelog: v5.0.1...v5.0.2
v5.0.1
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.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 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
, andhashType
APIs
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! π
v5.0.0-beta.8
You can track v5 beta progress in #751
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!
v5.0.0-beta.5
You can track v5 beta progress in #751
You can install the v5 beta using the next
tag: npm add history@next
Changes from 5.0.0-beta.4:
The main feature of this release is we've added some official TypeScript types, so you don't have to use @types/history
anymore in v5! Instead, just use our built-in types.
The only other thing in this release is a small change to some of the environment-specific bundles. We've removed the history/memory
bundle and also removed the createHistory
methods from the history/browser
and history/hash
bundles. history/browser
and history/hash
still export singletons. Instead of history/memory
, just use the createMemoryHistory
function from the main bundle.
A migration guide will be available soon. For now, you can either browse around the docs on the dev
branch or the tests.
Enjoy!