Skip to content

Commit 033347f

Browse files
Update dependency versions (#3275)
1 parent 5e25865 commit 033347f

61 files changed

Lines changed: 2722 additions & 2198 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

oxlint.config.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ const disabledRules = [
6363
"unicorn/filename-case",
6464
"unicorn/no-array-callback-reference",
6565
"unicorn/no-lonely-if",
66+
"unicorn/no-negated-condition",
6667
"unicorn/no-null",
6768
"unicorn/no-object-as-default-parameter",
6869
"unicorn/no-useless-undefined",

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,16 @@
3535
},
3636
"devDependencies": {
3737
"@pnpm/meta-updater": "^2.0.6",
38-
"@types/node": "^24.12.2",
38+
"@types/node": "^24.12.4",
3939
"esbuild": "^0.28.0",
4040
"eslint-plugin-mocha": "^11.2.0",
41-
"oxfmt": "^0.47.0",
42-
"oxlint": "^1.62.0",
41+
"oxfmt": "^0.49.0",
42+
"oxlint": "^1.64.0",
4343
"oxlint-tsgolint": "^0.22.1",
44-
"stylelint": "^17.9.1",
44+
"stylelint": "^17.11.0",
4545
"stylelint-config-standard": "^40.0.0",
4646
"stylelint-config-standard-scss": "^17.0.0",
47-
"syncpack": "^14.3.1",
47+
"syncpack": "^15.1.2",
4848
"tsx": "^4.21.0",
4949
"typescript": "^6.0.3"
5050
},

packages/app-vscode/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1319,7 +1319,7 @@
13191319
"itertools": "^2.6.0",
13201320
"lodash-es": "^4.18.1",
13211321
"nearley": "^2.20.1",
1322-
"semver": "^7.7.4",
1322+
"semver": "^7.8.0",
13231323
"trie-search": "^2.2.1",
13241324
"uuid": "^14.0.0",
13251325
"vscode-uri": "^3.1.0"
@@ -1329,14 +1329,14 @@
13291329
"@types/lodash-es": "^4.17.12",
13301330
"@types/mocha": "^10.0.10",
13311331
"@types/nearley": "^2.11.5",
1332-
"@types/node": "^24.12.2",
1332+
"@types/node": "^24.12.4",
13331333
"@types/semver": "^7.7.1",
13341334
"@types/sinon": "^21.0.1",
13351335
"@types/vscode": "1.98.0",
13361336
"esbuild": "^0.28.0",
1337-
"fast-xml-parser": "^5.7.2",
1338-
"fs-extra": "^11.3.4",
1339-
"sinon": "^21.1.2",
1337+
"fast-xml-parser": "^5.8.0",
1338+
"fs-extra": "^11.3.5",
1339+
"sinon": "^22.0.0",
13401340
"tsx": "^4.21.0"
13411341
}
13421342
}

packages/app-vscode/src/ide/vscode/VscodeConfiguration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export function vscodeGetConfigurationString(path: string): string | undefined {
6666
}
6767

