Repository navigation
Releases
Sass Migrator 2.7.0
-
Fix a number of edge cases involving escape codes in identifiers, particularly module namespaces.
-
Prefer using unquoted strings when passing module namespaces to
sass:metafunctions.
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(), andmeta.css().
See the full changelog for changes in earlier releases.
Sass Migrator 2.6.1
if() Function Migrator
-
Fix a bug where
if(C, null, V)would be incorrectly migrated toif(sass(C): null)rather thanif(not sass(C): V). -
Migrate
if(C, V, null)toif(sass(C): V)rather thanif(sass(C): V; else: null). The extraelseclause was redundant.
See the full changelog for changes in earlier releases.
Sass Migrator 2.6.0
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.scssto:@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
- Fix a bug where the
--migrate-depsflag would not apply to dependencies via@forwardrules.
See the full changelog for changes in earlier releases.
Sass Migrator 2.5.6
- No user-visible changes.
See the full changelog for changes in earlier releases.
Sass Migrator 2.5.5
- No user-visible changes.
See the full changelog for changes in earlier releases.
Sass Migrator 2.5.4
- No user-visible changes.
See the full changelog for changes in earlier releases.
Sass Migrator 2.5.3
- No user-visible changes.
See the full changelog for changes in earlier releases.
Sass Migrator 2.5.2
- No user-visible changes.
See the full changelog for changes in earlier releases.
Sass Migrator 2.5.1
- No user-visible changes.
See the full changelog for changes in earlier releases.