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

postcss-selector-parser

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-selector-parser - npm Package Versions

1
45

1.1.2

Diff

Changelog

Source

1.1.2

  • Fixes an infinite loop caused by using parentheses in a non-pseudo element context.
beneb
published 1.1.1 •

Changelog

Source

1.1.1

  • Fixes a crash when a backslash ended a selector string.
beneb
published 1.1.0 •

Changelog

Source

1.1.0

  • Adds support for replacing multiple nodes at once with replaceWith (thanks to @jonathantneal).
  • Parser no longer throws on sequential IDs and trailing commas, to support parsing of selector hacks.
beneb
published 1.0.1 •

Changelog

Source

1.0.1

  • Fixes using insertAfter and insertBefore during iteration.
beneb
published 1.0.0 •

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.
1
45
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