Releases: sass/migrator
Sass Migrator 2.3.0
- Add a
--pkg-importer
flag to enable loading dependencies frompkg:
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 loadnode_modules/bootstrap/scss/bootstrap.scss
.
See the full changelog for changes in earlier releases.
Sass Migrator 2.2.1
Module Migrator
- Fix a bug where plain CSS
min()
andmax()
functions would incorrectly be migrated tomath.min()
andmath.max()
.
See the full changelog for changes in earlier releases.
Sass Migrator 2.2.0
Module Migrator
-
Add a new
--built-in-only
flag, which migrates global functions to theirsass:
module equivalents, while leaving@import
rules unchanged. -
Fix bug where some functions (
opacity
,is-bracketed
, andselector-extend
) would not be migrated.
See the full changelog for changes in earlier releases.
Sass Migrator 2.1.0
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.
Sass Migrator 2.0.3
Module Migrator
- Fixes some crashes due to null pointer errors.
See the full changelog for changes in earlier releases.
Sass Migrator 2.0.2
Calc Functions Interpolation Migrator
- Fix the interpretation of a dash in a variable name as a minus sign.
See the full changelog for changes in earlier releases.
Sass Migrator 2.0.1
Calc Functions Interpolation Migrator
- Add parentheses in place of interpolation when necessary to preserve the evaluation order.
- Keep interpolation in
var()
CSS functions.
See the full changelog for changes in earlier releases.
Sass Migrator 2.0.0
-
Breaking change: The
media-logic
migrator has been removed as the corresponding breaking change has been completed in Dart Sass. If you still need to migrate legacy code, use migrator version 1.8.1. -
Update to be compatible with the latest version of the Dart Sass AST.
Calc Functions Interpolation Migrator
- Add parentheses in place of interpolation when necessary to preserve the evaluation order.
Division Migrator
/
division should now be left untouched in all CSS calculation functions. This was already the case forcalc
,clamp
,min
, andmax
, but it now applies to the new functions that Dart Sass 1.67.0 added support for.
See the full changelog for changes in earlier releases.
Sass Migrator 1.8.1
Calc Functions Interpolation Migrator
- Migration for more than one interpolation or expressions in a calc function parameter.
See the full changelog for changes in earlier releases.
Sass Migrator 1.8.0
Calc Functions Interpolation Migrator
- Removes interpolation in calculation functions
calc()
,clamp()
,min()
, andmax()
. See the scss/function-calculation-no-interpolation rule for more information.
See the full changelog for changes in earlier releases.