Skip to content

Commit ed03160

Browse files
committed
📘 chore: chore
1 parent 642375d commit ed03160

File tree

5 files changed

+16
-10
lines changed

5 files changed

+16
-10
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
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
18
# 0.5.0 - 15 May 2023
29
- Add support for Elysia 0.5
310
- Add CommonJS support

bun.lockb

-72.9 KB
Binary file not shown.

example/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ import { Elysia } from 'elysia'
22
import { swagger } from '../src/index'
33
import { plugin } from './plugin'
44

5-
const app = new Elysia()
5+
const app = new Elysia({
6+
aot: false
7+
})
68
.use(
79
swagger({
810
documentation: {
@@ -21,3 +23,5 @@ const app = new Elysia()
2123
)
2224
.use(plugin)
2325
.listen(8080)
26+
27+
console.log(app.routes)

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elysiajs/swagger",
3-
"version": "0.6.0-beta.0",
3+
"version": "0.6.0",
44
"description": "Plugin for Elysia to auto-generate Swagger page",
55
"author": {
66
"name": "saltyAom",
@@ -28,19 +28,19 @@
2828
"bugs": "https://github.com/elysiajs/elysia-swagger/issues",
2929
"license": "MIT",
3030
"scripts": {
31-
"dev": "bun run --hot example/index.ts",
31+
"dev": "bun run --watch example/index.ts",
3232
"test": "bun wiptest && npm run test:node",
3333
"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",
3434
"build": "rimraf dist && tsc --project tsconfig.esm.json && tsc --project tsconfig.cjs.json",
3535
"release": "npm run build && npm run test && npm publish --access public"
3636
},
3737
"peerDependencies": {
38-
"elysia": ">= 0.6.0-alpha.3"
38+
"elysia": ">= 0.6.0"
3939
},
4040
"devDependencies": {
4141
"@types/node": "^20.1.4",
4242
"bun-types": "^0.7.0",
43-
"elysia": "^0.6.0-alpha.4",
43+
"elysia": "0.6.8",
4444
"eslint": "^8.40.0",
4545
"rimraf": "4.3",
4646
"typescript": "^5.0.4"

src/index.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,6 @@ export const swagger =
116116
schemas: app.meta.defs
117117
}
118118
} satisfies OpenAPIV3.Document
119-
},
120-
{
121-
config: {
122-
allowMeta: true
123-
}
124119
}
125120
)
126121

0 commit comments

Comments
 (0)