Skip to content

Commit faee497

Browse files
committed
🎉 feat: 0.5 release
1 parent cf15b66 commit faee497

File tree

22 files changed

+716
-160
lines changed

22 files changed

+716
-160
lines changed

components/blog/Landing.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Update of Elysia.js from core maintainers
1010
</p>
1111
</header>
12-
<main class="flex flex-col max-w-xl gap-4 w-full mx-auto mt-8">
12+
<main class="flex flex-col max-w-xl gap-4 w-full mx-auto my-8">
1313
<a
1414
v-for="blog in props.blogs"
1515
class="px-4 py-2 rounded-lg hover:bg-gray-50 focus:bg-gray-50 dark:hover:bg-gray-700 dark:focus:bg-gray-700 transition-colors cursor-pointer"

components/landing/eden.vue

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,10 @@ const app = new Elysia()
2727
({ db, body }) => {
2828
return db.put(body)
2929
}, {
30-
schema: {
31-
body: t.Object({
32-
name: t.String(),
33-
quantity: t.Number()
34-
})
35-
}
30+
body: t.Object({
31+
name: t.String(),
32+
quantity: t.Number()
33+
})
3634
})
3735
.listen(80)
3836

components/landing/libs/code.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,12 @@ import { swagger } from '@elysiajs/swagger'
66
new Elysia()
77
.use(swagger())
88
.post('/sign-in', signIn, {
9-
schema: {
10-
// add type to \`body\` and
11-
// validate incoming body
12-
body: t.Object({
13-
username: t.String(),
14-
password: t.String()
15-
})
16-
}
9+
// add type to \`body\` and
10+
// validate incoming body
11+
body: t.Object({
12+
username: t.String(),
13+
password: t.String()
14+
})
1715
})
1816
.listen(8080)`
1917

components/landing/typescript.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,8 @@ new Elysia()
4141
.put('/nendoroid', async ({ body, database }) => {
4242
return body.id
4343
}, {
44-
schema: {
45-
body: nendoroidSchema,
46-
response: nendoroidSchema
47-
}
44+
body: nendoroidSchema,
45+
response: nendoroidSchema
4846
})`
4947
}}
5048
</Prism>

docs/.vitepress/config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ export default defineConfig({
137137
text: 'Schema',
138138
link: '/concept/schema'
139139
},
140+
{
141+
text: 'Numeric',
142+
link: '/concept/numeric'
143+
},
140144
{
141145
text: 'Guard',
142146
link: '/concept/guard'
@@ -148,6 +152,10 @@ export default defineConfig({
148152
{
149153
text: 'Plugin',
150154
link: '/concept/plugin'
155+
},
156+
{
157+
text: 'Explicit Body',
158+
link: '/concept/explicit-body'
151159
}
152160
]
153161
},

docs/blog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ head:
2323

2424
<Blogs
2525
:blogs="[
26+
{
27+
title: 'Introducing Elysia 0.5 - Radiant',
28+
href: '/blog/elysia-05',
29+
detail: 'Introducing Static Code Analysis, New router Memoirist, TypeBox 0.28, Numeric type, inline schema, state/decorate/model/group rework, and type stability.'
30+
},
2631
{
2732
title: 'Introducing Elysia 0.4 - 月夜の音楽会 (Moonlit Night Concert)',
2833
href: '/blog/elysia-04',

0 commit comments

Comments
 (0)