0👍
This is because it is a major version upgrade in which are a lot of breaking changes. For all of them please read the migration guide. In your case elements.Rectangle
doesnt exist anymore. It has been replaced with elements.bar
Source:stackexchange.com