Skip to content

Commit 8ef3b25

Browse files
authored
chore: update deps and fix issues (#98)
1 parent a89072f commit 8ef3b25

File tree

12 files changed

+1286
-8150
lines changed

12 files changed

+1286
-8150
lines changed

.playgrounds/.partial/footer.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,15 @@
99
<li>
1010
<a href="https://github.com/lowlighter/libs" target="_blank">
1111
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
12-
<path
13-
d="M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z"
14-
>
12+
<path d="M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z">
1513
</path>
1614
</svg>
1715
</a>
1816
</li>
1917
<li>
2018
<a href="https://github.com/sponsors/lowlighter" target="_blank">
2119
<svg class="sponsor" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
22-
<path
23-
d="m8 14.25.345.666a.75.75 0 0 1-.69 0l-.008-.004-.018-.01a7.152 7.152 0 0 1-.31-.17 22.055 22.055 0 0 1-3.434-2.414C2.045 10.731 0 8.35 0 5.5 0 2.836 2.086 1 4.25 1 5.797 1 7.153 1.802 8 3.02 8.847 1.802 10.203 1 11.75 1 13.914 1 16 2.836 16 5.5c0 2.85-2.045 5.231-3.885 6.818a22.066 22.066 0 0 1-3.744 2.584l-.018.01-.006.003h-.002ZM4.25 2.5c-1.336 0-2.75 1.164-2.75 3 0 2.15 1.58 4.144 3.365 5.682A20.58 20.58 0 0 0 8 13.393a20.58 20.58 0 0 0 3.135-2.211C12.92 9.644 14.5 7.65 14.5 5.5c0-1.836-1.414-3-2.75-3-1.373 0-2.609.986-3.029 2.456a.749.749 0 0 1-1.442 0C6.859 3.486 5.623 2.5 4.25 2.5Z"
24-
>
20+
<path d="m8 14.25.345.666a.75.75 0 0 1-.69 0l-.008-.004-.018-.01a7.152 7.152 0 0 1-.31-.17 22.055 22.055 0 0 1-3.434-2.414C2.045 10.731 0 8.35 0 5.5 0 2.836 2.086 1 4.25 1 5.797 1 7.153 1.802 8 3.02 8.847 1.802 10.203 1 11.75 1 13.914 1 16 2.836 16 5.5c0 2.85-2.045 5.231-3.885 6.818a22.066 22.066 0 0 1-3.744 2.584l-.018.01-.006.003h-.002ZM4.25 2.5c-1.336 0-2.75 1.164-2.75 3 0 2.15 1.58 4.144 3.365 5.682A20.58 20.58 0 0 0 8 13.393a20.58 20.58 0 0 0 3.135-2.211C12.92 9.644 14.5 7.65 14.5 5.5c0-1.836-1.414-3-2.75-3-1.373 0-2.609.986-3.029 2.456a.749.749 0 0 1-1.442 0C6.859 3.486 5.623 2.5 4.25 2.5Z">
2521
</path>
2622
</svg>
2723
</a>

.playgrounds/.partial/header.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,15 @@ <h1>@libs</h1>
55
<li>
66
<a href="https://github.com/lowlighter/libs" target="_blank">
77
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
8-
<path
9-
d="M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z"
10-
>
8+
<path d="M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z">
119
</path>
1210
</svg>
1311
</a>
1412
</li>
1513
<li>
1614
<a href="https://github.com/sponsors/lowlighter" target="_blank">
1715
<svg class="sponsor" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
18-
<path
19-
d="m8 14.25.345.666a.75.75 0 0 1-.69 0l-.008-.004-.018-.01a7.152 7.152 0 0 1-.31-.17 22.055 22.055 0 0 1-3.434-2.414C2.045 10.731 0 8.35 0 5.5 0 2.836 2.086 1 4.25 1 5.797 1 7.153 1.802 8 3.02 8.847 1.802 10.203 1 11.75 1 13.914 1 16 2.836 16 5.5c0 2.85-2.045 5.231-3.885 6.818a22.066 22.066 0 0 1-3.744 2.584l-.018.01-.006.003h-.002ZM4.25 2.5c-1.336 0-2.75 1.164-2.75 3 0 2.15 1.58 4.144 3.365 5.682A20.58 20.58 0 0 0 8 13.393a20.58 20.58 0 0 0 3.135-2.211C12.92 9.644 14.5 7.65 14.5 5.5c0-1.836-1.414-3-2.75-3-1.373 0-2.609.986-3.029 2.456a.749.749 0 0 1-1.442 0C6.859 3.486 5.623 2.5 4.25 2.5Z"
20-
>
16+
<path d="m8 14.25.345.666a.75.75 0 0 1-.69 0l-.008-.004-.018-.01a7.152 7.152 0 0 1-.31-.17 22.055 22.055 0 0 1-3.434-2.414C2.045 10.731 0 8.35 0 5.5 0 2.836 2.086 1 4.25 1 5.797 1 7.153 1.802 8 3.02 8.847 1.802 10.203 1 11.75 1 13.914 1 16 2.836 16 5.5c0 2.85-2.045 5.231-3.885 6.818a22.066 22.066 0 0 1-3.744 2.584l-.018.01-.006.003h-.002ZM4.25 2.5c-1.336 0-2.75 1.164-2.75 3 0 2.15 1.58 4.144 3.365 5.682A20.58 20.58 0 0 0 8 13.393a20.58 20.58 0 0 0 3.135-2.211C12.92 9.644 14.5 7.65 14.5 5.5c0-1.836-1.414-3-2.75-3-1.373 0-2.609.986-3.029 2.456a.749.749 0 0 1-1.442 0C6.859 3.486 5.623 2.5 4.25 2.5Z">
2117
</path>
2218
</svg>
2319
</a>

bundle/css/compatibility_test.ts

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,29 @@ import { encodeBase64 } from "@std/encoding/base64"
66
;(Report as testing).testing()
77

88
const base = new URL("testing/", import.meta.url)
9+
const rules = {
10+
"at-rule-no-deprecated": false,
11+
"declaration-property-value-no-unknown": false,
12+
"declaration-property-value-keyword-no-deprecated": false,
13+
}
914

1015
test("`report.for()` detects features", async () => {
11-
const css = await bundle(new URL("test_compatibility.css", base))
16+
const css = await bundle(new URL("test_compatibility.css", base), { rules })
1217
const result = new Report("defaults, ie > 8", { loglevel: -1 }).for(css)
1318
expect(result.features.list).toContain("properties/backdrop-filter")
1419
expect(result.browsers.ie["9"].support.unsupported).toHaveProperty("properties/backdrop-filter")
15-
}, { permissions: { read: true } })
20+
}, { permissions: { read: true, env: true } })
1621

