diff --git a/CHANGELOG.md b/CHANGELOG.md index 09303bef..811c6f23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +# 1.8.2 + +remove left over console debug + # 1.8.1 no code change diff --git a/dist/index-umd-web.js b/dist/index-umd-web.js index 47d5e7c1..eb06b7e7 100644 --- a/dist/index-umd-web.js +++ b/dist/index-umd-web.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ (function (global, factory) { @@ -21029,12 +21029,27 @@ * Represents a list of property declarations, compute shorthand and remove duplicate declarations. */ class PropertyList { + /** + * options + */ options = { removeDuplicateDeclarations: true, computeShorthand: true }; + /** + * declarations + */ declarations; + /** + * + * @param options + */ constructor(options = {}) { this.options = options; this.declarations = new Map(); } + /** + * add declarations + * @param declarations + * @returns + */ add(declarations) { let name; let syntaxRules = null; @@ -21174,6 +21189,11 @@ } return this; } + /** + * + * @param declaration + * @param mapping + */ mapValues(declaration, mapping) { let name; let values = declaration.val; @@ -21233,6 +21253,10 @@ } } } + /** + * + * @returns + */ [Symbol.iterator]() { let iterator = this.declarations.values(); const iterators = []; @@ -33300,10 +33324,6 @@ } // @ts-ignore if (replacement != null && node != replacement) { - console.error({ - node, - replacement, - }); // @ts-ignore replaceNodeOrValue(node[PARENT], node, replacement); } @@ -35363,7 +35383,7 @@ } } - var version = "1.7.0"; + var version = "1.8.2"; /** * Load file or url diff --git a/dist/index.cjs b/dist/index.cjs index 05219453..b0be2ca4 100644 --- a/dist/index.cjs +++ b/dist/index.cjs @@ -21025,12 +21025,27 @@ const config = getConfig(); * Represents a list of property declarations, compute shorthand and remove duplicate declarations. */ class PropertyList { + /** + * options + */ options = { removeDuplicateDeclarations: true, computeShorthand: true }; + /** + * declarations + */ declarations; + /** + * + * @param options + */ constructor(options = {}) { this.options = options; this.declarations = new Map(); } + /** + * add declarations + * @param declarations + * @returns + */ add(declarations) { let name; let syntaxRules = null; @@ -21170,6 +21185,11 @@ class PropertyList { } return this; } + /** + * + * @param declaration + * @param mapping + */ mapValues(declaration, mapping) { let name; let values = declaration.val; @@ -21229,6 +21249,10 @@ class PropertyList { } } } + /** + * + * @returns + */ [Symbol.iterator]() { let iterator = this.declarations.values(); const iterators = []; @@ -33296,10 +33320,6 @@ async function doParse(iter, options = {}) { } // @ts-ignore if (replacement != null && node != replacement) { - console.error({ - node, - replacement, - }); // @ts-ignore replaceNodeOrValue(node[PARENT], node, replacement); } @@ -35359,7 +35379,7 @@ function setNodeProperty(node, key, value) { } } -var version = "1.7.0"; +var version = "1.8.2"; /** * Load file or url diff --git a/dist/index.d.ts b/dist/index.d.ts index 8182fb7d..3c9e122e 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -3944,8 +3944,14 @@ export declare interface VisitorNodeMap { */ Rule?: GenericVisitorAstNodeHandlerMap; + /** + * keyframes rule visitor + */ KeyframesRule?: GenericVisitorAstNodeHandlerMap; + /** + * keyframes at-rule visitor + */ KeyframesAtRule?: GenericVisitorAstNodeHandlerMap; /** @@ -4271,8 +4277,17 @@ declare class SourceFile { getInputSourceMap(): SourceMap | null; } +/** + * property list options + */ export declare interface PropertyListOptions { + /** + * remove duplicate declarations + */ removeDuplicateDeclarations?: boolean | string | string[]; + /** + * compute shorthand + */ computeShorthand?: boolean; } @@ -4549,104 +4564,328 @@ declare enum ResponseType { JSON = 3 } +/** + * shorthand property type + */ interface PropertyType { + /** + * shorthand name + */ shorthand: string; } +/** + * single property + */ interface SinglePropertyType { + /** + * keyof shorthand property type + */ typ: keyof EnumToken; + /** + * value + */ val: string | number; } +/** + * shorthand property map + */ interface SinglePropertyTypeMapping { + /** + * shorthand pattern + */ pattern?: string[][]; + /** + * shorthand mappings + */ mapping: Record; } - +/** + * shorthand configuration + */ interface ShorthandPropertyType { + /** + * shorthand name + */ shorthand: string; + /** + * mapped shorthand property + */ map?: string; + /** + * property names + */ properties: string[]; + /** + * property types + */ types: string[]; + /** + * allow multiple values + */ multiple: boolean; + /** + * values separator + */ separator: { + /** + * token type + */ typ: keyof EnumToken; + /** + * token value + */ val: string; }; + /** + * value separator + */ valueSeparator?: { + /** + * token type + */ typ: keyof EnumToken; + /** + * token value + */ val: string; }; + /** + * keywords + */ keywords: string[]; } +/** + * shorthand property set. a set of identical properties such as `margin` + */ interface PropertySetType { + /** + * shorthand property definition + */ [key: string]: PropertyType | ShorthandPropertyType; } +/** + * mapped shorthand property. a set of different properties such as `font` + */ interface PropertyMapType { + /** + * default values + */ default: string[]; + /** + * property types + */ types: string[]; + /** + * keywords + */ keywords: string[]; + /** + * required + */ required?: boolean; + /** + * allow multiple values + */ multiple?: boolean; + /** + * property has a prefix + */ prefix?: { + /** + * token type + */ typ: keyof EnumToken; + /** + * token value + */ val: string; }; + /** + * previous property + */ previous?: string; + /** + * separator + */ separator?: { + /** + * token type + */ typ: keyof EnumToken; }; + /** + * property constraints + */ constraints?: { + /** + * property constraints + */ [key: string]: { + /** + * property constraints + */ [key: string]: any; }; }; + /** + * values mapping + */ mapping?: Record; } +/** + * mapped shorthand definition + */ interface ShorthandMapType { + /** + * shorthand name + */ shorthand: string; + /** + * shorthand pattern + */ pattern: string; + /** + * shorthand keywords + */ keywords: string[]; + /** + * default values + */ default: string[]; + /** + * values mapping + */ mapping?: Record; + /** + * allow multiple values + */ multiple?: boolean; - separator?: { typ: keyof EnumToken; val?: string }; + /** + * shorthand values separator + */ + separator?: { + /** + * token type + */ + typ: keyof EnumToken; + /** + * token value + */ + val?: string; + }; + /** + * shorthand property sets + */ set?: Record; + /** + * shorthand properties + */ properties: { + /** + * shorthand properties + */ [property: string]: PropertyMapType; }; } +/** + * shorthand properties + */ interface ShorthandProperties { + /** + * property types + */ types: EnumToken[]; + /** + * default values + */ default: string[]; + /** + * keywords + */ keywords: string[]; + /** + * required + */ required?: boolean; + /** + * allow multiple values + */ multiple?: boolean; + /** + * propery constraints + */ constraints?: Array; + /** + * values mapping + */ mapping?: { + /** + * values mapping + */ [key: string]: any; }; + /** + * property validation + */ validation?: { + /** + * property validation + */ [key: string]: any; }; + /** + * property has a prefix + */ prefix?: string; } +/** + * shorthand definition + */ interface ShorthandDef { + /** + * shorthand name + */ shorthand: string; + /** + * shorthand pattern + */ pattern: string; + /** + * shorthand keywords + */ keywords: string; + /** + * default values + */ defaults: string[]; + /** + * allow multiple values + */ multiple?: boolean; + /** + * values separator + */ separator?: string; } +/** + * shorthand type + */ interface ShorthandType { + /** + * shorthand name + */ shorthand: string; + /** + * shorthand properties + */ properties: ShorthandProperties; } diff --git a/dist/package.json.js b/dist/package.json.js index 4b310506..ac1c2e87 100644 --- a/dist/package.json.js +++ b/dist/package.json.js @@ -2,9 +2,9 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ -var version = "1.7.0"; +var version = "1.8.2"; export { version }; diff --git a/dist/src/data/properties.json.js b/dist/src/data/properties.json.js index ec075504..75fe4362 100644 --- a/dist/src/data/properties.json.js +++ b/dist/src/data/properties.json.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ var properties = { diff --git a/dist/src/data/validation.json.js b/dist/src/data/validation.json.js index b25f64c7..deb7ad1a 100644 --- a/dist/src/data/validation.json.js +++ b/dist/src/data/validation.json.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ var declarations = { diff --git a/dist/src/lib/ast/clone.js b/dist/src/lib/ast/clone.js index 45da1173..8ccacdb8 100644 --- a/dist/src/lib/ast/clone.js +++ b/dist/src/lib/ast/clone.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { EnumToken } from './types.js'; diff --git a/dist/src/lib/ast/expand.js b/dist/src/lib/ast/expand.js index 8631060c..5aa39f67 100644 --- a/dist/src/lib/ast/expand.js +++ b/dist/src/lib/ast/expand.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { splitRule } from './minify.js'; diff --git a/dist/src/lib/ast/features/calc.js b/dist/src/lib/ast/features/calc.js index 70c5619c..d0a3a6d3 100644 --- a/dist/src/lib/ast/features/calc.js +++ b/dist/src/lib/ast/features/calc.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { EnumToken } from '../types.js'; diff --git a/dist/src/lib/ast/features/if.js b/dist/src/lib/ast/features/if.js index 2b16865d..4af034ce 100644 --- a/dist/src/lib/ast/features/if.js +++ b/dist/src/lib/ast/features/if.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { EnumToken } from '../types.js'; diff --git a/dist/src/lib/ast/features/index.js b/dist/src/lib/ast/features/index.js index 9a04c5e8..47dbf167 100644 --- a/dist/src/lib/ast/features/index.js +++ b/dist/src/lib/ast/features/index.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ export { ComputePrefixFeature } from './prefix.js'; diff --git a/dist/src/lib/ast/features/inlinecssvariables.js b/dist/src/lib/ast/features/inlinecssvariables.js index a6b4acfa..6a857880 100644 --- a/dist/src/lib/ast/features/inlinecssvariables.js +++ b/dist/src/lib/ast/features/inlinecssvariables.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { EnumToken } from '../types.js'; diff --git a/dist/src/lib/ast/features/prefix.js b/dist/src/lib/ast/features/prefix.js index fc9ad306..653f5b28 100644 --- a/dist/src/lib/ast/features/prefix.js +++ b/dist/src/lib/ast/features/prefix.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { EnumAstNodeStatus, EnumToken } from '../types.js'; diff --git a/dist/src/lib/ast/features/shorthand.js b/dist/src/lib/ast/features/shorthand.js index 5c948602..9138199c 100644 --- a/dist/src/lib/ast/features/shorthand.js +++ b/dist/src/lib/ast/features/shorthand.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { PropertyList } from '../../parser/declaration/list.js'; diff --git a/dist/src/lib/ast/features/transform.js b/dist/src/lib/ast/features/transform.js index 5125becf..00da1d73 100644 --- a/dist/src/lib/ast/features/transform.js +++ b/dist/src/lib/ast/features/transform.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { EnumToken, EnumAstNodeStatus } from '../types.js'; diff --git a/dist/src/lib/ast/features/type.js b/dist/src/lib/ast/features/type.js index 94e50baf..c9c4d07d 100644 --- a/dist/src/lib/ast/features/type.js +++ b/dist/src/lib/ast/features/type.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ /** diff --git a/dist/src/lib/ast/find.js b/dist/src/lib/ast/find.js index 121dc17a..967a99ec 100644 --- a/dist/src/lib/ast/find.js +++ b/dist/src/lib/ast/find.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { EnumToken } from './types.js'; diff --git a/dist/src/lib/ast/math/expression.js b/dist/src/lib/ast/math/expression.js index fad8a7dd..fe191489 100644 --- a/dist/src/lib/ast/math/expression.js +++ b/dist/src/lib/ast/math/expression.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { equalsIgnoreCase } from '../../parser/utils/text.js'; diff --git a/dist/src/lib/ast/math/math.js b/dist/src/lib/ast/math/math.js index 38419911..d9b281c1 100644 --- a/dist/src/lib/ast/math/math.js +++ b/dist/src/lib/ast/math/math.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { minifyNumber } from '../../syntax/syntax.js'; diff --git a/dist/src/lib/ast/minify.js b/dist/src/lib/ast/minify.js index 900f0442..25720738 100644 --- a/dist/src/lib/ast/minify.js +++ b/dist/src/lib/ast/minify.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { eq } from '../parser/utils/eq.js'; diff --git a/dist/src/lib/ast/node.js b/dist/src/lib/ast/node.js index 27b4279a..ed674e21 100644 --- a/dist/src/lib/ast/node.js +++ b/dist/src/lib/ast/node.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { TOKENS, ERRORS, STATE, LOCSRCID, LOCSTA, LOCEND, PARENT } from '../syntax/constants.js'; diff --git a/dist/src/lib/ast/transform/compute.js b/dist/src/lib/ast/transform/compute.js index 7d2efe1f..475df6ce 100644 --- a/dist/src/lib/ast/transform/compute.js +++ b/dist/src/lib/ast/transform/compute.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { identity, multiply, toZero } from './utils.js'; diff --git a/dist/src/lib/ast/transform/matrix.js b/dist/src/lib/ast/transform/matrix.js index 7018586e..332ca194 100644 --- a/dist/src/lib/ast/transform/matrix.js +++ b/dist/src/lib/ast/transform/matrix.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { identity, is2DMatrix } from './utils.js'; diff --git a/dist/src/lib/ast/transform/minify.js b/dist/src/lib/ast/transform/minify.js index 2ebb8585..c61cd562 100644 --- a/dist/src/lib/ast/transform/minify.js +++ b/dist/src/lib/ast/transform/minify.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { identity, multiply, decompose, round, toZero } from './utils.js'; diff --git a/dist/src/lib/ast/transform/perspective.js b/dist/src/lib/ast/transform/perspective.js index bae83929..10ed78a1 100644 --- a/dist/src/lib/ast/transform/perspective.js +++ b/dist/src/lib/ast/transform/perspective.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { identity, multiply } from './utils.js'; diff --git a/dist/src/lib/ast/transform/rotate.js b/dist/src/lib/ast/transform/rotate.js index 8006044f..b161d94b 100644 --- a/dist/src/lib/ast/transform/rotate.js +++ b/dist/src/lib/ast/transform/rotate.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { identity, multiply } from './utils.js'; diff --git a/dist/src/lib/ast/transform/scale.js b/dist/src/lib/ast/transform/scale.js index 2169e17f..01921173 100644 --- a/dist/src/lib/ast/transform/scale.js +++ b/dist/src/lib/ast/transform/scale.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { identity, multiply } from './utils.js'; diff --git a/dist/src/lib/ast/transform/skew.js b/dist/src/lib/ast/transform/skew.js index 967830bf..27a7d5a3 100644 --- a/dist/src/lib/ast/transform/skew.js +++ b/dist/src/lib/ast/transform/skew.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { identity, multiply } from './utils.js'; diff --git a/dist/src/lib/ast/transform/translate.js b/dist/src/lib/ast/transform/translate.js index 051ccd36..a71fd3cb 100644 --- a/dist/src/lib/ast/transform/translate.js +++ b/dist/src/lib/ast/transform/translate.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { identity, multiply } from './utils.js'; diff --git a/dist/src/lib/ast/transform/utils.js b/dist/src/lib/ast/transform/utils.js index 74ff3318..aa08af9e 100644 --- a/dist/src/lib/ast/transform/utils.js +++ b/dist/src/lib/ast/transform/utils.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { epsilon } from '../../syntax/constants.js'; diff --git a/dist/src/lib/ast/types.js b/dist/src/lib/ast/types.js index 413693b3..26a618db 100644 --- a/dist/src/lib/ast/types.js +++ b/dist/src/lib/ast/types.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ /** diff --git a/dist/src/lib/ast/walk.js b/dist/src/lib/ast/walk.js index ff29374d..c98c8336 100644 --- a/dist/src/lib/ast/walk.js +++ b/dist/src/lib/ast/walk.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { PARENT, TOKENS } from '../syntax/constants.js'; diff --git a/dist/src/lib/fs/resolve.js b/dist/src/lib/fs/resolve.js index c19d711e..c09cc427 100644 --- a/dist/src/lib/fs/resolve.js +++ b/dist/src/lib/fs/resolve.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { memoize } from '../parser/utils/cache.js'; diff --git a/dist/src/lib/parser/declaration/list.js b/dist/src/lib/parser/declaration/list.js index eacd4838..782f6ea2 100644 --- a/dist/src/lib/parser/declaration/list.js +++ b/dist/src/lib/parser/declaration/list.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { PropertySet } from './set.js'; @@ -21,12 +21,27 @@ const config = getConfig(); * Represents a list of property declarations, compute shorthand and remove duplicate declarations. */ class PropertyList { + /** + * options + */ options = { removeDuplicateDeclarations: true, computeShorthand: true }; + /** + * declarations + */ declarations; + /** + * + * @param options + */ constructor(options = {}) { this.options = options; this.declarations = new Map(); } + /** + * add declarations + * @param declarations + * @returns + */ add(declarations) { let name; let syntaxRules = null; @@ -166,6 +181,11 @@ class PropertyList { } return this; } + /** + * + * @param declaration + * @param mapping + */ mapValues(declaration, mapping) { let name; let values = declaration.val; @@ -225,6 +245,10 @@ class PropertyList { } } } + /** + * + * @returns + */ [Symbol.iterator]() { let iterator = this.declarations.values(); const iterators = []; diff --git a/dist/src/lib/parser/declaration/map.js b/dist/src/lib/parser/declaration/map.js index 6649c688..82ed3c3a 100644 --- a/dist/src/lib/parser/declaration/map.js +++ b/dist/src/lib/parser/declaration/map.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { eq } from '../utils/eq.js'; diff --git a/dist/src/lib/parser/declaration/set.js b/dist/src/lib/parser/declaration/set.js index 5adb1c94..4ba2d81a 100644 --- a/dist/src/lib/parser/declaration/set.js +++ b/dist/src/lib/parser/declaration/set.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { eq } from '../utils/eq.js'; diff --git a/dist/src/lib/parser/linesmap.js b/dist/src/lib/parser/linesmap.js index e57a799e..c7a3a481 100644 --- a/dist/src/lib/parser/linesmap.js +++ b/dist/src/lib/parser/linesmap.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ /** diff --git a/dist/src/lib/parser/parse.js b/dist/src/lib/parser/parse.js index 33132a6b..adfe095b 100644 --- a/dist/src/lib/parser/parse.js +++ b/dist/src/lib/parser/parse.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { isIdentColor, parseColor, isColor } from '../syntax/syntax.js'; @@ -2142,10 +2142,6 @@ async function doParse(iter, options = {}) { } // @ts-ignore if (replacement != null && node != replacement) { - console.error({ - node, - replacement, - }); // @ts-ignore replaceNodeOrValue(node[PARENT], node, replacement); } diff --git a/dist/src/lib/parser/source.js b/dist/src/lib/parser/source.js index f5718013..e013de5a 100644 --- a/dist/src/lib/parser/source.js +++ b/dist/src/lib/parser/source.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { SourceMap } from '../printer/sourcemap/sourcemap.js'; diff --git a/dist/src/lib/parser/tokenize.js b/dist/src/lib/parser/tokenize.js index e76342ec..492c4932 100644 --- a/dist/src/lib/parser/tokenize.js +++ b/dist/src/lib/parser/tokenize.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { EnumToken, ColorType } from '../ast/types.js'; diff --git a/dist/src/lib/parser/utils/angle.js b/dist/src/lib/parser/utils/angle.js index 1c79fbfb..ed6b2b33 100644 --- a/dist/src/lib/parser/utils/angle.js +++ b/dist/src/lib/parser/utils/angle.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ /** diff --git a/dist/src/lib/parser/utils/at-rule-container.js b/dist/src/lib/parser/utils/at-rule-container.js index 845fb11a..a3bb2087 100644 --- a/dist/src/lib/parser/utils/at-rule-container.js +++ b/dist/src/lib/parser/utils/at-rule-container.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { EnumToken } from '../../ast/types.js'; diff --git a/dist/src/lib/parser/utils/at-rule-font-feature-values.js b/dist/src/lib/parser/utils/at-rule-font-feature-values.js index 293a0d62..98e91cd2 100644 --- a/dist/src/lib/parser/utils/at-rule-font-feature-values.js +++ b/dist/src/lib/parser/utils/at-rule-font-feature-values.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { getSyntaxRule } from '../../validation/config.js'; diff --git a/dist/src/lib/parser/utils/at-rule-generic.js b/dist/src/lib/parser/utils/at-rule-generic.js index 4b460908..69041fa4 100644 --- a/dist/src/lib/parser/utils/at-rule-generic.js +++ b/dist/src/lib/parser/utils/at-rule-generic.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { EnumToken } from '../../ast/types.js'; diff --git a/dist/src/lib/parser/utils/at-rule-import.js b/dist/src/lib/parser/utils/at-rule-import.js index 8fe57f2f..895448fe 100644 --- a/dist/src/lib/parser/utils/at-rule-import.js +++ b/dist/src/lib/parser/utils/at-rule-import.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { EnumToken } from '../../ast/types.js'; diff --git a/dist/src/lib/parser/utils/at-rule-media.js b/dist/src/lib/parser/utils/at-rule-media.js index 7495e37c..5c853cd7 100644 --- a/dist/src/lib/parser/utils/at-rule-media.js +++ b/dist/src/lib/parser/utils/at-rule-media.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { EnumToken } from '../../ast/types.js'; diff --git a/dist/src/lib/parser/utils/at-rule-support.js b/dist/src/lib/parser/utils/at-rule-support.js index 66d90262..ecb0fb91 100644 --- a/dist/src/lib/parser/utils/at-rule-support.js +++ b/dist/src/lib/parser/utils/at-rule-support.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { EnumToken } from '../../ast/types.js'; diff --git a/dist/src/lib/parser/utils/at-rule-when-else.js b/dist/src/lib/parser/utils/at-rule-when-else.js index d2cf6cb8..ae58a878 100644 --- a/dist/src/lib/parser/utils/at-rule-when-else.js +++ b/dist/src/lib/parser/utils/at-rule-when-else.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { EnumToken } from '../../ast/types.js'; diff --git a/dist/src/lib/parser/utils/at-rule.js b/dist/src/lib/parser/utils/at-rule.js index eba9674a..f36b8b6b 100644 --- a/dist/src/lib/parser/utils/at-rule.js +++ b/dist/src/lib/parser/utils/at-rule.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { ValidationSyntaxGroupEnum } from '../../validation/parser/typedef.js'; diff --git a/dist/src/lib/parser/utils/base64.js b/dist/src/lib/parser/utils/base64.js index de2db503..724ad646 100644 --- a/dist/src/lib/parser/utils/base64.js +++ b/dist/src/lib/parser/utils/base64.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ /** diff --git a/dist/src/lib/parser/utils/cache.js b/dist/src/lib/parser/utils/cache.js index e876a713..355d9089 100644 --- a/dist/src/lib/parser/utils/cache.js +++ b/dist/src/lib/parser/utils/cache.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ /** diff --git a/dist/src/lib/parser/utils/config.js b/dist/src/lib/parser/utils/config.js index dfd322f5..5337923a 100644 --- a/dist/src/lib/parser/utils/config.js +++ b/dist/src/lib/parser/utils/config.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import config from '../../../data/properties.json.js'; diff --git a/dist/src/lib/parser/utils/declaration.js b/dist/src/lib/parser/utils/declaration.js index 8449abd6..69e31e0a 100644 --- a/dist/src/lib/parser/utils/declaration.js +++ b/dist/src/lib/parser/utils/declaration.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { EnumToken, EnumAstNodeStatus, ColorType } from '../../ast/types.js'; diff --git a/dist/src/lib/parser/utils/eq.js b/dist/src/lib/parser/utils/eq.js index 691a0fbb..a61bbcfd 100644 --- a/dist/src/lib/parser/utils/eq.js +++ b/dist/src/lib/parser/utils/eq.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ /** diff --git a/dist/src/lib/parser/utils/hash.js b/dist/src/lib/parser/utils/hash.js index 7a9d1b7a..2a01ad8f 100644 --- a/dist/src/lib/parser/utils/hash.js +++ b/dist/src/lib/parser/utils/hash.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ // Alphabet: a-z, A-Z, 0-9, _, - diff --git a/dist/src/lib/parser/utils/selector.js b/dist/src/lib/parser/utils/selector.js index 14aa7551..4fd34f87 100644 --- a/dist/src/lib/parser/utils/selector.js +++ b/dist/src/lib/parser/utils/selector.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { EnumToken, EnumAstNodeStatus } from '../../ast/types.js'; diff --git a/dist/src/lib/parser/utils/text.js b/dist/src/lib/parser/utils/text.js index d286acc7..8bd17eec 100644 --- a/dist/src/lib/parser/utils/text.js +++ b/dist/src/lib/parser/utils/text.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ /** diff --git a/dist/src/lib/parser/utils/token.js b/dist/src/lib/parser/utils/token.js index e44c4e5d..fa9841fe 100644 --- a/dist/src/lib/parser/utils/token.js +++ b/dist/src/lib/parser/utils/token.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { EnumToken } from '../../ast/types.js'; diff --git a/dist/src/lib/parser/utils/type.js b/dist/src/lib/parser/utils/type.js index 0dcc7cd2..217c142a 100644 --- a/dist/src/lib/parser/utils/type.js +++ b/dist/src/lib/parser/utils/type.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { EnumToken } from '../../ast/types.js'; diff --git a/dist/src/lib/printer/render.js b/dist/src/lib/printer/render.js index 11388996..741fe046 100644 --- a/dist/src/lib/printer/render.js +++ b/dist/src/lib/printer/render.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { convertColor, getAngle } from '../syntax/color/color.js'; diff --git a/dist/src/lib/printer/sourcemap/lib/codec.js b/dist/src/lib/printer/sourcemap/lib/codec.js index 1743f0e4..dae00b30 100644 --- a/dist/src/lib/printer/sourcemap/lib/codec.js +++ b/dist/src/lib/printer/sourcemap/lib/codec.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ // from https://github.com/Rich-Harris/vlq/tree/master diff --git a/dist/src/lib/printer/sourcemap/sourcemap.js b/dist/src/lib/printer/sourcemap/sourcemap.js index 4869b85f..f015f6cf 100644 --- a/dist/src/lib/printer/sourcemap/sourcemap.js +++ b/dist/src/lib/printer/sourcemap/sourcemap.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { toBase64 } from '../../parser/utils/base64.js'; diff --git a/dist/src/lib/syntax/color/a98rgb.js b/dist/src/lib/syntax/color/a98rgb.js index 56dba404..bfb9313f 100644 --- a/dist/src/lib/syntax/color/a98rgb.js +++ b/dist/src/lib/syntax/color/a98rgb.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { xyz2srgb } from './srgb.js'; diff --git a/dist/src/lib/syntax/color/alpha.js b/dist/src/lib/syntax/color/alpha.js index 9bc0fb77..78f85430 100644 --- a/dist/src/lib/syntax/color/alpha.js +++ b/dist/src/lib/syntax/color/alpha.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { ColorType, EnumToken } from '../../ast/types.js'; diff --git a/dist/src/lib/syntax/color/cmyk.js b/dist/src/lib/syntax/color/cmyk.js index 3dff39a9..48bbc547 100644 --- a/dist/src/lib/syntax/color/cmyk.js +++ b/dist/src/lib/syntax/color/cmyk.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { ColorType, EnumToken } from '../../ast/types.js'; diff --git a/dist/src/lib/syntax/color/color-mix.js b/dist/src/lib/syntax/color/color-mix.js index a06f2433..a3cd29ed 100644 --- a/dist/src/lib/syntax/color/color-mix.js +++ b/dist/src/lib/syntax/color/color-mix.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { EnumToken, ColorType, EnumAstNodeStatus } from '../../ast/types.js'; diff --git a/dist/src/lib/syntax/color/color.js b/dist/src/lib/syntax/color/color.js index ddbcf66d..87dfccd2 100644 --- a/dist/src/lib/syntax/color/color.js +++ b/dist/src/lib/syntax/color/color.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { ColorType, EnumToken } from '../../ast/types.js'; diff --git a/dist/src/lib/syntax/color/hex.js b/dist/src/lib/syntax/color/hex.js index a8a10f7e..6a484766 100644 --- a/dist/src/lib/syntax/color/hex.js +++ b/dist/src/lib/syntax/color/hex.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { EnumToken, ColorType } from '../../ast/types.js'; diff --git a/dist/src/lib/syntax/color/hsl.js b/dist/src/lib/syntax/color/hsl.js index c34b5478..0c0a4a4f 100644 --- a/dist/src/lib/syntax/color/hsl.js +++ b/dist/src/lib/syntax/color/hsl.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { color2srgbvalues, getNumber } from './color.js'; diff --git a/dist/src/lib/syntax/color/hwb.js b/dist/src/lib/syntax/color/hwb.js index 996fbb5a..dbd47431 100644 --- a/dist/src/lib/syntax/color/hwb.js +++ b/dist/src/lib/syntax/color/hwb.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { getColorComponents } from './utils/components.js'; diff --git a/dist/src/lib/syntax/color/lab.js b/dist/src/lib/syntax/color/lab.js index e2ab666e..60d67c93 100644 --- a/dist/src/lib/syntax/color/lab.js +++ b/dist/src/lib/syntax/color/lab.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { e, k, D50 } from '../constants.js'; diff --git a/dist/src/lib/syntax/color/lch.js b/dist/src/lib/syntax/color/lch.js index 5508251f..b8ea90a0 100644 --- a/dist/src/lib/syntax/color/lch.js +++ b/dist/src/lib/syntax/color/lch.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { getColorComponents } from './utils/components.js'; diff --git a/dist/src/lib/syntax/color/oklab.js b/dist/src/lib/syntax/color/oklab.js index 6466b677..0d0cd73a 100644 --- a/dist/src/lib/syntax/color/oklab.js +++ b/dist/src/lib/syntax/color/oklab.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { getColorComponents } from './utils/components.js'; diff --git a/dist/src/lib/syntax/color/oklch.js b/dist/src/lib/syntax/color/oklch.js index acd8c270..1067526b 100644 --- a/dist/src/lib/syntax/color/oklch.js +++ b/dist/src/lib/syntax/color/oklch.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { getColorComponents } from './utils/components.js'; diff --git a/dist/src/lib/syntax/color/p3.js b/dist/src/lib/syntax/color/p3.js index 14e027d0..f50f9179 100644 --- a/dist/src/lib/syntax/color/p3.js +++ b/dist/src/lib/syntax/color/p3.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { lsrgb2srgbvalues, xyz2srgb, srgb2lsrgbvalues } from './srgb.js'; diff --git a/dist/src/lib/syntax/color/prophotorgb.js b/dist/src/lib/syntax/color/prophotorgb.js index f40d1b1f..bc77a924 100644 --- a/dist/src/lib/syntax/color/prophotorgb.js +++ b/dist/src/lib/syntax/color/prophotorgb.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { XYZ_D65_to_D50, xyzd502srgb } from './xyzd50.js'; diff --git a/dist/src/lib/syntax/color/rec2020.js b/dist/src/lib/syntax/color/rec2020.js index 6d897a69..a1a3166c 100644 --- a/dist/src/lib/syntax/color/rec2020.js +++ b/dist/src/lib/syntax/color/rec2020.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { xyz2srgb } from './srgb.js'; diff --git a/dist/src/lib/syntax/color/relative-color.js b/dist/src/lib/syntax/color/relative-color.js index 89dbbf1b..531fb904 100644 --- a/dist/src/lib/syntax/color/relative-color.js +++ b/dist/src/lib/syntax/color/relative-color.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { convertColor, getNumber } from './color.js'; diff --git a/dist/src/lib/syntax/color/rgb.js b/dist/src/lib/syntax/color/rgb.js index e213f294..0a47001e 100644 --- a/dist/src/lib/syntax/color/rgb.js +++ b/dist/src/lib/syntax/color/rgb.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { color2srgbvalues, minmax } from './color.js'; diff --git a/dist/src/lib/syntax/color/srgb.js b/dist/src/lib/syntax/color/srgb.js index 89e2c772..d8745080 100644 --- a/dist/src/lib/syntax/color/srgb.js +++ b/dist/src/lib/syntax/color/srgb.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { getColorComponents } from './utils/components.js'; diff --git a/dist/src/lib/syntax/color/utils/color-type.js b/dist/src/lib/syntax/color/utils/color-type.js index 1fbb2d7e..09b923a2 100644 --- a/dist/src/lib/syntax/color/utils/color-type.js +++ b/dist/src/lib/syntax/color/utils/color-type.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { ColorType } from '../../../ast/types.js'; diff --git a/dist/src/lib/syntax/color/utils/colorspace.js b/dist/src/lib/syntax/color/utils/colorspace.js index 6e81b725..7bca3fb5 100644 --- a/dist/src/lib/syntax/color/utils/colorspace.js +++ b/dist/src/lib/syntax/color/utils/colorspace.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { equalsIgnoreCase } from '../../../parser/utils/text.js'; diff --git a/dist/src/lib/syntax/color/utils/components.js b/dist/src/lib/syntax/color/utils/components.js index c1de7aea..e4f20522 100644 --- a/dist/src/lib/syntax/color/utils/components.js +++ b/dist/src/lib/syntax/color/utils/components.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { ColorType, EnumToken } from '../../../ast/types.js'; diff --git a/dist/src/lib/syntax/color/utils/distance.js b/dist/src/lib/syntax/color/utils/distance.js index c7fb0064..852eb158 100644 --- a/dist/src/lib/syntax/color/utils/distance.js +++ b/dist/src/lib/syntax/color/utils/distance.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { convertColor } from '../color.js'; diff --git a/dist/src/lib/syntax/color/utils/make-color.js b/dist/src/lib/syntax/color/utils/make-color.js index 2ff5abe2..27ed6180 100644 --- a/dist/src/lib/syntax/color/utils/make-color.js +++ b/dist/src/lib/syntax/color/utils/make-color.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { EnumToken, ColorType } from '../../../ast/types.js'; diff --git a/dist/src/lib/syntax/color/utils/matrix.js b/dist/src/lib/syntax/color/utils/matrix.js index a48ed71a..5dff06d8 100644 --- a/dist/src/lib/syntax/color/utils/matrix.js +++ b/dist/src/lib/syntax/color/utils/matrix.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ // from https://www.w3.org/TR/css-color-4/multiply-matrices.js diff --git a/dist/src/lib/syntax/color/xyz.js b/dist/src/lib/syntax/color/xyz.js index 600cfbc1..8774b73e 100644 --- a/dist/src/lib/syntax/color/xyz.js +++ b/dist/src/lib/syntax/color/xyz.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { multiplyMatrices } from './utils/matrix.js'; diff --git a/dist/src/lib/syntax/color/xyzd50.js b/dist/src/lib/syntax/color/xyzd50.js index c8acfc16..cbc05720 100644 --- a/dist/src/lib/syntax/color/xyzd50.js +++ b/dist/src/lib/syntax/color/xyzd50.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { lsrgb2srgbvalues } from './srgb.js'; diff --git a/dist/src/lib/syntax/constants.js b/dist/src/lib/syntax/constants.js index b8dc2fb8..08658e1e 100644 --- a/dist/src/lib/syntax/constants.js +++ b/dist/src/lib/syntax/constants.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { EnumToken } from '../ast/types.js'; diff --git a/dist/src/lib/syntax/syntax.js b/dist/src/lib/syntax/syntax.js index fbeb6e4b..b647b829 100644 --- a/dist/src/lib/syntax/syntax.js +++ b/dist/src/lib/syntax/syntax.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { isOkLabClose } from './color/utils/distance.js'; diff --git a/dist/src/lib/validation/config.js b/dist/src/lib/validation/config.js index 76783c92..018bb61d 100644 --- a/dist/src/lib/validation/config.js +++ b/dist/src/lib/validation/config.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import config from '../../data/validation.json.js'; diff --git a/dist/src/lib/validation/match.js b/dist/src/lib/validation/match.js index a60a6896..ed0e595f 100644 --- a/dist/src/lib/validation/match.js +++ b/dist/src/lib/validation/match.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { getParsedSyntax, getSyntaxConfig } from './config.js'; diff --git a/dist/src/lib/validation/parser/parse.js b/dist/src/lib/validation/parser/parse.js index 780ec6ba..d94eaa52 100644 --- a/dist/src/lib/validation/parser/parse.js +++ b/dist/src/lib/validation/parser/parse.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { EnumToken } from '../../ast/types.js'; diff --git a/dist/src/lib/validation/parser/typedef.js b/dist/src/lib/validation/parser/typedef.js index e6af6e00..aede3c9e 100644 --- a/dist/src/lib/validation/parser/typedef.js +++ b/dist/src/lib/validation/parser/typedef.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ var ValidationTokenEnum; diff --git a/dist/src/lib/validation/utils/list.js b/dist/src/lib/validation/utils/list.js index f225a2e1..4dd3ee5b 100644 --- a/dist/src/lib/validation/utils/list.js +++ b/dist/src/lib/validation/utils/list.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { EnumToken } from '../../ast/types.js'; diff --git a/dist/src/node.js b/dist/src/node.js index 13eba51b..8d69d362 100644 --- a/dist/src/node.js +++ b/dist/src/node.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { deprecate } from 'node:util'; diff --git a/dist/src/types.js b/dist/src/types.js index aac57e18..1878cde9 100644 --- a/dist/src/types.js +++ b/dist/src/types.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ /** diff --git a/dist/src/utils/sync.js b/dist/src/utils/sync.js index 866c83b8..c2f0e942 100644 --- a/dist/src/utils/sync.js +++ b/dist/src/utils/sync.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { EnumToken } from '../lib/ast/types.js'; diff --git a/dist/src/web.js b/dist/src/web.js index d6b42921..e5794f22 100644 --- a/dist/src/web.js +++ b/dist/src/web.js @@ -2,7 +2,7 @@ CSS parser, minifier and validator for node and the browser Author(s): Thierry Bela - Version: 1.7.0 + Version: 1.8.2 License: MIT */ import { doParse, doParseSync } from './lib/parser/parse.js'; diff --git a/jsr.json b/jsr.json index fcd63240..082ed60e 100644 --- a/jsr.json +++ b/jsr.json @@ -1,6 +1,6 @@ { "name": "@tbela99/css-parser", - "version": "1.8.0", + "version": "1.8.2", "publish": { "include": [ "src", diff --git a/package.json b/package.json index 961fd651..c04e10f8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@tbela99/css-parser", "description": "CSS parser, minifier and validator for node and the browser", - "version": "1.8.1", + "version": "1.8.2", "exports": { ".": "./dist/src/node.js", "./node": "./dist/src/node.js", diff --git a/src/lib/parser/parse.ts b/src/lib/parser/parse.ts index 43c65564..45601775 100644 --- a/src/lib/parser/parse.ts +++ b/src/lib/parser/parse.ts @@ -2733,11 +2733,6 @@ export async function doParse(iter: Tokenizer | Promise, options: Par // @ts-ignore if (replacement != null && node != replacement) { - console.error({ - node, - replacement, - }); - // @ts-ignore replaceNodeOrValue(node![PARENT] as AstNode, node, replacement); }