Skip to content

Releases: sass/migrator

Sass Migrator 1.3.3

11 Mar 21:40
73d5d49
Compare
Choose a tag to compare
  • No user-visible changes.

See the full changelog for changes in earlier releases.

Sass Migrator 1.3.1

10 Feb 19:23
74446f5
Compare
Choose a tag to compare

Module Migrator

  • Prefixes will now be removed from private members (e.g. a variable $_lib-variable will be renamed to $_variable when --remove-prefix=lib- is passed).

  • Fix a bug where private members would be incorrectly added to hide clauses in generated import-only files.

See the full changelog for changes in earlier releases.

Sass Migrator 1.3.0

08 Feb 23:19
2d959de
Compare
Choose a tag to compare

Namespace Migrator

  • Add a new migrator for changing namespaces of @use rules.

    This migrator lets you change namespaces by matching regular expressions on existing namespaces or on @use rule URLs.

    You do this by passing expressions to the --rename in one of the following forms:

    • <old-namespace> to <new-namespace>: The <old-namespace> regular expression matches the entire existing namespace, and <new-namespace> is the replacement.

    • url <rule-url> to <new-namespace>: The <old-namespace> regular expression matches the entire URL in the @use rule, and <new-namespace> is the namespace that's chosen for it.

    The <new-namespace> patterns can include references to captured groups from the matching regular expression (e.g. \1).

    You can pass --rename multiple times and they will be checked in order until one matches (at which point subsequent renames will be ignored). You can also separate multiple rename expressions with semicolons or line breaks.

    By default, if the renaming results in a conflict between multiple @use rules, the migration will fail, but you can force it to resolve conflicts with numerical suffixes by passing --force.

See the full changelog for changes in earlier releases.

Sass Migrator 1.2.6

02 Feb 18:10
7285d15
Compare
Choose a tag to compare

Module Migrator

  • Fix a bug where generated import-only files for index files would contain invalid forwards.

  • Better handling for import-only files without corresponding regular files, including fixing a crash when @import rules for two files like this are adjacent to each other.

  • Midstream files that both forward configurable variables and configure other variables themselves should now be properly migrated.

  • When an @import rule is migrated to both a @use rule and a @forward rule, both rules will now be migrated in-place (previously, the @use rule would replace the @import rule and the @forward rule would be added after all other dependencies).

See the full changelog for changes in earlier releases.

Sass Migrator 1.2.5

23 Oct 20:11
9d4fb20
Compare
Choose a tag to compare

Module Migrator

  • The migrator now properly migrates built-in function calls with underscores (e.g. map_get).

See the full changelog for changes in earlier releases.

Sass Migrator 1.2.4

13 Oct 22:12
2800cca
Compare
Choose a tag to compare

Module Migrator

  • The migrator no longer crashes when it encounters an import-only file without a corresponding regular file. * If an import-only file does not forward its corresponding regular file, the migrator no longer includes a @use rule for it.

See the full changelog for changes in earlier releases.

Sass Migrator 1.2.3

21 May 23:49
e255762
Compare
Choose a tag to compare
  • Updates help text to use the correct binary name (sass-migrator).

See the full changelog for changes in earlier releases.

Sass Migrator 1.2.3-test.2

21 May 22:33
50280cb
Compare
Choose a tag to compare
Pre-release
  • No user-visible changes.

See the full changelog for changes in earlier releases.

Sass Migrator 1.2.2

06 May 22:44
Compare
Choose a tag to compare

To install Sass Migrator 1.2.2, download one of the packages above and add it to your PATH, or see the README for full installation instructions.

Changes

  • No user-visible changes.

See the full changelog for changes in earlier releases.

Sass Migrator 1.1.1

16 Jan 23:57
Compare
Choose a tag to compare

To install Sass Migrator 1.1.1, download one of the packages above and add it to your PATH, or see the README for full installation instructions.

Changes

Module Migrator

  • When using --forward=import-only, @forward rules in an import-only file are now sorted with the regular file last, allowing variables in indirect dependencies to be configured.

  • Fixes a bug where some references weren't renamed if a variable is declared twice when using --remove-prefix.

See the full changelog for changes in earlier releases.