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

Fix upgrade script's treatment of removed props #2486

Merged
merged 2 commits into from
May 11, 2018

Conversation

jkillian
Copy link
Contributor

Changes proposed in this pull request:

Previously, our checks for removed props, such as warn submenuViewportMargins REMOVED, worked incorrectly because they didn't provide a third argument to warn. This PR fixes that in two ways: warn now works as expected if it only has two arguments, and removed props now use the warnProp function which respects the $PREFIX variable.

This PR also slightly tweaks the error message shown for these warnings.

@blueprint-bot
Copy link

use warnProp

Preview: documentation | landing | table

Copy link
Contributor

@giladgray giladgray left a comment

Choose a reason for hiding this comment

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

looks good 👍

@giladgray giladgray merged commit 243b954 into develop May 11, 2018
@giladgray giladgray deleted the jk/betterUpgradeScript branch May 11, 2018 01:08
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.

3 participants