GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — _debug_agent: use `readableObjectMode` option for client stream by vkurchatkin · Pull Request #270 · nodejs/node

Conversation

@vkurchatkin

@vkurchatkin vkurchatkin commented Jan 9, 2015

Copy link
Copy Markdown
Contributor

No description provided.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bnoordhuis

bnoordhuis commented Jan 9, 2015

Copy link
Copy Markdown
Member

R=@indutny? The change LGTM but maybe there's a reason why it initializes like that.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@indutny

indutny commented Jan 10, 2015

Copy link
Copy Markdown
Member

LGTM, if it works!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vkurchatkin

vkurchatkin commented Jan 10, 2015

Copy link
Copy Markdown
Contributor Author

Does exactly same thing: https://github.com/iojs/io.js/blob/v1.x/lib/_stream_readable.js#L43

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bnoordhuis

bnoordhuis commented Jan 10, 2015

Copy link
Copy Markdown
Member

@vkurchatkin Can you amend the commit log? The first line should be <= 50 characters.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@piscisaureus

piscisaureus commented Jan 10, 2015

Copy link
Copy Markdown
Contributor

@vkurchatkin Can you also add a commit message describing the motivation for this change. Because I can't reconstruct why this is needed/nice.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vkurchatkin
_debug_agent: use readableObjectMode option
566b3e4
Use public `readableObjectMode` option to construct `Transform`
instead of accessing private `_readableState.objectMode`.
@vkurchatkin
vkurchatkin force-pushed the debug-agent-object-mode branch from 8ae8a9c to 566b3e4 Compare January 10, 2015 18:46
@vkurchatkin

vkurchatkin commented Jan 10, 2015

Copy link
Copy Markdown
Contributor Author

@bnoordhuis done
@piscisaureus Just thought that since we have public API to do this it's a good idea to actually use it.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vkurchatkin

vkurchatkin commented Jan 10, 2015

Copy link
Copy Markdown
Contributor Author

There other places (a lot, actually) where _readableState and _writableState are accessed. Probably something needs to be done about that

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bnoordhuis

bnoordhuis commented Jan 10, 2015

Copy link
Copy Markdown
Member

@vkurchatkin Are you volunteering to clean them up? :-)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vkurchatkin

vkurchatkin commented Jan 10, 2015

Copy link
Copy Markdown
Contributor Author

I'm afraid it's not as simple as cleaning up. The first thing to do is to categorize all the cases and create issues. In general I see these possible resolutions (sorted by preference):

  • use existing documented API to achieve the same result;
  • introduce new public API;
  • introduce new protected (implementor) API;
  • document some parts of private state for implementors;
  • do nothing.

Can start by doing this)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chrisdickinson

chrisdickinson commented Jan 14, 2015

Copy link
Copy Markdown
Contributor

Internal streams reaching into / through ._{writ,read}ableState to manipulate fields makes changing the stream api unpleasant, and I'd love to see that cleaned up.

That said, I'm not opposed to going through that process over the course of commits cleaning up smaller transgressions one-by-one. Unless anyone has strong feelings about it, I'd like to merge this PR as-is.

We can track progress on the other places in a separate issue -- @vkurchatkin, would you like to open that up?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vkurchatkin vkurchatkin mentioned this pull request Jan 15, 2015
Cleanup _writableState and _readableState access across codebase #445
Closed
14 of 44 tasks
@vkurchatkin

vkurchatkin commented Jan 15, 2015

Copy link
Copy Markdown
Contributor Author

@chrisdickinson what about this PR?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@piscisaureus

piscisaureus commented Jan 15, 2015

Copy link
Copy Markdown
Contributor

lgtm too

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chrisdickinson

chrisdickinson commented Jan 15, 2015

Copy link
Copy Markdown
Contributor

Merging as we speak.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chrisdickinson pushed a commit that referenced this pull request Jan 15, 2015
@vkurchatkin @chrisdickinson
_debug_agent: use readableObjectMode option
9e62ae4
Use public `readableObjectMode` option to construct `Transform`
instead of accessing private `_readableState.objectMode`.

Partially addresses #445.

PR-URL: #270
Reviewed-By: Fedor Indutny <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Bert Belder <[email protected]>
Reviewed-By: Chris Dickinson <[email protected]>
@chrisdickinson

chrisdickinson commented Jan 15, 2015

Copy link
Copy Markdown
Contributor

Merged in 9e62ae4. Thanks! The first shots have been fired in the struggle to cleanup stream usage 💥!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chrisdickinson chrisdickinson closed this Jan 15, 2015
@snyk-bot snyk-bot mentioned this pull request Nov 10, 2021
[Snyk] Upgrade remark-preset-lint-node from 3.0.1 to 3.3.0 thisguy726/node#3
Open
@bhevesi bhevesi mentioned this pull request Feb 5, 2023
Building Node.js v19.6.0 #46505
Closed
@aliscco aliscco mentioned this pull request Apr 25, 2023
[Snyk] Fix for 9 vulnerabilities aliscco/alisco-node#175
Open
@aliceUnhinged613 aliceUnhinged613 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities aliceUnhinged613/node#118
Open
@ryan-ally ryan-ally mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities ryan-ally/node#99
Open
@jen801 jen801 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities jen801/node#34
Open
@wedataintelligence wedataintelligence mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities wedataintelligence/node#101
Open
@adamlaska adamlaska mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities adamlaska/node#140
Open
@baby636 baby636 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities baby636/node#132
Open
@ron-a20 ron-a20 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities ron-a20/node#116
Open
@amacsnyk amacsnyk mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities amacsnyk/node#19
Closed
@jhudaz jhudaz mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities jhudaz/node#64
Open
@PinkDiamond1 PinkDiamond1 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities PinkDiamond1/node#33
Open
This was referenced Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities pratapadi/node#102
Open
[Snyk] Security upgrade pacote from 11.3.5 to 16.0.0 pratapadi/node#104
Open
@awaisab172 awaisab172 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities awaisab172/node#56
Open
@yotamselementor yotamselementor mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities yotamselementor/node#40
Open
@RoeeOren RoeeOren mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities RoeeOren/node#50
Open
@pratapadi pratapadi mentioned this pull request Feb 11, 2024
[Snyk] Security upgrade pacote from 11.3.5 to 16.0.0 pratapadi/node#107
Open
@Matthelonianxl Matthelonianxl mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities Matthelonianxl/node#64
Open
@Verdinjoshua26 Verdinjoshua26 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities Verdinjoshua26/node#59
Open
@thisguy726 thisguy726 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities thisguy726/node#20
Open
@terrorizer1980 terrorizer1980 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities terrorizer1980/node-1#19
Open
@kaocher82 kaocher82 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities Xtuden-com/node#44
Open
@sirinartk sirinartk mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities sirinartk/node#55
Open
@pratapadi pratapadi mentioned this pull request Feb 12, 2024
[Snyk] Security upgrade pacote from 11.3.5 to 16.0.0 pratapadi/node#109
Open
@timzwit timzwit mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities timzwit/node#37
Open
@MrBrain295 MrBrain295 mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities MrBrain295/node#32
Open
@kissofire kissofire mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities kissofire/node#120
Open
@molllyn1 molllyn1 mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities molllyn1/node#103
Open
@137717unity 137717unity mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities 137717unity/node#119
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@vkurchatkin @bnoordhuis @indutny @piscisaureus @chrisdickinson
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.