NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #3005 most downloaded on npm
Manage session history with JavaScript
Last release 5 years ago
no release in 18 months
Ships unpredictably
gaps range from 2 weeks to 1.2 years
Rarely documented
notes for 10 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
14 years old
101 releases · first in 2012
This release provides support for native ESM consumption of all exports.
This release provides support for native ESM consumption of all exports.
Nothing published for this version
Fixed a few type declarations and deprecated the following types:
State (now set to unknown which will require consumer type narrowing)PartialPath (use Partial<Path> instead)PartialLocation (use Partial<Location> instead)createPath return value (#813)Full Changelog: https://github.com/remix-run/history/compare/v5.1.0...v5.2.0
One column per quarter.
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 bumpi…
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
Fixed parsePath adding incorrectly adding search
Fixed parsePath adding incorrectly adding search
Fixed search params persisting on redirects
Just a couple fixes:
location.state type to any and removed the generic on LocationFull Changelog: https://github.com/remix-run/history/compare/v5.0.1...v5.0.2
ryanflorence committed Nov 1, 2021
Configuration menu
View commit details
Copy full SHA for ed674b5
Browse repository at this point
Copy the full SHA
ed674b5 View commit details
Browse the repository at this point in the history
Loading
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
This patch release contains a *tiny* TypeScript update to use the built-in Partial utility for PartialPath and PartialLocation. We always love it when
Today we are very pleased to announce the stable release of history version 5!
Today we are very pleased to announce the stable release of history version 5!
This version includes many enhancements and fixes a few important issues with the library.
location.statehistory.block API, with support for retrying transitions<script type=module> userswindow objects)location.pathnameHistoryLibrary so it doesn't conflict with window.HistorypushState)getUserConfirmation, keyLength, and hashType APIsPlease 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! 😀
Nothing published for this version
You can track v5 beta progress in #751
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!
Nothing published for this version
Nothing published for this version
You can track v5 beta progress in #751
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!
You can track v5 beta progress in #751
You can track v5 beta progress in #751
You can install the v5 beta using the next tag: npm add history@next
Improvements from v5.0.0-beta.3:
parsePath and createPath helper functions for dealing with pathshistory.createHrefthrow) in devA migration guide will be available soon. For now, you can either browse around the docs on the dev branch or the tests.
Enjoy!
You can track v5 beta progress in #751
You can track v5 beta progress in #751
You can install the v5 beta using the next tag: npm add history@next
Improvements from v5.0.0-beta.2:
<script type=module> usersNow you can:
<script type="module">
import { createBrowserHistory } from 'https://unpkg.com/history@next/history.production.min.js';
let history = createBrowserHistory();
// And away you go!
</script>
A migration guide will be available soon. For now, you can either browse around the docs on the dev branch or the tests.
Enjoy!
You can track v5 beta progress in #751
You can track v5 beta progress in #751
You can install the v5 beta using the next tag: npm add history@next
Improvements from v5.0.0-beta.1:
history/browser, history/hash, and history/memoryThe singleton instances for browser and hash history are very convenient:
import history from 'history/browser';
// And away you go!
Unless we find any major bugs in this release, it will probably be the last beta before v5 final.
A migration guide will be available soon. For now, you can either browse around the docs on the dev branch or the tests.
Enjoy!
You can track v5 beta progress in #751
You can track v5 beta progress in #751
You can install the v5 beta using the next tag: npm add history@next
Improvements on v5.0.0-beta.0:
window.HistoryLibrary does not conflict with window.HistoryA migration guide will be available soon. For now, you can either browse around the docs on the dev branch or the tests.
Enjoy!
You can track v5 beta progress in #751
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:
Removed features:
A migration guide will be available soon. For now, you can either browse around the docs on the dev branch or the tests.
Enjoy!
Fixes some issues with using hash history on a page with a tag (#577, #578)
<base> tag (#577, #578)Allows basename URL prefixes with special regex characters (#566, #544)
basename URL prefixes with special regex characters (#566, #544)…and production environments. This is not a breaking change, since we still support old-style require('history/createBrowserHistory') statements for no…
The main change in this release is pre-bundled single-file builds for both development and production environments. This is not a breaking change, since we still support old-style require('history/createBrowserHistory') statements for now. However, these are deprecated in favor of importing/requireing from the main module.
Please see the release notes for 4.98.0-beta.0 for more info.
Nothing published for this version
In this release we are deprecating support for
In 4.8.0 we will ship a single bundle for each module format (CJS, ESM, and UMD) using Rollup.
In this release we are deprecating support for
import createHistory from "history/createMemoryHistory";
// and
var createHistory = require('history/createMemoryHistory');
Instead, use:
import { createMemoryHistory as createHistory } from "history";
// and
var createHistory = require("history").createMemoryHistory;
together with a bundler that supports tree-shaking (Rollup or webpack 4 in production mode) to get your bundle sizes down.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →