Upgrading antd 0.8 to 0.9
Breaking0.8.0 → 0.9.5Breaking6New14Changed6Fixed19Other3
BreakingUpgrade verdict
6 breaking changes.
In plain terms
- Upload now reports changes through a single onChange callback instead of separate success, progress and error callbacks.
- Upload no longer shows its own success or error notices, so you need to show your own.
- The Upload component's API has changed and old code will need updating.
- Code calling confirm() must switch to Modal.confirm().
Must act Top 3 of 6 that need code or config changes
Adds react-slick ~0.8.0, reqwest-without-xhr2 ~2.0.2, semver ~5.0.3, util-deprecate ~1.0.1, warning ~2.1.0.
Drops react-slick2, reqwest, xhr2.
Installs 110 packages in all (was 71).
What you must change
Breaking6
Adds onChange(file) and removes the onSuccess, onProgess and onError callbacks.
onChange(file)onSuccessonProgessonErrorRemoves the built-in upload success and failure messages; applications must implement them.
Refactors the Upload API in a backward-incompatible way to support custom extensions.
UploadReplaces the confirm() method with Modal.confirm().
Modal.confirm()confirm()Modal now requires setting visible manually in onCancel to close.
ModalonCancelvisibleRefactors Enter Animation substantially with a newly designed API.
Enter Animation