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

Remove use of the deprecated getWithDefault API #2237

Merged
merged 1 commit into from
Sep 16, 2020
Merged

Remove use of the deprecated getWithDefault API #2237

merged 1 commit into from
Sep 16, 2020

Conversation

richard-viney
Copy link
Contributor

Now that getWithDefault is deprecated in Ember 3.21 it's recommended to use get() (if needed) then directly check for undefined.

I would have used nullish coalescing but couldn't see any other uses of that in the codebase so decided against it.

@richard-viney
Copy link
Contributor Author

FYI the CI failures here don't seem to be related to the change. I reverted the changes on this branch and similar errors still occurred.

Copy link
Member

@marcoow marcoow left a comment

Choose a reason for hiding this comment

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

👍

@josemarluedke
Copy link
Contributor

Ember 3.21 is out now, probably should merge this soon.

@charlesfries
Copy link

Is there anything I can do to help get this merged?

@marcoow marcoow merged commit 7b210f6 into mainmatter:master Sep 16, 2020
@Rxbsxn Rxbsxn mentioned this pull request Oct 8, 2020
@nadnoslen
Copy link

Thanks @marcoow & @sdebarros for all your work on this! 3.1 is great.

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

6 participants