Skip to content

Commit

Permalink
Update Alfa to ^0.79.0 (#40)
Browse files Browse the repository at this point in the history
* Update Alfa to ^0.79.0

* Add changeset

* Use async Native where needed

* Update Alfa

* Cleanup

* Clean up

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jean-Yves Moyen <jym@siteimprove.com>
  • Loading branch information
renovate[bot] and Jym77 authored Apr 30, 2024
1 parent 5cc5560 commit 78764bd
Show file tree
Hide file tree
Showing 37 changed files with 1,497 additions and 1,443 deletions.
8 changes: 8 additions & 0 deletions .changeset/kind-countries-approve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@siteimprove/alfa-angular": minor
"@siteimprove/alfa-cypress": minor
"@siteimprove/alfa-jquery": minor
"@siteimprove/alfa-vue": minor
---

**Breaking:** `toPage` is now `async`.
28 changes: 28 additions & 0 deletions .changeset/tiny-baboons-mate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
"@siteimprove/alfa-angular": patch
"@siteimprove/alfa-assert": patch
"@siteimprove/alfa-chai": patch
"@siteimprove/alfa-cheerio": patch
"@siteimprove/alfa-cli": patch
"@siteimprove/alfa-command": patch
"@siteimprove/alfa-crawler": patch
"@siteimprove/alfa-cypress": patch
"@siteimprove/alfa-enzyme": patch
"@siteimprove/alfa-formatter-earl": patch
"@siteimprove/alfa-formatter-json": patch
"@siteimprove/alfa-formatter": patch
"@siteimprove/alfa-frontier": patch
"@siteimprove/alfa-interviewer": patch
"@siteimprove/alfa-jasmine": patch
"@siteimprove/alfa-jest": patch
"@siteimprove/alfa-jquery": patch
"@siteimprove/alfa-playwright": patch
"@siteimprove/alfa-puppeteer": patch
"@siteimprove/alfa-react": patch
"@siteimprove/alfa-scraper": patch
"@siteimprove/alfa-unexpected": patch
"@siteimprove/alfa-vue": patch
"@siteimprove/alfa-webdriver": patch
---

**Changed:** Update Alfa to ^0.79.1
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@microsoft/api-documenter": "^7.19.9",
"@microsoft/api-extractor": "^7.29.5",
"@siteimprove/alfa-cli": "workspace:^0.64.11",
"@siteimprove/alfa-toolchain": "^0.78.0",
"@siteimprove/alfa-toolchain": "^0.79.1",
"@svitejs/changesets-changelog-github-compact": "^1.1.0",
"@types/async": "^3.2.5",
"@types/jsonld": "^1.5.6",
Expand Down
16 changes: 8 additions & 8 deletions packages/alfa-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@
],
"dependencies": {
"@angular/core": "^11.0.0",
"@siteimprove/alfa-device": "^0.78.1",
"@siteimprove/alfa-dom": "^0.78.1",
"@siteimprove/alfa-http": "^0.78.1",
"@siteimprove/alfa-web": "^0.78.1",
"@siteimprove/alfa-device": "^0.79.1",
"@siteimprove/alfa-dom": "^0.79.1",
"@siteimprove/alfa-http": "^0.79.1",
"@siteimprove/alfa-web": "^0.79.1",
"rxjs": "^7.3.0",
"zone.js": "^0.11.4"
},
"peerDependencies": {
"@siteimprove/alfa-device": "^0.78.1",
"@siteimprove/alfa-dom": "^0.78.1",
"@siteimprove/alfa-http": "^0.78.1",
"@siteimprove/alfa-web": "^0.78.1"
"@siteimprove/alfa-device": "^0.79.1",
"@siteimprove/alfa-dom": "^0.79.1",
"@siteimprove/alfa-http": "^0.79.1",
"@siteimprove/alfa-web": "^0.79.1"
},
"publishConfig": {
"access": "public",
Expand Down
4 changes: 2 additions & 2 deletions packages/alfa-angular/src/angular.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import { ComponentFixture } from "@angular/core/testing";
export namespace Angular {
export type Type = ComponentFixture<unknown>;

export function toPage(value: Type): Page {
const nodeJSON = dom.Native.fromNode(value.nativeElement);
export async function toPage(value: Type): Promise<Page> {
const nodeJSON = await dom.Native.fromNode(value.nativeElement);

const deviceJSON = device.Native.fromWindow(window);

Expand Down
34 changes: 17 additions & 17 deletions packages/alfa-assert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,27 @@
"src/**/*.d.ts"
],
"dependencies": {
"@siteimprove/alfa-act": "^0.78.1",
"@siteimprove/alfa-future": "^0.78.1",
"@siteimprove/alfa-hash": "^0.78.1",
"@siteimprove/alfa-option": "^0.78.1",
"@siteimprove/alfa-performance": "^0.78.1",
"@siteimprove/alfa-predicate": "^0.78.1",
"@siteimprove/alfa-result": "^0.78.1",
"@siteimprove/alfa-sequence": "^0.78.1"
"@siteimprove/alfa-act": "^0.79.1",
"@siteimprove/alfa-future": "^0.79.1",
"@siteimprove/alfa-hash": "^0.79.1",
"@siteimprove/alfa-option": "^0.79.1",
"@siteimprove/alfa-performance": "^0.79.1",
"@siteimprove/alfa-predicate": "^0.79.1",
"@siteimprove/alfa-result": "^0.79.1",
"@siteimprove/alfa-sequence": "^0.79.1"
},
"devDependencies": {
"@siteimprove/alfa-test": "^0.78.1"
"@siteimprove/alfa-test": "^0.79.1"
},
"peerDependencies": {
"@siteimprove/alfa-act": "^0.78.1",
"@siteimprove/alfa-future": "^0.78.1",
"@siteimprove/alfa-hash": "^0.78.1",
"@siteimprove/alfa-option": "^0.78.1",
"@siteimprove/alfa-performance": "^0.78.1",
"@siteimprove/alfa-predicate": "^0.78.1",
"@siteimprove/alfa-result": "^0.78.1",
"@siteimprove/alfa-sequence": "^0.78.1"
"@siteimprove/alfa-act": "^0.79.1",
"@siteimprove/alfa-future": "^0.79.1",
"@siteimprove/alfa-hash": "^0.79.1",
"@siteimprove/alfa-option": "^0.79.1",
"@siteimprove/alfa-performance": "^0.79.1",
"@siteimprove/alfa-predicate": "^0.79.1",
"@siteimprove/alfa-result": "^0.79.1",
"@siteimprove/alfa-sequence": "^0.79.1"
},
"publishConfig": {
"access": "public",
Expand Down
16 changes: 8 additions & 8 deletions packages/alfa-chai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@
"src/**/*.d.ts"
],
"dependencies": {
"@siteimprove/alfa-act": "^0.78.1",
"@siteimprove/alfa-act": "^0.79.1",
"@siteimprove/alfa-assert": "workspace:^0.64.11",
"@siteimprove/alfa-future": "^0.78.1",
"@siteimprove/alfa-hash": "^0.78.1",
"@siteimprove/alfa-mapper": "^0.78.1",
"@siteimprove/alfa-future": "^0.79.1",
"@siteimprove/alfa-hash": "^0.79.1",
"@siteimprove/alfa-mapper": "^0.79.1",
"@types/chai": "^4.1.7",
"chai": "^4.3.10"
},
"peerDependencies": {
"@siteimprove/alfa-act": "^0.78.1",
"@siteimprove/alfa-future": "^0.78.1",
"@siteimprove/alfa-hash": "^0.78.1",
"@siteimprove/alfa-mapper": "^0.78.1"
"@siteimprove/alfa-act": "^0.79.1",
"@siteimprove/alfa-future": "^0.79.1",
"@siteimprove/alfa-hash": "^0.79.1",
"@siteimprove/alfa-mapper": "^0.79.1"
},
"publishConfig": {
"access": "public",
Expand Down
16 changes: 8 additions & 8 deletions packages/alfa-cheerio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@
"src/**/*.d.ts"
],
"dependencies": {
"@siteimprove/alfa-device": "^0.78.1",
"@siteimprove/alfa-dom": "^0.78.1",
"@siteimprove/alfa-http": "^0.78.1",
"@siteimprove/alfa-web": "^0.78.1",
"@siteimprove/alfa-device": "^0.79.1",
"@siteimprove/alfa-dom": "^0.79.1",
"@siteimprove/alfa-http": "^0.79.1",
"@siteimprove/alfa-web": "^0.79.1",
"cheerio": "^1.0.0-rc.10",
"domhandler": "^4.2.2"
},
"peerDependencies": {
"@siteimprove/alfa-device": "^0.78.1",
"@siteimprove/alfa-dom": "^0.78.1",
"@siteimprove/alfa-http": "^0.78.1",
"@siteimprove/alfa-web": "^0.78.1"
"@siteimprove/alfa-device": "^0.79.1",
"@siteimprove/alfa-dom": "^0.79.1",
"@siteimprove/alfa-http": "^0.79.1",
"@siteimprove/alfa-web": "^0.79.1"
},
"publishConfig": {
"access": "public",
Expand Down
40 changes: 20 additions & 20 deletions packages/alfa-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,32 +19,32 @@
"bin/**/*.d.ts"
],
"dependencies": {
"@siteimprove/alfa-act": "^0.78.1",
"@siteimprove/alfa-act": "^0.79.1",
"@siteimprove/alfa-command": "workspace:^0.64.11",
"@siteimprove/alfa-device": "^0.78.1",
"@siteimprove/alfa-device": "^0.79.1",
"@siteimprove/alfa-formatter": "workspace:^0.64.11",
"@siteimprove/alfa-http": "^0.78.1",
"@siteimprove/alfa-http": "^0.79.1",
"@siteimprove/alfa-interviewer": "workspace:^0.64.11",
"@siteimprove/alfa-iterable": "^0.78.1",
"@siteimprove/alfa-option": "^0.78.1",
"@siteimprove/alfa-result": "^0.78.1",
"@siteimprove/alfa-rules": "^0.78.1",
"@siteimprove/alfa-iterable": "^0.79.1",
"@siteimprove/alfa-option": "^0.79.1",
"@siteimprove/alfa-result": "^0.79.1",
"@siteimprove/alfa-rules": "^0.79.1",
"@siteimprove/alfa-scraper": "workspace:^0.64.11",
"@siteimprove/alfa-time": "^0.78.1",
"@siteimprove/alfa-url": "^0.78.1",
"@siteimprove/alfa-web": "^0.78.1"
"@siteimprove/alfa-time": "^0.79.1",
"@siteimprove/alfa-url": "^0.79.1",
"@siteimprove/alfa-web": "^0.79.1"
},
"peerDependencies": {
"@siteimprove/alfa-act": "^0.78.1",
"@siteimprove/alfa-device": "^0.78.1",
"@siteimprove/alfa-http": "^0.78.1",
"@siteimprove/alfa-iterable": "^0.78.1",
"@siteimprove/alfa-option": "^0.78.1",
"@siteimprove/alfa-result": "^0.78.1",
"@siteimprove/alfa-rules": "^0.78.1",
"@siteimprove/alfa-time": "^0.78.1",
"@siteimprove/alfa-url": "^0.78.1",
"@siteimprove/alfa-web": "^0.78.1"
"@siteimprove/alfa-act": "^0.79.1",
"@siteimprove/alfa-device": "^0.79.1",
"@siteimprove/alfa-http": "^0.79.1",
"@siteimprove/alfa-iterable": "^0.79.1",
"@siteimprove/alfa-option": "^0.79.1",
"@siteimprove/alfa-result": "^0.79.1",
"@siteimprove/alfa-rules": "^0.79.1",
"@siteimprove/alfa-time": "^0.79.1",
"@siteimprove/alfa-url": "^0.79.1",
"@siteimprove/alfa-web": "^0.79.1"
},
"publishConfig": {
"access": "public",
Expand Down
38 changes: 19 additions & 19 deletions packages/alfa-command/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,30 @@
"src/**/*.d.ts"
],
"dependencies": {
"@siteimprove/alfa-functor": "^0.78.1",
"@siteimprove/alfa-functor": "^0.79.1",
"@siteimprove/alfa-highlight": "^0.64.0",
"@siteimprove/alfa-json": "^0.78.1",
"@siteimprove/alfa-mapper": "^0.78.1",
"@siteimprove/alfa-option": "^0.78.1",
"@siteimprove/alfa-parser": "^0.78.1",
"@siteimprove/alfa-predicate": "^0.78.1",
"@siteimprove/alfa-refinement": "^0.78.1",
"@siteimprove/alfa-result": "^0.78.1",
"@siteimprove/alfa-thunk": "^0.78.1"
"@siteimprove/alfa-json": "^0.79.1",
"@siteimprove/alfa-mapper": "^0.79.1",
"@siteimprove/alfa-option": "^0.79.1",
"@siteimprove/alfa-parser": "^0.79.1",
"@siteimprove/alfa-predicate": "^0.79.1",
"@siteimprove/alfa-refinement": "^0.79.1",
"@siteimprove/alfa-result": "^0.79.1",
"@siteimprove/alfa-thunk": "^0.79.1"
},
"devDependencies": {
"@siteimprove/alfa-test": "^0.78.1"
"@siteimprove/alfa-test": "^0.79.1"
},
"peerDependencies": {
"@siteimprove/alfa-functor": "^0.78.1",
"@siteimprove/alfa-json": "^0.78.1",
"@siteimprove/alfa-mapper": "^0.78.1",
"@siteimprove/alfa-option": "^0.78.1",
"@siteimprove/alfa-parser": "^0.78.1",
"@siteimprove/alfa-predicate": "^0.78.1",
"@siteimprove/alfa-refinement": "^0.78.1",
"@siteimprove/alfa-result": "^0.78.1",
"@siteimprove/alfa-thunk": "^0.78.1"
"@siteimprove/alfa-functor": "^0.79.1",
"@siteimprove/alfa-json": "^0.79.1",
"@siteimprove/alfa-mapper": "^0.79.1",
"@siteimprove/alfa-option": "^0.79.1",
"@siteimprove/alfa-parser": "^0.79.1",
"@siteimprove/alfa-predicate": "^0.79.1",
"@siteimprove/alfa-refinement": "^0.79.1",
"@siteimprove/alfa-result": "^0.79.1",
"@siteimprove/alfa-thunk": "^0.79.1"
},
"publishConfig": {
"access": "public",
Expand Down
22 changes: 11 additions & 11 deletions packages/alfa-crawler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@
"src/**/*.d.ts"
],
"dependencies": {
"@siteimprove/alfa-dom": "^0.78.1",
"@siteimprove/alfa-dom": "^0.79.1",
"@siteimprove/alfa-frontier": "workspace:^0.64.11",
"@siteimprove/alfa-mapper": "^0.78.1",
"@siteimprove/alfa-result": "^0.78.1",
"@siteimprove/alfa-mapper": "^0.79.1",
"@siteimprove/alfa-result": "^0.79.1",
"@siteimprove/alfa-scraper": "workspace:^0.64.11",
"@siteimprove/alfa-url": "^0.78.1",
"@siteimprove/alfa-web": "^0.78.1"
"@siteimprove/alfa-url": "^0.79.1",
"@siteimprove/alfa-web": "^0.79.1"
},
"devDependencies": {
"@siteimprove/alfa-test": "^0.78.1"
"@siteimprove/alfa-test": "^0.79.1"
},
"peerDependencies": {
"@siteimprove/alfa-dom": "^0.78.1",
"@siteimprove/alfa-mapper": "^0.78.1",
"@siteimprove/alfa-result": "^0.78.1",
"@siteimprove/alfa-url": "^0.78.1",
"@siteimprove/alfa-web": "^0.78.1"
"@siteimprove/alfa-dom": "^0.79.1",
"@siteimprove/alfa-mapper": "^0.79.1",
"@siteimprove/alfa-result": "^0.79.1",
"@siteimprove/alfa-url": "^0.79.1",
"@siteimprove/alfa-web": "^0.79.1"
},
"publishConfig": {
"access": "public",
Expand Down
28 changes: 14 additions & 14 deletions packages/alfa-cypress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,26 @@
"src/**/*.d.ts"
],
"dependencies": {
"@siteimprove/alfa-act": "^0.78.1",
"@siteimprove/alfa-act": "^0.79.1",
"@siteimprove/alfa-assert": "workspace:^0.64.11",
"@siteimprove/alfa-device": "^0.78.1",
"@siteimprove/alfa-dom": "^0.78.1",
"@siteimprove/alfa-device": "^0.79.1",
"@siteimprove/alfa-dom": "^0.79.1",
"@siteimprove/alfa-formatter": "workspace:^0.64.11",
"@siteimprove/alfa-formatter-earl": "workspace:^0.64.11",
"@siteimprove/alfa-hash": "^0.78.1",
"@siteimprove/alfa-http": "^0.78.1",
"@siteimprove/alfa-mapper": "^0.78.1",
"@siteimprove/alfa-web": "^0.78.1",
"@siteimprove/alfa-hash": "^0.79.1",
"@siteimprove/alfa-http": "^0.79.1",
"@siteimprove/alfa-mapper": "^0.79.1",
"@siteimprove/alfa-web": "^0.79.1",
"cypress": "^13.3.1"
},
"peerDependencies": {
"@siteimprove/alfa-act": "^0.78.1",
"@siteimprove/alfa-device": "^0.78.1",
"@siteimprove/alfa-dom": "^0.78.1",
"@siteimprove/alfa-hash": "^0.78.1",
"@siteimprove/alfa-http": "^0.78.1",
"@siteimprove/alfa-mapper": "^0.78.1",
"@siteimprove/alfa-web": "^0.78.1"
"@siteimprove/alfa-act": "^0.79.1",
"@siteimprove/alfa-device": "^0.79.1",
"@siteimprove/alfa-dom": "^0.79.1",
"@siteimprove/alfa-hash": "^0.79.1",
"@siteimprove/alfa-http": "^0.79.1",
"@siteimprove/alfa-mapper": "^0.79.1",
"@siteimprove/alfa-web": "^0.79.1"
},
"publishConfig": {
"access": "public",
Expand Down
8 changes: 4 additions & 4 deletions packages/alfa-cypress/src/cypress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ export namespace Cypress {
const asserter = Asserter.of(rules, handlers, options);

return (chai) => {
chai.Assertion.addMethod("accessible", function () {
const input = toPage(this._obj);
chai.Assertion.addMethod("accessible", async function () {
const input = await toPage(this._obj);

const result = asserter
.expect(input)
Expand Down Expand Up @@ -88,12 +88,12 @@ export namespace Cypress {

export type Type = globalThis.Node | globalThis.JQuery;

export function toPage(value: Type): Page {
export async function toPage(value: Type): Promise<Page> {
if ("jquery" in value) {
value = value.get(0);
}

const nodeJSON = dom.Native.fromNode(value);
const nodeJSON = await dom.Native.fromNode(value);

const deviceJSON = device.Native.fromWindow(window);

Expand Down
Loading

0 comments on commit 78764bd

Please sign in to comment.