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

postcss-selector-parser

Package Overview
Dependencies
Maintainers
5
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
46

2.1.0

Diff

Changelog

Source

2.1.0

  • Added: Use string constants for all node types & expose them on the main parser instance (thanks to @Aweary).
beneb
published 2.0.0 •

Changelog

Source

2.0.0

This release contains the following breaking changes:

  • Renamed all eachInside iterators to walk. For example, eachTag is now walkTags, and eachInside is now walk.
  • Renamed Node#removeSelf() to Node#remove().
  • Renamed Container#remove() to Container#removeChild().
  • Renamed Node#raw to Node#raws (thanks to @davidtheclark).
  • Now parses & as the nesting selector, rather than a tag selector.
  • Fixes misinterpretation of Sass interpolation (e.g. #{foo}) as an id selector (thanks to @davidtheclark).

and;

  • Fixes parsing of attribute selectors with equals signs in them (e.g. [data-attr="foo=bar"]) (thanks to @montmanu).
  • Adds quoted and raw.unquoted properties to attribute nodes (thanks to @davidtheclark).
beneb
published 1.3.3 •

Changelog

Source

1.3.3

  • Fixes an infinite loop on ) and ] tokens when they had no opening pairs. Now postcss-selector-parser will throw when it encounters these lone tokens.
beneb
published 1.3.2 •

Changelog

Source

1.3.2

  • Now uses plain integers rather than str.charCodeAt(0) for compiled builds.
beneb
published 1.3.1 •

Changelog

Source

1.3.1

  • Update flatten to v1.x (thanks to @shinnn).
beneb
published 1.3.0 •

Changelog

Source

1.3.0

  • Adds a new node type, String, to fix a crash on selectors such as foo:bar("test").
beneb
published 1.2.1 •

Changelog

Source

1.2.1

  • Fixes a crash when the parser encountered a trailing combinator.
beneb
published 1.2.0 •

Changelog

Source

1.2.0

  • A more descriptive error is thrown when the parser expects to find a pseudo-class/pseudo-element (thanks to @ashelley).
  • Adds support for line/column locations for selector nodes, as well as a Node#sourceIndex method (thanks to @davidtheclark).
beneb
published 1.1.4 •

Changelog

Source

1.1.4

  • Fixes a crash when a selector started with a > combinator. The module will now no longer throw if a selector has a leading/trailing combinator node.
beneb
published 1.1.3 •

Changelog

Source

1.1.3

  • Fixes a crash on @ tokens.
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