Skip to content

stream: simplify Transform stream implementation#32763

Closed
ronag wants to merge 8 commits into
nodejs:masterfrom
nxtedition:transform-simplify
Closed

stream: simplify Transform stream implementation#32763
ronag wants to merge 8 commits into
nodejs:masterfrom
nxtedition:transform-simplify

Conversation

@ronag

@ronag ronag commented Apr 10, 2020

Copy link
Copy Markdown
Member

Significantly simplified Transform stream implementation by
using mostly standard stream code.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

@ronag ronag force-pushed the transform-simplify branch from aade81a to a934d7f Compare April 10, 2020 15:19
@nodejs-github-bot nodejs-github-bot added errors Issues and PRs related to JavaScript errors originated in Node.js core. stream Issues and PRs related to the stream subsystem. labels Apr 10, 2020
@ronag ronag force-pushed the transform-simplify branch from a934d7f to ea3509c Compare April 10, 2020 15:23
Comment thread lib/_stream_transform.js Outdated

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

emitting 'error' was a bug

@ronag ronag force-pushed the transform-simplify branch from ea3509c to 88e8a20 Compare April 10, 2020 15:29
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@ronag ronag added the wip Issues and PRs that are still a work in progress. label Apr 10, 2020
@ronag ronag force-pushed the transform-simplify branch from 88e8a20 to f84621d Compare April 10, 2020 15:51
Significantly simplified Transform stream implementation by
using mostly standard stream code.
@ronag ronag force-pushed the transform-simplify branch from f84621d to 6099382 Compare April 10, 2020 15:52
@ronag

ronag commented Apr 10, 2020

Copy link
Copy Markdown
Member Author

Some problems in zlib.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@ronag ronag removed the wip Issues and PRs that are still a work in progress. label Apr 10, 2020
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@ronag ronag requested review from addaleax, lpinca and mcollina April 10, 2020 17:07
@ronag ronag added the semver-major PRs that contain breaking changes and should be released in the next major version. label Apr 10, 2020
@ronag

ronag commented Apr 10, 2020

Copy link
Copy Markdown
Member Author

Marking as semver major since minor differences in behavior probably exists.

Comment thread test/parallel/test-zlib-flush-drain.js
Comment thread test/parallel/test-stream2-transform.js
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@jasnell

jasnell commented Apr 28, 2020

Copy link
Copy Markdown
Member

This really should have done a runtime deprecation for _transformState rather than removing it entirely. It's relatively low impact given that, as a semver-major, this won't be pulled in to any release until 15.0.0 but for 14.x we should add a proper deprecation for _transformState.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. errors Issues and PRs related to JavaScript errors originated in Node.js core. semver-major PRs that contain breaking changes and should be released in the next major version. stream Issues and PRs related to the stream subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants