Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Releases: borodean/postcss-assets

6.0.0

13 May 21:28
Compare
Choose a tag to compare

Breaking

  • Updates to PostCSS 8 (#86, #87)
  • Drops nodejs <10 support.

Under the hook

  • Minor documentation tweaks (#78, #84)

5.0.0

31 Aug 22:05
Compare
Choose a tag to compare

Breaking

  • Updates to PostCSS 6 (#70, #71, #72).
  • Drops nodejs 0.12 support.

4.2.0

15 Jul 23:01
Compare
Choose a tag to compare

Features:

  • Add cache option to cache resolved dimensions (#73).

4.1.0

24 Apr 20:08
Compare
Choose a tag to compare

Features:

  • relative option supports what relativeTo option did in 3.x: if a string is passed, paths are generated relatively to a path in that string. A behavior of relating to input files by passing true is kept untouched.

Under the hood:

4.0.1

01 Feb 13:55
Compare
Choose a tag to compare

Bugfixes

  • Works fine with no options provided (#45).

4.0.0

30 Jan 17:57
Compare
Choose a tag to compare

Breaking

  • Removes relativeTo option, introduces relative one.

    There is no need to specify a particular file to relate to anymore - set relative to true and Assets would resolve URLs relatively to the current CSS file.

    This solves the issue when you have stylesheets in different folders and want relative paths — previously there was an option to relate only to a single directory.

    (#42)

Features

  • Load paths now accept globs:

    var options = { loadPaths: ['images', 'assets/**/img'] };

    (#40)

  • Load paths now also accept single strings:

    var options = { loadPaths: 'assets/**/img' };

Bugfixes

  • Really fixes the SVG rendering on Internet Explorer.
  • SCSS flags are preserved (#43).
  • No more funky file names in the repo to make Windows archiver happy (#35).
  • Allows numbers to be returned from the cachebuster function.

Under the hood

  • Coverage hits 100%.
  • Automated tests against the latest stable nodejs, v0.12 and v4.
  • Builds are automatically tested on Windows by AppVeyor.
  • Switches tests from Mocha to AVA.
  • Uses Calipers for image measurement instead of image-size.
  • Replaces custom function mapper with postcss-functions.
  • Extracts assets processing logic to the Assets module.
  • Cleans up dependencies.

2.1.4

25 Nov 05:12
Compare
Choose a tag to compare

Since private image-size fork was removed, releases 2.1.0—3.0.2 has stopped working. While 3.0.3 release fixes this for the 3.0.x versions, this release is fixing the same for the 2.1.x.

Bugfixes

  • no longer uses private image-size fork (#37)

3.0.3

23 Nov 22:20
Compare
Choose a tag to compare

Bugfixes

  • no longer uses private image-size fork, so properly installs on Windows (#30, #32);
  • properly calculates dimensions of SVGs with percentage values of width/height attributes (#33).

3.0.2

06 Sep 15:11
Compare
Choose a tag to compare

Bugfixes

  • IE understands generated SVG (#24).

3.0.1

06 Sep 13:23
Compare
Choose a tag to compare

Bugfixes

  • Preserves Microsoft filters (#27).

Under the hood

  • Uses ESLint instead of JSHint/JSCS.