Skip to content

Commit d07b6cb

Browse files
Release 6.0.0 (#192)
1 parent 13fbd82 commit d07b6cb

124 files changed

Lines changed: 6361 additions & 5366 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.

.circleci/config.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ defaults: &defaults
55

66
unix_box: &unix_box
77
docker:
8-
- image: cimg/node:18.18-browsers
8+
- image: cimg/node:22.16-browsers
99

1010
unix_nightly_box: &unix_nightly_box
1111
docker:
1212
- image: cimg/node:lts-browsers
1313

1414
orbs:
1515
puppeteer: threetreeslight/puppeteer@0.1.2
16-
browser-tools: circleci/browser-tools@1.4.8
16+
browser-tools: circleci/browser-tools@1.5.1
1717

1818
set_npm_auth: &set_npm_auth
1919
run: npm config set "//registry.npmjs.org/:_authToken" $NPM_AUTH
@@ -61,13 +61,14 @@ jobs:
6161
paths:
6262
- node_modules
6363

64-
# Build and cache axe.js
64+
# Build and cache built files
6565
build_unix:
6666
<<: *defaults
6767
<<: *unix_box
6868
steps:
6969
- checkout
7070
- <<: *restore_dependency_cache_unix
71+
- run: npm run prepare
7172
- run: npm run build
7273
- save_cache:
7374
key: v9-cache-build-<< pipeline.git.revision >>
@@ -183,8 +184,9 @@ jobs:
183184
- run:
184185
name: Install Firefox Nightly
185186
command: |
186-
wget -O firefox-nightly.tar.bz2 "https://download.mozilla.org/?product=firefox-nightly-latest-ssl&os=linux64&lang=en-US"
187-
tar xf firefox-nightly.tar.bz2
187+
# Assumes Firefox >= 135; in earlier versions, this resolves to a .tar.bz2 instead
188+
wget -O firefox-nightly.tar.xz "https://download.mozilla.org/?product=firefox-nightly-latest-ssl&os=linux64&lang=en-US"
189+
tar xf firefox-nightly.tar.xz
188190
- run:
189191
name: Set Environment Variable
190192
command: echo "export FIREFOX_NIGHTLY_BIN=$(pwd)/firefox/firefox-bin" >> $BASH_ENV

.eslintignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ doc/api/*
77
doc/examples/jest_react/*.js
88

99
lib/core/imports/*.js
10+
lib/core/utils/uuid.js
1011
axe.js
11-
axe.min.js
12+
axe.min.js

.eslintrc.js

Lines changed: 0 additions & 158 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ updates:
1414
update-types:
1515
- 'minor'
1616
- 'patch'
17+
cooldown:
18+
default-days: 7
1719

1820
- package-ecosystem: 'npm'
1921
directory: '/'
@@ -32,13 +34,27 @@ updates:
3234
versions: ['>=9.0.0']
3335
- dependency-name: 'chai'
3436
versions: ['>=5.0.0']
37+
- dependency-name: 'conventional-commits-parser'
38+
versions: ['>=6.0.0']
3539
# Prevent Webpack error caused by v0.11+ of esbuild
3640
# @see https://github.com/dequelabs/axe-core/issues/3771
3741
- dependency-name: 'esbuild'
3842
versions: ['>=0.11.0']
43+
# Prevent colorjs.io issue caused by >v0.4.3
44+
# @see https://github.com/dequelabs/axe-core/issues/4428
45+
- dependency-name: 'colorjs.io'
46+
versions: ['>0.4.3']
47+
# Still need to support node 18
48+
- dependency-name: 'glob'
49+
versions: ['>=11.0.0']
50+
# Use node 4 types for backward compatibility
51+
- dependency-name: '@types/node'
52+
versions: ['>=5.0.0']
3953
groups:
4054
# Any updates not caught by the group config will get individual PRs
4155
npm-low-risk:
4256
update-types:
4357
- 'minor'
4458
- 'patch'
59+
cooldown:
60+
default-days: 7

.github/workflows/Semgrep.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
workflow_dispatch: {}
99
# Scan mainline branches and report all findings:
1010
push:
11-
branches: ["master", "main"]
11+
branches: ['master', 'main']
1212
# Schedule the CI job (this method uses cron syntax):
1313
schedule:
1414
- cron: '20 17 * * *' # Sets Semgrep to scan every day at 17:20 UTC.
@@ -17,8 +17,8 @@ on:
1717
jobs:
1818
semgrep:
1919
# User definable name of this GitHub Actions job.
20-
name: semgrep/ci
21-
# If you are self-hosting, change the following `runs-on` value:
20+
name: semgrep/ci
21+
# If you are self-hosting, change the following `runs-on` value:
2222
runs-on: ubuntu-latest
2323

2424
container:

.github/workflows/format.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,34 @@
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:
9-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v5
1018
with:
1119
ref: ${{ github.event.pull_request.head.ref }}
1220
- name: Install dependencies
1321
run: npm ci
14-
- uses: actions/setup-node@v4
22+
- uses: actions/setup-node@v5
1523
with:
16-
node-version: 16
24+
node-version-file: .nvmrc
1725
cache: 'npm'
1826
# Workflows are not allowed to edit workflows. As result, we need to prevent Prettier from formatting them.
1927
- name: Prevent workflows from being formatted
2028
run: echo ".github" >> .prettierignore && cat .prettierignore
2129
- run: npm run fmt
2230
# Prevent the prettierignore change from being committed.
2331
- run: git checkout .prettierignore
24-
- uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d # tag=v5
32+
- uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0 # tag=v5
2533
with:
2634
commit_message: ':robot: Automated formatting fixes'

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ jobs:
77
name: Create release
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v4
10+
- uses: actions/checkout@v5
1111
with:
1212
fetch-depth: 0
13-
- uses: actions/setup-node@v4
13+
- uses: actions/setup-node@v5
1414
with:
15-
node-version: 16
15+
node-version-file: .nvmrc
1616
cache: 'npm'
1717
- name: Run release script and open PR
1818
run: |

.github/workflows/test.yml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,45 @@ jobs:
1212
runs-on: ubuntu-latest
1313
timeout-minutes: 5
1414
steps:
15-
- uses: actions/checkout@v4
16-
- uses: actions/setup-node@v4
15+
- uses: actions/checkout@v5
16+
- uses: actions/setup-node@v5
1717
with:
18-
node-version: 20
18+
node-version-file: .nvmrc
1919
cache: 'npm'
2020
- run: npm ci
21+
- run: npm run prepare
2122
- run: npm run build
2223
- uses: actions/upload-artifact@v4
2324
with:
2425
name: axe-core
2526
path: axe.js
2627
retention-days: 1
2728

29+
fmt_check:
30+
runs-on: ubuntu-latest
31+
timeout-minutes: 5
32+
steps:
33+
- uses: actions/checkout@v5
34+
- uses: actions/setup-node@v5
35+
with:
36+
node-version-file: .nvmrc
37+
cache: 'npm'
38+
- run: npm ci
39+
- run: npm run fmt:check
40+
2841
test_node:
2942
strategy:
3043
matrix:
31-
node: [6, 18, 20]
44+
node: [6, 18, 20, 22]
3245
runs-on: ubuntu-latest
3346
timeout-minutes: 5
3447
needs: build
3548
steps:
36-
- uses: actions/checkout@v4
37-
- uses: actions/setup-node@v4
49+
- uses: actions/checkout@v5
50+
- uses: actions/setup-node@v5
3851
with:
3952
node-version: ${{ matrix.node}}
40-
- uses: actions/download-artifact@v4.1.7
53+
- uses: actions/download-artifact@v5
4154
with:
4255
name: axe-core
4356
- run: npm run test:node

0 commit comments

Comments
 (0)