-
Notifications
You must be signed in to change notification settings - Fork 630
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
BREAKING(io): remove readLines()
#5991
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5991 +/- ##
=======================================
Coverage 96.29% 96.29%
=======================================
Files 493 492 -1
Lines 39530 39502 -28
Branches 5833 5828 -5
=======================================
- Hits 38065 38040 -25
+ Misses 1423 1420 -3
Partials 42 42 ☔ View full report in Codecov by Sentry. |
In the migration guide here, you're using the Another person the other day on discord had a bad resource ID error thrown when doing something very similar to this, but that might have been because they weren't consuming the entire readable stream inside the same scope as the |
I believe not. Consuming the |
readLines()
readLines()
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
What's changed
readLines()
has been removed from@std/io
.Motivation
This change was made to help push users towards using the Streams API and
@std/streams
, and make design decisions about which APIs easier.Migration guide
To migrate, pass the readable stream to
toLines()
.Related
Depends on #5990
Towards #5989