Skip to content

Releases: sass/migrator

Sass Migrator 2.4.2

31 Jul 20:31
463b1f4
Compare
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.

Sass Migrator 2.4.1

30 Jul 21:05
8207c2b
Compare
Choose a tag to compare

Module Migrator

  • Fix a bug where a duplicate namespace would be added to a reassignment of a variable from another module when running on a partially migrated file.

See the full changelog for changes in earlier releases.

Sass Migrator 2.4.0

21 Jul 16:23
6984c16
Compare
Choose a tag to compare

Module System Migration

  • Better handling of late @import rules. Previously, these were treated identically to nested imports, but now they can be hoisted to the top of the file where @use is allowed if they do not emit any CSS.

    To allow the migrator to hoist even late imports that do emit CSS, use the --unsafe-hoist flag. @import rules that emit CSS will still be converted to meta.load-css() even with this flag if no Sass members are referenced from them.

    If there are any plain CSS at-rules that are used by your post-processing tools but never actually result in meaningful CSS, you can pass them (without the @) to --safe-at-rule so that the migrator doesn't consider them to emit CSS when handling late imports.

    The migrator's behavior when encountering actual nested imports remains unchanged.

  • Fix a bug that resulted in duplicate @use rules when migrating stylesheets that contained both a @use and an @import of the same dependency.

See the full changelog for changes in earlier releases.

Sass Migrator 2.3.3

01 Jul 21:29
74bfa89
Compare
Choose a tag to compare

Module System Migration

  • Fix some bugs in the conversion of private names that are referenced across files to public names, especially when --remove-prefix and/or multiple leading dashes/underscores are involved.

See the full changelog for changes in earlier releases.

Sass Migrator 2.3.2

06 May 21:05
4cc80c4
Compare
Choose a tag to compare
  • Update to be compatible with the latest version of the Dart Sass AST.

See the full changelog for changes in earlier releases.

Sass Migrator 2.3.1

22 Jan 16:55
364b644
Compare
Choose a tag to compare

Color Function Migrator

  • Fix a bug where deprecated color functions nested inside other functions would not be migrated.

See the full changelog for changes in earlier releases.

Sass Migrator 2.3.0

18 Dec 23:41
e3712be
Compare
Choose a tag to compare
  • Add a --pkg-importer flag to enable loading dependencies from pkg: URLs with the same behavior as the compiler. Currently this only supports the Node.js package resolution algorithm, via --pkg-importer=node. For example, @use "pkg:bootstrap" will load node_modules/bootstrap/scss/bootstrap.scss.

See the full changelog for changes in earlier releases.

Sass Migrator 2.2.1

23 Oct 23:49
8b80d14
Compare
Choose a tag to compare

Module Migrator

  • Fix a bug where plain CSS min() and max() functions would incorrectly be migrated to math.min() and math.max().

See the full changelog for changes in earlier releases.

Sass Migrator 2.2.0

11 Oct 00:07
c5f8ac8
Compare
Choose a tag to compare

Module Migrator

  • Add a new --built-in-only flag, which migrates global functions to their sass: module equivalents, while leaving @import rules unchanged.

  • Fix bug where some functions (opacity, is-bracketed, and selector-extend) would not be migrated.

See the full changelog for changes in earlier releases.

Sass Migrator 2.1.0

19 Sep 01:21
c27792b
Compare
Choose a tag to compare

Color Function Migrator

  • Adds a new color migrator that migrates off of legacy color functions that were deprecated in Dart Sass 1.79.0.

See the full changelog for changes in earlier releases.