Skip to content

Commit

Permalink
fix: export Router Class (#277)
Browse files Browse the repository at this point in the history
<!-- 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 -->
  • Loading branch information
fengmk2 authored Dec 19, 2024
1 parent 09a0c39 commit acf5958
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"homepage": "https://github.com/eggjs/core#readme",
"dependencies": {
"@eggjs/koa": "^2.20.1",
"@eggjs/koa": "^2.20.2",
"@eggjs/router": "^3.0.5",
"@eggjs/utils": "^4.0.2",
"egg-logger": "^3.5.0",
Expand Down
1 change: 1 addition & 0 deletions src/egg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export type EggCoreInitOptions = Partial<EggCoreOptions>;
// export @eggjs/koa classes
export {
KoaRequest, KoaResponse, KoaContext, KoaApplication,
Router,
};

// export @eggjs/koa types
Expand Down

0 comments on commit acf5958

Please sign in to comment.