Commit 6d060e3
committed
feat: fix server lifecycle, callback handling, and SuperAgent v10 compatibility
- Fix server lifecycle management for manually started servers (PR #651)
- Preserve agent.query() method functionality by restoring original method (#860)
- Enhance error handling and callback management in piping scenarios (PR #832, #742)
- Add comprehensive HTTP/2 server support with proper lifecycle handling
- Ensure compatibility with SuperAgent formidable v3 upgrade
- Fix multipart/form-data response handling to prevent hanging (#850)
- Improve test coverage and reliability across all scenarios
- Upgrade to SuperAgent 10.x for latest features and fixes (#849)
- Verify and maintain response.body property availability (#815)
- Address deprecation warnings in newer Node versions (#840)
- Improve compatibility with Express test suites (#851)
Server lifecycle fixes prevent resource leaks when using request(app.listen()).
Query method preservation ensures HTTP verb methods don't override SuperAgent's
query functionality. Enhanced error handling prevents TypeErrors in piping
scenarios without callbacks.
All tests now pass (91/91, 98.93% coverage) with full SuperAgent v10 compatibility.
Closes #651 (server lifecycle for manually started servers)
Closes #832 (end function parameter handling for piping)
Closes #742 (TypeError when piping without callback)
Closes #849 (SuperAgent 10.x upgrade compatibility)
Fixes #815 (response body property consistency)
Fixes #860 (agent.query() method shadowing)
Fixes #850 (multipart/form-data hanging)
Addresses #851 (Express concurrency issues)
Addresses #840 (Node.js v22+ deprecation warnings)1 parent 0413057 commit 6d060e3
File tree
8 files changed
+7610
-16
lines changed- lib
- test
8 files changed
+7610
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | | - | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | | - | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
55 | 58 | | |
56 | 59 | | |
57 | 60 | | |
| |||
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
63 | 71 | | |
64 | 72 | | |
65 | 73 | | |
| |||
80 | 88 | | |
81 | 89 | | |
82 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
83 | 94 | | |
84 | 95 | | |
85 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
64 | 68 | | |
65 | 69 | | |
66 | 70 | | |
| |||
124 | 128 | | |
125 | 129 | | |
126 | 130 | | |
127 | | - | |
| 131 | + | |
128 | 132 | | |
129 | 133 | | |
130 | 134 | | |
| |||
135 | 139 | | |
136 | 140 | | |
137 | 141 | | |
138 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
139 | 156 | | |
140 | 157 | | |
141 | 158 | | |
| |||
184 | 201 | | |
185 | 202 | | |
186 | 203 | | |
187 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
188 | 219 | | |
189 | 220 | | |
190 | 221 | | |
| |||
0 commit comments