File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed
Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 11# 1.4.29
22Bug 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
713Change:
814- remove Bun specific built
Original file line number Diff line number Diff 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 : { }
Original file line number Diff line number Diff 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 <
You can’t perform that action at this time.
0 commit comments