Skip to content

Releases

Sass Migrator 2.7.0

Choose a tag to compare

@sassbot sassbot released this 11 Nov 21:41
62e88cb
  • Fix a number of edge cases involving escape codes in identifiers, particularly module namespaces.

  • Prefer using unquoted strings when passing module namespaces to sass:meta functions.

Namespace Migrator

  • Migrate namespace references in meta.get-mixin(), meta.get-module(), meta.function-exists(), meta.mixin-exists(), meta.global-variable-exists(), meta.module-functions(), meta.module-mixins(), meta.module-variables(), and meta.css().

See the full changelog for changes in earlier releases.

Sass Migrator 2.6.1

Choose a tag to compare

@sassbot sassbot released this 30 Jun 20:39

if() Function Migrator

  • Fix a bug where if(C, null, V) would be incorrectly migrated to if(sass(C): null) rather than if(not sass(C): V).

  • Migrate if(C, V, null) to if(sass(C): V) rather than if(sass(C): V; else: null). The extra else clause was redundant.

See the full changelog for changes in earlier releases.

Sass Migrator 2.6.0

Choose a tag to compare

@sassbot sassbot released this 08 Jun 21:07
045e956

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

Choose a tag to compare

@sassbot sassbot released this 28 Jan 19:56
b9c56e4
  • 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

Choose a tag to compare

@sassbot sassbot released this 11 Dec 22:33
36efb71
  • No user-visible changes.

See the full changelog for changes in earlier releases.

Sass Migrator 2.5.5

Choose a tag to compare

@sassbot sassbot released this 11 Dec 22:20
5374d98
  • No user-visible changes.

See the full changelog for changes in earlier releases.

Sass Migrator 2.5.4

Choose a tag to compare

@sassbot sassbot released this 11 Dec 21:53
9a9258b
  • No user-visible changes.

See the full changelog for changes in earlier releases.

Sass Migrator 2.5.3

Choose a tag to compare

@sassbot sassbot released this 11 Dec 20:52
752a9ce
  • No user-visible changes.

See the full changelog for changes in earlier releases.

Sass Migrator 2.5.2

Choose a tag to compare

@sassbot sassbot released this 11 Dec 20:00
6627a92
  • No user-visible changes.

See the full changelog for changes in earlier releases.

Sass Migrator 2.5.1

Choose a tag to compare

@sassbot sassbot released this 11 Dec 19:48
afc2a8d
  • No user-visible changes.

See the full changelog for changes in earlier releases.