Releases: eggjs/router
Releases · eggjs/router
v3.0.5
v3.0.4
v3.0.3
v3.0.2
v3.0.1
v3.0.0
3.0.0 (2024-06-11)
⚠ BREAKING CHANGES
- drop Node.js < 18.19.0 support
- Drop generator function support
- Drop Node.js < 18.19.0 support
Summary by CodeRabbit
-
New Features
-
Introduced
EggRouter
class for defining RESTful routes and handling
HTTP verbs. -
Added new utility functions and type definitions to support enhanced
routing and middleware functionalities. -
Bug Fixes
-
Updated test cases to ensure compatibility with new routing and
middleware functionalities. -
Documentation
-
Updated examples in the
README.md
to reflect TypeScript syntax and
ES module imports. -
Mentioned breaking changes for version 3, including dropping support
for generator functions and Node.js versions below 18.7.0. -
Breaking Changes
- Dropped support for generator functions.
- Dropped support for Node.js versions below 18.7.0.
-
Chores
- Updated Node.js versions in the GitHub Actions workflow.
- Modified
.gitignore
to include additional patterns. - Updated dependencies and dev dependencies in
package.json
.
-
Added new scripts for linting, testing, and pre-publish actions in
package.json
.- Introduced a new
tsconfig.json
for strict TypeScript settings.
- Introduced a new
Features
This release is also available on:
v2.0.1
2.0.1 (2024-06-08)
Features
- add egg-router (b318dd5)
- add routerName for context. (311136e)
- add routerPath to respond to routerName (#2) (1a0036a)
Bug Fixes
- add missing dependencies koa-convert (b3db7b4)
- allowedMethods should be ctx.method not this.method (09d6969)
- ensure ctx._matchedRoute and ctx._matchedRouteName to be correct (#7) (2c44ec0)
- move router.url() query docs example to right place (a4dd9a5)
- only support node@8 (c280336)
- readme: return next() (db9c3e4)
- update license (7a887a2)