@koa/router 15.3.1 → 15.3.2

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/README.md +1 -1
  2. package/package.json +8 -8
package/README.md CHANGED
@@ -473,7 +473,7 @@ router.get('/:category/:title', (ctx) => {
473
473
  **Optional parameters:**
474
474
 
475
475
  ```javascript
476
- router.get('/user{/:id}?', (ctx) => {
476
+ router.get('/user{/:id}', (ctx) => {
477
477
  // Matches both /user and /user/123
478
478
  ctx.body = { id: ctx.params.id || 'all' };
479
479
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@koa/router",
3
3
  "description": "Router middleware for Koa.",
4
- "version": "15.3.1",
4
+ "version": "15.3.2",
5
5
  "author": "Koa.js",
6
6
  "bugs": {
7
7
  "url": "https://github.com/koajs/router/issues",
@@ -31,26 +31,26 @@
31
31
  "path-to-regexp": "^8.3.0"
32
32
  },
33
33
  "devDependencies": {
34
- "@commitlint/cli": "^20.4.2",
35
- "@commitlint/config-conventional": "^20.4.2",
34
+ "@commitlint/cli": "^20.4.4",
35
+ "@commitlint/config-conventional": "^20.4.4",
36
36
  "@eslint/js": "^10.0.1",
37
37
  "@koa/bodyparser": "^6.1.0",
38
38
  "@types/debug": "^4.1.12",
39
39
  "@types/jsonwebtoken": "^9.0.10",
40
40
  "@types/koa": "^3.0.1",
41
- "@types/node": "^25.3.2",
41
+ "@types/node": "^25.5.0",
42
42
  "@types/supertest": "^7.2.0",
43
- "@typescript-eslint/eslint-plugin": "^8.56.1",
44
- "@typescript-eslint/parser": "^8.56.1",
43
+ "@typescript-eslint/eslint-plugin": "^8.57.0",
44
+ "@typescript-eslint/parser": "^8.57.0",
45
45
  "c8": "^11.0.0",
46
46
  "chalk": "^5.6.2",
47
- "eslint": "^10.0.2",
47
+ "eslint": "^10.0.3",
48
48
  "eslint-plugin-unicorn": "^63.0.0",
49
49
  "husky": "^9.1.7",
50
50
  "joi": "^18.0.2",
51
51
  "jsonwebtoken": "^9.0.3",
52
52
  "koa": "^3.1.2",
53
- "lint-staged": "^16.3.0",
53
+ "lint-staged": "^16.4.0",
54
54
  "np": "^11.0.2",
55
55
  "prettier": "^3.8.1",
56
56
  "rimraf": "^6.1.3",