From de26c7ae2f502f284d5d4320634571877dbcf7fc Mon Sep 17 00:00:00 2001 From: Ian VanSchooten Date: Fri, 3 Dec 2021 13:06:41 -0800 Subject: [PATCH] feat: Update aria-query to 5.0.0 (#414) * Update aria-query to 5.0.0 * Roles.keys() returns an array now --- package.json | 2 +- src/to-be-checked.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5045a5d0..fe373baa 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "dependencies": { "@babel/runtime": "^7.9.2", "@types/testing-library__jest-dom": "^5.9.1", - "aria-query": "^4.2.2", + "aria-query": "^5.0.0", "chalk": "^3.0.0", "css": "^3.0.0", "css.escape": "^1.5.1", diff --git a/src/to-be-checked.js b/src/to-be-checked.js index bd19fcb4..02093162 100644 --- a/src/to-be-checked.js +++ b/src/to-be-checked.js @@ -57,7 +57,7 @@ function supportedRolesSentence() { } function supportedRoles() { - return Array.from(roles.keys()).filter(roleSupportsChecked) + return roles.keys().filter(roleSupportsChecked) } function roleSupportsChecked(role) {