-
Notifications
You must be signed in to change notification settings - Fork 566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: implement body mixin on Readable #907
Conversation
Port over PR from node core. It will not be possible to land these changes on core due to ecosystem breakage. Refs: nodejs/node#39520
Codecov Report
@@ Coverage Diff @@
## main #907 +/- ##
==========================================
- Coverage 99.57% 98.52% -1.06%
==========================================
Files 26 27 +1
Lines 2132 2230 +98
==========================================
+ Hits 2123 2197 +74
- Misses 9 33 +24
Continue to review full report at Codecov.
|
2805b1f
to
7334d8c
Compare
37557e3
to
5a3ab2e
Compare
8d744a2
to
d5e1f98
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - do you want to make the type updates as well? Shouldn't be hard for this change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good. I would recommend we mention what methods will be available in the docs. The .json() method might also deserve a special mention in the README
Fixed |
master
PR [bench:run] │ Tests │ Samples │ Result │ Tolerance │ Difference with slowest │
[bench:run] |─────────────────────|─────────|───────────────|───────────|─────────────────────────|
[bench:run] │ http - no keepalive │ 10 │ 6.43 req/sec │ ± 0.98 % │ - │
[bench:run] |─────────────────────|─────────|───────────────|───────────|─────────────────────────|
[bench:run] │ http - keepalive │ 10 │ 6.85 req/sec │ ± 1.93 % │ + 6.42 % │
[bench:run] |─────────────────────|─────────|───────────────|───────────|─────────────────────────|
[bench:run] │ undici - pipeline │ 10 │ 63.27 req/sec │ ± 2.41 % │ + 883.47 % │
[bench:run] |─────────────────────|─────────|───────────────|───────────|─────────────────────────|
[bench:run] │ undici - stream │ 10 │ 67.86 req/sec │ ± 1.31 % │ + 954.73 % │
[bench:run] |─────────────────────|─────────|───────────────|───────────|─────────────────────────|
[bench:run] │ undici - request │ 10 │ 68.78 req/sec │ ± 2.16 % │ + 969.07 % │
[bench:run] |─────────────────────|─────────|───────────────|───────────|─────────────────────────|
[bench:run] │ undici - dispatch │ 10 │ 73.52 req/sec │ ± 1.72 % │ + 1042.76 % │ |
@mcollina doesn't seem to have any significant perf regression. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
This reverts commit 8306051. PR-URL: #39589 Refs: nodejs/undici#907 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Adds did read accessor used to determine whether a readable has been read from. PR-URL: #39589 Refs: nodejs/undici#907 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Adds did read accessor used to determine whether a readable has been read from. PR-URL: #39589 Refs: nodejs/undici#907 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Adds did read accessor used to determine whether a readable has been read from. PR-URL: #39589 Refs: nodejs/undici#907 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
* stream: implement body mixin on Readable Port over PR from node core. It will not be possible to land these changes on core due to ecosystem breakage. Refs: nodejs/node#39520 * fixup: tests * fixup * fixup * fixuP * fixuP * fixup: remove node specific stuff * fixup: formData * fixup: simplify * fixup * fixup * fixup * fixup: README * fixup
* stream: implement body mixin on Readable Port over PR from node core. It will not be possible to land these changes on core due to ecosystem breakage. Refs: nodejs/node#39520 * fixup: tests * fixup * fixup * fixuP * fixuP * fixup: remove node specific stuff * fixup: formData * fixup: simplify * fixup * fixup * fixup * fixup: README * fixup
Port over PR from node core. It will not be possible to land
these changes on core due to ecosystem breakage.
Refs: nodejs/node#39520