@sass/types
1.108.2 · 11 Nov 2026MIT9.5k / weekRepositoryHomepagenpmAtom feed
36 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
1.108.2
11 Nov 2026No user-visible changes.
To install Sass 1.108.2, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
No user-visible changes.
See the full changelog for changes in earlier releases.
1.108.1
7 Nov 2026Fix an issue in the release process causing the OS-specific embedded Sass packages to be missing their Dart Sass snapshots.
To install Sass 1.108.1, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Node.js Embedded Host
Fix an issue in the release process causing the OS-specific embedded Sass packages to be missing their Dart Sass snapshots.
See the full changelog for changes in earlier releases.
1.108.0
6 Nov 2026Undo some unintentional breaking changes added in 1.106.0 relating to how escaped identifiers interact with
sass:metafunctions and named rest arguments.
To install Sass 1.108.0, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Undo some unintentional breaking changes added in 1.106.0 relating to how escaped identifiers interact with
sass:metafunctions and named rest arguments.
See the full changelog for changes in earlier releases.
1.107.1
30 Oct 2026Properly report the embedded protocol version as 3.4.0.
To install Sass 1.107.1, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Properly report the embedded protocol version as 3.4.0.
See the full changelog for changes in earlier releases.
1.107.0
28 Oct 2026- Deprecated
Passing a version number beyond the current Dart Sass version to
Options.fatalDeprecationsis now deprecated. See the Sass website for details. - Deprecated
Passing a version number beyond the current Dart Sass version to
Deprecation.forVersionis now deprecated. The
--fatal-deprecationflag can now exclude deprecations that would otherwise be included by passing a version number. To exclude a deprecation, add-before its name. For example,--fatal-deprecation=1.107.0,-importincludes all deprecations that were present in Dart Sass 1.107.0 except for the@importdeprecation.
To install Sass 1.107.0, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Command-Line Interface
The
--fatal-deprecationflag can now exclude deprecations that would otherwise be included by passing a version number. To exclude a deprecation, add-before its name. For example,--fatal-deprecation=1.107.0,-importincludes all deprecations that were present in Dart Sass 1.107.0 except for the@importdeprecation.The
--fatal-deprecationflag now takes the special valuedart-sass-2, which treats as fatal all deprecations that will become fatal in Dart Sass 2.0.0.
JavaScript API
Options.fatalDeprecationscan now take aDeprecationSelectorDifferenceobject of the form{include: ..., except: ...}, where theincludefield lists deprecations to mark fatal (which can be version numbers) and theexceptfield lists deprecations not to mark fatal. Theexceptfield takes precedence overinclude.Add a (non-enumerable)
sass.deprecations.dartSass2property which can be passed toOptions.fatalDeprecationsto mark as fatal exactly the deprecations that will become fatal in Dart Sass 2.0.0. This can be combined with other deprecations or used in aDeprecationSelectorDifferenceto modify exactly which deprecations it covers.- Deprecated
Passing a version number beyond the current Dart Sass version to
Options.fatalDeprecationsis now deprecated. See the Sass website for details.
Dart API
Add a
Deprecation.dartSass2property which returns exactly the set of deprecations that will become fatal in Dart Sass 2.0.0.- Deprecated
Passing a version number beyond the current Dart Sass version to
Deprecation.forVersionis now deprecated.
Embedded Protocol
Add a
CompileRequest.fatal_deprecation_exceptfield which excludes deprecations from being considered fatal if they would have been enabled byCompileRequest.fatal_deprecation.
See the full changelog for changes in earlier releases.
1.106.1
21 Oct 2026Fix a bug where an attribute selector with an empty value (such as
[class=""]) would crash when serializing.Don't crash when serializing a number with an empty unit. This is only possible through the JavaScript and Dart APIs or the embedded protocol.
More robustly convert invalid value errors into
PARAMSerrors.
To install Sass 1.106.1, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Fix a bug where an attribute selector with an empty value (such as
[class=""]) would crash when serializing.Don't crash when serializing a number with an empty unit. This is only possible through the JavaScript and Dart APIs or the embedded protocol.
Embedded Dart Sass
More robustly convert invalid value errors into
PARAMSerrors.
See the full changelog for changes in earlier releases.
1.106.0
21 Oct 2026Don't normalize CSS escapes in statement contexts that can contain interpolation. For example,
@f\6Fois now emitted as written rather than normalized to@foo.Fix a bug where quotes would be removed from attribute selector values that contained backslashes.
Fix invalid source spans that could cause crashes when encountering a syntax error in selectors or media queries that also contain escape sequences.
To install Sass 1.106.0, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Don't normalize CSS escapes in statement contexts that can contain interpolation. For example,
@f\6Fois now emitted as written rather than normalized to@foo.Fix a bug where quotes would be removed from attribute selector values that contained backslashes.
Fix invalid source spans that could cause crashes when encountering a syntax error in selectors or media queries that also contain escape sequences.
Fix a bug where the indented syntax parser would crash when parsing a file where the first statement was indented and appeared after the first line.
Fix a bug that could cause crashes when encountering errors or warnings in interpolations that contain patterns like
// */.Potentially breaking compatibility fix: CSS escape codes whose values are 0, for Unicode surrogates, or greater than the maximum allowed code point are now consistently normalized to U+FFFD REPLACEMENT CHARACTER in expression contexts. Previously, in some cases these were instead normalized to the normalized form of the original escape sequence, which violates the principle that all escape sequences for identical values should be normalized the same way. In other cases, these would simply throw errors.
As a special case,
\0on its own will continue to be normalized to\0to support historical CSS hacks.Potentially breaking bug fix: Throw an error for mixins and functions that have rest parameters which are the same as normal parameters. Previously, the positional parameters wouldn't be accessible and calling such a mixin or function with a named argument would crash the compiler.
Potentially breaking bug fix: Fix various cases where using a CSS escape code at the beginning of an identifier would change parsing behavior versus using the character directly.
Potentially breaking bug fix: When a number's unit is ambiguous with a numeric exponent, the unit is now serialized as an escape code rather than a literal
eto avoid being interpreted as an exponent by CSS.Potentially breaking bug fix: Don't parse a CSS escape code for U+45 LATIN CAPITAL LETTER E or U+65 LATIN LOWERCASE LETTER E as an exponent in
@keyframespercentage selectors.Potentially breaking bug fix: Properly normalize underscores written as CSS escape codes in variable, mixin, and function names.
See the full changelog for changes in earlier releases.
1.105.2
16 Oct 2026Fix a deadlock when the async compiler fails to start.
To install Sass 1.105.2, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Node.js Embedded Host
Fix a deadlock when the async compiler fails to start.
See the full changelog for changes in earlier releases.
1.105.1
29 Sep 2026Improve error messages for
@extends across different media queries.
To install Sass 1.105.1, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Improve error messages for
@extends across different media queries.
See the full changelog for changes in earlier releases.
1.105.0
22 Sep 2026Add support for first-class modules. These can be accessed using the new
meta.load()andmeta.get-module()functions, and may be passed as the$moduleargument to numerous eistingsass:metafunctions.Add the
meta.css()mixin, which includes CSS from a first-class module.Add a
SassModuleclass and a correspondingValue.assertModule()method.
To install Sass 1.105.0, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Add support for first-class modules. These can be accessed using the new
meta.load()andmeta.get-module()functions, and may be passed as the$moduleargument to numerous eistingsass:metafunctions.Add the
meta.css()mixin, which includes CSS from a first-class module.
Js api
Add a
SassModuleclass and a correspondingValue.assertModule()method.
Dart API
Add a
SassModuleclass and a correspondingValue.assertModule()method.
See the full changelog for changes in earlier releases.
1.104.1
11 Sep 2026Fix a bug where loud comments before
@userules could be emitted multiple times under certain circumstances.Fix a bug in which an invalid selector at the end of an indented syntax stylesheet would cause the parser to crash instead of emitting a useful error message.
Many-to-many compilations no longer compile any files that appear in the output directory if the output directory is also within the source directory. This fixes a bug where
--watchmode could enter an infinite loop recompiling the same CSS file over and over.
To install Sass 1.104.1, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Fix a bug where loud comments before
@userules could be emitted multiple times under certain circumstances.Fix a bug in which an invalid selector at the end of an indented syntax stylesheet would cause the parser to crash instead of emitting a useful error message.
Command Line Interface
Many-to-many compilations no longer compile any files that appear in the output directory if the output directory is also within the source directory. This fixes a bug where
--watchmode could enter an infinite loop recompiling the same CSS file over and over.Sass now sets the modification time of output files to the time compilation started rather than the time it ended. This ensures that, if a source file is modified during compilation,
--watchand--updatemode will recompile the outputs to include the new source file contents.
See the full changelog for changes in earlier releases.
1.104.0
3 Sep 2026Potentially breaking compatibility fix: Colors now convert the special values NaN and negative zero, as well as infinity and negative infinity for polar-hue channels, to 0 as per the CSS spec.
The special value negative zero is now serialized as
-0instead of0for greater compatibility when using it in CSS calculations.
To install Sass 1.104.0, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Potentially breaking compatibility fix: Colors now convert the special values NaN and negative zero, as well as infinity and negative infinity for polar-hue channels, to 0 as per the CSS spec.
The special value negative zero is now serialized as
-0instead of0for greater compatibility when using it in CSS calculations.
See the full changelog for changes in earlier releases.
1.103.1
20 Aug 2026No user-visible changes.
To install Sass 1.103.1, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
No user-visible changes.
See the full changelog for changes in earlier releases.
1.103.0
20 Aug 2026Potentially breaking compatibility fix: Colors now preserve "analogous sets" of missing channels during conversions, per the CSS spec. For example,
color.to-space(lch(50% none none), lab)now returnslab(50% none none)instead oflab(50% 0 0).
To install Sass 1.103.0, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Potentially breaking compatibility fix: Colors now preserve "analogous sets" of missing channels during conversions, per the CSS spec. For example,
color.to-space(lch(50% none none), lab)now returnslab(50% none none)instead oflab(50% 0 0).
See the full changelog for changes in earlier releases.
1.102.0
25 Jul 2026Use the 2.4 gamma transfer function for rec2020, as specified by the latest draft of CSS Color 4.
To install Sass 1.102.0, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Use the 2.4 gamma transfer function for rec2020, as specified by the latest draft of CSS Color 4.
See the full changelog for changes in earlier releases.
1.101.7
23 Jul 2026No user-visible changes.
To install Sass 1.101.7, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
No user-visible changes.
See the full changelog for changes in earlier releases.
1.101.6
22 Jul 2026No user-visible changes.
To install Sass 1.101.6, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
No user-visible changes.
See the full changelog for changes in earlier releases.
1.101.5
22 Jul 2026No user-visible changes.
To install Sass 1.101.5, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
No user-visible changes.
See the full changelog for changes in earlier releases.
1.101.4
22 Jul 2026Avoid emitting
rgb()orrgba()functions with non-percent decimal channels. Older browsers only support integer values or (potentially decimal) percentages for these functions, so in order to preserve backwards-compatibility while retaining full precision for modern browsers, legacy colors that contain at least one non-integer channel will now use percentages for their channels (for example,rgb(0%, 100%, 50%)rather thanrgb(0, 255, 127.5)).Fix a bug where the values of plain-CSS
if()expressions were emitted using theirmeta.inspect()format rather than their CSS serialization format.
To install Sass 1.101.4, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Avoid emitting
rgb()orrgba()functions with non-percent decimal channels. Older browsers only support integer values or (potentially decimal) percentages for these functions, so in order to preserve backwards-compatibility while retaining full precision for modern browsers, legacy colors that contain at least one non-integer channel will now use percentages for their channels (for example,rgb(0%, 100%, 50%)rather thanrgb(0, 255, 127.5)).Fix a bug where the values of plain-CSS
if()expressions were emitted using theirmeta.inspect()format rather than their CSS serialization format.
See the full changelog for changes in earlier releases.
1.101.3
21 Jul 2026No user-visible changes.
To install Sass 1.101.3, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
No user-visible changes.
See the full changelog for changes in earlier releases.
1.101.2
10 Jul 2026Fix a bug where the deprecation warning for vendor-prefixed
expression()functions would incorrectly indicate whether or not the function would be invalid Sass in Dart Sass 2.0.0.
1.101.0
11 Jun 2026Potentially breaking bug fix: The Node package importer now properly supports resolving import-only variants of Sass files declared in the
exports,sass, andstylefields ofpackage.json. Previously, these files were ignored even when loaded via@import, so any code relying on loading module-system-only files this way may break.
To install Sass 1.101.0, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Potentially breaking bug fix: The Node package importer now properly supports resolving import-only variants of Sass files declared in the
exports,sass, andstylefields ofpackage.json. Previously, these files were ignored even when loaded via@import, so any code relying on loading module-system-only files this way may break.
See the full changelog for changes in earlier releases.
1.100.0
22 May 2026- Deprecated
Writing two compound selectors adjacent to one another without any whitespace between them, such as
[class]a, is now deprecated. This was always an error in CSS and Sass only supported it by mistake.See the Sass website for details.
To install Sass 1.100.0, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
- Deprecated
Writing two compound selectors adjacent to one another without any whitespace between them, such as
[class]a, is now deprecated. This was always an error in CSS and Sass only supported it by mistake.See the Sass website for details.
See the full changelog for changes in earlier releases.
1.99.0
2 Apr 2026- Deprecated
User-defined functions named
EXPRESSION,URL, andELEMENT, those that begin with-and end with-ELEMENT, as well as the same names with some lowercase letters are now deprecated, These are names conflict with plain CSS functions that have special syntax.See the Sass website for details.
- Deprecated
In a future release, calls to functions whose names begin with
-and end with-expressionand-urlwill no longer have special parsing. For now, these calls are deprecated if their behavior will change in the future.See the Sass website for details.
- Deprecated
Calls to functions whose names begin with
-and end with-progid:...are deprecated.See the Sass website for details.
To install Sass 1.99.0, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Add support for parent selectors (
&) at the root of the document. These are emitted as-is in the CSS output, where they're interpreted as the scoping root.User-defined functions named
calcorclampare no longer forbidden. If such a function exists without a namespace in the current module, it will be used instead of the built-incalc()orclamp()function.User-defined functions whose names begin with
-and end with-expression,-url,-and,-or, or-notare no longer forbidden. These were originally intended to match vendor prefixes, but in practice no vendor prefixes for these functions ever existed in real browsers.- Deprecated
User-defined functions named
EXPRESSION,URL, andELEMENT, those that begin with-and end with-ELEMENT, as well as the same names with some lowercase letters are now deprecated, These are names conflict with plain CSS functions that have special syntax.See the Sass website for details.
- Deprecated
In a future release, calls to functions whose names begin with
-and end with-expressionand-urlwill no longer have special parsing. For now, these calls are deprecated if their behavior will change in the future.See the Sass website for details.
- Deprecated
Calls to functions whose names begin with
-and end with-progid:...are deprecated.See the Sass website for details.
See the full changelog for changes in earlier releases.
1.98.0
10 Mar 2026Gracefully handle dependency loops in
--watchmode.Add a
const Logger.defaultLoggerfield. This provides a logger that emits to standard error or the browser console, but automatically chooses whether to use terminal colors.Fix a crash when manually constructing a
SassCalculationfor'calc'with an argument that can't be simplified.
To install Sass 1.98.0, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Command-Line Interface
Gracefully handle dependency loops in
--watchmode.
Dart API
Add a
const Logger.defaultLoggerfield. This provides a logger that emits to standard error or the browser console, but automatically chooses whether to use terminal colors.
JavaScript API
Fix a crash when manually constructing a
SassCalculationfor'calc'with an argument that can't be simplified.Properly emit deprecation warnings as text rather than
StringBufferobjects when running in a browser.Emit colored warnings and other messages on the console when running in a browser.
See the full changelog for changes in earlier releases.
1.97.3
21 Jan 2026Fix a bug where nesting an at-rule within multiple style rules in plain CSS could cause outer style rules to be omitted.
To install Sass 1.97.3, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Fix a bug where nesting an at-rule within multiple style rules in plain CSS could cause outer style rules to be omitted.
See the full changelog for changes in earlier releases.
1.97.2
6 Jan 2026Additional fixes for implicit configuration when nested imports are involved.
To install Sass 1.97.2, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Additional fixes for implicit configuration when nested imports are involved.
See the full changelog for changes in earlier releases.
1.97.1
19 Dec 2025Fix a bug with the new CSS-style
if()syntax where values would be evaluated even if their conditions didn't match.
To install Sass 1.97.1, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Fix a bug with the new CSS-style
if()syntax where values would be evaluated even if their conditions didn't match.
See the full changelog for changes in earlier releases.
1.97.0
16 Dec 2025Add support for the
display-p3-linearcolor space.
To install Sass 1.97.0, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Add support for the
display-p3-linearcolor space.
See the full changelog for changes in earlier releases.
1.96.0
11 Dec 2025Allow numbers with complex units (more than one numerator unit or more than zero denominator units) to be emitted to CSS. These are now emitted as
calc()expressions, which now support complex units in plain CSS.
To install Sass 1.96.0, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Allow numbers with complex units (more than one numerator unit or more than zero denominator units) to be emitted to CSS. These are now emitted as
calc()expressions, which now support complex units in plain CSS.
See the full changelog for changes in earlier releases.
1.95.1
9 Dec 2025No user-visible changes.
To install Sass 1.95.1, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
No user-visible changes.
See the full changelog for changes in earlier releases.
1.95.0
8 Dec 2025- Deprecated
The old Sass
if()syntax is now deprecated. Users are encouraged to migrate to the new CSS syntax.if($condition, $if-true, $if-false)can be changed toif(sass($condition): $if-true; else: $if-false).See the Sass website for details.
Add support for the CSS-style
if()function. In addition to supporting the plain CSS syntax, this also supports asass()query that takes a Sass expression that evaluates totrueorfalseat preprocessing time depending on whether the Sass value is truthy. If there are no plain-CSS queries, the function will return the first value whose query returns true during preprocessing. For example,if(sass(false): 1; sass(true): 2; else: 3)returns2.Plain-CSS
if()functions are now considered "special numbers", meaning that they can be used in place of arguments to CSS color functions.
To install Sass 1.95.0, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Add support for the CSS-style
if()function. In addition to supporting the plain CSS syntax, this also supports asass()query that takes a Sass expression that evaluates totrueorfalseat preprocessing time depending on whether the Sass value is truthy. If there are no plain-CSS queries, the function will return the first value whose query returns true during preprocessing. For example,if(sass(false): 1; sass(true): 2; else: 3)returns2.- Deprecated
The old Sass
if()syntax is now deprecated. Users are encouraged to migrate to the new CSS syntax.if($condition, $if-true, $if-false)can be changed toif(sass($condition): $if-true; else: $if-false).See the Sass website for details.
Plain-CSS
if()functions are now considered "special numbers", meaning that they can be used in place of arguments to CSS color functions.Plain-CSS
if()functions andattr()functions are now considered "special variable strings" (likevar()), meaning they can now be used in place of multiple arguments or syntax fragments in various CSS functions.
See the full changelog for changes in earlier releases.
1.94.3
8 Dec 2025Fix the span reported for standalone
%expressions followed by whitespace.
To install Sass 1.94.3, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Fix the span reported for standalone
%expressions followed by whitespace.
See the full changelog for changes in earlier releases.
1.94.2
19 Nov 2025Using
--fatal-deprecation <version>no longer emits warnings about deprecations that are obsolete.Deprecation.forVersionnow excludes obsolete deprecations from the set it returns.Excludes obsolete deprecations from
fatalDeprecationswhen aVersionis passed.
To install Sass 1.94.2, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Command-Line Interface
Using
--fatal-deprecation <version>no longer emits warnings about deprecations that are obsolete.
Dart API
Deprecation.forVersionnow excludes obsolete deprecations from the set it returns.
Js api
Excludes obsolete deprecations from
fatalDeprecationswhen aVersionis passed.
Node.js Embedded Host
Fix a bug where a variable could be used before it was initialized during async compilation.
See the full changelog for changes in earlier releases.
1.94.1
18 Nov 2025No user-visible changes.
To install Sass 1.94.1, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
No user-visible changes.
See the full changelog for changes in earlier releases.
1.93.2
23 Sep 2025No user-visible changes.
Fix another error in the release process for
@sass/types.
To install Sass 1.93.2, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
No user-visible changes.
JavaScript API
Fix another error in the release process for
@sass/types.
See the full changelog for changes in earlier releases.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.