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

Add upgrade warning #4028

Merged
merged 3 commits into from
Dec 2, 2016
Merged

Add upgrade warning #4028

merged 3 commits into from
Dec 2, 2016

Conversation

benjycui
Copy link
Contributor

No description provided.

@mention-bot
Copy link

@benjycui, thanks for your PR! By analyzing the history of the files in this pull request, we identified @yiminghe, @afc163 and @waywardmonkeys to be potential reviewers.

@benjycui benjycui changed the title Add upgrade warning [WIP] Add upgrade warning Nov 28, 2016
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.07%) to 76.948% when pulling 169c0e1 on upgrade-warning into 58d5faf on master.

'The value/defaultValue of Calendar must be a moment object after `antd@2.0`, ' +
'see: http://u.ant.design/jI6pSlR'
);
}
Copy link
Member

Choose a reason for hiding this comment

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

用自定义 propTypes 来做?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

主要是觉得,配个 demo 的链接比较好。

if (!(value instanceof moment)) {
throw new Error(
'The value/defaultValue of Calendar must be a moment object after `antd@2.0`, ' +
'see: http://u.ant.design/jI6pSlR'
Copy link
Member

Choose a reason for hiding this comment

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

我的意思是 antd 这里不要用自动生成的随机域名,手动维护一个可读的域名。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

试了下。。 demo 的 URL 如果要提供一个语义化的链接,还是挺长的。。

Copy link
Member

Choose a reason for hiding this comment

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

长短其实没关系,主要是提供一个固定的快捷域名,以后真实域名变化,用户旧代码也不受影响。

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 4233844 on upgrade-warning into ** on master**.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 4233844 on upgrade-warning into ** on master**.

@benjycui benjycui changed the title [WIP] Add upgrade warning Add upgrade warning Nov 28, 2016
@benjycui
Copy link
Contributor Author

2.0 breaking changes 里面,能加 warning 的都加了 warning,并增加链接到 demo

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.07%) to 76.948% when pulling 85e870b on upgrade-warning into 32abe10 on master.

@benjycui
Copy link
Contributor Author

Updated.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.07%) to 76.948% when pulling ba7cde0 on upgrade-warning into 32abe10 on master.

@afc163
Copy link
Member

afc163 commented Dec 2, 2016

rebase

@benjycui
Copy link
Contributor Author

benjycui commented Dec 2, 2016

Rebased.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.07%) to 76.551% when pulling 25a19b2 on upgrade-warning into d2918d2 on master.

@afc163 afc163 merged commit c4d8c47 into master Dec 2, 2016
@afc163 afc163 deleted the upgrade-warning branch December 2, 2016 07:07
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.

None yet

4 participants