Socket
Socket
Sign inDemoInstall

aria-query

Package Overview
Dependencies
1
Maintainers
4
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.2.1 to 5.3.0

10

CHANGELOG.md

@@ -238,2 +238,4 @@ # aria-query Change Log

[Update] The 5.2.x minor version contains breaking changes and should be skipped.
Commit f7f6120 contains a substantial audit and update of the project to match the ARIA spec. Testing coverage was substantially improved. It really locks down the project's output.

@@ -251,2 +253,8 @@

- c995082 Run npm i to update package-lock.json
## 5.3.0
Reverts some API data shape changes from 5.2.x. Also reverts some changes to the representation of the ARIA spec.
- fda2c97 fix: amend breaking changes and reinstate constraints (#515)
- f9f9ea6 Add prepublishOnly step to package.json (#506)

16

lib/etc/roles/abstract/sectionRole.js

@@ -17,18 +17,2 @@ "use strict";

concept: {
attributes: [{
name: 'aria-label'
}],
name: 'section'
},
module: 'HTML'
}, {
concept: {
attributes: [{
name: 'aria-labelledby'
}],
name: 'section'
},
module: 'HTML'
}, {
concept: {
name: 'frontmatter'

@@ -35,0 +19,0 @@ },

@@ -27,4 +27,3 @@ "use strict";

attributes: [{
name: 'aria-controls'
}, {
constraints: ['set'],
name: 'list'

@@ -35,3 +34,2 @@ }, {

}],
constraints: ['the aria-controls attribute is set to the same value as the list attribute'],
name: 'input'

@@ -43,4 +41,3 @@ },

attributes: [{
name: 'aria-controls'
}, {
constraints: ['set'],
name: 'list'

@@ -51,3 +48,2 @@ }, {

}],
constraints: ['the aria-controls attribute is set to the same value as the list attribute'],
name: 'input'

@@ -59,4 +55,3 @@ },

attributes: [{
name: 'aria-controls'
}, {
constraints: ['set'],
name: 'list'

@@ -67,3 +62,2 @@ }, {

}],
constraints: ['the aria-controls attribute is set to the same value as the list attribute'],
name: 'input'

@@ -75,4 +69,3 @@ },

attributes: [{
name: 'aria-controls'
}, {
constraints: ['set'],
name: 'list'

@@ -83,3 +76,2 @@ }, {

}],
constraints: ['the aria-controls attribute is set to the same value as the list attribute'],
name: 'input'

@@ -91,4 +83,3 @@ },

attributes: [{
name: 'aria-controls'
}, {
constraints: ['set'],
name: 'list'

@@ -99,3 +90,2 @@ }, {

}],
constraints: ['the aria-controls attribute is set to the same value as the list attribute'],
name: 'input'

@@ -107,4 +97,3 @@ },

attributes: [{
name: 'aria-controls'
}, {
constraints: ['set'],
name: 'list'

@@ -115,3 +104,2 @@ }, {

}],
constraints: ['the aria-controls attribute is set to the same value as the list attribute'],
name: 'input'

@@ -123,7 +111,9 @@ },

attributes: [{
constraints: ['undefined'],
name: 'multiple'
}, {
constraints: ['undefined'],
name: 'size'
}],
constraints: ['the multiple attribute and the size attribute do not have a value greater than 1'],
constraints: ['the multiple attribute is not set and the size attribute does not have a value greater than 1'],
name: 'select'

@@ -130,0 +120,0 @@ },

@@ -23,2 +23,3 @@ "use strict";

attributes: [{
constraints: ['set'],
name: 'aria-label'

@@ -33,2 +34,3 @@ }],

attributes: [{
constraints: ['set'],
name: 'aria-labelledby'

@@ -35,0 +37,0 @@ }],

@@ -18,2 +18,3 @@ "use strict";

attributes: [{
constraints: ['set'],
name: 'aria-label'

@@ -27,2 +28,3 @@ }],

attributes: [{
constraints: ['set'],
name: 'aria-labelledby'

@@ -36,2 +38,3 @@ }],

attributes: [{
constraints: ['set'],
name: 'name'

@@ -38,0 +41,0 @@ }],

@@ -26,3 +26,3 @@ "use strict";

concept: {
constraints: ['ancestor table element has grid role'],
constraints: ['ancestor table element has grid role', 'ancestor table element has treegrid role'],
name: 'td'

@@ -29,0 +29,0 @@ },

@@ -17,2 +17,6 @@ "use strict";

