Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
855 changes: 414 additions & 441 deletions package-lock.json

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,24 @@
"plugins-stylelint/*"
],
"devDependencies": {
"@babel/core": "^7.26.0",
"@babel/preset-env": "^7.26.0",
"@eslint/js": "^9.18.0",
"@microsoft/api-documenter": "^7.26.5",
"@microsoft/api-extractor": "^7.49.1",
"@babel/core": "^7.26.7",
"@babel/preset-env": "^7.26.7",
"@eslint/js": "^9.19.0",
"@microsoft/api-documenter": "^7.26.7",
"@microsoft/api-extractor": "^7.49.2",
"@rollup/plugin-babel": "^6.0.3",
"@rollup/plugin-commonjs": "^28.0.2",
"@rollup/plugin-node-resolve": "^16.0.0",
"@rollup/plugin-terser": "^0.4.3",
"@rollup/plugin-typescript": "^12.1.2",
"@stryker-mutator/core": "^8.7.0",
"eslint": "^9.18.0",
"eslint": "^9.19.0",
"globals": "^15.14.0",
"knip": "^5.42.0",
"rollup": "^4.30.1",
"knip": "^5.43.6",
"rollup": "^4.34.0",
"tslib": "^2.8.0",
"typescript": "^5.7.3",
"typescript-eslint": "^8.19.1"
"typescript-eslint": "^8.22.0"
},
"scripts": {
"everything": "npm run lint && npm run knip && npm run build && npm run docs && npm run test",
Expand Down
2 changes: 1 addition & 1 deletion packages/cascade-layer-name-parser/dist/index.mjs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import{isTokenIdent as e,TokenType as t,isTokenDelim as r,stringify as n,ParseError as a,isTokenWhiteSpaceOrComment as s,tokenize as o,isTokenWhitespace as l,isTokenComment as i}from"@csstools/css-tokenizer";import{parseCommaSeparatedListOfComponentValues as c,isTokenNode as m,isCommentNode as u,isWhitespaceNode as p}from"@csstools/css-parser-algorithms";class LayerName{parts;constructor(e){this.parts=e}tokens(){return[...this.parts]}slice(t,r){const n=[];for(let t=0;t<this.parts.length;t++)e(this.parts[t])&&n.push(t);const a=n.slice(t,r);return new LayerName(this.parts.slice(a[0],a[a.length-1]+1))}concat(n){const a=[t.Delim,".",-1,-1,{value:"."}];return new LayerName([...this.parts.filter((t=>e(t)||r(t))),a,...n.parts.filter((t=>e(t)||r(t)))])}segments(){return this.parts.filter((t=>e(t))).map((e=>e[4].value))}name(){return this.parts.filter((t=>e(t)||r(t))).map((e=>e[1])).join("")}equal(e){const t=this.segments(),r=e.segments();if(t.length!==r.length)return!1;for(let e=0;e<t.length;e++){if(t[e]!==r[e])return!1}return!0}toString(){return n(...this.parts)}toJSON(){return{parts:this.parts,segments:this.segments(),name:this.name()}}}function addLayerToModel(e,t){t.forEach((t=>{const r=t.segments();e:for(let n=0;n<r.length;n++){const r=t.slice(0,n+1),a=r.segments();let s=-1,o=0;for(let t=0;t<e.length;t++){const r=e[t].segments();let n=0;t:for(let e=0;e<r.length;e++){const t=r[e],s=a[e];if(s===t&&e+1===a.length)continue e;if(s!==t){if(s!==t)break t}else n++}n>=o&&(s=t,o=n)}-1===s?e.push(r):e.splice(s+1,0,r)}}))}function parseFromTokens(t,n){const o=c(t,{onParseError:n?.onParseError}),f=n?.onParseError??(()=>{}),h=["6.4.2. Layer Naming and Nesting","Layer name syntax","<layer-name> = <ident> [ '.' <ident> ]*"],d=t[0][2],y=t[t.length-1][3],g=[];for(let t=0;t<o.length;t++){const n=o[t];for(let e=0;e<n.length;e++){const t=n[e];if(!m(t)&&!u(t)&&!p(t))return f(new a(`Invalid cascade layer name. Invalid layer name part "${t.toString()}"`,d,y,h)),[]}const c=n.flatMap((e=>e.tokens()));let w=!1,v=!1,L=null;for(let t=0;t<c.length;t++){const n=c[t];if(!(s(n)||e(n)||r(n)&&"."===n[4].value))return f(new a(`Invalid cascade layer name. Invalid character "${n[1]}"`,d,y,h)),[];if(!w&&r(n))return f(new a("Invalid cascade layer name. Layer names can not start with a dot.",d,y,h)),[];if(w){if(l(n)){v=!0;continue}if(v&&i(n))continue;if(v)return f(new a("Invalid cascade layer name. Encountered unexpected whitespace between layer name parts.",d,y,h)),[];if(e(L)&&e(n))return f(new a("Invalid cascade layer name. Layer name parts must be separated by dots.",d,y,h)),[];if(r(L)&&r(n))return f(new a("Invalid cascade layer name. Layer name parts must not be empty.",d,y,h)),[]}e(n)&&(w=!0),(e(n)||r(n))&&(L=n)}if(!L)return f(new a("Invalid cascade layer name. Empty layer name.",d,y,h)),[];if(r(L))return f(new a("Invalid cascade layer name. Layer name must not end with a dot.",d,y,h)),[];g.push(new LayerName(c))}return g}function parse(e,t){return parseFromTokens(o({css:e},{onParseError:t?.onParseError}),t)}export{LayerName,addLayerToModel,parse,parseFromTokens};
import{isTokenIdent as e,TokenType as t,isTokenDelim as r,stringify as n,tokenize as a,ParseError as s,isTokenWhiteSpaceOrComment as o,isTokenWhitespace as l,isTokenComment as i}from"@csstools/css-tokenizer";import{parseCommaSeparatedListOfComponentValues as c,isTokenNode as m,isCommentNode as u,isWhitespaceNode as p}from"@csstools/css-parser-algorithms";class LayerName{parts;constructor(e){this.parts=e}tokens(){return[...this.parts]}slice(t,r){const n=[];for(let t=0;t<this.parts.length;t++)e(this.parts[t])&&n.push(t);const a=n.slice(t,r);return new LayerName(this.parts.slice(a[0],a[a.length-1]+1))}concat(n){const a=[t.Delim,".",-1,-1,{value:"."}];return new LayerName([...this.parts.filter((t=>e(t)||r(t))),a,...n.parts.filter((t=>e(t)||r(t)))])}segments(){return this.parts.filter((t=>e(t))).map((e=>e[4].value))}name(){return this.parts.filter((t=>e(t)||r(t))).map((e=>e[1])).join("")}equal(e){const t=this.segments(),r=e.segments();if(t.length!==r.length)return!1;for(let e=0;e<t.length;e++){if(t[e]!==r[e])return!1}return!0}toString(){return n(...this.parts)}toJSON(){return{parts:this.parts,segments:this.segments(),name:this.name()}}}function addLayerToModel(e,t){t.forEach((t=>{const r=t.segments();e:for(let n=0;n<r.length;n++){const r=t.slice(0,n+1),a=r.segments();let s=-1,o=0;for(let t=0;t<e.length;t++){const r=e[t].segments();let n=0;t:for(let e=0;e<r.length;e++){const t=r[e],s=a[e];if(s===t&&e+1===a.length)continue e;if(s!==t){if(s!==t)break t}else n++}n>=o&&(s=t,o=n)}-1===s?e.push(r):e.splice(s+1,0,r)}}))}function parseFromTokens(t,n){const a=c(t,{onParseError:n?.onParseError}),f=n?.onParseError??(()=>{}),h=["6.4.2. Layer Naming and Nesting","Layer name syntax","<layer-name> = <ident> [ '.' <ident> ]*"],d=t[0][2],y=t[t.length-1][3],g=[];for(let t=0;t<a.length;t++){const n=a[t];for(let e=0;e<n.length;e++){const t=n[e];if(!m(t)&&!u(t)&&!p(t))return f(new s(`Invalid cascade layer name. Invalid layer name part "${t.toString()}"`,d,y,h)),[]}const c=n.flatMap((e=>e.tokens()));let w=!1,v=!1,L=null;for(let t=0;t<c.length;t++){const n=c[t];if(!(o(n)||e(n)||r(n)&&"."===n[4].value))return f(new s(`Invalid cascade layer name. Invalid character "${n[1]}"`,d,y,h)),[];if(!w&&r(n))return f(new s("Invalid cascade layer name. Layer names can not start with a dot.",d,y,h)),[];if(w){if(l(n)){v=!0;continue}if(v&&i(n))continue;if(v)return f(new s("Invalid cascade layer name. Encountered unexpected whitespace between layer name parts.",d,y,h)),[];if(e(L)&&e(n))return f(new s("Invalid cascade layer name. Layer name parts must be separated by dots.",d,y,h)),[];if(r(L)&&r(n))return f(new s("Invalid cascade layer name. Layer name parts must not be empty.",d,y,h)),[]}e(n)&&(w=!0),(e(n)||r(n))&&(L=n)}if(!L)return f(new s("Invalid cascade layer name. Empty layer name.",d,y,h)),[];if(r(L))return f(new s("Invalid cascade layer name. Layer name must not end with a dot.",d,y,h)),[];g.push(new LayerName(c))}return g}function parse(e,t){return parseFromTokens(a({css:e},{onParseError:t?.onParseError}),t)}export{LayerName,addLayerToModel,parse,parseFromTokens};
2 changes: 1 addition & 1 deletion packages/css-color-parser/dist/index.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/css-parser-algorithms/dist/index.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/generate-test-cases/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"type": "module",
"main": "src/index.mjs",
"devDependencies": {
"mdn-data": "^2.14.0"
"mdn-data": "^2.15.0"
},
"scripts": {
"build": "exit 0;",
Expand Down
2 changes: 1 addition & 1 deletion plugin-packs/postcss-bundler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"@csstools/postcss-tape": "*",
"@rmenke/css-package-conditional-3": "^1.0.0",
"@rmenke/css-package-main": "^1.0.0",
"open-props": "^1.7.10"
"open-props": "^1.7.12"
},
"scripts": {
"build": "rollup -c ../../rollup/default.mjs",
Expand Down
6 changes: 3 additions & 3 deletions plugins-stylelint/at-risk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@
"index.mjs"
],
"peerDependencies": {
"stylelint": "^16.13.0"
"stylelint": "^16.14.1"
},
"devDependencies": {
"@csstools/pack-test": "^1.0.1",
"stylelint": "^16.13.0",
"stylelint-test-rule-node": "^0.3.0"
"stylelint": "^16.14.1",
"stylelint-test-rule-node": "^0.4.0"
},
"scripts": {
"lint": "node ../../.github/bin/format-package-json.mjs",
Expand Down
4 changes: 2 additions & 2 deletions plugins-stylelint/formatter-github/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
"preprocess-warnings.mjs"
],
"peerDependencies": {
"stylelint": "^16.13.0"
"stylelint": "^16.14.1"
},
"devDependencies": {
"@csstools/pack-test": "^1.0.1",
"stylelint": "^16.13.0"
"stylelint": "^16.14.1"
},
"scripts": {
"lint": "node ../../.github/bin/format-package-json.mjs",
Expand Down
6 changes: 3 additions & 3 deletions plugins-stylelint/no-at-nest-rule/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@
],
"peerDependencies": {
"postcss": "^8.4",
"stylelint": "^16.13.0"
"stylelint": "^16.14.1"
},
"devDependencies": {
"@csstools/pack-test": "^1.0.1",
"postcss": "^8.4",
"stylelint": "^16.13.0",
"stylelint-test-rule-node": "^0.3.0"
"stylelint": "^16.14.1",
"stylelint-test-rule-node": "^0.4.0"
},
"scripts": {
"lint": "node ../../.github/bin/format-package-json.mjs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@
"@csstools/css-tokenizer": "^3.0.3"
},
"peerDependencies": {
"stylelint": "^16.13.0"
"stylelint": "^16.14.1"
},
"devDependencies": {
"@csstools/pack-test": "^1.0.1",
"stylelint": "^16.13.0",
"stylelint-test-rule-node": "^0.3.0"
"stylelint": "^16.14.1",
"stylelint-test-rule-node": "^0.4.0"
},
"scripts": {
"lint": "node ../../.github/bin/format-package-json.mjs",
Expand Down
2 changes: 1 addition & 1 deletion plugins/css-blank-pseudo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
},
"devDependencies": {
"@csstools/postcss-tape": "*",
"puppeteer": "^24.0.0"
"puppeteer": "^24.1.1"
},
"scripts": {
"build": "rollup -c ../../rollup/default.mjs",
Expand Down
2 changes: 1 addition & 1 deletion plugins/css-has-pseudo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"postcss-dir-pseudo-class": "*",
"postcss-logical": "*",
"postcss-nesting": "*",
"puppeteer": "^24.0.0"
"puppeteer": "^24.1.1"
},
"scripts": {
"build": "rollup -c ../../rollup/default.mjs",
Expand Down
2 changes: 1 addition & 1 deletion plugins/css-prefers-color-scheme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
},
"devDependencies": {
"@csstools/postcss-tape": "*",
"puppeteer": "^24.0.0"
"puppeteer": "^24.1.1"
},
"scripts": {
"build": "rollup -c ../../rollup/default.mjs",
Expand Down
2 changes: 1 addition & 1 deletion plugins/postcss-cascade-layers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"devDependencies": {
"@csstools/postcss-bundler": "*",
"@csstools/postcss-tape": "*",
"puppeteer": "^24.0.0"
"puppeteer": "^24.1.1"
},
"scripts": {
"build": "rollup -c ../../rollup/default.mjs",
Expand Down
2 changes: 1 addition & 1 deletion plugins/postcss-focus-visible/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
},
"devDependencies": {
"@csstools/postcss-tape": "*",
"puppeteer": "^24.0.0"
"puppeteer": "^24.1.1"
},
"scripts": {
"build": "rollup -c ../../rollup/default.mjs",
Expand Down
2 changes: 1 addition & 1 deletion plugins/postcss-focus-within/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
},
"devDependencies": {
"@csstools/postcss-tape": "*",
"puppeteer": "^24.0.0"
"puppeteer": "^24.1.1"
},
"scripts": {
"build": "rollup -c ../../rollup/default.mjs",
Expand Down
2 changes: 1 addition & 1 deletion plugins/postcss-global-data/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
},
"devDependencies": {
"@csstools/postcss-tape": "*",
"open-props": "^1.7.10",
"open-props": "^1.7.12",
"postcss-custom-media": "^11.0.5",
"postcss-custom-properties": "^14.0.4"
},
Expand Down
2 changes: 1 addition & 1 deletion plugins/postcss-is-pseudo-class/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
},
"devDependencies": {
"@csstools/postcss-tape": "*",
"puppeteer": "^24.0.0"
"puppeteer": "^24.1.1"
},
"scripts": {
"build": "rollup -c ../../rollup/default.mjs",
Expand Down
2 changes: 1 addition & 1 deletion plugins/postcss-light-dark-function/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"devDependencies": {
"@csstools/postcss-tape": "*",
"postcss-nesting": "^13.0.0",
"puppeteer": "^24.0.0"
"puppeteer": "^24.1.1"
},
"scripts": {
"build": "rollup -c ../../rollup/default.mjs",
Expand Down
Loading