Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

csso

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csso - npm Package Versions

1
9

2.1.0

Diff

Changelog

Source

2.1.0 (May 8, 2016)

  • New option comments to specify what comments to left: exclamation, first-exclamation and none
  • Add offset to CSS parse error details
  • Fix token offset computation
lahmatiy
published 2.0.0 •

Changelog

Source

2.0.0 (April 5, 2016)

  • No more gonzales AST format and related code
  • minify() and minifyBlock() is always return an object as result now (i.e. { css: String, map: SourceMapGenerator or null })
  • parse()
    • Returns AST in new format (so called internal)
    • Dynamic scanner implemented
    • New AST format + dynamic scanner = performance boost and less memory consumption
    • No more context argument, context should be specified via options
    • Supported contexts now: stylesheet, atrule, atruleExpression, ruleset, selector, simpleSelector, block, declaration and value
    • Drop needPositions option, positions option should be used instead
    • Drop needInfo option, info object is attaching to nodes when some information is requested by options
    • options should be an object, otherwise it treats as empty object
  • compress()
    • No more AST converting (performance boost and less memory consumption)
    • Drop outputAst option
    • Returns an object as result instead of AST (i.e. { ast: Object })
  • Drop methods: justDoIt(), stringify(), cleanInfo()
lahmatiy
published 1.8.1 •

Changelog

Source

1.8.1 (March 30, 2016)

  • Don't remove spaces after function/braces/urls since unsafe (#289)
lahmatiy
published 1.8.0 •

Changelog

Source

1.8.0 (March 24, 2016)

  • Usage data support:
    • Filter rulesets by tag names, class names and ids white lists.
    • More aggressive ruleset moving using class name scopes information.
    • New CLI option --usage to pass usage data file.
  • Improve initial ruleset merge
    • Change order of ruleset processing, now it's left to right. Previously unmerged rulesets may prevent lookup and other rulesets merge.
    • Difference in pseudo signature just prevents ruleset merging, but don't stop lookup.
    • Simplify block comparison (performance).
  • New method csso.minifyBlock() for css block compression (e.g. style attribute content).
  • Ruleset merge improvement: at-rules with block (like @media or @supports) now can be skipped during ruleset merge lookup if doesn't contain something prevents it.
  • FIX: Add negation (:not()) to pseudo signature to avoid unsafe merge (old browsers doesn't support it).
  • FIX: Check nested parts of value when compute compatibility. It fixes unsafe property merging.
lahmatiy
published 1.7.1 •

Changelog

Source

1.7.1 (March 16, 2016)

  • pass block mode to tokenizer for correct parsing of declarations properties with // hack
  • fix wrongly @import and @charset removal on double exclamation comment
lahmatiy
published 1.7.0 •

Changelog

Source

1.7.0 (March 10, 2016)

  • support for CSS Custom Properties (#279)
  • rework RTBL properties merge – better merge for values with special units and don't merge values with CSS-wide keywords (#255)
  • remove redundant universal selectors (#178)
  • take in account !important when check for property overriding (#280)
  • don't merge text-align declarations with some values (#281)
  • add spaces around /deep/ combinator on translate, since it together with universal selector can produce a comment
  • better keyword and property name resolving (tolerant to hacks and so on)
  • integration improvements
    • compression log function could be customized by logger option for compress() and minify()
    • make possible to set initial line and column for parser
lahmatiy
published 1.6.4 •

Changelog

Source

1.6.4 (March 1, 2016)

  • npm publish issue (#276)
lahmatiy
published 1.6.3 •

Changelog

Source

1.6.3 (February 29, 2016)

  • add file to generated source map since other tools can relay on it in source map transform chain
lahmatiy
published 1.6.2 •

Changelog

Source

1.6.2 (February 29, 2016)

  • tweak some parse error messages and their positions
  • fix :not() parsing and selector groups in :not() is supported now (#215)
  • needPosition parser option is deprecated, positions option should be used instead (needPosition is used still if positions option omitted)
  • expose internal AST API as csso.internal.*
  • minify() adds sourcesContent by default when source map is generated
  • bring back support for node.js 0.10 until major release (#275)
lahmatiy
published 1.6.1 •

Changelog

Source

1.6.1 (February 28, 2016)

  • fix exception on zero length dimension compress outside declaration (#273)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc