Skip to content

Make .configureOutput() create copy of settings instead of in-place change #2350

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

Merged

Conversation

shadowspawn
Copy link
Collaborator

@shadowspawn shadowspawn commented Mar 26, 2025

Problem

Modifying command using .configureOutput() modifies other commands sharing same settings.

Fixes: #2342

Solution

Make a copy of settings instead of modifying in place.

ChangeLog

  • fixed: .configureOutput() now makes copy of settings instead of modifying in-place, fixing side-effects

@shadowspawn shadowspawn added the semver: major Releasing requires a major version bump, not backwards compatible label Mar 26, 2025
@shadowspawn
Copy link
Collaborator Author

Could go in a minor version since a bug fix, but thinking hold until we do a release to drop node 18 since will break anyone who was inadvertently relying on previous behaviour.

@shadowspawn shadowspawn changed the base branch from master to develop March 26, 2025 05:15
@shadowspawn shadowspawn changed the base branch from develop to release/14.x March 26, 2025 05:17
@shadowspawn shadowspawn changed the title Feature/independent configure output Make .configureOutput() create copy of settings instead of in-place change Mar 26, 2025
@shadowspawn shadowspawn marked this pull request as ready for review March 26, 2025 05:19
@shadowspawn shadowspawn added the pending release Merged into a branch for a future release, but not released yet label Mar 26, 2025
@shadowspawn shadowspawn merged commit 68199e6 into tj:release/14.x Mar 26, 2025
11 checks passed
@shadowspawn shadowspawn deleted the feature/independent-configureOutput branch March 26, 2025 23:55
@shadowspawn shadowspawn added this to the v14.0.0 milestone Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending release Merged into a branch for a future release, but not released yet semver: major Releasing requires a major version bump, not backwards compatible
Projects
None yet
Development

Successfully merging this pull request may close these issues.

copyInheritedSettings and configureOutput have side-effects
3 participants