All notable changes to this project will be documented in this file.
v2.0.0 - 2016-10-20
- Preserve
context.params
values from the parent route (#57) - Throws an error if no route found (#62)
- Remove obsolete
context.end()
method (#60) - Remove obsolete
match
alias forresolve
function (#59) - Do not throw an error for malformed URI params (#54)
- Handle
null
the same way asundefined
(#51) - Return
null
instead ofundefined
to signal no match (#51) - Support
context.next()
across multiple routes (#49) - Sequential execution of asynchronous routes (#49)
- Remove errors handler from core (#48)
- Drop support of node.js v5 and below (#47)
v1.2.2 - 2016-05-31
- Update UMD build to include missing dependencies (#33)
v1.2.1 - 2016-05-12
- Rename
match()
toresolve()
. E.g.import { resovle } from 'universal-router'
- Fix an issue when the router throws an exception when the top-level route doesn't have
children
property - Include CommonJS, Harmony Modules, ES5.1 and UMD builds into NPM package
- Include source maps into NPM package
v1.1.0-beta.4 - 2016-04-27
- Fix optional parameters, e.g.
/products/:id?
(#27)
v1.1.0-beta.3 - 2016-04-08
- Fix
matchRoute()
yielding the same route twice when it matches to both full and base URLs
v1.1.0-beta.2 - 2016-04-08
match(routes, { path, ...context)
now throws an error if a matching route was not found (BREAKING CHANGE)- If there is a top-level route with path equal to
/error
, it will be used for error handling by convention
v1.1.0-beta.1 - 2016-04-05
- Remove
Router
class androuter.dispatch()
method in favor ofmatch(routes, { path, ...context })
, whereroutes
is just a plain JavaScript objects containing the list of routes (BREAKING CHANGE) - Add
context.end()
method to be used from inside route actions - Update documentation and code samples
v1.0.0-beta.1 - 2016-03-25
- Rename
react-routing
touniversal-router
(BREAKING CHANGE) - Remove
router.on(path, ...actions)
in favor ofrouter.route(path, ...actions)
(BREAKING CHANGE) - Remove
new Router(on => { ... })
initialization option in favor ofnew Router(routes)
(BREAKING CHANGE) - Fix ESLint warnings; update unit tests
- Remove build tools related to project's homepage in favor of Easystatic
- Refactor project's homepage layout. See
docs/assets
. - Clean up
package.json
, update Babel and its plug-ins to the latest versions - Make the library use
babel-runtime
package instead of an inline runtime - Add CHANGELOG.md file with the notable changes to this project
v0.0.7 - 2015-12-13
- Small bug fixes and improvements