Skip to content

feat!: make with* methods immutable (2.0.0)#60

Merged
vazarkevych merged 2 commits intogrowthbook:masterfrom
vazarkevych:feature/immutable-with-methods
Mar 27, 2026
Merged

feat!: make with* methods immutable (2.0.0)#60
vazarkevych merged 2 commits intogrowthbook:masterfrom
vazarkevych:feature/immutable-with-methods

Conversation

@vazarkevych
Copy link
Copy Markdown
Collaborator

Summary

Implements the immutable API for with* methods as planned after v1.7.4.

Changes

  • All with* methods now return a new instance (immutable)
  • set* methods remain mutable
  • Updated tests to reflect new immutable behavior

Breaking Change

with* methods no longer mutate $this. Users were warned via @deprecated
in v1.7.4. See release notes for migration guide.

@vazarkevych vazarkevych merged commit d9f4cc3 into growthbook:master Mar 27, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant