- Require Dart 3.1
- Update
ExpressionsProcessor.processFont
to handle null expressions. - Require Dart 3.0.
- Rev to
1.0.0
(note however that there are no API changes from0.17.x
).
- Add markdown badges to the readme.
- Adopted
package:dart_flutter_team_lints
linting rules. - Addressed an issue parsing font names not surrounded by quotes.
- Fixed the reported span for
Expression
nodes. - Fixed a regression parsing declaration values containing spaces.
- Add support for
lh
andrlh
units. - Refactor the package example.
- Addressed an issue with the indent level of the
CssPrinter
output. - Require Dart 2.19.
- Fixed a crash caused by
min()
,max()
andclamp()
functions that contain mathematical expressions. - Add commas between PercentageTerms in keyframe rules.
- Fix
Color.css
constructor when there are double values in thergba
string.
- Migrate to null safety.
Font.merge
andBoxEdge.merge
are now static methods instead of factory constructors.- Add a type on the
identList
argument toTokenKind.matchList
. - Remove workaround for dart-lang/sdk#43136, which is now fixed.
- Added support for escape codes in identifiers.
- Fixed a crash caused by parsing certain calc() expressions and variables names that contain numbers.
- Removed support for the shadow-piercing comibnators
/deep/
and>>>
. These were dropped from the Shadow DOM specification.
- BREAKING
- Removed
css
executable frombin
directory. - Removed the deprecated
css.dart
library. Message.level
is now of typeMessageLevel
defined in this package.
- Removed
- Removed dependencies on
package:args
andpackage:logging
. - Require Dart SDK
>=2.1.0
.
-
Removed whitespace between comma-delimited expressions in compact output.
Before:
div{color:rgba(0, 0, 0, 0.5);}
After:
div{color:rgba(0,0,0,0.5);}
-
Removed last semicolon from declaration groups in compact output.
Before:
div{color:red;background:blue;}
After:
div{color:red;background:blue}
- Fixed a crashed caused by parsing
:host()
without an argument and added an error message explaining that a selector argument is expected.
- Set max SDK version to
<3.0.0
, and adjust other dependencies.
- Reduced whitespace in compact output for the
@page
at-rule and margin boxes. - Updated SDK version to 2.0.0-dev.17.0.
- Stop using deprecated constants.
- Reduced the amount of whitespace in compact output around braces.
- Fixed Dart 2 runtime failure.
- Deprecated
package:csslib/css.dart
. Useparser.dart
andvisitor.dart
instead.
- Supports nested at-rules.
- Supports nested HTML comments in CSS comments and vice-versa.
- The
List<RuleSet> rulesets
field onMediaDirective
,HostDirective
, andStyletDirective
has been replaced byList<TreeNode> rules
to allow nested at-rules in addition to rulesets.
- Adds support for
@viewport
. - Adds support for
-webkit-calc()
and-moz-calc()
. - Adds support for querying media features without specifying an expression. For
example:
@media (transform-3d) { ... }
. - Prevents exception being thrown for invalid dimension terms, and instead issues an error.
- Adds support for
@-moz-document
. - Adds support for
@supports
.
- Parses CSS 2.1 pseudo-elements as pseudo-elements instead of pseudo-classes.
- Supports signed decimal numbers with no integer part.
- Fixes parsing hexadecimal numbers when followed by an identifier.
- Fixes parsing strings which contain unicode-range character sequences.
- Fixes analyzer error.
- Adds support for shadow host selectors
:host()
and:host-context()
. - Adds support for shadow-piercing descendant combinator
>>>
and its alias/deep/
for backwards compatibility. - Adds support for non-functional IE filter properties (i.e.
filter: FlipH
). - Fixes emitted CSS for
@page
directive when body includes declarations and page-margin boxes. - Exports
Message
fromparser.dart
so it's no longer necessary to importsrc/messages.dart
to use the parser API.
- Fix static warnings.
- Fix new strong mode error.
- Relax type of TreeNode.visit, to allow returning values from visitors.
- Fix two checked mode bugs introduced in 0.13.0.
- BREAKING Fix all strong mode errors and warnings. This involved adding more precise on some public APIs, which is why it may break users.
- Fix to handle calc functions however, the expressions are treated as a LiteralTerm and not fully parsed into the AST.
- Fix to handling of escapes in strings.
- Allow the latest version of
logging
package.
-
Top-level methods in
parser.dart
now takePreprocessorOptions
instead ofList<String>
. -
PreprocessorOptions.inputFile
is now final.
- Cleanup some ambiguous and some incorrect type signatures.
- Improve the speed and memory efficiency of parsing.
- Fix another test that was failing on IE10.
- Fix a test that was failing on IE10.
- Switch from
source_maps
'Span
class tosource_span
'sSourceSpan
class.