1722
test("`report.for()` supports advanced usecases", async () => {
18-
const css = await bundle(new URL("test_compatibility_complex.css", base))
23+
const css = await bundle(new URL("test_compatibility_complex.css", base), { rules })
1924
expect(() => new Report("> 0%", { loglevel: -1 }).for(css)).not.toThrow()
20-
}, { permissions: { read: true } })
25+
}, { permissions: { read: true, env: true } })
2126

2227
test("`report.print()` formats and outputs results", async () => {
2328
const report = new Report("> 0%", { loglevel: -1 })
2429
const _ = console.log
2530
try {
26-
const css = await bundle(new URL("test_compatibility.css", base))
31+
const css = await bundle(new URL("test_compatibility.css", base), { rules })
2732
let text = ""
2833
const log = fn((message: string) => text = message)
2934
Object.assign(console, { log })
@@ -51,7 +56,9 @@ test("`report.print()` formats and outputs results", async () => {
5156
}
5257
// Force coverage of colors
5358
for (const pass of [7, 8, 9, 10, NaN]) {
54-
const css = Number.isNaN(pass) ? await bundle(new URL("test_compatibility_print.css", base)) : `:root { ${new Array(pass).fill(null).map((_, i) => `-debug-pass-${i}: 1px`).join(";")}; ${new Array(10 - pass).fill(null).map((_, i) => `-debug-fail-${i}: 1px`).join(";")} }`
59+
const css = Number.isNaN(pass)
60+
? await bundle(new URL("test_compatibility_print.css", base), { rules })
61+
: `:root { ${new Array(pass).fill(null).map((_, i) => `-debug-pass-${i}: 1px`).join(";")}; ${new Array(10 - pass).fill(null).map((_, i) => `-debug-fail-${i}: 1px`).join(";")} }`
5562
for (const output of ["console", "html"] as const) {
5663
const report = new Report(Number.isNaN(pass) ? "> 0%" : "last 2 chrome versions", { loglevel: -1 })
5764
report.for(css).print({ output, view: "browsers", verbose: true })
@@ -60,7 +67,7 @@ test("`report.print()` formats and outputs results", async () => {
6067
} finally {
6168
Object.assign(console, { log: _ })
6269
}
63-
}, { permissions: { read: true } })
70+
}, { permissions: { read: true, env: true } })
6471

6572
test("`compatibility()` supports printing reports", async () => {
6673
const input = "body { color: salmon; }"
@@ -75,4 +82,4 @@ test("`compatibility()` supports printing reports", async () => {
7582
} finally {
7683
Object.assign(console, { log: _ })
7784
}
78-
}, { permissions: { read: true } })
85+
}, { permissions: { read: true, env: true } })

bundle/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"@b-fuze/deno-dom": "npm:@jsr/b-fuze__deno-dom@^0.1.48",
1616
"@cliffy/table": "npm:@jsr/cliffy__table@^1.0.0-rc.7",
1717
"@luca/esbuild-deno-loader": "npm:@jsr/luca__esbuild-deno-loader@^0.11.0-rc.1",
18-
"@mdn/browser-compat-data": "^5.6.19",
18+
"@mdn/browser-compat-data": "^6.0.18",
1919
"@std/assert": "npm:@jsr/std__assert@^1.0.8",
2020
"@std/async": "npm:@jsr/std__async@^1.0.9",
2121
"@std/encoding": "npm:@jsr/std__encoding@^1.0.5",
@@ -25,13 +25,13 @@
2525
"browserslist": "^4.24.2",
2626
"css-tree": "^3.0.1",
2727
"csso": "^5.0.5",
28-
"esbuild": "^0.24.0",
28+
"esbuild": "^0.25.5",
2929
"highlight.js": "^11.10.0",
30-
"octokit": "^4.0.2",
30+
"octokit": "^5.0.3",
3131
"stylelint": "^16.11.0",
3232
"stylelint-config-idiomatic-order": "^10.0.0",
33-
"stylelint-config-recommended": "^14.0.1",
34-
"stylelint-order": "^6.0.4",
33+
"stylelint-config-recommended": "^16.0.0",
34+
"stylelint-order": "^7.0.0",
3535
"terser": "^5.36.0"
3636
}
3737
}

0 commit comments

Comments
 (0)