Skip to content

Commit b581695

Browse files
authored
chore(release): v4.10.1 (#4615)
### [4.10.1](v4.10.0...v4.10.1) (2024-10-16) ### Bug Fixes - **aria-allowed-role:** add form to allowed roles of form element ([#4588](#4588)) ([d462d67](d462d67)), closes [/github.com/dequelabs/axe-core/blob/develop/lib/standards/html-elms.js#L264](https://github.com/dequelabs//github.com/dequelabs/axe-core/blob/develop/lib/standards/html-elms.js/issues/L264) - **axe.d.ts:** add typings for preload options object ([#4543](#4543)) ([72e269f](72e269f)) - **button-name,input-button-name,input-img-alt:** allow label to give accessible name ([#4607](#4607)) ([364eb72](364eb72)), closes [#4472](#4472) [#3696](#3696) [#3696](#3696) - **get-ancestry:** add nth-child selector for multiple siblings of shadow root ([#4606](#4606)) ([bdd94a2](bdd94a2)), closes [#4563](#4563) - **rules:** Change "alternate text" to "alternative text" ([#4582](#4582)) ([31e0f61](31e0f61))
2 parents c49c8ea + 316b54c commit b581695

Some content is hidden

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

54 files changed

+1647
-1233
lines changed

.github/workflows/format.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
name: Formatter
22

3-
on: [pull_request]
3+
on:
4+
pull_request:
5+
branches:
6+
- develop
47

58
jobs:
69
prettier:
10+
# This conditional prevents running the job on PRs from forks; won't
11+
# have permissions to commit changes, so the job would fail if it ran.
12+
# PRs from forks will instead rely on failing the fmt_check job in test.yml
13+
if: github.event.pull_request.head.repo.full_name == github.repository
714
runs-on: ubuntu-latest
15+
timeout-minutes: 5
816
steps:
917
- uses: actions/checkout@v4
1018
with:

.github/workflows/test.yml

+12
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,18 @@ jobs:
2626
path: axe.js
2727
retention-days: 1
2828

29+
fmt_check:
30+
runs-on: ubuntu-latest
31+
timeout-minutes: 5
32+
steps:
33+
- uses: actions/checkout@v4
34+
- uses: actions/setup-node@v4
35+
with:
36+
node-version: 20
37+
cache: 'npm'
38+
- run: npm ci
39+
- run: npm run fmt:check
40+
2941
test_node:
3042
strategy:
3143
matrix:

CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
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.
44

5+
### [4.10.1](https://github.com/dequelabs/axe-core/compare/v4.10.0...v4.10.1) (2024-10-16)
6+
7+
### Bug Fixes
8+
9+
- **aria-allowed-role:** add form to allowed roles of form element ([#4588](https://github.com/dequelabs/axe-core/issues/4588)) ([d462d67](https://github.com/dequelabs/axe-core/commit/d462d674bb7de0848ce2695f80b95d677c5016e0)), closes [/github.com/dequelabs/axe-core/blob/develop/lib/standards/html-elms.js#L264](https://github.com/dequelabs//github.com/dequelabs/axe-core/blob/develop/lib/standards/html-elms.js/issues/L264)
10+
- **axe.d.ts:** add typings for preload options object ([#4543](https://github.com/dequelabs/axe-core/issues/4543)) ([72e269f](https://github.com/dequelabs/axe-core/commit/72e269f1e6d6039e70e614005f04ebfd3fe5aca5))
11+
- **button-name,input-button-name,input-img-alt:** allow label to give accessible name ([#4607](https://github.com/dequelabs/axe-core/issues/4607)) ([364eb72](https://github.com/dequelabs/axe-core/commit/364eb72bb8f20b0ffc31be24cc96cbd349c301cb)), closes [#4472](https://github.com/dequelabs/axe-core/issues/4472) [#3696](https://github.com/dequelabs/axe-core/issues/3696) [#3696](https://github.com/dequelabs/axe-core/issues/3696)
12+
- **get-ancestry:** add nth-child selector for multiple siblings of shadow root ([#4606](https://github.com/dequelabs/axe-core/issues/4606)) ([bdd94a2](https://github.com/dequelabs/axe-core/commit/bdd94a227a95cd5b9f8e2a1e0fd259ddd702810c)), closes [#4563](https://github.com/dequelabs/axe-core/issues/4563)
13+
- **rules:** Change "alternate text" to "alternative text" ([#4582](https://github.com/dequelabs/axe-core/issues/4582)) ([31e0f61](https://github.com/dequelabs/axe-core/commit/31e0f61ca871b3df86468577c449a02c8ece12f0))
14+
515
## [4.10.0](https://github.com/dequelabs/axe-core/compare/v4.9.1...v4.10.0) (2024-07-29)
616

717
### Features

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# axe-core
22

3-
[![License](https://img.shields.io/npm/l/axe-core.svg)](LICENSE)
3+
[![License](https://img.shields.io/npm/l/axe-core.svg?color=c41)](LICENSE)
44
[![Version](https://img.shields.io/npm/v/axe-core.svg)](https://www.npmjs.com/package/axe-core)
5-
[![Total npm downloads](https://img.shields.io/npm/dt/axe-core.svg)](https://www.npmjs.com/package/axe-core)
5+
[![NPM downloads](https://img.shields.io/npm/dw/axe-core.svg?color=080)![](https://img.shields.io/npm/dy/axe-core.svg?color=080&label=)](https://npm-stat.com/charts.html?package=axe-core&from=2017-01-01)
66
[![Commits](https://img.shields.io/github/commit-activity/y/dequelabs/axe-core.svg)](https://github.com/dequelabs/axe-core/commits/develop)
7-
[![GitHub contributors](https://img.shields.io/github/contributors/dequelabs/axe-core.svg)](https://github.com/dequelabs/axe-core/graphs/contributors)
7+
[![GitHub contributors](https://img.shields.io/github/contributors/dequelabs/axe-core.svg?color=080)](https://github.com/dequelabs/axe-core/graphs/contributors)
88
[![Join our Slack chat](https://img.shields.io/badge/slack-chat-purple.svg?logo=slack)](https://accessibility.deque.com/axe-community)
99
[![Package Quality](https://npm.packagequality.com/shield/axe-core.svg)](https://packagequality.com/#?package=axe-core)
1010

axe.d.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,14 @@ declare namespace axe {
143143
iframes?: boolean;
144144
elementRef?: boolean;
145145
frameWaitTime?: number;
146-
preload?: boolean;
146+
preload?: boolean | PreloadOptions;
147147
performanceTimer?: boolean;
148148
pingWaitTime?: number;
149149
}
150+
interface PreloadOptions {
151+
assets: string[];
152+
timeout?: number;
153+
}
150154
interface AxeResults extends EnvironmentData {
151155
toolOptions: RunOptions;
152156
passes: Result[];

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "axe-core",
3-
"version": "4.10.0",
3+
"version": "4.10.1",
44
"deprecated": true,
55
"contributors": [
66
{

doc/examples/jest_react/jest.setup.js

-4
This file was deleted.

doc/examples/jest_react/link.test.js

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
import React from 'react';
2-
import { mount, render } from 'enzyme';
2+
import { render } from '@testing-library/react';
33
import axe from 'axe-core';
44

55
import Link from './link';
66

77
test('Link has no axe violations', done => {
8-
const fixture = document.createElement('div');
9-
document.body.appendChild(fixture);
10-
11-
const linkComponent = mount(
12-
<Link page="http://www.axe-core.org">axe website</Link>,
13-
{ attachTo: fixture }
8+
const { container } = render(
9+
<Link page="http://www.axe-core.org">axe website</Link>
1410
);
1511

1612
const config = {
@@ -19,7 +15,7 @@ test('Link has no axe violations', done => {
1915
'link-in-text-block': { enabled: false }
2016
}
2117
};
22-
axe.run(fixture, config, (err, { violations }) => {
18+
axe.run(container, config, (err, { violations }) => {
2319
expect(err).toBe(null);
2420
expect(violations).toHaveLength(0);
2521
done();

doc/examples/jest_react/package.json

+9-13
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,16 @@
1212
"test": "jest"
1313
},
1414
"devDependencies": {
15-
"@babel/preset-env": "^7.20.2",
16-
"@babel/preset-react": "^7.18.6",
17-
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
18-
"axe-core": "^4.6.2",
19-
"enzyme": "^3.11.0",
20-
"jest": "^29.3.1",
21-
"jest-environment-jsdom": "^29.3.1",
22-
"react": "^17.0.2",
23-
"react-dom": "^17.0.2"
15+
"@babel/preset-env": "^7.25.3",
16+
"@babel/preset-react": "^7.24.7",
17+
"@testing-library/jest-dom": "^6.4.8",
18+
"@testing-library/react": "^16.0.0",
19+
"jest": "^29.7.0",
20+
"jest-environment-jsdom": "^29.7.0",
21+
"react": "^18.3.1",
22+
"react-dom": "^18.3.1"
2423
},
2524
"jest": {
26-
"testEnvironment": "jsdom",
27-
"setupFilesAfterEnv": [
28-
"<rootDir>/jest.setup.js"
29-
]
25+
"testEnvironment": "jsdom"
3026
}
3127
}

doc/examples/qunit/Gruntfile.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,7 @@ module.exports = function (grunt) {
88
all: ['test/**/*.html'],
99
options: {
1010
puppeteer: {
11-
ignoreDefaultArgs: true,
12-
args: [
13-
'--headless',
14-
'--disable-web-security',
15-
'--allow-file-access-from-files'
16-
]
11+
args: ['--disable-web-security', '--allow-file-access-from-files']
1712
},
1813
timeout: 10000
1914
}

doc/examples/qunit/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
},
1414
"devDependencies": {
1515
"axe-core": "^4.6.2",
16-
"grunt": "^1.5.3",
17-
"grunt-contrib-qunit": "^5.1.1",
18-
"puppeteer": "^19.5.0",
19-
"qunitjs": "^2.0.1"
16+
"grunt": "^1.6.1",
17+
"grunt-contrib-qunit": "^10.1.1",
18+
"puppeteer": "^23.1.0",
19+
"qunit": "^2.22.0"
2020
}
2121
}

doc/examples/qunit/test/test.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
<!-- Load local QUnit. -->
77
<link
88
rel="stylesheet"
9-
href="../node_modules/qunitjs/qunit/qunit.css"
9+
href="../node_modules/qunit/qunit/qunit.css"
1010
media="screen"
1111
/>
12-
<script src="../node_modules/qunitjs/qunit/qunit.js"></script>
12+
<script src="../node_modules/qunit/qunit/qunit.js"></script>
1313
<!-- Load local lib and tests. -->
1414
<script src="../node_modules/axe-core/axe.min.js"></script>
1515
<script src="a11y.js"></script>

0 commit comments

Comments
 (0)