Socket
Socket
Sign inDemoInstall

postcss-selector-parser

Package Overview
Dependencies
2
Maintainers
4
Versions
56
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous12345

1.0.0

Diff

Changelog

Source

1.0.0

  • Adds clone and replaceWith methods to nodes.
  • Adds insertBefore and insertAfter to containers.
  • Stabilises API.
beneb
published 0.0.5 •

Changelog

Source

0.0.5

  • Fixes crash on extra whitespace inside a pseudo selector's parentheses.
  • Adds sort function to the container class.
  • Enables the parser to pass its input through without transforming.
  • Iteration-safe each and eachInside.
beneb
published 0.0.4 •

Changelog

Source

0.0.4

  • Tidy up redundant duplication.
  • Fixes a bug where the parser would loop infinitely on universal selectors inside pseudo selectors.
  • Adds length getter and eachInside, map, reduce to the container class.
  • When a selector has been removed from the tree, the root node will no longer cast it to a string.
  • Adds node type iterators to the container class (e.g. eachComment).
  • Adds filter function to the container class.
  • Adds split function to the container class.
  • Create new node types by doing parser.id(opts) etc.
  • Adds support for pseudo classes anywhere in the selector.
beneb
published 0.0.3 •

Changelog

Source

0.0.3

  • Adds next and prev to the node class.
  • Adds first and last getters to the container class.
  • Adds every and some iterators to the container class.
  • Add empty alias for removeAll.
  • Combinators are now types of node.
  • Fixes the at method so that it is not an alias for index.
  • Tidy up creation of new nodes in the parser.
  • Refactors how namespaces are handled for consistency & less redundant code.
  • Refactors AST to use nodes exclusively, and eliminates excessive nesting.
  • Fixes nested pseudo parsing.
  • Fixes whitespace parsing.
beneb
published 0.0.2 •

Changelog

Source

0.0.2

  • Adds support for namespace selectors.
  • Adds support for selectors joined by escaped spaces - such as .\31\ 0.
beneb
published 0.0.1 •

Changelog

Source

0.0.1

  • Initial release.
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc