Skip to content

Commit a38de80

Browse files
committed
📘 doc: update changelog
1 parent 8a0173b commit a38de80

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 1.4.6 - 15 Sep 2025
1+
# 1.4.6 - 18 Sep 2025
22
Improvement:
33
- [#1406](https://github.com/elysiajs/elysia/issues/1406) strictly check for 200 inline status code
44
- coerce union status value and return type

example/a.ts

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
import { Elysia, t } from '../src'
22

33
new Elysia()
4-
.decorate("db", Object.freeze({ hello: "world" }))
5-
.guard({}, app => app)
4+
.macro({
5+
token: {
6+
resolve: () => {
7+
return {
8+
__token: '123'
9+
}
10+
}
11+
}
12+
})
13+
.macro('some', {
14+
token: true,
15+
beforeHandle: ({ __token }) => {
16+
console.log('__token', __token)
17+
}
18+
})

0 commit comments

Comments
 (0)