Skip to content

Releases: ZeeCoder/container-query

v2.2.0

27 Jan 22:24
Compare
Choose a tag to compare

Added

  • react-container-query module

Changed

  • postcss-container-query will now work in the browser (if a getJSON function is provided to replace the default one, which uses Node's fs module)
  • doc updates
  • various refactorings

v2.1.0

11 Jan 12:25
Compare
Choose a tag to compare

Added

Changed

  • Dependency updates

Fixed

  • Missing NodeList.forEach #72

v2.0.0

05 Sep 21:04
Compare
Choose a tag to compare

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.

v1.3.0

26 Jul 16:04
Compare
Choose a tag to compare

New features

  • Resize Observer can be enabled (will be the default behaviour in 2.0.0)
  • Resize observation can be switched on / off.
  • First adjustment on Container instantiation can be switched off
  • Dependency upgrades

Patch

26 Mar 02:15
Compare
Choose a tag to compare

Fixed exports for non es-6 environments

Bugfix

25 Mar 00:54
Compare
Choose a tag to compare

Fixed a bug where the PostCSS plugin processed nodes it shouldn't have. (Fixes #22)

Bugfix

20 Mar 01:28
Compare
Choose a tag to compare

Fixed a bug where initialiseAllContainers didn't trigger adjust calls on DOM load.

Patch

03 Mar 21:12
Compare
Choose a tag to compare

Made the runtime work with an invalid config

Patch

20 Mar 01:29
Compare
Choose a tag to compare

Made Jest a dev-only dependency

Improved Browser Support

02 Mar 00:46
Compare
Choose a tag to compare

Now it works in basically all browsers, and IE9+

  • Object.assign replacement
  • Removed forEach calls on NodeList objects