-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Deprecated defaultValue.EMPTY_OBJECT and created EmptyObject standalone constant #12238
base: main
Are you sure you want to change the base?
Conversation
Thank you for the pull request, @anpaulan! ✅ We can confirm we have a CLA on file for you. |
Thanks for the pr @anpaulan. However I don't think we want to make this change currently. I didn't remember there were 2 issues open related to this. PR #12207 for issue #11674 is removing the Maybe you could work with @dave-b-b to combine the changes? CC @ggetz |
Good catch on the conflict here @jjspace. To sum up the result of the discussion around #11674, it sounds like we'd want to:
Correct? If that's the case, we should be able to do something like the following and still resolve the typescript error. If it becomes a namespace,
In that case, |
Hi! Thank you for sending this over.
Thank you for the guidance! I was going through this PR as well as PR #12207 and I think you are right. I can go ahead and deprecate defaultValue and update the name space. But when I do so, I would need to work with @dave-b-b to figure out what would be used in place of defaultValue? My understanding is when I deprecate defaultValue, we should then redirect folks to the replacement function. |
Description
EMPTY_OBJECT
EMPTY_OBJECT
property indefaultValue
EmptyObject
constant (viaEmptyObject.js
) per recommendationCollaborated with @hotpocket
Issue number and link
Fixes Issue #11326
Testing plan
Tried to run this test in defaultValueSpec.js, but console.warn was not called: test did not run as expected.
Author checklist
CONTRIBUTORS.md
CHANGES.md
with a short summary of my change