Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Releases: oaijs/koa-oai-router

v2.0.3

09 Oct 13:10
9250112
Compare
Choose a tag to compare

Update dependencies

v2.0.2

23 Jun 04:04
6f11e25
Compare
Choose a tag to compare

Fix issue #43

v2.0.1

21 Apr 03:58
575486e
Compare
Choose a tag to compare

Sorry, 1.x can not be easily upgraded to 2.0 for the sake of simplicity, elegance, maintainability, and extendibility. I want to build a good project, to solve some of the problems we actually encounter better.

If you are using the following features, please migrate as the document says.

Features

  • Built-in Swagger-UI, easy to view and debug
  • Support OpenAPI/Swagger2.0 specification with yaml or json file
  • More friendly and convenient api doc splitting solution
  • Plugin system. Middleware loader, form validator, response handler, error handler supported as plugin
  • Inherit from [Koa-Router][koa-router], maintain the original function, features and performance

Migration

If you are not a 1.x user, please skip this section directly.
If you are a 1.x user and want to upgrade to version 2.0, I'm sorry that you will not upgrade to version 2.0 easily. Please read this Migration carefully and follow the operation manual to upgrade.

v2.0.0-alpha.6

03 Mar 01:44
Compare
Choose a tag to compare
v2.0.0-alpha.6 Pre-release
Pre-release

Feat: add apiCooker option to handle api before register route

v2.0.0-alpha.5

22 Feb 02:00
Compare
Choose a tag to compare
v2.0.0-alpha.5 Pre-release
Pre-release

Feat: swagger-ui showExtensions=true defaultModelsExpandDepth=0

v2.0.0-alpha.4

05 Feb 09:24
Compare
Choose a tag to compare
v2.0.0-alpha.4 Pre-release
Pre-release

Refactor: Parse and mount route when routes was called.

To avoid plugin not mount finish, but the route was mounted.

v2.0.0-alpha.3

05 Feb 09:16
Compare
Choose a tag to compare
v2.0.0-alpha.3 Pre-release
Pre-release

Refactor: Plugin system change to class style and add support asynchronous function init, before, handler, after.

v2.0.0-alpha.2

29 Jan 12:26
Compare
Choose a tag to compare
v2.0.0-alpha.2 Pre-release
Pre-release

Fix: remove limit of plugin arguments types
Chore: remove lib directory

v2.0.0-alpha.1

28 Jan 05:28
Compare
Choose a tag to compare
v2.0.0-alpha.1 Pre-release
Pre-release

Big changes

  • New usage
  • New plugin system
  • New swagger-ui

Not support smooth upgrade, must migrate

v1.1.2

23 Jan 15:06
Compare
Choose a tag to compare

Enables support for path parameters with hyphens in them.