axe-core 4.3.2 → 4.3.3-canary.5908f0d

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,35 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [4.3.3-canary.5908f0d](https://github.com/dequelabs/axe-core/compare/v4.3.3...v4.3.3-canary.5908f0d) (2021-10-01)
6
+
7
+
8
+ ### Features
9
+
10
+ * **aria-allowed-attr:** report violations for non-global ARIA attributes on elements without a role ([#3102](https://github.com/dequelabs/axe-core/issues/3102)) ([87cfc0b](https://github.com/dequelabs/axe-core/commit/87cfc0b4f4d998a88a2d534438e4f2ccf9427a86))
11
+ * add new ARIA roles ([#3138](https://github.com/dequelabs/axe-core/issues/3138)) ([61be7e5](https://github.com/dequelabs/axe-core/commit/61be7e555152d89c6770679fd6fdac10038f7cd3))
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * check for hidden elements on `aria-errormessage` ([#3156](https://github.com/dequelabs/axe-core/issues/3156)) ([95d37dd](https://github.com/dequelabs/axe-core/commit/95d37dd794dc8552d731fabf45244b260da53d8f))
17
+ * **aria-allowed-attr:** check for invalid `aria-attributes` for `role="row"` ([#3160](https://github.com/dequelabs/axe-core/issues/3160)) ([cfa900d](https://github.com/dequelabs/axe-core/commit/cfa900d57265907b638dad36ba405a5b40dbde9c))
18
+ * **aria-allowed-role:** Update allowed roles based on ARIA spec updates ([#3124](https://github.com/dequelabs/axe-core/issues/3124)) ([00f6efc](https://github.com/dequelabs/axe-core/commit/00f6efcd55eb0a4c56cc3ca1acc7c79e3d22f58d))
19
+ * **color-contrast:** account for 0 width scroll regions with children ([#3172](https://github.com/dequelabs/axe-core/issues/3172)) ([5908f0d](https://github.com/dequelabs/axe-core/commit/5908f0d644c20e7091329bd8bbeb191837d27feb))
20
+ * **d.ts:** Add PartialResults type ([#3126](https://github.com/dequelabs/axe-core/issues/3126)) ([544b6d5](https://github.com/dequelabs/axe-core/commit/544b6d579f3eecf8e102a53a911bbce0bd53b74f))
21
+ * **is-visible:** do not error if window.Node does not exist ([#3168](https://github.com/dequelabs/axe-core/issues/3168)) ([4046087](https://github.com/dequelabs/axe-core/commit/404608773abf7b4d069a64931adf4ac7e942b663))
22
+ * **nativeSelectValue:** update selected value on change ([#3154](https://github.com/dequelabs/axe-core/issues/3154)) ([1ee88cb](https://github.com/dequelabs/axe-core/commit/1ee88cb4bb557560f10eab136464c321d4dee81e))
23
+ * **reporter:** Run inside isolated contexts ([#3129](https://github.com/dequelabs/axe-core/issues/3129)) ([afe6675](https://github.com/dequelabs/axe-core/commit/afe6675d2452089602dcc6c9e931987936e9a55a))
24
+ * **typescript:** allow passing a NodeList to ElementContext ([#3161](https://github.com/dequelabs/axe-core/issues/3161)) ([ad4b165](https://github.com/dequelabs/axe-core/commit/ad4b165a0e019cd65f70fa5d085d83cea3e7338c))
25
+
26
+ ### [4.3.3](https://github.com/dequelabs/axe-core/compare/v4.3.2...v4.3.3) (2021-08-24)
27
+
28
+ ### Bug Fixes
29
+
30
+ - **aria-allowed-role:** Update allowed roles based on ARIA spec updates ([#3124](https://github.com/dequelabs/axe-core/issues/3124)) ([a1f637f](https://github.com/dequelabs/axe-core/commit/a1f637f3f5ebf0e483fd21865bd2191c24ccb87a))
31
+ - **d.ts:** Add PartialResults type ([#3126](https://github.com/dequelabs/axe-core/issues/3126)) ([5cdaf01](https://github.com/dequelabs/axe-core/commit/5cdaf012a2f09834d8b7e5f3a645a40e61d47ea9))
32
+ - **reporter:** Run inside isolated contexts ([#3129](https://github.com/dequelabs/axe-core/issues/3129)) ([98066f8](https://github.com/dequelabs/axe-core/commit/98066f8864d4ef09b4b3de12456992d3ca3207b4))
33
+
5
34
  ### [4.3.2](https://github.com/dequelabs/axe-core/compare/v4.3.1...v4.3.2) (2021-07-27)
6
35
 
7
36
  ### Bug Fixes
package/axe.d.ts CHANGED
@@ -56,7 +56,7 @@ declare namespace axe {
56
56
 
57
57
  type RunCallback = (error: Error, results: AxeResults) => void;
58
58
 
59
- type ElementContext = Node | string | ContextObject;
59
+ type ElementContext = Node | NodeList | string | ContextObject;
60
60
 
61
61
  interface TestEngine {
62
62
  name: string;
@@ -96,13 +96,8 @@ declare namespace axe {
96
96
  preload?: boolean;
97
97
  performanceTimer?: boolean;
98
98
  }
99
- interface AxeResults {
99
+ interface AxeResults extends EnvironmentData {
100
100
  toolOptions: RunOptions;
101
- testEngine: TestEngine;
102
- testRunner: TestRunner;
103
- testEnvironment: TestEnvironment;
104
- url: string;
105
- timestamp: string;
106
101
  passes: Result[];
107
102
  violations: Result[];
108
103
  incomplete: Result[];
@@ -262,7 +257,9 @@ declare namespace axe {
262
257
  interface PartialResult {
263
258
  frames: SerialDqElement[];
264
259
  results: PartialRuleResult[];
260
+ environmentData?: EnvironmentData;
265
261
  }
262
+ type PartialResults = Array<PartialResult | null>
266
263
  interface FrameContext {
267
264
  frameSelector: CrossTreeSelector;
268
265
  frameContext: ContextObject;
@@ -271,6 +268,13 @@ declare namespace axe {
271
268
  getFrameContexts: (context?: ElementContext) => FrameContext[];
272
269
  shadowSelect: (selector: CrossTreeSelector) => Element | null;
273
270
  }
271
+ interface EnvironmentData {
272
+ testEngine: TestEngine;
273
+ testRunner: TestRunner;
274
+ testEnvironment: TestEnvironment;
275
+ url: string;
276
+ timestamp: string;
277
+ }
274
278
 
275
279
  let version: string;
276
280
  let plugins: any;
@@ -333,7 +337,7 @@ declare namespace axe {
333
337
  * @param {RunOptions} options Optional Options passed into rules or checks, temporarily modifying them.
334
338
  */
335
339
  function finishRun(
336
- partialResults: Array<PartialResult | null>,
340
+ partialResults: PartialResults,
337
341
  options: RunOptions
338
342
  ): Promise<AxeResults>;
339
343