All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
2.1.5 (2020-10-09)
- router: errors introduces by 5a1983fafdba5eb18bef4b3c265029fdf5697589 (5feaa56)
- router: typescript errors (5a1983f)
2.1.4 (2020-08-12)
Note: Version bump only for package @profiscience/knockout-contrib-router
2.1.3 (2020-02-04)
- router: anchor tag descendant click regression (57b0828)
- router: correctly parse path when it contains base path (817a242)
2.1.2 (2019-12-12)
Note: Version bump only for package @profiscience/knockout-contrib-router
2.1.1 (2019-12-11)
- router: attach ctx.hash and ctx.search to all routers (1e67d41)
2.1.0 (2019-12-11)
- router: add ctx.search and ctx.hash (7186c3e)
2.0.10 (2019-12-06)
- router: allow querystring modification in beforeDispose middleware (2ae85e1)
2.0.9 (2019-11-27)
Note: Version bump only for package @profiscience/knockout-contrib-router
2.0.8 (2019-10-22)
Note: Version bump only for package @profiscience/knockout-contrib-router
2.0.7 (2019-08-07)
Note: Version bump only for package @profiscience/knockout-contrib-router
2.0.6 (2019-06-13)
Note: Version bump only for package @profiscience/knockout-contrib-router
2.0.5 (2019-06-04)
Note: Version bump only for package @profiscience/knockout-contrib-router
2.0.4 (2019-04-23)
- router: whoops. (86f238b)
2.0.3 (2019-04-23)
Note: Version bump only for package @profiscience/knockout-contrib-router
2.0.2 (2019-03-14)
- router: Don't preserve history.state on navigation (by default) (82a658a)
2.0.1 (2019-03-01)
- router: afterRender middleware not ran during redirect in nested intermediate routes (e79616f)
2.0.0 (2019-02-22)
Note: Version bump only for package @profiscience/knockout-contrib-router
2.0.0-rc.14 (2019-02-19)
- router: Dispose initiated child middleware during redirection (f3fa252)
2.0.0-rc.13 (2019-02-13)
- router: Bug w/ nested routing re: updated path-to-regexp version (53e5f03)
- router: Handle race-condition navigation (navigating while middleware is executing) (1bbaf3e)
2.0.0-rc.12 (2019-02-03)
Note: Version bump only for package @profiscience/knockout-contrib-router
2.0.0-rc.11 (2018-11-29)
- router/query: Add preserveQueryString configuration option to improve interop (09fe11e)
2.0.0-rc.10 (2018-10-22)
2.0.0-rc.9 (2018-10-19)
- router: Correctly handle ambiguous routing when route appears to be the same, but isn't (#141) (6c06eb3)
2.0.0-rc.8 (2018-10-04)
Note: Version bump only for package @profiscience/knockout-contrib-router
2.0.0-rc.7 (2018-08-16)
- router: Remove "sideEffects: false" from package.json (88a0533)
2.0.0-rc.6 (2018-08-08)
- router: Don't block navigation if same path but diff search/hash (3af60b8)
2.0.0-rc.5 (2018-08-08)
2.0.0-rc.4 (2018-07-20)
- Add babel-runtime dep, remove unnecessary tslib dep (9fca55a)
-
router: Add state option for Router.update(); Use popstate event's state on back navigation (6eedb5d), closes #107
<a name="2.0.0-rc.3"></a>
2.0.0-rc.3 (2018-07-13)
Note: Version bump only for package @profiscience/knockout-contrib-router
2.0.0-rc.2 (2018-07-03)
- router: Add back support for generator/iterator middleware (a1daf07)
2.0.0-rc.1 (2018-06-29)
- router: Add back support for generator/iterator middleware (a1daf07)
2.0.0-rc.0 (2018-06-28)
- router: Upgrade to KnockoutJS 3.5.0-rc (be14d20)
- router: Path binding partial matching (cdd026c), closes #64
- router: Use new descendantsComplete binding event to delay afterRender until all descendants c (ccc6b74)
- router: Focus middleware API (remove done callback syntax and generator middleware support) (800625c)
- router: Removed generator middleware API and
done
callback support for async in middleware and beforeNavigateCallbacks - router: Requires KnockoutJS 3.5.0-rc
- router: Require KnockoutJS 3.5.0-rc for TypeScript consumers
1.3.0 (2018-06-28)
- router: Support wildcard matching for activePath binding (and path binding) (f10f96a)
- Static
Router.isNavigating
observable for determining if any routers are navigating
- Clear
history.state
on Router.update, unlesspush: false
router.depth
property- Can now create and register route instances directly
- All Middleware types are now exported (SimpleMiddleware, LifecycleObjectMiddleware, GeneratorMiddleware)
- NormalizedRouteConfig type
- NormalizedRouteMap type
Router.usePlugin()
moved toRoute.usePlugin
- When using object shorthand, routes are initialized on registration instead of initialization
- Convert to monorepo
- Rename router component to
router
- Import is now
@profiscience/knockout-contrib-router
ko-component-router-view
class changed torouter-view
- Support chaining on router —
Router.setConfig(...).use(...).use(...).useRoutes(...)
- Began work on first-class TypeScript support (
noImplicitAny
, introduceIContext
) activePath
binding for applying a class to an element when a path is activectx.element
for accessing the routed view container
- Support transpiled (async) generator middleware
- Migrated build system from Fly to Taskr
- Migrated from Coveralls to Codecov
FROM https://github.com/Profiscience/ko-component-router
- Incorrect tslib dependency
- Improved nested routing UX (Building a Better Router)
- Ability to pass routes as component parameters to nested routers
- deeply nested child afterDispose middleware not being called
- querystring and hash being wiped out in child routes on popstate
- child afterDispose middleware not being called
- Navigating to same route w/ different params caused issues w/ middleware execution order — #164
- examples! 🍻
- Basepath not working correctly with hashbang (appended instead of prepended) — #156
- Landing on
/
in hashbang mode did not redirect to/#!/
- Router.initialized
- afterRender middleware in child routers being ran twice
- path binding not usable from parent component when wrapped — #157
- Navigating to url w/ query or hash wiped out said query or hash
- Router.setConfig
- Router.useRoutes
- router.$parents
- ctx.$parents
- router.$children
- ctx.$children
- Options to router.update were not being passed down to children when applicable
- Child afterRender middleware was not being ran when parent navigated away
with
option for router.update
- Router.head and Router.tail accessors
- Middleware execution order; beforeRender middleware is now called before preceding page's afterRender, preventing a blank page while async middleware is executing
- IE9-11 pathname parsing #132