Skip to content

Commit acf5958

Browse files
authored
fix: export Router Class (#277)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced explicit export of the `Router` class from `@eggjs/router`. - Enhanced lifecycle management with new methods in the `EggCore` class. - **Bug Fixes** - Updated dependency version for `@eggjs/koa`, potentially addressing minor issues. - **Documentation** - Added deprecation warnings for certain methods in the `EggCore` class to guide users on best practices. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 09a0c39 commit acf5958

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
},
3636
"homepage": "https://github.com/eggjs/core#readme",
3737
"dependencies": {
38-
"@eggjs/koa": "^2.20.1",
38+
"@eggjs/koa": "^2.20.2",
3939
"@eggjs/router": "^3.0.5",
4040
"@eggjs/utils": "^4.0.2",
4141
"egg-logger": "^3.5.0",

src/egg.ts

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export type EggCoreInitOptions = Partial<EggCoreOptions>;
3737
// export @eggjs/koa classes
3838
export {
3939
KoaRequest, KoaResponse, KoaContext, KoaApplication,
40+
Router,
4041
};
4142

4243
// export @eggjs/koa types

0 commit comments

Comments
 (0)