Skip to content

v2.0.0

Compare
Choose a tag to compare
@ZeeCoder ZeeCoder released this 05 Sep 21:04
· 207 commits to master since this release

Added

  • New diffing algorithm, which keeps track of the container's status (which
    query was applied already) and applies / removes the least amount of new styles
    possible.
  • r-units produce a value with limited precision. This is 2 by default, which
    can be changed in the Container options as valuePrecision.
  • singleContainer option (true by default), which makes the use of
    @define-container unnecessary for single-file containers. (Works well with
    Component-based architecture.)
  • Support for using r-units with css custom props. ie: --rw: 1rw;

Changed

  • Published the runtime and the postcss plugin separately, both of which reside
    in the same monorepo. (Thanks to Lerna)
  • Container instances are auto-adjusting themselves on size change by default.
    (adjustOnResize option.)
  • Bundling with Rollup instead of just transpiling the source. This gives better
    control over what is exposed, makes it easy to support other module formats in
    the future, and integrates Babel seemlessly.

Removed

  • Removed support for the container and css unit combinations - like chpx - in
    favour of rw/rh/rmin/rmax units.
  • Removed initialiseAllContainers. It'll be turned to a demo instead in the
    future.
  • Removed some of the limitation on r-units. Paddings, for example can now use
    them.