File tree Expand file tree Collapse file tree 4 files changed +5
-47
lines changed Expand file tree Collapse file tree 4 files changed +5
-47
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @whatwg-node/server ' : patch
3
+ ---
4
+
5
+ Remove unnecessary workaround for Bun
Original file line number Diff line number Diff line change 25
25
steps :
26
26
- name : Checkout Repository
27
27
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
28
- - name : Install Required Libraries
29
- run : sudo apt update && sudo apt install -y libcurl4-openssl-dev libssl-dev
30
28
- name : Setup env
31
29
uses : the-guild-org/shared-config/setup@main
32
30
with :
69
67
steps :
70
68
- name : Checkout Repository
71
69
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
72
- - name : Install Required Libraries
73
- run : sudo apt update && sudo apt install -y libcurl4-openssl-dev libssl-dev
74
70
- name : Setup env
75
71
uses : the-guild-org/shared-config/setup@main
76
72
with :
Original file line number Diff line number Diff line change @@ -108,8 +108,6 @@ jobs:
108
108
steps :
109
109
- name : Checkout Master
110
110
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
111
- - name : Install Required Libraries
112
- run : sudo apt update && sudo apt install -y libcurl4-openssl-dev libssl-dev
113
111
- name : Setup env
114
112
uses : the-guild-org/shared-config/setup@main
115
113
with :
@@ -128,8 +126,6 @@ jobs:
128
126
steps :
129
127
- name : Checkout Master
130
128
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
131
- - name : Install Required Libraries
132
- run : sudo apt update && sudo apt install -y libcurl4-openssl-dev libssl-dev
133
129
- name : Setup env
134
130
uses : the-guild-org/shared-config/setup@main
135
131
with :
@@ -194,9 +190,6 @@ jobs:
194
190
with :
195
191
node-version : 24
196
192
197
- - name : Install Required Libraries
198
- run : sudo apt update && sudo apt install -y libcurl4-openssl-dev libssl-dev
199
-
200
193
- name : Cache Node Modules
201
194
uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
202
195
id : node-modules-cache-deployment-e2e
Original file line number Diff line number Diff line change @@ -183,42 +183,6 @@ export function normalizeNodeRequest(
183
183
} ) ;
184
184
}
185
185
186
- // Workaround for Bun
187
- if ( globalThis . Bun && fetchAPI . Request === globalThis . Request && isAsyncIterable ( rawRequest ) ) {
188
- let iterator : AsyncIterator < Uint8Array > ;
189
- return new fetchAPI . Request ( fullUrl , {
190
- method : nodeRequest . method ,
191
- headers : normalizedHeaders ,
192
- signal : controller . signal ,
193
- body : new ReadableStream ( {
194
- start ( ) {
195
- iterator ||= rawRequest [ Symbol . asyncIterator ] ( ) ;
196
- } ,
197
- pull ( controller ) {
198
- iterator ||= rawRequest [ Symbol . asyncIterator ] ( ) ;
199
- return iterator
200
- . next ( )
201
- . then ( ( { done, value } ) => {
202
- if ( done ) {
203
- controller . close ( ) ;
204
- return ;
205
- }
206
- controller . enqueue ( value ) ;
207
- } )
208
- . catch ( err => {
209
- controller . error ( err ) ;
210
- } ) ;
211
- } ,
212
- cancel ( reason ) {
213
- iterator ||= rawRequest [ Symbol . asyncIterator ] ( ) ;
214
- return iterator . return ?.( reason ) as Promise < any > ;
215
- } ,
216
- } ) ,
217
- // @ts -expect-error - AsyncIterable is supported as body
218
- duplex : 'half' ,
219
- } ) ;
220
- }
221
-
222
186
// perf: instead of spreading the object, we can just pass it as is and it performs better
223
187
return new fetchAPI . Request ( fullUrl , {
224
188
method : nodeRequest . method ,
You can’t perform that action at this time.
0 commit comments