All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning. This change log follows the format documented in Keep a CHANGELOG.
- Fixed how the element top is calculated when scrolling to it by setting hash.
-
Added
replaced
property to thelanding
argument to indicate that the state must be replaced istead of pushed. -
Added ability to pass
landing
argument toredirect
function.
- Moved
react
andpreact
from peer to regular dependencies.
- BREAKING: Stopped triggering
beforeunload
when redirecting, unlessunloading: true
is present in thelanding
argument.
-
Added
unloading
property (defaults totrue
) to thelanding
argument. -
Added ability to pass
landing
argument toredirect
function.
- Applied changes made in v1.2.1 but accidentally canceled by v1.3.0.
- Made it work in the Node.js environment.
- Added support for
beforeunload
event when performing navigation.
- Fixed
hash
beingundefined
.
-
Added
landing
property to the location type that contains information on how the app gets landed at the location, such asredirected
. -
Added
redirect
function to the router that automatically setsredirected: true
to thelanding
argument.
- Made hash always present in the location
- Fixed
route
's path argument type definition
- Made
route
accept string - Made
Path
generic inroute
more specific, so it would warn if you the path is of a wrong type
Initial release