Skip to content

Commit ed00255

Browse files
committed
🧹 chore: bump version
1 parent 062995e commit ed00255

File tree

4 files changed

+76
-71
lines changed

4 files changed

+76
-71
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2+
# 1.2.0-rc.0 - 23 Dec 2024
3+
Change:
4+
- Add support for Elysia 1.2
5+
16
# 1.1.6 - 17 Nov 2024
27
Bug fix:
38
- [#156](https://github.com/elysiajs/elysia-swagger/pull/156) add type check in cloneHook

bun.lockb

-5.82 KB
Binary file not shown.

package.json

Lines changed: 70 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,76 @@
11
{
2-
"name": "@elysiajs/swagger",
3-
"version": "1.1.6",
4-
"description": "Plugin for Elysia to auto-generate Swagger page",
5-
"author": {
6-
"name": "saltyAom",
7-
"url": "https://github.com/SaltyAom",
8-
"email": "[email protected]"
9-
},
10-
"main": "./dist/cjs/index.js",
11-
"module": "./dist/index.mjs",
12-
"types": "./dist/index.d.ts",
13-
"exports": {
14-
"./package.json": "./package.json",
15-
".": {
16-
"types": "./dist/index.d.ts",
17-
"import": "./dist/index.mjs",
18-
"require": "./dist/cjs/index.js"
2+
"name": "@elysiajs/swagger",
3+
"version": "1.2.0",
4+
"description": "Plugin for Elysia to auto-generate Swagger page",
5+
"author": {
6+
"name": "saltyAom",
7+
"url": "https://github.com/SaltyAom",
8+
"email": "[email protected]"
199
},
20-
"./types": {
21-
"types": "./dist/types.d.ts",
22-
"import": "./dist/types.mjs",
23-
"require": "./dist/cjs/types.js"
10+
"main": "./dist/cjs/index.js",
11+
"module": "./dist/index.mjs",
12+
"types": "./dist/index.d.ts",
13+
"exports": {
14+
"./package.json": "./package.json",
15+
".": {
16+
"types": "./dist/index.d.ts",
17+
"import": "./dist/index.mjs",
18+
"require": "./dist/cjs/index.js"
19+
},
20+
"./types": {
21+
"types": "./dist/types.d.ts",
22+
"import": "./dist/types.mjs",
23+
"require": "./dist/cjs/types.js"
24+
},
25+
"./utils": {
26+
"types": "./dist/utils.d.ts",
27+
"import": "./dist/utils.mjs",
28+
"require": "./dist/cjs/utils.js"
29+
},
30+
"./scalar": {
31+
"types": "./dist/scalar/index.d.ts",
32+
"import": "./dist/scalar/index.mjs",
33+
"require": "./dist/cjs/scalar/index.js"
34+
},
35+
"./scalar/theme": {
36+
"types": "./dist/scalar/theme.d.ts",
37+
"import": "./dist/scalar/theme.mjs",
38+
"require": "./dist/cjs/scalar/theme.js"
39+
}
2440
},
25-
"./utils": {
26-
"types": "./dist/utils.d.ts",
27-
"import": "./dist/utils.mjs",
28-
"require": "./dist/cjs/utils.js"
41+
"keywords": [
42+
"elysia",
43+
"swagger"
44+
],
45+
"homepage": "https://github.com/elysiajs/elysia-swagger",
46+
"repository": {
47+
"type": "git",
48+
"url": "https://github.com/elysiajs/elysia-swagger"
2949
},
30-
"./scalar": {
31-
"types": "./dist/scalar/index.d.ts",
32-
"import": "./dist/scalar/index.mjs",
33-
"require": "./dist/cjs/scalar/index.js"
50+
"bugs": "https://github.com/elysiajs/elysia-swagger/issues",
51+
"license": "MIT",
52+
"scripts": {
53+
"dev": "bun run --watch example/index.ts",
54+
"test": "bun test && npm run test:node",
55+
"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",
56+
"build": "bun build.ts",
57+
"release": "npm run build && npm run test && npm publish --access public"
3458
},
35-
"./scalar/theme": {
36-
"types": "./dist/scalar/theme.d.ts",
37-
"import": "./dist/scalar/theme.mjs",
38-
"require": "./dist/cjs/scalar/theme.js"
59+
"peerDependencies": {
60+
"elysia": ">= 1.2.0"
61+
},
62+
"devDependencies": {
63+
"@apidevtools/swagger-parser": "^10.1.0",
64+
"@types/bun": "1.1.14",
65+
"elysia": ">= 1.2.0",
66+
"eslint": "9.6.0",
67+
"tsup": "^8.1.0",
68+
"typescript": "^5.5.3"
69+
},
70+
"dependencies": {
71+
"@scalar/themes": "^0.9.52",
72+
"@scalar/types": "^0.0.12",
73+
"openapi-types": "^12.1.3",
74+
"pathe": "^1.1.2"
3975
}
40-
},
41-
"keywords": [
42-
"elysia",
43-
"swagger"
44-
],
45-
"homepage": "https://github.com/elysiajs/elysia-swagger",
46-
"repository": {
47-
"type": "git",
48-
"url": "https://github.com/elysiajs/elysia-swagger"
49-
},
50-
"bugs": "https://github.com/elysiajs/elysia-swagger/issues",
51-
"license": "MIT",
52-
"scripts": {
53-
"dev": "bun run --watch example/index.ts",
54-
"test": "bun test && npm run test:node",
55-
"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",
56-
"build": "bun build.ts",
57-
"release": "npm run build && npm run test && npm publish --access public"
58-
},
59-
"peerDependencies": {
60-
"elysia": ">= 1.1.0"
61-
},
62-
"devDependencies": {
63-
"@apidevtools/swagger-parser": "^10.1.0",
64-
"@types/bun": "1.1.6",
65-
"elysia": "1.1.18",
66-
"eslint": "9.6.0",
67-
"tsup": "^8.1.0",
68-
"typescript": "^5.5.3"
69-
},
70-
"dependencies": {
71-
"@scalar/themes": "^0.9.52",
72-
"@scalar/types": "^0.0.12",
73-
"openapi-types": "^12.1.3",
74-
"pathe": "^1.1.2"
75-
}
76-
}
76+
}

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export const registerSchemaPath = ({
122122
contentType?: string | string[]
123123
path: string
124124
method: HTTPMethod
125-
hook?: LocalHook<any, any, any, any, any, any, any>
125+
hook?: LocalHook<any, any, any, any, any, any>
126126
models: Record<string, TSchema>
127127
}) => {
128128
hook = cloneHook(hook)

0 commit comments

Comments
 (0)