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

(backport) bugfix: handle null and undefined in setProperties #1418

Merged
merged 1 commit into from
Jun 15, 2023

Conversation

chriskrycho
Copy link
Contributor

Backport #1417 to v2.x:

This implicitly worked for as long as this.setProperties existed, because it ultimately forwards to Ember's setProperties, which also implicitly works with this. Although this is not public API, and indeed is not desirable, changing it (implicitly and accidentally!) will break many consumers who are relying on it (most likely to end up happening transitively, e.g. via local/custom test helpers).

This implicitly worked for as long as `this.setProperties` existed,
because it ultimately forwards to Ember's `setProperties`, which also
implicitly works with this. Although this is not public API, and indeed
is not desirable, changing it (implicitly and accidentally!) will break
many consumers who are relying on it (most likely to end up happening
transitively, e.g. via local/custom test helpers).

(cherry picked from commit 90b1685)
@NullVoxPopuli
Copy link
Sponsor Collaborator

try config needs to be updated to not use release/beta/canary on this branch, probably, but that's a separate set of work.

Thanks for backporting!

@chriskrycho chriskrycho merged commit e0d3778 into v2-x Jun 15, 2023
8 of 16 checks passed
@chriskrycho chriskrycho deleted the backport-setProperties-fix branch June 15, 2023 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants