sass_api 18.0.0
sass_api: ^18.0.0 copied to clipboard
Additional APIs for Dart Sass.
18.0.0 #
-
Add a
SelectorNamespacetype, along with subtypesDefaultSelectorNamespace,NoSelectorNamespace,AnySelectorNamespace, andNamedSelectorNamespace. -
Breaking change:
QualifiedName.namespacenow uses the newSelectorNamespacetype. -
Breaking change:
Stringvalues that are parsed from identifiers now contain the semantic value of those identifiers, with escapes resolved. These are normalized back to escape codes at serialization time.Interpolationvalues parsed from identifiers still contain normalized identifiers for expressions. For statements, they now contain the identifier syntax exactly as written in the document. -
Breaking change: Parsed
Interpolations no longer normalize CSS escapes, which means thatInterpolation.asPlainis also are not normalized. UseInterpolation.asPlainIdentifierinstead to retrieve a normalized identifier for use in checking for specific keywords.
17.11.2 #
- No user-visible changes.
17.11.1 #
- No user-visible changes.
17.11.0 #
- No user-visible changes.
17.10.1 #
- Omit an extra newline that was being added to the end of
StyleRule.selectorin the indented syntax.
17.10.0 #
- No user-visible changes.
17.9.1 #
- No user-visible changes.
17.9.0 #
- No user-visible changes.
17.8.0 #
- No user-visible changes.
17.7.4 #
- No user-visible changes.
17.7.3 #
- No user-visible changes.
17.7.2 #
- No user-visible changes.
17.7.1 #
- No user-visible changes.
17.7.0 #
- No user-visible changes.
17.6.0 #
- Add a
loggerparameter toSelectorList.parse(),ComplexSelector.parse(),CompoundSelector.parse(), andSimpleSelcetor.parse(). This is used to report deprecations found when parsing selectors.
17.5.0 #
- Add an
Expression.isPlainCss()method.
17.4.0 #
- No user-visible changes.
17.3.3 #
- No user-visible changes.
17.3.2 #
- No user-visible changes.
17.3.1 #
- No user-visible changes.
17.3.0 #
- Add the
SassColor.displayP3Linearconstructor.
17.2.0 #
- No user-visible changes.
17.1.0 #
- Add support for passing
parseSelectors: truetoImportCacheandAsyncImportCache.
17.0.0 #
-
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.3 #
- Add several members of
RecursiveAstVisitorwhich were missing in the previous release.
16.0.2 #
- No user-visible changes.
16.0.1 #
- No user-visible changes.
16.0.0 #
-
Breaking change:
InterpolationMapnow takes a list of integer offsets rather than a list ofSourceLocationobjects. -
Breaking change:
AttributeSelector'sop,value, andmodifierfields are nowCssValues rather than plain values. -
Add
Interpolated...versions of all the selector AST nodes that are available via theStyleRule.parsedSelectorfield ifparseSelectors: trueis passed toStylesheet.parse(). This makes it easier for tools to interact with selectors despite the fact that the Sass implementation doesn't parse them until after all interpolation has been resolved. -
Add a
Declaration.notSassScript()constructor for raw CSS declarations such as custom properties and theresultproperty in plain CSS@functionrules.
15.12.3 #
- No user-visible changes.
15.12.2 #
- No user-visible changes.
15.12.1 #
- No user-visible changes.
15.12.0 #
- No user-visible changes.
15.11.0 #
- No user-visible changes.
15.10.0 #
- No user-visible changes.
15.9.0 #
- No user-visible changes.
15.8.0 #
- No user-visible changes.
15.7.1 #
- No user-visible changes.
15.7.0 #
- Potentially-breaking bug fix: parenthesized, comma-separated lists are now
correctly wrapped in a
ParenthesizedExpression.
15.6.0 #
- No user-visible changes.
15.5.0 #
- No user-visible changes.
15.4.0 #
- No user-visible changes.
15.3.2 #
- No user-visible changes.
15.3.1 #
- No user-visible changes.
15.3.0 #
- No user-visible changes.
15.2.1 #
- No user-visible changes.
15.2.0 #
- No user-visible changes.
15.1.0 #
- No user-visible changes.
15.0.5-dev #
- No user-visible changes.
15.0.4 #
- No user-visible changes.
15.0.3 #
- No user-visible changes.
15.0.2 #
- No user-visible changes.
15.0.1 #
- No user-visible changes.
15.0.0 #
-
Rename
ArgumentInvocationtoArgumentList,ArgumentDeclarationtoParameterList, andArgumenttoParameterto better match the conventional distinction between "arguments" and "parameters". -
Rename
ArgumentDeclaration.argumentstoParameterList.parameters,ArgumentDeclaration.restArgumenttoParameterList.restParameter,CallableDeclaration.argumentsto.parameters.
14.4.1-dev #
- No user-visible changes.
14.4.0 #
- No user-visible changes.
14.3.0 #
- Add
NodePackageImporter, which loadspkg:URLs fromnode_moduleswithin the providedentryPointDirectory.
14.2.0 #
- No user-visible changes.
14.1.3 #
- No user-visible changes.
14.1.2 #
- No user-visible changes.
14.1.1 #
- No user-visible changes.
14.1.0 #
- Add
Expression.isCalculationSafe, which returns true when this expression can safely be used in a calculation.
14.0.0 #
-
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.2 #
- No user-visible changes.
13.1.1 #
- 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.
13.1.0 #
- Add
AsyncImportCache.wrapLogger()andImportCache.wrapLogger()methods, which wrap a given logger to apply deprecation options to it.
13.0.1 #
- Fix a bug where
LoudComments parsed from the indented syntax would include whitespace after the closing*/.
13.0.0 #
-
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.5 #
- No user-visible changes.
12.0.4 #
- No user-visible changes.
12.0.3 #
- No user-visible changes.
12.0.2 #
- No user-visible changes.
12.0.1 #
- No user-visible changes.
12.0.0 #
-
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.1.0 #
- Loud comments in the Sass syntax no longer automatically inject
*/to the end when parsed.
11.0.0 #
- Remove the
CallableDeclaration()constructor.
10.4.8 #
- No user-visible changes.
10.4.7 #
- No user-visible changes.
10.4.6 #
- No user-visible changes.
10.4.5 #
- No user-visible changes.
10.4.4 #
- No user-visible changes.
10.4.3 #
- No user-visible changes.
10.4.2 #
- No user-visible changes.
10.4.1 #
- No user-visible changes.
10.4.0 #
- No user-visible changes.
10.3.0 #
- No user-visible changes.
10.2.1 #
- No user-visible changes.
10.2.0 #
- No user-visible changes.
10.1.1 #
- No user-visible changes.
10.1.0 #
- No user-visible changes.
10.0.0 #
-
Remove the
allowPlaceholdersargument fromSelectorList.parse(). Instead, it now has a more genericplainCssargument which tells it to parse the selector in plain CSS mode. -
Rename
SelectorList.resolveParentSelectorstoSelectorList.nestWithin.
9.5.0 #
- No user-visible changes.
9.4.2 #
- No user-visible changes.
9.4.1 #
- No user-visible changes.
9.4.0 #
- No user-visible changes.
9.3.0 #
- No user-visible changes.
9.2.7 #
- No user-visible changes.
9.2.6 #
- No user-visible changes.
9.2.5 #
- No user-visible changes.
9.2.4 #
- No user-visible changes.
9.2.3 #
- No user-visible changes.
9.2.2 #
- No user-visible changes.
9.2.1 #
- No user-visible changes.
9.2.0 #
- No user-visible changes.
9.1.0 #
- No user-visible changes.
9.0.0 #
-
Remove the
CalculationExpressionclass and the associated visitor methods. -
Add an
AstSearchVisitorhelper class. -
Add an
Interpolation.isPlaingetter.
8.2.1 #
- No user-visible changes.
8.2.0 #
- No user-visible changes.
8.1.1 #
- No user-visible changes.
8.1.0 #
- No user-visible changes.
8.0.0 #
-
Various classes now use Dart 3 class modifiers to more specifically restrict their usage to the intended patterns.
-
All uses of classes from the
tuplepackage have been replaced by record types.
7.2.2 #
- No user-visible changes.
7.2.1 #
- No user-visible changes.
7.2.0 #
- No user-visible changes.
7.1.6 #
- No user-visible changes.
7.1.5 #
- No user-visible changes.
7.1.4 #
- No user-visible changes.
7.1.3 #
- No user-visible changes.
7.1.2 #
- No user-visible changes.
7.1.1 #
- No user-visible changes.
7.1.0 #
- No user-visible changes.
7.0.0 #
- Silent comments in SCSS that are separated by blank lines are now parsed as
separate
SilentCommentnodes rather than a single conjoined node.
6.3.0 #
- No user-visible changes.
6.2.0 #
- No user-visible changes.
6.1.0 #
- No user-visible changes.
6.0.3 #
- No user-visible changes.
6.0.2 #
- No user-visible changes.
6.0.1 #
- No user-visible changes.
6.0.0 #
-
Breaking change: All selector AST node constructors now require a
FileSpanand expose aspanfield. -
Breaking change: The
CssStyleRule.selectorfield is now a plainSelectorListrather than aCssValue<SelectorList>. -
Breaking change: The
ModifiableCssValueclass has been removed. -
Add an
InterpolationMapclass which represents a mapping from an interpolation's source to the string it generated. -
Add an
interpolationMapparameter toCssMediaQuery.parseList(),AtRootQuery.parse(),ComplexSelector.parse,CompoundSelector.parse,ListSelector.parse, andSimpleSelector.parse. -
Add a
SelectorSearchVisitormixin, which can be used to return the first instance of a selector in an AST matching a certain criterion.
5.1.1 #
- No user-visible changes.
5.1.0 #
-
Add
BinaryOperation.isAssociative. -
Add a
ReplaceExpressionVisitor, which recursively visits all expressions in an AST and rebuilds them with replacement components.
5.0.1 #
- No user-visible changes.
5.0.0 #
- Breaking change: Instead of a
Tuple,findDependencies()now returns aDependencyReportobject with named fields. This provides finer-grained access to import URLs, as well as information aboutmeta.load-css()calls with non-interpolated string literal arguments.
4.2.2 #
- No user-visible changes.
4.2.1 #
- No user-visible changes.
4.2.0 #
- No user-visible changes.
4.1.2 #
- No user-visible changes.
4.1.1 #
- No user-visible changes.
4.1.0 #
- No user-visible changes.
4.0.0 #
-
Breaking change: The first argument to
NumberExpression()is now adoublerather than anum. -
Add an optional
argumentNameparameter toSassScriptException()to make it easier to throw exceptions associated with particular argument names. -
Most APIs that previously returned
numnow returndouble. All APIs continue to acceptnum, although in Dart 2.0.0 most of these APIs will be changed to accept onlydouble.
3.0.4 #
UnaryOperationExpressions with operatornotnow include a correct span, covering the expression itself instead of just the operator.
3.0.3 #
- No user-visible changes.
3.0.2 #
- No user-visible changes.
3.0.1 #
- No user-visible chances.
3.0.0 #
-
Breaking change: Convert all visitor superclasses into mixins. This includes
RecursiveAstVisitor,RecursiveSelectorVisitor,RecursiveStatementVisitor, andStatementSearchVisitor. This has several effects;-
You must use
withto mix in visitors rather thanextends. -
It's now possible to mix multiple visitors into the same class, which wasn't possible with
extends. -
Because mixins can't be composed, when mixing in
RecursiveAstVisitoryou must explicitly mix inRecursiveStatementVisitoras well.
-
-
Breaking change: Replace the
minSpecificityandmaxSpecificityfields onComplexSelector,CompoundSelector, andSimpleSelectorwith a singlespecificityfield.
2.0.4 #
- No user-visible changes.
2.0.3 #
- No user-visible changes.
2.0.2 #
- No user-visible changes.
2.0.1 #
- No user-visible changes.
2.0.0 #
-
Refactor the
CssMediaQueryAPI to support new logical operators:-
Rename the
featuresfield toconditions, to reflect the fact that it can contain more than just the<media-feature>production. -
Add a
conjunctionfield to track whetherconditionsare matched conjunctively or disjunctively. -
Rename the default constructor to
CssMediaQuery.type()to reflect the fact that it's no longer by far the most commonly used form of media query. -
Add a required
conjunctionargument toCssMediaQuery.condition(). -
Delete the
isConditiongetter.
-
-
Provide access to Sass's selector AST, including the following classes:
Selector,ListSelector,ComplexSelector,ComplexSelectorComponent,Combinator,CompoundSelector,SimpleSelector,AttributeSelector,AttributeOperator,ClassSelector,IdSelector,ParentSelector,PlaceholderSelector,PseudoSelector,TypeSelector,UniversalSelector, andQualifiedName. -
Provide access to the
SelectorVisitorandRecursiveSelectorVisitorclasses. -
Provide access to the
Value.assertSelector(),Value.assertComplexSelector(),Value.assertCompoundSelector(), andValue.assertSimpleSelector()methods.
1.0.0 #
-
First stable release.
-
No user-visible changes since 1.0.0-beta.48.
1.0.0-beta.48 #
- No user-visible changes.
1.0.0-beta.47 #
- No user-visible changes.
1.0.0-beta.46 #
- No user-visible changes.
1.0.0-beta.45 #
-
Breaking change: Replace
StaticImport.supportsandStaticImport.mediawith a unifiedStaticImport.modifiersfield. Same forCssImport. -
Add
SupportsExpression.
1.0.0-beta.44 #
- No user-visible changes.
1.0.0-beta.43 #
- No user-visible changes.
1.0.0-beta.42 #
- No user-visible changes.
1.0.0-beta.41 #
- No user-visible changes.
1.0.0-beta.40 #
- No user-visible changes.
1.0.0-beta.39 #
- No user-visible changes.
1.0.0-beta.38 #
- No user-visible changes.
1.0.0-beta.37 #
- No user-visible changes.
1.0.0-beta.36 #
- No user-visible changes.
1.0.0-beta.35 #
- No user-visible changes.
1.0.0-beta.34 #
- No user-visible changes.
1.0.0-beta.33 #
- No user-visible changes.
1.0.0-beta.32 #
- No user-visible changes.
1.0.0-beta.31 #
- No user-visible changes.
1.0.0-beta.30 #
- No user-visible changes.
1.0.0-beta.29 #
- No user-visible changes.
1.0.0-beta.28 #
- No user-visible changes.
1.0.0-beta.27 #
- No user-visible changes.
1.0.0-beta.26 #
- No user-visible changes.
1.0.0-beta.25 #
- No user-visible changes.
1.0.0-beta.24 #
- No user-visible changes.
1.0.0-beta.23 #
- No user-visible changes.
1.0.0-beta.22 #
- No user-visible changes.
1.0.0-beta.21 #
- No user-visible changes.
1.0.0-beta.20 #
- No user-visible changes.
1.0.0-beta.19 #
- No user-visible changes.
1.0.0-beta.18 #
- No user-visible changes.
1.0.0-beta.17 #
- No user-visible changes.
1.0.0-beta.16 #
- No user-visible changes.
1.0.0-beta.15 #
- Fix an issue where
RecursiveAstVisitorwas not implementingvisitCalculationExpression.
1.0.0-beta.14 #
- Fix a bug where
RecursiveAstVisitor.visitAtRootRulewouldn't visit any nodes interpolated into the@at-root's query.
1.0.0-beta.13 #
- No user-visible changes.
1.0.0-beta.12 #
- No user-visible changes.
1.0.0-beta.11 #
- No user-visible changes.
1.0.0-beta.10 #
- No user-visible changes.
1.0.0-beta.9 #
-
Add the
CalculationExpressiontype to represent calculations in the Sass AST. -
Add the
ExpressionVisitor.visitCalculationExpressionmethod.
1.0.0-beta.8 #
- No user-visible changes.
1.0.0-beta.7 #
- No user-visible changes.
1.0.0-beta.6 #
- Add the
SassApiColorextension to the "Value" DartDoc category.
1.0.0-beta.5 #
- Add
SassColor.hasCalculatedRgband.hasCalculatedHslextension getters.
1.0.0-beta.4 #
-
UseRule,ForwardRule, andDynamicImportnow share a commonDependencyinterface that exposes aurlgetter and aurlSpangetter. -
VariableDeclaration,MixinRule,FunctionRule,Argument, andConfiguredVariablenow share a commonSassDeclarationinterface that exposes anamegetter (with underscores converted to hyphens) and anameSpangetter. -
Function calls with interpolation have now been split into their own AST node:
InterpolatedFunctionExpression.FunctionExpression.nameis now always a string (with underscores converted to hyphens).FunctionExpressionalso now has anoriginalNamegetter, which leaves underscores as-is. -
VariableExpression,IncludeRule, andFunctionExpressionnow share a commonSassReferenceinterface that exposes anamespacegetter and anamegetter (with underscores converted to hyphens), as well as correspondingnamespaceSpanandnameSpangetters.
1.0.0-beta.3 #
- No user-visible changes.
1.0.0-beta.2 #
- No user-visible changes.
1.0.0-beta.1 #
- Initial beta release.