Skip to content

Commit 83e9178

Browse files
benmccanngtm-nayan
andauthored
chore: upgrade aria-query and axobject-query (#8724)
Co-authored-by: gtmnayan <[email protected]>
1 parent cc1f4bc commit 83e9178

File tree

7 files changed

+55
-206
lines changed

7 files changed

+55
-206
lines changed

packages/svelte/package.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@
103103
"@ampproject/remapping": "^2.2.1",
104104
"@jridgewell/sourcemap-codec": "^1.4.15",
105105
"acorn": "^8.8.2",
106-
"aria-query": "^5.1.3",
107-
"axobject-query": "^3.1.1",
106+
"aria-query": "^5.2.1",
107+
"axobject-query": "^3.2.1",
108108
"code-red": "^1.0.0",
109109
"css-tree": "^2.3.1",
110110
"estree-walker": "^3.0.3",
@@ -118,7 +118,6 @@
118118
"@rollup/plugin-commonjs": "^24.1.0",
119119
"@rollup/plugin-json": "^6.0.0",
120120
"@rollup/plugin-node-resolve": "^15.0.2",
121-
"@rollup/plugin-replace": "^5.0.2",
122121
"@sveltejs/eslint-config": "^6.0.4",
123122
"@types/aria-query": "^5.0.1",
124123
"@types/estree": "^1.0.1",
@@ -133,7 +132,6 @@
133132
"source-map": "^0.7.4",
134133
"tiny-glob": "^0.2.9",
135134
"typescript": "^5.0.4",
136-
"util": "^0.12.5",
137135
"vitest": "^0.31.1"
138136
}
139137
}

packages/svelte/rollup.config.js

-12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import fs from 'node:fs';
22
import { createRequire } from 'node:module';
3-
import replace from '@rollup/plugin-replace';
43
import resolve from '@rollup/plugin-node-resolve';
54
import commonjs from '@rollup/plugin-commonjs';
65
import json from '@rollup/plugin-json';
@@ -25,19 +24,8 @@ export default [
2524
{
2625
input: 'src/compiler/index.js',
2726
plugins: [
28-
replace({
29-
preventAssignment: true,
30-
values: {
31-
'process.env.NODE_DEBUG': false // appears inside the util package
32-
}
33-
}),
3427
{
3528
resolveId(id) {
36-
// util is a built-in module in Node.js, but we want a self-contained compiler bundle
37-
// that also works in the browser, so we load its polyfill instead
38-
if (id === 'util') {
39-
return require.resolve('./node_modules/util'); // just 'utils' would resolve this to the built-in module
40-
}
4129
// Must import from the `css-tree` browser bundled distribution due to `createRequire` usage if importing from css-tree directly
4230
if (id === 'css-tree') {
4331
return require.resolve('./node_modules/css-tree/dist/csstree.esm.js');

packages/svelte/test/validator/samples/a11y-no-interactive-element-to-noninteractive-role/input.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,6 @@
143143
<menuitem role="listitem" />
144144
<option class="foo" role="listitem" />
145145
<select class="foo" role="listitem" />
146-
<summary role="listitem" />
146+
<summary role="listitem" /> // TODO: https://github.com/sveltejs/svelte/issues/8728
147147
<textarea class="foo" role="listitem" />
148148
<tr role="listitem" />

packages/svelte/test/validator/samples/a11y-no-interactive-element-to-noninteractive-role/warnings.json

-12
Original file line numberDiff line numberDiff line change
@@ -671,18 +671,6 @@
671671
"line": 145
672672
}
673673
},
674-
{
675-
"code": "a11y-no-interactive-element-to-noninteractive-role",
676-
"end": {
677-
"column": 27,
678-
"line": 146
679-
},
680-
"message": "A11y: <summary> cannot have role 'listitem'",
681-
"start": {
682-
"column": 0,
683-
"line": 146
684-
}
685-
},
686674
{
687675
"code": "a11y-no-interactive-element-to-noninteractive-role",
688676
"end": {

packages/svelte/test/validator/samples/a11y-no-noninteractive-element-to-interactive-role/input.svelte

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<article role="button" />
33
<aside role="checkbox" aria-checked={false} />
44
<blockquote role="columnheader" />
5-
<body role="combobox" aria-controls={[]} aria-expanded />
5+
<body role="combobox" aria-controls={[]} aria-expanded /> // TODO: https://github.com/sveltejs/svelte/issues/8728
66
<br role="grid" />
77
<caption role="gridcell" />
88
<dd role="link" />
@@ -18,7 +18,7 @@
1818
<figure role="option" aria-selected />
1919
<footer role="radio" aria-checked />
2020
<form role="radiogroup" />
21-
<frame role="row" />
21+
<frame role="row" /> // TODO: https://github.com/sveltejs/svelte/issues/8728
2222
<h1 role="rowheader">Button</h1>
2323
<h2 role="scrollbar" aria-controls={[]} aria-valuenow={0} >Button</h2>
2424
<h3 role="searchbox">Button</h3>
@@ -46,7 +46,7 @@
4646
<section role="radio" aria-label="radio" aria-checked />
4747
<table role="menu" />
4848
<tbody role="searchbox" />
49-
<td role="button" />
49+
<td role="button" /> // TODO: https://github.com/sveltejs/svelte/issues/8728
5050
<tfoot role="listbox" />
5151
<thead role="slider" aria-valuenow={0} />
5252
<time role="doc-backlink" />

packages/svelte/test/validator/samples/a11y-no-noninteractive-element-to-interactive-role/warnings.json

-36
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,6 @@
3535
"line": 4
3636
}
3737
},
38-
{
39-
"code": "a11y-no-noninteractive-element-to-interactive-role",
40-
"end": {
41-
"column": 57,
42-
"line": 5
43-
},
44-
"message": "A11y: Non-interactive element <body> cannot have interactive role 'combobox'",
45-
"start": {
46-
"column": 0,
47-
"line": 5
48-
}
49-
},
5038
{
5139
"code": "a11y-no-noninteractive-element-to-interactive-role",
5240
"end": {
@@ -203,18 +191,6 @@
203191
"line": 20
204192
}
205193
},
206-
{
207-
"code": "a11y-no-noninteractive-element-to-interactive-role",
208-
"end": {
209-
"column": 20,
210-
"line": 21
211-
},
212-
"message": "A11y: Non-interactive element <frame> cannot have interactive role 'row'",
213-
"start": {
214-
"column": 0,
215-
"line": 21
216-
}
217-
},
218194
{
219195
"code": "a11y-no-noninteractive-element-to-interactive-role",
220196
"end": {
@@ -563,18 +539,6 @@
563539
"line": 48
564540
}
565541
},
566-
{
567-
"code": "a11y-no-noninteractive-element-to-interactive-role",
568-
"end": {
569-
"column": 20,
570-
"line": 49
571-
},
572-
"message": "A11y: Non-interactive element <td> cannot have interactive role 'button'",
573-
"start": {
574-
"column": 0,
575-
"line": 49
576-
}
577-
},
578542
{
579543
"code": "a11y-no-noninteractive-element-to-interactive-role",
580544
"end": {

0 commit comments

Comments
 (0)