Skip to content

Upgrading antd 0.9 to 0.10

Breaking0.9.5 → 0.10.5Breaking5Deprecated2New23Changed20Fixed14Other6

BreakingUpgrade verdict

5 breaking changes.

  • The ButtonGroup shortcut is gone. Build it from Button.Group instead.
  • Two slider option names changed, so old names no longer work.
  • The notification helper is now called with a lowercase name.
  • The Pagination component has a new defaultCurrent option. The current option now only reflects the value you pass in, so you must update it yourself when the page changes.
Top 5 of 7 that need code or config changes

Adds classnames ~2.2.0, rc-queue-anim ~0.11.2, rc-time-picker ~0.7.1, rc-trigger ~1.0.6, reqwest ~2.0.5.

Drops enter-animation, reqwest-without-xhr2.

Installs 62 packages in all (was 110).

Breaking5
Removes unused antd.ButtonGroup; use const ButtonGroup = Button.Group instead.
antd.ButtonGroupButton.Group
Renames Slider props withDots to dots and isIncluded to included.
SliderdotswithDotsincludedisIncluded
Renames antd.Notification() to antd.notification().
antd.Notification()antd.notification()
Upgrades Pagination, adds the defaultCurrent property, and makes current a fully controlled property.
PaginationdefaultCurrentcurrent
Replaces the onSelect property with onChange on Datepicker.
onChangeonSelect
Deprecated2
Deprecates importing Form and Input from 'ant/lib/form' in favor of separate module paths.
FormInput
Recommends onClick over onSelect for Dropdown because onSelect only fires on change.
DropdownonClickonSelect