Skip to content

Commit 855b9c6

Browse files
committed
🧹 chore: bump version
1 parent 98cb7ca commit 855b9c6

File tree

6 files changed

+475
-7
lines changed

6 files changed

+475
-7
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11

2+
# 1.3.0-exp.0 - 23 Apr 2025
3+
Change:
4+
- Add support for Elysia 1.3
5+
6+
27
# 1.2.0-rc.0 - 23 Dec 2024
38
Change:
49
- Add support for Elysia 1.2

bun.lock

Lines changed: 465 additions & 0 deletions
Large diffs are not rendered by default.

bun.lockb

-81.7 KB
Binary file not shown.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elysiajs/html",
3-
"version": "1.2.0",
3+
"version": "1.3.0",
44
"description": "Plugin for Elysia that add support for returning html",
55
"author": {
66
"name": "saltyAom",
@@ -73,11 +73,11 @@
7373
"format": "prettier --write ."
7474
},
7575
"peerDependencies": {
76-
"elysia": ">= 1.2.0"
76+
"elysia": ">= 1.3.0"
7777
},
7878
"devDependencies": {
7979
"@types/bun": "1.1.14",
80-
"elysia": ">= 1.2.0",
80+
"elysia": ">= 1.3.0-exp.45",
8181
"eslint": "9.6.0",
8282
"tsup": "^8.1.0",
8383
"typescript": "^5.5.3"

test/index.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,6 @@ describe('HTML vs No html - header', () => {
107107
})
108108
const res = await app.handle(req('/'))
109109
expect(res.headers.get('Server')).toBe('Elysia')
110-
expect(res.headers.get('Content-Type')).toBe(
111-
'application/json;charset=utf-8'
112-
)
110+
expect(res.headers.get('Content-Type')).toBe('application/json')
113111
})
114112
})

test/options.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe('options', () => {
4040
.get('/html', ({ html }) => html('<div></div>'))
4141

4242
const res = await app.handle(request('/'))
43-
expect(res.headers.get('Content-Type')).toBeNull()
43+
expect(res.headers.get('Content-Type')).toBe('text/plain')
4444

4545
const htmlRes = await app.handle(request('/html'))
4646
expect(htmlRes.headers.get('Content-Type')).toBe(

0 commit comments

Comments
 (0)