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

parseley

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parseley - npm Package Compare versions

Comparing version 0.7.0 to 0.8.0

5

CHANGELOG.md
# Changelog
## Version 0.8.0
* Drop Node.js version 10 support. 12.22.x is required;
* Fix typos in type definitions.
## Version 0.7.0

@@ -4,0 +9,0 @@

6

lib/ast.d.ts

@@ -67,3 +67,3 @@ /**

*/
export declare type AttrabutePresenceSelector = {
export declare type AttributePresenceSelector = {
type: 'attrPresence';

@@ -82,3 +82,3 @@ name: string;

*/
export declare type AttrabuteValueSelector = {
export declare type AttributeValueSelector = {
type: 'attrValue';

@@ -114,3 +114,3 @@ name: string;

*/
export declare type SimpleSelector = UniversalSelector | TagSelector | ClassSelector | IdSelector | AttrabutePresenceSelector | AttrabuteValueSelector | Combinator;
export declare type SimpleSelector = UniversalSelector | TagSelector | ClassSelector | IdSelector | AttributePresenceSelector | AttributeValueSelector | Combinator;
/**

@@ -117,0 +117,0 @@ * Compound selector - a set of conditions describing a single element.

@@ -32,3 +32,3 @@ import * as Ast from './ast';

*
* Intended for consitent processing and normalized `serialize()` output.
* Intended for consistent processing and normalized `serialize()` output.
*

@@ -35,0 +35,0 @@ * @param selector - A selector AST object.

{
"name": "parseley",
"version": "0.7.0",
"version": "0.8.0",
"description": "CSS selectors parser, based on nearley",

@@ -38,3 +38,3 @@ "keywords": [

"build:rollup": "rollup -c",
"build:types": "tsc -d --emitDeclarationOnly --declarationDir ./lib && rimraf ./lib/grammar.d.ts",
"build:types": "tsc --declaration --emitDeclarationOnly && rimraf ./lib/grammar.d.ts",
"build": "npm run nearley && npm run clean && npm run build:rollup && npm run build:types && npm run build:docs",

@@ -45,3 +45,3 @@ "checkAll": "npm run lint && npm test",

"lint:eslint": "eslint .",
"lint:md": "markdownlint --ignore-path .gitignore .",
"lint:md": "markdownlint-cli2",
"lint": "npm run lint:eslint && npm run lint:md",

@@ -51,3 +51,3 @@ "nearley": "nearleyc ./src/grammar.ne -o ./src/grammar.ts",

"pretest": "npm run nearley",
"test": "ava"
"test": "ava --timeout=20s"
},

@@ -59,20 +59,21 @@ "dependencies": {

"devDependencies": {
"@rollup/plugin-typescript": "^8.2.1",
"@tsconfig/node10": "^1.0.7",
"@types/moo": "^0.5.4",
"@types/nearley": "^2.11.1",
"@typescript-eslint/eslint-plugin": "^4.22.0",
"@typescript-eslint/parser": "^4.22.0",
"@rollup/plugin-typescript": "^8.3.0",
"@tsconfig/node12": "^1.0.9",
"@types/moo": "^0.5.5",
"@types/nearley": "^2.11.2",
"@types/node": "^12.20.37",
"@typescript-eslint/eslint-plugin": "^5.3.1",
"@typescript-eslint/parser": "^5.3.1",
"ava": "^3.15.0",
"eslint": "^7.24.0",
"eslint-plugin-jsonc": "^1.2.1",
"eslint-plugin-tsdoc": "^0.2.12",
"markdownlint-cli": "^0.27.1",
"eslint": "^7.32.0",
"eslint-plugin-jsonc": "^2.0.0",
"eslint-plugin-tsdoc": "^0.2.14",
"markdownlint-cli2": "^0.1.3",
"rimraf": "^3.0.2",
"rollup": "^2.45.2",
"rollup": "^2.59.0",
"ts-node": "^9.1.1",
"tslib": "^2.2.0",
"typedoc": "^0.20.35",
"typedoc-plugin-markdown": "^3.7.0",
"typescript": "^4.2.4"
"tslib": "^2.3.1",
"typedoc": "^0.22.8",
"typedoc-plugin-markdown": "^3.11.3",
"typescript": "^4.4.4"
},

@@ -79,0 +80,0 @@ "ava": {

@@ -7,2 +7,3 @@ # parseley

[![npm](https://img.shields.io/npm/v/parseley?logo=npm)](https://www.npmjs.com/package/parseley)
[![npm](https://img.shields.io/npm/dw/parseley?color=informational&logo=npm)](https://www.npmjs.com/package/parseley)

@@ -126,3 +127,3 @@ **Par**ser for CSS **sel**ectors, based on [nearl**ey**](https://nearley.js.org/).

Complex selectors are represented in the way that makes the left side to be an another condition on the right side element. This was made with the right-to-left processing direction in mind. One consequence of this is that there is no such thing as a "complex selector" node in the AST hierachy, but there are "combinator" nodes attached to "compound selector" nodes.
Complex selectors are represented in the way that makes the left side to be an another condition on the right side element. This was made with the right-to-left processing direction in mind. One consequence of this is that there is no such thing as a "complex selector" node in the AST hierarchy, but there are "combinator" nodes attached to "compound selector" nodes.

@@ -139,4 +140,4 @@ All AST nodes have their specificity computed (except the top-level list of comma-separated selectors where it doesn't really make sense).

* add pseudo-classes and pseudo-elements support.
* add pseudo-classes and pseudo-elements support ([#12](https://github.com/mxxii/parseley/issues/12))
Share your use cases in [issues](https://github.com/mxxii/parseley/issues) so I can get a better idea where to move.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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