File tree Expand file tree Collapse file tree 5 files changed +16
-10
lines changed Expand file tree Collapse file tree 5 files changed +16
-10
lines changed Original file line number Diff line number Diff line change
1
+
2
+ # 0.6.0 - 6 Aug 2023
3
+ - Add support for Elysia 0.6
4
+
5
+
6
+ # 0.6.0-rc.0 - 6 Aug 2023
7
+ - Add support for Elysia 0.6
1
8
# 0.5.0 - 15 May 2023
2
9
- Add support for Elysia 0.5
3
10
- Add CommonJS support
Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ import { Elysia } from 'elysia'
2
2
import { swagger } from '../src/index'
3
3
import { plugin } from './plugin'
4
4
5
- const app = new Elysia ( )
5
+ const app = new Elysia ( {
6
+ aot : false
7
+ } )
6
8
. use (
7
9
swagger ( {
8
10
documentation : {
@@ -21,3 +23,5 @@ const app = new Elysia()
21
23
)
22
24
. use ( plugin )
23
25
. listen ( 8080 )
26
+
27
+ console . log ( app . routes )
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @elysiajs/swagger" ,
3
- "version" : " 0.6.0-beta.0 " ,
3
+ "version" : " 0.6.0" ,
4
4
"description" : " Plugin for Elysia to auto-generate Swagger page" ,
5
5
"author" : {
6
6
"name" : " saltyAom" ,
28
28
"bugs" : " https://github.com/elysiajs/elysia-swagger/issues" ,
29
29
"license" : " MIT" ,
30
30
"scripts" : {
31
- "dev" : " bun run --hot example/index.ts" ,
31
+ "dev" : " bun run --watch example/index.ts" ,
32
32
"test" : " bun wiptest && npm run test:node" ,
33
33
"test:node" : " npm install --prefix ./test/node/cjs/ && npm install --prefix ./test/node/esm/ && node ./test/node/cjs/index.js && node ./test/node/esm/index.js" ,
34
34
"build" : " rimraf dist && tsc --project tsconfig.esm.json && tsc --project tsconfig.cjs.json" ,
35
35
"release" : " npm run build && npm run test && npm publish --access public"
36
36
},
37
37
"peerDependencies" : {
38
- "elysia" : " >= 0.6.0-alpha.3 "
38
+ "elysia" : " >= 0.6.0"
39
39
},
40
40
"devDependencies" : {
41
41
"@types/node" : " ^20.1.4" ,
42
42
"bun-types" : " ^0.7.0" ,
43
- "elysia" : " ^ 0.6.0-alpha.4 " ,
43
+ "elysia" : " 0.6.8 " ,
44
44
"eslint" : " ^8.40.0" ,
45
45
"rimraf" : " 4.3" ,
46
46
"typescript" : " ^5.0.4"
Original file line number Diff line number Diff line change @@ -116,11 +116,6 @@ export const swagger =
116
116
schemas : app . meta . defs
117
117
}
118
118
} satisfies OpenAPIV3 . Document
119
- } ,
120
- {
121
- config : {
122
- allowMeta : true
123
- }
124
119
}
125
120
)
126
121
You can’t perform that action at this time.
0 commit comments