6868
function evaluateStringVariables(value: string): string {
69-
return value.replaceAll(/\${(\w+)}/g, (match, variable) => {
69+
return value.replaceAll(/\$\{(\w+)\}/gu, (match, variable) => {
7070
switch (variable) {
7171
case "userHome":
7272
return os.homedir();

packages/app-vscode/src/ide/vscode/hats/VscodeHatRenderer.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -310,16 +310,16 @@ export class VscodeHatRenderer {
310310
let isOk = true;
311311

312312
if (
313-
svg.match(/fill="(?!none)[^"]+"/) == null &&
314-
svg.match(/fill:(?!none)[^;]+;/) == null
313+
svg.match(/fill="(?!none)[^"]+"/u) == null &&
314+
svg.match(/fill:(?!none)[^;]+;/u) == null
315315
) {
316316
void vscode.window.showErrorMessage(
317317
`Raw svg '${shape}' is missing 'fill' property`,
318318
);
319319
isOk = false;
320320
}
321321

322-
const viewBoxMatch = svg.match(/viewBox="([^"]+)"/);
322+
const viewBoxMatch = svg.match(/viewBox="([^"]+)"/u);
323323

324324
if (viewBoxMatch == null) {
325325
void vscode.window.showErrorMessage(
@@ -339,9 +339,9 @@ export class VscodeHatRenderer {
339339
// so that you can be notified if/when it changes or is removed.
340340
const [fill, stroke] = color.split("-");
341341
let svg = originalSvg
342-
.replaceAll(/fill="(?!none)[^"]+"/g, `fill="${fill}"`)
343-
.replaceAll(/fill:(?!none)[^;]+;/g, `fill:${fill};`)
344-
.replaceAll(/\r?\n/g, " ");
342+
.replaceAll(/fill="(?!none)[^"]+"/gu, `fill="${fill}"`)
343+
.replaceAll(/fill:(?!none)[^;]+;/gu, `fill:${fill};`)
344+
.replaceAll(/\r?\n/gu, " ");
345345
if (stroke !== undefined) {
346346
svg = this.addInnerStrokeToSvg(svgInfo, svg, stroke);
347347
}
@@ -357,7 +357,7 @@ export class VscodeHatRenderer {
357357
stroke: string,
358358
): string {
359359
// All hat svgs have exactly one path element. Extract it.
360-
const pathRegex = /<path[^>]*d="([^"]+)"[^>]*\/>/;
360+
const pathRegex = /<path[^>]*d="([^"]+)"[^>]*\/>/u;
361361
const pathMatch = pathRegex.exec(svg);
362362
if (!pathMatch) {
363363
console.error(`Could not find path in svg: ${svg}`);
@@ -446,9 +446,9 @@ export class VscodeHatRenderer {
446446
const newViewBoxString = `${newViewBoxX} ${newViewBoxY} ${newViewBoxWidth} ${newViewBoxHeight}`;
447447

448448
const innerSvg = rawSvg
449-
.replace(/width="[^"]+"/, ``)
450-
.replace(/height="[^"]+"/, ``)
451-
.replace(/viewBox="([^"]+)"/, `style="overflow:visible"`);
449+
.replace(/width="[^"]+"/u, ``)
450+
.replace(/height="[^"]+"/u, ``)
451+
.replace(/viewBox="([^"]+)"/u, `style="overflow:visible"`);
452452

453453
const svg =
454454
`<svg xmlns="http://www.w3.org/2000/svg" ` +
@@ -469,12 +469,12 @@ export class VscodeHatRenderer {
469469
}
470470

471471
private getViewBoxDimensions(rawSvg: string) {
472-
const viewBoxValue = rawSvg.match(/viewBox="([^"]+)"/)?.[1];
472+
const viewBoxValue = rawSvg.match(/viewBox="([^"]+)"/u)?.[1];
473473
if (viewBoxValue == null) {
474474
throw new Error("Missing viewBox");
475475
}
476476

477-
const viewBoxParts = viewBoxValue.trim().split(/\s+/);
477+
const viewBoxParts = viewBoxValue.trim().split(/\s+/u);
478478
// A valid viewBox should have 4 parts: min-x, min-y, width and height
479479
if (viewBoxParts.length !== 4) {
480480
throw new Error(`Invalid viewBox format: ${viewBoxValue}`);

packages/app-vscode/src/scripts/preprocessSvgHats.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ async function main() {
2626
svgJson.svg["@_height"] = "1em";
2727

2828
if (
29-
rawSvg.match(/fill="[^"]+"/) == null &&
30-
rawSvg.match(/fill:[^;]+;/) == null
29+
rawSvg.match(/fill="[^"]+"/u) == null &&
30+
rawSvg.match(/fill:[^;]+;/u) == null
3131
) {
3232
svgJson.svg["@_fill"] = "#123456";
3333
}
3434

3535
const outputSvg = dumper
3636
.build(svgJson)
37-
.replaceAll(/fill="(?!none)[^"]+"/g, 'fill="#666666"')
38-
.replaceAll(/fill:(?!none)[^;]+;/g, "fill:#666666;");
37+
.replaceAll(/fill="(?!none)[^"]+"/gu, 'fill="#666666"')
38+
.replaceAll(/fill:(?!none)[^;]+;/gu, "fill:#666666;");
3939

4040
await fsp.writeFile(filePath, outputSvg);
4141
}

packages/app-web-docs/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"build": "docusaurus build --out-dir out"
2424
},
2525
"dependencies": {
26-
"@algolia/client-search": "^5.52.0",
26+
"@algolia/client-search": "^5.52.1",
2727
"@cursorless/lib-common": "workspace:*",
2828
"@docsearch/react": "^4.6.3",
2929
"@docusaurus/core": "^3.10.1",
@@ -36,8 +36,8 @@
3636
"bootstrap": "^5.3.8",
3737
"docusaurus-plugin-sass": "^0.2.6",
3838
"prism-react-renderer": "^2.4.1",
39-
"react": "^19.2.5",
40-
"react-dom": "^19.2.5",
39+
"react": "^19.2.6",
40+
"react-dom": "^19.2.6",
4141
"shiki": "^4.0.2",
4242
"unist-util-visit": "^5.1.0"
4343
},
@@ -47,7 +47,7 @@
4747
"@docusaurus/types": "^3.10.1",
4848
"@types/mdast": "^4.0.4",
4949
"@types/mocha": "^10.0.10",
50-
"@types/node": "^24.12.2",
50+
"@types/node": "^24.12.4",
5151
"@types/react": "^19.2.14",
5252
"sass": "^1.99.0",
5353
"typescript": "^6.0.3",

packages/app-web-docs/src/plugins/scope-tests-plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ function parseTest(test: ScopeTestPath) {
6262
.toString()
6363
.replaceAll("\r\n", "\n");
6464

65-
const delimiterIndex = fixture.match(/^---$/m)?.index;
65+
const delimiterIndex = fixture.match(/^---$/mu)?.index;
6666

6767
if (delimiterIndex === undefined) {
6868
throw new Error(`Can't find delimiter '---' in scope fixture ${test.path}`);
6969
}
7070

7171
const code = fixture.slice(0, delimiterIndex - 1);
72-
const lines = fixture.slice(delimiterIndex + 4).split(/\n/);
72+
const lines = fixture.slice(delimiterIndex + 4).split(/\n/u);
7373
const scopes: Scope[] = [];
7474
const unprocessedTypes: string[] = [];
7575
let currentScopeIndex = "1";

packages/app-web/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
"wouter-preact": "^3.9.0"
2121
},
2222
"devDependencies": {
23-
"@types/node": "^24.12.2",
23+
"@types/node": "^24.12.4",
2424
"typescript": "^6.0.3",
25-
"vite": "^8.0.10",
25+
"vite": "^8.0.12",
2626
"vite-plugin-purgecss": "^0.2.13",
2727
"vite-plugin-svgr": "^5.2.0"
2828
}

packages/app-web/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default defineConfig((): UserConfig => {
5656
function formatMessage(message: string): string {
5757
const maxLength = 1000;
5858
const lines = message
59-
.split(/\r?\n/)
59+
.split(/\r?\n/u)
6060
.map((l) => l.trimEnd())
6161
.map((l) => (l.length > maxLength ? `${l.slice(0, maxLength)}...` : l));
6262
return lines.join("\n");

0 commit comments

Comments
 (0)