Skip to content

Commit

Permalink
chore(release): 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tunnckoCore committed Oct 22, 2016
1 parent 606eb09 commit f29ee52
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,31 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

<a name="2.0.0"></a>
# [2.0.0](https://github.com/tunnckocore/koa-better-router/compare/v1.2.0...v2.0.0) (2016-10-22)


### Code Refactoring

* **.middleware:** remove passing arguments to `.middleware` method ([0b14fda](https://github.com/tunnckocore/koa-better-router/commit/0b14fda)), closes [#9](https://github.com/tunnckocore/koa-better-router/issues/9)
* **RouteObject:** remove `pathname` property, `route` make more sense ([6f9d90b](https://github.com/tunnckocore/koa-better-router/commit/6f9d90b))


### BREAKING CHANGES

* RouteObject: remove `routeObject.pathname`, use `routeObject.route` for just the route or

`routeObject.path` for the combination of `routeObject.prefix` plus `routeObject.route`. For example

route `/foo/bar` with prefix `/api` - `.route` is `/foo/bar` and `.path` is `/api/foo/bar`. Both

`pathname` and `route` were the same.
* .middleware: `.middleware` method no more accepts arguments - use `.legacyMiddleware` for

legacy; create a new router for another prefix then use `.extend` method for grouping the router.



<a name="1.2.0"></a>
# [1.2.0](https://github.com/tunnckocore/koa-better-router/compare/v1.1.0...v1.2.0) (2016-10-19)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "koa-better-router",
"version": "1.2.0",
"version": "2.0.0",
"description": "Stable and lovely router for [koa][], using [path-match][]. Foundation for building powerful, flexible and RESTful APIs easily.",
"repository": "tunnckoCore/koa-better-router",
"author": "Charlike Mike Reagent <@tunnckoCore> (http://www.tunnckocore.tk)",
Expand Down

0 comments on commit f29ee52

Please sign in to comment.