-
Notifications
You must be signed in to change notification settings - Fork 47k
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
Ship merge, mergeInto, copyProperties to npm #2317
Conversation
Any reason we can't add a deprecation warning on import? |
Yea, we could. I can move the files so it's obvious they diverged (maybe put them in src/vendor_deprecated or something). |
👍 This is just a courtesy for those who reached into |
The warnings would be nice. |
Added deprecation warnings and READMEs for the people who venture into those vendor dirs. |
|
||
// deprecation notice | ||
console.warn( | ||
'react/lib/merge has been deprecated and will be removed in the ' + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mergeInto
People may have a bad time if they're depending on these but we can delay that a little bit. Unless they're using directly and not polyfilling Object.assign.
Ship merge, mergeInto, copyProperties to npm
React’s official policy on these helpers is “use at your own risk”: - facebook/react#1906 (comment) - facebook/react#2251 (comment) - facebook/react#2317
React’s official policy on these helpers is “use at your own risk”: - facebook/react#1906 (comment) - facebook/react#2251 (comment) - facebook/react#2317
React’s official policy on these helpers is “use at your own risk”: - facebook/react#1906 (comment) - facebook/react#2251 (comment) - facebook/react#2317
React’s official policy on these helpers is “use at your own risk”: - facebook/react#1906 (comment) - facebook/react#2251 (comment) - facebook/react#2317
This makes sure
merge
,mergeInto
,copyProperties
end up in build/modules which then gets packaged up for npm. Is there anything we're missing?Ideally we should have deprecation notices. But we've never officially supported these. Also,
merge
now usesObject.assign
so anybody using these without polyfills will have a Bad Time™.Reviewers: @spicyj @sebmarkbage @syranide
Test Plan:
grunt build
and make sure files are inbuild/modules/npm-react/lib
(before: they weren't)