Skip to content

Commit df45213

Browse files
committed
📘 doc: update changelog
1 parent e130320 commit df45213

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
# 1.4.29
22
Bug fix:
3+
- [#1805](https://github.com/elysiajs/elysia/pull/1805) dynamic imports inside .guard not registering routes
4+
- [#1803](https://github.com/elysiajs/elysia/pull/1803) stream response with pull based backpressure
5+
- [#1802](https://github.com/elysiajs/elysia/pull/1802) handle range header for file/blob response
36
- [#1771](https://github.com/elysiajs/elysia/issues/1771) breaks Bun HTML imports
47
- [#1797](https://github.com/elysiajs/elysia/pull/1797) await mapped error response promise
58
- [#1794](https://github.com/elysiajs/elysia/pull/1794) merge app cookie config into route cookie validator config
9+
- [#1796](https://github.com/elysiajs/elysia/pull/1796) check custom parser by full name
10+
#1796
11+
- detect HTML bundle when inline response is Promise
612

713
Change:
814
- remove Bun specific built

src/adapter/bun/handler-native.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,13 @@ export const createNativeStaticHandler = (
1717
handle instanceof Response
1818
? handle.clone()
1919
: handle instanceof Promise
20-
? handle.then((x) => (x instanceof Response ? x.clone() : x))
20+
? handle.then((x) =>
21+
x instanceof Response
22+
? x.clone()
23+
: isHTMLBundle(x)
24+
? () => x
25+
: x
26+
)
2127
: handle,
2228
set ?? {
2329
headers: {}

src/context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export type Context<
156156
: never
157157
: PrettifyIfObject<Route['params'] & Singleton['resolve']['params']>
158158
headers: undefined extends Route['headers']
159-
? {} extends NonNullable<Singleton['resolve']['query']>
159+
? {} extends NonNullable<Singleton['resolve']['headers']>
160160
? Record<string, string | undefined>
161161
: Singleton['resolve']['headers']
162162
: PrettifyIfObject<

0 commit comments

Comments
 (0)