@koa/router 11.0.1 → 12.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/layer.js +1 -1
  2. package/package.json +1 -1
package/lib/layer.js CHANGED
@@ -119,7 +119,7 @@ Layer.prototype.url = function (params, options) {
119
119
  }
120
120
  }
121
121
 
122
- const toPath = compile(url, options);
122
+ const toPath = compile(url, { encode: encodeURIComponent, ...options });
123
123
  let replaced;
124
124
 
125
125
  const tokens = parse(url);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@koa/router",
3
3
  "description": "Router middleware for koa. Maintained by Forward Email and Lad.",
4
- "version": "11.0.1",
4
+ "version": "12.0.0",
5
5
  "author": "Alex Mingoia <talk@alexmingoia.com>",
6
6
  "bugs": {
7
7
  "url": "https://github.com/koajs/router/issues",