Releases: ZeeCoder/container-query
Releases · ZeeCoder/container-query
v2.2.0
v2.1.0
v2.0.0
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 asvaluePrecision
. 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.
v1.3.0
Patch
Bugfix
Bugfix
Patch
Patch
Improved Browser Support
Now it works in basically all browsers, and IE9+
- Object.assign replacement
- Removed forEach calls on NodeList objects