Skip to content

Commit 56e9c72

Browse files
committed
🎉 feat: 0.7
1 parent c4bd2fd commit 56e9c72

File tree

7 files changed

+32
-32
lines changed

7 files changed

+32
-32
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.7.1 - 8 Oct 2023
2+
Improvement:
3+
- [#19](https://github.com/elysiajs/elysia-html/pull/20) Update to Kita HTML v3
4+
-
15
# 0.6.6 - 11 Sep 2023
26
Improvement:
37
- [#12](https://github.com/elysiajs/elysia-html/pull/12) update Kita to 2.2.1

bun.lockb

1012 Bytes
Binary file not shown.

example/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function asyncPage(rid: number, { name }: { name: string }): JSX.Element {
5151
)
5252
}
5353

54-
// https://xelysiajs.com/concept/schema.html
54+
// https://elysiajs.com/concept/schema.html
5555
const indexSchema = {
5656
query: t.Object({
5757
name: t.String({ default: 'World' })

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elysiajs/html",
3-
"version": "0.6.6",
3+
"version": "0.7.1",
44
"description": "Plugin for Elysia that add support for returning html",
55
"author": {
66
"name": "saltyAom",
@@ -12,7 +12,7 @@
1212
"bun": "./dist/index.js",
1313
"node": "./dist/cjs/index.js",
1414
"require": "./dist/cjs/index.js",
15-
"import": "./dist/index.js",
15+
"import": "./dist/index.js",
1616
"default": "./dist/index.js"
1717
},
1818
"types": "./src/index.ts",
@@ -48,8 +48,8 @@
4848
"typescript": "^5.2.2"
4949
},
5050
"dependencies": {
51-
"@kitajs/html": "^3.0.0",
52-
"@kitajs/ts-html-plugin": "^1.1.1"
51+
"@kitajs/html": "^3.0.2",
52+
"@kitajs/ts-html-plugin": "^1.2.0"
5353
},
5454
"peerDependenciesMeta": {
5555
"@kitajs/html": {

pnpm-lock.yaml

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
// Adds @kitajs/html's Html globally.
2-
// @ts-expect-error - When running from a compiled bun version,
3-
// this will fail because /register will be stripped out if not
4-
// used. This is just a workaround to make it work.
5-
import { noop } from '@kitajs/html/register'
61
try {
7-
noop()
2+
require('@kitajs/html/register')
83
} catch {}
94

105
export * from './html'

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"jsx": "react",
77
"jsxFactory": "Html.createElement",
88
"jsxFragmentFactory": "Html.Fragment",
9+
"plugins": [{ "name": "@kitajs/ts-html-plugin" }],
910
"module": "ES2022",
1011
"moduleResolution": "node",
1112
"types": ["bun-types"],

0 commit comments

Comments
 (0)