concept: {
attributes: [{
constraints: ['set'],
name: 'alt'
}],
name: 'img'

@@ -23,2 +27,11 @@ },

concept: {
attributes: [{
constraints: ['undefined'],
name: 'alt'
}],
name: 'img'
},
module: 'HTML'
}, {
concept: {
name: 'imggroup'

@@ -25,0 +38,0 @@ },

@@ -22,2 +22,3 @@ "use strict";

attributes: [{
constraints: ['set'],
name: 'href'

@@ -31,2 +32,3 @@ }],

attributes: [{
constraints: ['set'],
name: 'href'

@@ -33,0 +35,0 @@ }],

@@ -26,5 +26,4 @@ "use strict";

attributes: [{
constraints: ['>1'],
name: 'size'
}, {
name: 'multiple'
}],

@@ -38,14 +37,4 @@ constraints: ['the size attribute value is greater than 1'],

attributes: [{
name: 'size'
}],
constraints: ['the size attribute value is greater than 1'],
name: 'select'
},
module: 'HTML'
}, {
concept: {
attributes: [{
name: 'multiple'
}],
constraints: ['the multiple attribute value is greater than 1'],
name: 'select'

@@ -56,7 +45,2 @@ },

concept: {
attributes: [{
name: 'aria-multiselectable',
value: 'true'
}],
constraints: ['the datalist selection model allows multiple option elements to be selected at a time'],
name: 'datalist'

@@ -67,11 +51,2 @@ },

concept: {
name: 'datalist',
attributes: [{
name: 'aria-multiselectable',
value: 'false'
}]
},
module: 'HTML'
}, {
concept: {
name: 'list'

@@ -78,0 +53,0 @@ },

@@ -28,2 +28,7 @@ "use strict";

concept: {
name: 'listitem'
},
module: 'ARIA'
}, {
concept: {
name: 'option'

@@ -30,0 +35,0 @@ },

@@ -24,16 +24,2 @@ "use strict";

concept: {
attributes: [{
name: 'aria-valuemax'
}, {
name: 'aria-valuemin',
value: 0
}, {
name: 'aria-valuenow'
}],
constraints: ['the progress bar is determinate'],
name: 'progress'
},
module: 'HTML'
}, {
concept: {
name: 'status'

@@ -40,0 +26,0 @@ },

@@ -18,2 +18,3 @@ "use strict";

attributes: [{
constraints: ['set'],
name: 'aria-label'

@@ -27,2 +28,3 @@ }],

attributes: [{
constraints: ['set'],
name: 'aria-labelledby'

@@ -29,0 +31,0 @@ }],

@@ -18,2 +18,3 @@ "use strict";

attributes: [{
constraints: ['undefined'],
name: 'list'

@@ -20,0 +21,0 @@ }, {

@@ -17,8 +17,5 @@ "use strict";

concept: {
attributes: [{
name: 'aria-checked'
}],
name: 'button'
},
module: 'HTML'
module: 'ARIA'
}],

@@ -25,0 +22,0 @@ requireContextRole: [],

@@ -27,2 +27,9 @@ "use strict";

concept: {
attributes: [{
constraints: ['undefined'],
name: 'type'
}, {
constraints: ['undefined'],
name: 'list'
}],
constraints: ['the list attribute is not set'],

@@ -35,2 +42,5 @@ name: 'input'

attributes: [{
constraints: ['undefined'],
name: 'list'
}, {
name: 'type',

@@ -46,2 +56,5 @@ value: 'email'

attributes: [{
constraints: ['undefined'],
name: 'list'
}, {
name: 'type',

@@ -57,2 +70,5 @@ value: 'tel'

attributes: [{
constraints: ['undefined'],
name: 'list'
}, {
name: 'type',

@@ -68,2 +84,5 @@ value: 'text'

attributes: [{
constraints: ['undefined'],
name: 'list'
}, {
name: 'type',

@@ -70,0 +89,0 @@ value: 'url'

{
"name": "aria-query",
"version": "5.2.1",
"version": "5.3.0",
"description": "Programmatic access to the ARIA specification",

@@ -14,2 +14,3 @@ "main": "lib/index.js",

"lint:fix": "npm run lint -- --fix",
"prepublishOnly": "npm run build",
"pretest": "npm run lint:fix && npm run flow",

@@ -39,2 +40,3 @@ "test": "npm run jest",

"@babel/eslint-parser": "^7.19.1",
"@babel/node": "^7.22.5",
"@babel/preset-env": "^7.19.4",

@@ -41,0 +43,0 @@ "@babel/preset-flow": "^7.18.6",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc