Visitar URL original
doc: Update emitClose default for fs streams by kevinoid · Pull Request #36653 · nodejs/node · GitHub
The Wayback Machine - https://web.archive.org/web/20220423211157/https://github.com/nodejs/node/pull/36653
Skip to content
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

doc: Update emitClose default for fs streams #36653

Merged
merged 1 commit into from Jan 2, 2021

Conversation

Copy link
Contributor

@kevinoid kevinoid commented Dec 28, 2020

The default for the emitClose option was changed from false to true by #31408 which landed in f0d2df4 for v14.0.0. This commit updates the fs doc to match the current behavior.

Thanks for considering,
Kevin

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

@nodejs-github-bot nodejs-github-bot added doc fs labels Dec 28, 2020
@Trott Trott requested a review from ronag Dec 28, 2020
Copy link
Member

@ronag ronag left a comment

I think it's better to just remove any mention of emitClose from the fs docs.

@kevinoid
Copy link
Contributor Author

@kevinoid kevinoid commented Dec 28, 2020

I think it's better to just remove any mention of emitClose from the fs docs.

I agree with that sentiment, but I'm concerned that removing it from the docs would make existing code harder to understand, especially while supported versions still use emitClose: false by default.

I actually discovered this issue while checking the docs to understand why emitClose: true was being added to options in a call to fs.createWriteStream. If it had been removed, understanding would have been more difficult.

@kevinoid kevinoid requested a review from ronag Dec 28, 2020
The default for the `emitClose` option was changed from `false` to
`true` by nodejs#31408 which landed in f0d2df4 for v14.0.0.
This commit updates the fs doc to match the current behavior.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>

PR-URL: nodejs#36653
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
@Trott Trott force-pushed the for-upstream/fs-emitClose-docs branch from 19ca07b to d548f4d Compare Jan 2, 2021
@Trott Trott merged commit d548f4d into nodejs:master Jan 2, 2021
12 checks passed
@Trott
Copy link
Member

@Trott Trott commented Jan 2, 2021

Landed in d548f4d

danielleadams pushed a commit that referenced this issue Jan 12, 2021
The default for the `emitClose` option was changed from `false` to
`true` by #31408 which landed in f0d2df4 for v14.0.0.
This commit updates the fs doc to match the current behavior.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>

PR-URL: #36653
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
@danielleadams danielleadams mentioned this pull request Jan 12, 2021
@targos targos added the backport-blocked-v14.x label May 25, 2021
@targos targos removed the backport-blocked-v14.x label Aug 8, 2021
targos pushed a commit that referenced this issue Aug 8, 2021
The default for the `emitClose` option was changed from `false` to
`true` by #31408 which landed in f0d2df4 for v14.0.0.
This commit updates the fs doc to match the current behavior.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>

PR-URL: #36653
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
BethGriggs pushed a commit that referenced this issue Aug 12, 2021
The default for the `emitClose` option was changed from `false` to
`true` by #31408 which landed in f0d2df4 for v14.0.0.
This commit updates the fs doc to match the current behavior.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>

PR-URL: #36653
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
MylesBorins pushed a commit that referenced this issue Aug 31, 2021
The default for the `emitClose` option was changed from `false` to
`true` by #31408 which landed in f0d2df4 for v14.0.0.
This commit updates the fs doc to match the current behavior.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>

PR-URL: #36653
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
foxxyz pushed a commit to foxxyz/node that referenced this issue Oct 18, 2021
The default for the `emitClose` option was changed from `false` to
`true` by nodejs#31408 which landed in f0d2df4 for v14.0.0.
This commit updates the fs doc to match the current behavior.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>

PR-URL: nodejs#36653
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc fs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants