PackageTrack
Sign in Get early access

csslib

A library for parsing and analyzing CSS (Cascading Style Sheets).

1.0.2 7.8M downloads/mo #72 most downloaded on pub.dev dart-lang/tools

What this package is like to depend on

Last release 2 years ago

no release in 18 months

Release timing varies

gaps range from 2 weeks to 1.4 years

Some releases are documented

notes for 35 of 115 stable releases

Nothing withdrawn

no release was ever pulled

14 years old

117 releases · first in 2013

0 releases in the last 12 months

see the full history below

Release timeline

117 releases · Jan 2013 to Oct 2024
2014 2016 2018 2020 2022 2024 2026
Release Pre-release

Releases

latest 60 of 117
  1. 1.0.2 29 Oct 2024
    Release notes
    • Require Dart 3.1
    • Move to dart-lang/tools monorepo.
    Open source →
  2. 1.0.0 07 Jun 2023
    Release notes
    • Rev to 1.0.0 (note however that there are no API changes from 0.17.x).
    Open source →
  3. 0.17.3 22 May 2023
    Release notes
    • 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 and rlh units.
    • Refactor the package example.
    • Addressed an issue with the indent level of the CssPrinter output.
    • Require Dart 2.19.
    Open source →
  4. 0.17.2 26 May 2022
    Release notes
    • Fixed a crash caused by min(), max() and clamp() functions that contain mathematical expressions.
    • Add commas between PercentageTerms in keyframe rules.
    Open source →
  5. 0.17.1 06 Oct 2021
    Release notes
    • Fix Color.css constructor when there are double values in the rgba string.
    Open source →
  6. 0.17.0 11 Feb 2021
    Release notes
    • Migrate to null safety.
    • Font.merge and BoxEdge.merge are now static methods instead of factory constructors.
    • Add a type on the identList argument to TokenKind.matchList.
    • Remove workaround for https://github.com/dart-lang/sdk/issues/43136, which is now fixed.
    Open source →
  7. 0.17.0-nullsafety.0 25 Jan 2021 pre-release

    Nothing published for this version

  8. 0.16.2 27 Jul 2020
    Release notes
    • Added support for escape codes in identifiers.
    Open source →
  9. 0.16.1 08 Jul 2019
    Release notes
    • Fixed a crash caused by parsing certain calc() expressions and variables names that contain numbers.
    Open source →
  10. 0.16.0 24 Apr 2019
    Release notes
    • Removed support for the shadow-piercing comibnators /deep/ and >>>. These were dropped from the Shadow DOM specification.
    Open source →
  11. 0.15.0 11 Apr 2019
    Release notes
    • BREAKING
      • Removed css executable from bin directory.
      • Removed the deprecated css.dart library.
      • Message.level is now of type MessageLevel defined in this package.
    • Removed dependencies on package:args and package:logging.
    • Require Dart SDK >=2.1.0.
    Open source →
  12. 0.14.6 04 Oct 2018
    Release notes
    • 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}
      
    Open source →
  13. 0.14.6+1 08 Jul 2019

    Nothing published for this version

  14. 0.14.5 14 Aug 2018
    Release notes
    • Fixed a crashed caused by parsing :host() without an argument and added an error message explaining that a selector argument is expected.
    Open source →
  15. 0.14.4 10 May 2018
    Release notes
    • 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.
    Open source →
  16. 0.14.4+1 16 Jul 2018
    Release notes
    • Set max SDK version to <3.0.0, and adjust other dependencies.
    Open source →
  17. 0.14.3 10 May 2018
    Release notes
    • Reduced the amount of whitespace in compact output around braces.
    Open source →
  18. 0.14.2 01 May 2018
    Release notes
    • Fixed Dart 2 runtime failure.
    Open source →
  19. 0.14.1 21 Sep 2017
    Release notes
    • Deprecated package:csslib/css.dart. Use parser.dart and visitor.dart instead.
    Open source →
  20. 0.14.0 30 May 2017
    Release notes

    New features

    • Supports nested at-rules.
    • Supports nested HTML comments in CSS comments and vice-versa.

    Breaking changes

    • The List<RuleSet> rulesets field on MediaDirective, HostDirective, and StyletDirective has been replaced by List<TreeNode> rules to allow nested at-rules in addition to rulesets.
    Open source →
  21. 0.13.7 22 May 2017

    Nothing published for this version

  22. 0.13.7+1 22 May 2017

    Nothing published for this version

  23. 0.13.6 12 May 2017
    Release notes
    • 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.
    Open source →
  24. 0.13.5 12 Apr 2017
    Release notes
    • Adds support for @-moz-document.
    • Adds support for @supports.
    Open source →
  25. 0.13.4 07 Mar 2017
    Release notes
    • 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.
    Open source →
  26. 0.13.3 26 Jan 2017
    Release notes
    • 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 from parser.dart so it's no longer necessary to import src/messages.dart to use the parser API.
    Open source →
  27. 0.13.3+1 26 Jan 2017
    Release notes
    • Fixes analyzer error.
    Open source →
  28. 0.13.2 11 May 2016
    Release notes
    • Relax type of TreeNode.visit, to allow returning values from visitors.
    Open source →
  29. 0.13.2+1 17 Oct 2016
    Release notes
    • Fix new strong mode error.
    Open source →
  30. 0.13.2+2 17 Nov 2016
    Release notes
    • Fix static warnings.
    Open source →
  31. 0.13.1 21 Apr 2016
    Release notes
    • Fix two checked mode bugs introduced in 0.13.0.
    Open source →
  32. 0.13.0 21 Apr 2016
    Release notes
    • BREAKING Fix all strong mode errors and warnings. This involved adding more precise on some public APIs, which is why it may break users.
    Open source →
  33. 0.12.2 16 Oct 2015
    Release notes
    • Fix to handle calc functions however, the expressions are treated as a LiteralTerm and not fully parsed into the AST.
    Open source →
  34. 0.12.1 10 Jul 2015
    Release notes
    • Fix to handling of escapes in strings.
    Open source →
  35. 0.12.0 03 Apr 2015
    Release notes
    • Top-level methods in parser.dart now take PreprocessorOptions instead of List<String>.

    • PreprocessorOptions.inputFile is now final.

    Open source →
  36. 0.12.0+1 12 May 2015
    Release notes
    • Allow the latest version of logging package.
    Open source →
  37. 0.11.0 30 Jul 2014
    Release notes
    • Switch from source_maps' Span class to source_span's SourceSpan class.
    Open source →
  38. 0.11.0+2 30 Jul 2014
    Release notes
    • Fix another test that was failing on IE10.
    Open source →
  39. 0.11.0+4 02 Feb 2015
    Release notes
    • Cleanup some ambiguous and some incorrect type signatures.
    Open source →
  40. 0.10.0 23 May 2014

    Nothing published for this version

  41. 0.10.0+1 27 May 2014

    Nothing published for this version

  42. 0.10.0-dev 21 May 2014 pre-release

    Nothing published for this version

  43. 0.9.2 07 Jan 2014

    Nothing published for this version

  44. 0.9.1 10 Dec 2013

    Nothing published for this version

  45. 0.9.0 06 Nov 2013

    Nothing published for this version

  46. 0.8.10 01 Nov 2013

    Nothing published for this version

  47. 0.8.10+3 04 Nov 2013

    Nothing published for this version

  48. 0.8.10+4 05 Nov 2013

    Nothing published for this version

  49. 0.8.9 31 Oct 2013

    Nothing published for this version

  50. 0.8.8 30 Oct 2013

    Nothing published for this version

  51. 0.8.7 28 Oct 2013

    Nothing published for this version

  52. 0.8.6 24 Oct 2013

    Nothing published for this version

  53. 0.8.5 21 Oct 2013

    Nothing published for this version

  54. 0.8.4 19 Oct 2013

    Nothing published for this version

  55. 0.8.3 17 Oct 2013

    Nothing published for this version

  56. 0.8.2 14 Oct 2013

    Nothing published for this version

  57. 0.8.1 04 Oct 2013

    Nothing published for this version

  58. 0.8.0 03 Oct 2013

    Nothing published for this version

  59. 0.7.6 27 Sep 2013

    Nothing published for this version

  60. 0.7.6+4 01 Oct 2013

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive