Learn / Upgrading to 0.41

Upgrading to 0.41

This guide is for an application on Foldkit Plus 0.40. It lists every breaking change of 0.41.0 that you may have to act on, package by package, with what to write instead. The 0.41.0 changelog holds every entry in full.

Most of it is renames. A rename is a type error where you call the old name, so the TypeScript compiler (tsc) gives you the list: compile, then work down the errors with this page beside you. Each package carries its own version; 0.41.0 publishes them together (foldkit-mixins-ui 0.27.0, foldkit-mixins 0.26.0, foldkit-entity 0.18.0, foldkit-bundle 0.14.0).

Check these four first. The compiler cannot see them, because each changes a default rather than a name, and your code compiles either way.

  1. The default theme casts shadows, rounds corners more, deepens the accent, tints greys toward the accent and gives menus the page's raised surface. Keep the 0.40 look with five knobs.
  2. A card group (Card.group) draws its pointer highlight only when given fluid: Card.fluid.
  3. An ImageCropper draws its zoom slider only when given zoom: ImageCropper.zoomSlider().
  4. A ColorPicker's eyedropper is off unless you pass eyedropper. Keep ColorPicker.canEyedrop() in your Model, read once in init or after hydration, and pass it: the view used to test the browser while drawing, so a server and a browser drew different markup.