Skip to content

Releases: sass/migrator

Sass Migrator 2.6.0

08 Jun 21:07
045e956

Choose a tag to compare

Module Migrator

  • Add support for import-only files that include a mixin from their corresponding regular file. For example, given code like:

    styles.scss:

    a {
      $color: blue;
      @import "library";
      background: $bg;
    }

    _library.scss:

    $bg: gold;
    @mixin styles($color) {
      b {
        color: $color;
      }
    }

    _library.import.scss:

    @forward "library";
    @use "library";
    @include library.styles($color);
    

    the migrator will migrate styles.scss to:

    @use "library";
    
    a {
      $color: blue;
      @include library.styles($color);
      background: library.$bg;
    }
    

    While the migrator won't generate import-only files with this structure, this support for them will enable migration of projects that use nested and late imports that both emit CSS and provide Sass members by first manually wrapping the nested imports' CSS in mixins and then running the migrator to actually handle the nested imports.

See the full changelog for changes in earlier releases.

Sass Migrator 2.5.7

28 Jan 19:56
b9c56e4

Choose a tag to compare

  • Fix a bug where the --migrate-deps flag would not apply to dependencies via @forward rules.

See the full changelog for changes in earlier releases.

Sass Migrator 2.5.6

11 Dec 22:33
36efb71

Choose a tag to compare

  • No user-visible changes.

See the full changelog for changes in earlier releases.

Sass Migrator 2.5.5

11 Dec 22:20
5374d98

Choose a tag to compare

  • No user-visible changes.

See the full changelog for changes in earlier releases.

Sass Migrator 2.5.4

11 Dec 21:53
9a9258b

Choose a tag to compare

  • No user-visible changes.

See the full changelog for changes in earlier releases.

Sass Migrator 2.5.3

11 Dec 20:52
752a9ce

Choose a tag to compare

  • No user-visible changes.

See the full changelog for changes in earlier releases.

Sass Migrator 2.5.2

11 Dec 20:00
6627a92

Choose a tag to compare

  • No user-visible changes.

See the full changelog for changes in earlier releases.

Sass Migrator 2.5.1

11 Dec 19:48
afc2a8d

Choose a tag to compare

  • No user-visible changes.

See the full changelog for changes in earlier releases.

Sass Migrator 2.5.0

11 Dec 18:38
48eee20

Choose a tag to compare

if() Function Migrator

  • Added a new if-function migrator to convert the legacy Sass if() function syntax into the new CSS syntax. See the Sass website for details.

See the full changelog for changes in earlier releases.

Sass Migrator 2.4.2

31 Jul 20:31
463b1f4

Choose a tag to compare

Module Migration

  • Late @import rules can now be hoisted above safe at-rules in the same file.

  • Fix a typo in the error message for late @import rules that could not be migrated.

  • Fix a bug where hoisted @use rules with configuration would have incorrect syntax.

See the full changelog for changes in earlier releases.