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.11.0 to 0.12.0

11

CHANGELOG.md
# Changelog
## Version 0.12.0
* Support for escape sequences according to specifications ([#97](https://github.com/mxxii/parseley/issues/97)).
Now follows <https://www.w3.org/TR/selectors-3/#lex> for parsing and <https://w3c.github.io/csswg-drafts/cssom/#common-serializing-idioms> for serializing.
Possibly breaking changes:
* parsed strings (attribute values) retained escape sequences previously, now they are unescaped;
* strings with `"` character were serialized as single-quoted previously, now all strings serialized as double-quoted, per spec suggestion.
## Version 0.11.0

@@ -4,0 +15,0 @@

24

lib/ast.d.ts

@@ -11,3 +11,3 @@ /**

*/
export declare type Specificity = [number, number, number];
export type Specificity = [number, number, number];
/**

@@ -21,3 +21,3 @@ * The `*` selector.

*/
export declare type UniversalSelector = {
export type UniversalSelector = {
type: 'universal';

@@ -35,3 +35,3 @@ namespace: string | null;

*/
export declare type TagSelector = {
export type TagSelector = {
type: 'tag';

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

*/
export declare type ClassSelector = {
export type ClassSelector = {
type: 'class';

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

*/
export declare type IdSelector = {
export type IdSelector = {
type: 'id';

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

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

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

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

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

*/
export declare type Combinator = {
export type Combinator = {
type: 'combinator';

@@ -120,3 +120,3 @@ combinator: ' ' | '+' | '>' | '~' | '||';

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

@@ -137,3 +137,3 @@ * Compound selector - a set of conditions describing a single element.

*/
export declare type CompoundSelector = {
export type CompoundSelector = {
type: 'compound';

@@ -151,3 +151,3 @@ list: SimpleSelector[];

*/
export declare type ListSelector = {
export type ListSelector = {
type: 'list';

@@ -159,2 +159,2 @@ list: CompoundSelector[];

*/
export declare type Selector = ListSelector | CompoundSelector | SimpleSelector;
export type Selector = ListSelector | CompoundSelector | SimpleSelector;
{
"name": "parseley",
"version": "0.11.0",
"version": "0.12.0",
"description": "CSS selectors parser",

@@ -53,24 +53,24 @@ "keywords": [

"leac": "^0.6.0",
"peberminta": "^0.8.0"
"peberminta": "^0.9.0"
},
"devDependencies": {
"@rollup/plugin-typescript": "^8.3.4",
"@rollup/plugin-typescript": "^11.0.0",
"@tsconfig/node14": "^1.0.3",
"@types/node": "^14.18.23",
"@typescript-eslint/eslint-plugin": "^5.33.1",
"@typescript-eslint/parser": "^5.33.1",
"ava": "^4.3.1",
"denoify": "^1.0.1",
"eslint": "^8.22.0",
"eslint-plugin-jsonc": "^2.4.0",
"eslint-plugin-tsdoc": "^0.2.16",
"markdownlint-cli2": "^0.5.1",
"rimraf": "^3.0.2",
"rollup": "^2.78.0",
"@types/node": "^14.18.36",
"@typescript-eslint/eslint-plugin": "^5.53.0",
"@typescript-eslint/parser": "^5.53.0",
"ava": "^5.2.0",
"denoify": "^1.4.10",
"eslint": "^8.34.0",
"eslint-plugin-jsonc": "^2.6.0",
"eslint-plugin-tsdoc": "^0.2.17",
"markdownlint-cli2": "^0.6.0",
"rimraf": "^4.1.2",
"rollup": "^2.79.1",
"rollup-plugin-cleanup": "^3.2.1",
"ts-node": "^10.9.1",
"tslib": "^2.4.0",
"typedoc": "~0.23.10",
"typedoc-plugin-markdown": "~3.13.4",
"typescript": "~4.7.4"
"tslib": "^2.5.0",
"typedoc": "~0.23.25",
"typedoc-plugin-markdown": "~3.14.0",
"typescript": "~4.9.5"
},

@@ -91,8 +91,4 @@ "ava": {

"denoify": {
"out": "./deno",
"ports": {
"leac": "https://deno.land/x/leac/leac.ts",
"peberminta": "https://deno.land/x/peberminta/core.ts"
}
"out": "./deno"
}
}

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