sass_api
Additional APIs for Dart Sass.
17.9.1
2.5K downloads/mo
#4944 most downloaded on pub.dev
sass/dart-sass
What this package is like to depend on
Last release 3 days ago
20 Aug 2026
Ships fairly regularly
a new release about every 4 weeks
Nearly every release is documented
notes for 116 of 120 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
166 releases · first in 2021
21 releases in the last 12 months
see the full history below
Release timeline
166 releases · Aug 2021 to Aug 2026Releases
latest 60 of 166-
17.9.120 Aug 2026 -
17.8.025 Jul 2026 -
17.7.723 Jul 2026Nothing published for this version
-
17.7.622 Jul 2026Nothing published for this version
-
17.7.522 Jul 2026Nothing published for this version
-
17.7.422 Jul 2026 -
17.6.022 May 2026Release notes
Open source →- Add a
loggerparameter toSelectorList.parse(),ComplexSelector.parse(),CompoundSelector.parse(), andSimpleSelcetor.parse(). This is used to report deprecations found when parsing selectors.
- Add a
-
17.5.002 Apr 2026 -
17.4.010 Mar 2026 -
17.3.321 Jan 2026 -
17.3.206 Jan 2026 -
17.3.016 Dec 2025 -
17.2.011 Dec 2025 -
17.1.009 Dec 2025Release notes
Open source →- Add support for passing
parseSelectors: truetoImportCacheandAsyncImportCache.
- Add support for passing
-
17.0.008 Dec 2025Release notes
Open source →-
Rename the old
IfExpressionclass toLegacyIfExpression. -
Add a new
IfExpressionclass to represent the CSSif()function. -
Add a sealed
IfConditionExpressionclass which represents the possible condition components in anIfExpression. -
Add a
BinaryOperatorenumeration and use it forSupportsOperation.operator. -
Add an
ExpressionVisitableinterface for anything visitable by anExpressionVisitor(currentlyExpressionandIfConditionExpression). -
Add a
ArgumentList.namedSpansfield.
-
-
16.0.308 Dec 2025Release notes
Open source →- Add several members of
RecursiveAstVisitorwhich were missing in the previous release.
- Add several members of
-
16.0.224 Nov 2025 -
16.0.118 Nov 2025 -
15.12.122 Sep 2025 -
15.11.005 Sep 2025 -
15.10.002 Sep 2025 -
15.9.025 Aug 2025 -
15.8.005 Aug 2025 -
15.7.030 May 2025Release notes
Open source →- Potentially-breaking bug fix: parenthesized, comma-separated lists are now
correctly wrapped in a
ParenthesizedExpression.
- Potentially-breaking bug fix: parenthesized, comma-separated lists are now
correctly wrapped in a
-
15.6.016 May 2025 -
15.5.010 May 2025 -
15.4.021 Apr 2025 -
15.3.304 Apr 2025Nothing published for this version
-
15.3.202 Apr 2025 -
15.3.017 Mar 2025 -
15.2.125 Feb 2025 -
15.2.014 Feb 2025 -
15.1.006 Feb 2025 -
15.0.414 Jan 2025 -
15.0.314 Jan 2025 -
15.0.214 Jan 2025 -
15.0.104 Jan 2025 -
14.4.003 Dec 2024 -
14.3.003 Dec 2024Release notes
Open source →- Add
NodePackageImporter, which loadspkg:URLs fromnode_moduleswithin the providedentryPointDirectory.
- Add
-
14.2.015 Nov 2024 -
14.1.312 Nov 2024 -
14.1.201 Nov 2024 -
14.1.129 Oct 2024 -
14.1.023 Oct 2024Release notes
Open source →- Add
Expression.isCalculationSafe, which returns true when this expression can safely be used in a calculation.
- Add
-
14.0.019 Oct 2024Release notes
Open source →-
Breaking change: Warnings are no longer emitted during parsing, so the
loggerparameter has been removed from the following:-
ArgumentDeclaration.parse(),ComplexSelector.parse(),CompoundSelector.parse(),Expression.parse(),SelectorList.parse(), andSimpleSelector.parse(). -
Stylesheet.parse(),Stylesheet.parseCss(),Stylesheet.parseSass(), andStylesheet.parseScss(). -
The
AsyncImportCacheandImportCacheconstructors.
Additionally, the
quietparameter has been removed fromAsyncImportCache.importCanonical()andImportCache.importCanonical(), andAsyncImportCache.wrapLogger()andImportCache.wrapLogger()have been removed entirely. -
-
-
13.1.217 Oct 2024 -
13.1.117 Oct 2024Release notes
Open source →- Make
AsyncImportCache.wrapLogger()andImportCache.wrapLogger()always limit the repetition of deprecations. this is unlikely to be the long-term behavior, but it's necessary to avoid flooding users with deprecations in the short term.
- Make
-
13.1.017 Oct 2024Release notes
Open source →- Add
AsyncImportCache.wrapLogger()andImportCache.wrapLogger()methods, which wrap a given logger to apply deprecation options to it.
- Add
-
13.0.116 Oct 2024Release notes
Open source →- Fix a bug where
LoudComments parsed from the indented syntax would include whitespace after the closing*/.
- Fix a bug where
-
13.0.011 Oct 2024Release notes
Open source →-
The
Interpolation()constructor now takes an additionalList<FileSpan?>spans argument which cover the#{}for expression elements. -
Added a new
Interpolation.plain()constructor for interpolations that only contain a single plain-text string. -
Added
Interpolation.spanForElement()which returns the span that covers a single element ofcontents. -
InterpolationBuffer.add()now takes aFileSpanthat covers the#{}around the expression.
-
-
12.0.320 Sep 2024 -
12.0.219 Sep 2024 -
12.0.118 Sep 2024 -
12.0.017 Sep 2024Release notes
Open source →-
Breaking change: Remove the
SassApiColor.hasCalculatedRgband.hasCalculatedHslextension methods. These can now be determined by checking ifSassColor.spaceisKnownColorSpace.rgborKnownColorSpace.hsl, respectively. -
Added a
ColorSpaceclass which represents the various color spaces defined in the CSS spec. -
Added
SassColor.spacewhich returns a color's color space. -
Added
SassColor.channelsand.channelsOrNullwhich returns a list of channel values, with missing channels converted to 0 or exposed as null, respectively. -
Added
SassColor.isLegacy,.isInGamut,.channel(),.isChannelMissing(),.isChannelPowerless(),.toSpace(),.toGamut(),.changeChannels(), and.interpolate()which do the same thing as the Sass functions of the corresponding names. -
SassColor.rgb()now allows out-of-bounds and non-integer arguments. -
SassColor.hsl()and.hwb()now allow out-of-bounds arguments. -
Added
SassColor.hwb(),.srgb(),.srgbLinear(),.displayP3(),.a98Rgb(),.prophotoRgb(),.rec2020(),.xyzD50(),.xyzD65(),.lab(),.lch(),.oklab(),.oklch(), and.forSpace()constructors. -
Deprecated
SassColor.red,.green,.blue,.hue,.saturation,.lightness,.whiteness, and.blacknessin favor ofSassColor.channel(). -
Deprecated
SassColor.changeRgb(),.changeHsl(), and.changeHwb()in favor ofSassColor.changeChannels(). -
Added
SassNumber.convertValueToUnit()as a shorthand forSassNumber.convertValue()with a single numerator. -
Added
InterpolationMethodandHueInterpolationMethodwhich collectively represent the method to use to interpolate two colors. -
Added the
SassApiColorSpaceextension to expose additional members ofColorSpace. -
Added the
ColorChannelclass to represent information about a single channel of a color space. -
Added
SassNumber.convertValueToUnit()as a shorthand forSassNumber.convertValue()with a single numerator.
-
-
11.0.003 Sep 2024 -
10.4.811 Jul 2024 -
10.4.709 Jul 2024 -
10.4.511 Jun 2024 -
10.4.430 May 2024 -
10.4.329 May 2024