Skip to content

Commit

Permalink
Update to Alfa 0.68
Browse files Browse the repository at this point in the history
  • Loading branch information
Jym77 committed Oct 20, 2023
1 parent bbcd957 commit e9d01a5
Show file tree
Hide file tree
Showing 34 changed files with 1,219 additions and 1,176 deletions.
28 changes: 28 additions & 0 deletions .changeset/brave-tigers-visit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
"@siteimprove/alfa-formatter-earl": patch
"@siteimprove/alfa-formatter-json": patch
"@siteimprove/alfa-interviewer": patch
"@siteimprove/alfa-playwright": patch
"@siteimprove/alfa-unexpected": patch
"@siteimprove/alfa-formatter": patch
"@siteimprove/alfa-puppeteer": patch
"@siteimprove/alfa-webdriver": patch
"@siteimprove/alfa-frontier": patch
"@siteimprove/alfa-angular": patch
"@siteimprove/alfa-cheerio": patch
"@siteimprove/alfa-command": patch
"@siteimprove/alfa-crawler": patch
"@siteimprove/alfa-cypress": patch
"@siteimprove/alfa-jasmine": patch
"@siteimprove/alfa-scraper": patch
"@siteimprove/alfa-assert": patch
"@siteimprove/alfa-enzyme": patch
"@siteimprove/alfa-jquery": patch
"@siteimprove/alfa-react": patch
"@siteimprove/alfa-chai": patch
"@siteimprove/alfa-jest": patch
"@siteimprove/alfa-cli": patch
"@siteimprove/alfa-vue": patch
---

**Changed:** Update to Alfa v0.68.0
8 changes: 8 additions & 0 deletions .changeset/lazy-tomatoes-scream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@siteimprove/alfa-playwright": minor
"@siteimprove/alfa-puppeteer": minor
---

**Added:** `Playwright.toNode` and `Puppeteer.toNode` now accept an option `Device` parameter.

Without it, no layout information will be recorded.
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.63.1",
"@siteimprove/alfa-toolchain": "^0.67.0",
"@siteimprove/alfa-toolchain": "^0.68.0",
"@svitejs/changesets-changelog-github-compact": "^1.1.0",
"@types/async": "^3.2.5",
"@types/jsonld": "^1.5.6",
Expand Down
8 changes: 4 additions & 4 deletions packages/alfa-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
],
"dependencies": {
"@angular/core": "^11.0.0",
"@siteimprove/alfa-device": "^0.67.0",
"@siteimprove/alfa-dom": "^0.67.0",
"@siteimprove/alfa-http": "^0.67.0",
"@siteimprove/alfa-web": "^0.67.0",
"@siteimprove/alfa-device": "^0.68.0",
"@siteimprove/alfa-dom": "^0.68.0",
"@siteimprove/alfa-http": "^0.68.0",
"@siteimprove/alfa-web": "^0.68.0",
"rxjs": "^7.3.0",
"zone.js": "^0.11.4"
},
Expand Down
5 changes: 3 additions & 2 deletions packages/alfa-angular/src/angular.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ export namespace Angular {

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

let pageDevice = Device.from(deviceJSON);
return Page.of(
Request.empty(),
Response.empty(),
Document.of([Node.from(nodeJSON)]),
Device.from(deviceJSON)
Document.of([Node.from(nodeJSON, pageDevice)]),
pageDevice
);
}
}
18 changes: 9 additions & 9 deletions packages/alfa-assert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@
"src/**/*.d.ts"
],
"dependencies": {
"@siteimprove/alfa-act": "^0.67.0",
"@siteimprove/alfa-future": "^0.67.0",
"@siteimprove/alfa-hash": "^0.67.0",
"@siteimprove/alfa-option": "^0.67.0",
"@siteimprove/alfa-performance": "^0.67.0",
"@siteimprove/alfa-predicate": "^0.67.0",
"@siteimprove/alfa-result": "^0.67.0",
"@siteimprove/alfa-sequence": "^0.67.0"
"@siteimprove/alfa-act": "^0.68.0",
"@siteimprove/alfa-future": "^0.68.0",
"@siteimprove/alfa-hash": "^0.68.0",
"@siteimprove/alfa-option": "^0.68.0",
"@siteimprove/alfa-performance": "^0.68.0",
"@siteimprove/alfa-predicate": "^0.68.0",
"@siteimprove/alfa-result": "^0.68.0",
"@siteimprove/alfa-sequence": "^0.68.0"
},
"devDependencies": {
"@siteimprove/alfa-test": "^0.67.0"
"@siteimprove/alfa-test": "^0.68.0"
},
"publishConfig": {
"access": "public",
Expand Down
8 changes: 4 additions & 4 deletions packages/alfa-chai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
"src/**/*.d.ts"
],
"dependencies": {
"@siteimprove/alfa-act": "^0.67.0",
"@siteimprove/alfa-act": "^0.68.0",
"@siteimprove/alfa-assert": "workspace:^0.63.1",
"@siteimprove/alfa-future": "^0.67.0",
"@siteimprove/alfa-hash": "^0.67.0",
"@siteimprove/alfa-mapper": "^0.67.0",
"@siteimprove/alfa-future": "^0.68.0",
"@siteimprove/alfa-hash": "^0.68.0",
"@siteimprove/alfa-mapper": "^0.68.0",
"@types/chai": "^4.1.7",
"chai": "^4.3.10"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/alfa-cheerio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
"src/**/*.d.ts"
],
"dependencies": {
"@siteimprove/alfa-device": "^0.67.0",
"@siteimprove/alfa-dom": "^0.67.0",
"@siteimprove/alfa-http": "^0.67.0",
"@siteimprove/alfa-web": "^0.67.0",
"@siteimprove/alfa-device": "^0.68.0",
"@siteimprove/alfa-dom": "^0.68.0",
"@siteimprove/alfa-http": "^0.68.0",
"@siteimprove/alfa-web": "^0.68.0",
"cheerio": "^1.0.0-rc.10",
"domhandler": "^4.2.2"
},
Expand Down
20 changes: 10 additions & 10 deletions packages/alfa-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@
"bin/**/*.d.ts"
],
"dependencies": {
"@siteimprove/alfa-act": "^0.67.0",
"@siteimprove/alfa-act": "^0.68.0",
"@siteimprove/alfa-command": "workspace:^0.63.1",
"@siteimprove/alfa-device": "^0.67.0",
"@siteimprove/alfa-device": "^0.68.0",
"@siteimprove/alfa-formatter": "workspace:^0.63.1",
"@siteimprove/alfa-http": "^0.67.0",
"@siteimprove/alfa-http": "^0.68.0",
"@siteimprove/alfa-interviewer": "workspace:^0.63.1",
"@siteimprove/alfa-iterable": "^0.67.0",
"@siteimprove/alfa-option": "^0.67.0",
"@siteimprove/alfa-result": "^0.67.0",
"@siteimprove/alfa-rules": "^0.67.0",
"@siteimprove/alfa-iterable": "^0.68.0",
"@siteimprove/alfa-option": "^0.68.0",
"@siteimprove/alfa-result": "^0.68.0",
"@siteimprove/alfa-rules": "^0.68.0",
"@siteimprove/alfa-scraper": "workspace:^0.63.1",
"@siteimprove/alfa-time": "^0.67.0",
"@siteimprove/alfa-url": "^0.67.0",
"@siteimprove/alfa-web": "^0.67.0"
"@siteimprove/alfa-time": "^0.68.0",
"@siteimprove/alfa-url": "^0.68.0",
"@siteimprove/alfa-web": "^0.68.0"
},
"publishConfig": {
"access": "public",
Expand Down
20 changes: 10 additions & 10 deletions packages/alfa-command/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@
"src/**/*.d.ts"
],
"dependencies": {
"@siteimprove/alfa-functor": "^0.67.0",
"@siteimprove/alfa-functor": "^0.68.0",
"@siteimprove/alfa-highlight": "^0.64.0",
"@siteimprove/alfa-json": "^0.67.0",
"@siteimprove/alfa-mapper": "^0.67.0",
"@siteimprove/alfa-option": "^0.67.0",
"@siteimprove/alfa-parser": "^0.67.0",
"@siteimprove/alfa-predicate": "^0.67.0",
"@siteimprove/alfa-refinement": "^0.67.0",
"@siteimprove/alfa-result": "^0.67.0",
"@siteimprove/alfa-thunk": "^0.67.0"
"@siteimprove/alfa-json": "^0.68.0",
"@siteimprove/alfa-mapper": "^0.68.0",
"@siteimprove/alfa-option": "^0.68.0",
"@siteimprove/alfa-parser": "^0.68.0",
"@siteimprove/alfa-predicate": "^0.68.0",
"@siteimprove/alfa-refinement": "^0.68.0",
"@siteimprove/alfa-result": "^0.68.0",
"@siteimprove/alfa-thunk": "^0.68.0"
},
"devDependencies": {
"@siteimprove/alfa-test": "^0.67.0"
"@siteimprove/alfa-test": "^0.68.0"
},
"publishConfig": {
"access": "public",
Expand Down
12 changes: 6 additions & 6 deletions packages/alfa-crawler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@
"src/**/*.d.ts"
],
"dependencies": {
"@siteimprove/alfa-dom": "^0.67.0",
"@siteimprove/alfa-dom": "^0.68.0",
"@siteimprove/alfa-frontier": "workspace:^0.63.1",
"@siteimprove/alfa-mapper": "^0.67.0",
"@siteimprove/alfa-result": "^0.67.0",
"@siteimprove/alfa-mapper": "^0.68.0",
"@siteimprove/alfa-result": "^0.68.0",
"@siteimprove/alfa-scraper": "workspace:^0.63.1",
"@siteimprove/alfa-url": "^0.67.0",
"@siteimprove/alfa-web": "^0.67.0"
"@siteimprove/alfa-url": "^0.68.0",
"@siteimprove/alfa-web": "^0.68.0"
},
"devDependencies": {
"@siteimprove/alfa-test": "^0.67.0"
"@siteimprove/alfa-test": "^0.68.0"
},
"publishConfig": {
"access": "public",
Expand Down
14 changes: 7 additions & 7 deletions packages/alfa-cypress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@
"src/**/*.d.ts"
],
"dependencies": {
"@siteimprove/alfa-act": "^0.67.0",
"@siteimprove/alfa-act": "^0.68.0",
"@siteimprove/alfa-assert": "workspace:^0.63.1",
"@siteimprove/alfa-device": "^0.67.0",
"@siteimprove/alfa-dom": "^0.67.0",
"@siteimprove/alfa-device": "^0.68.0",
"@siteimprove/alfa-dom": "^0.68.0",
"@siteimprove/alfa-formatter": "workspace:^0.63.1",
"@siteimprove/alfa-formatter-earl": "workspace:^0.63.1",
"@siteimprove/alfa-hash": "^0.67.0",
"@siteimprove/alfa-http": "^0.67.0",
"@siteimprove/alfa-mapper": "^0.67.0",
"@siteimprove/alfa-web": "^0.67.0",
"@siteimprove/alfa-hash": "^0.68.0",
"@siteimprove/alfa-http": "^0.68.0",
"@siteimprove/alfa-mapper": "^0.68.0",
"@siteimprove/alfa-web": "^0.68.0",
"cypress": "^13.3.1"
},
"publishConfig": {
Expand Down
7 changes: 4 additions & 3 deletions packages/alfa-cypress/src/cypress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,14 @@ export namespace Cypress {

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

let pageDevice = Device.from(deviceJSON);
return Page.of(
Request.empty(),
Response.empty(),
nodeJSON.type === "document"
? Document.from(nodeJSON as Document.JSON)
: Document.of([Node.from(nodeJSON)]),
Device.from(deviceJSON)
? Document.from(nodeJSON as Document.JSON, pageDevice)
: Document.of([Node.from(nodeJSON, pageDevice)]),
pageDevice
);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/alfa-enzyme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
],
"dependencies": {
"@siteimprove/alfa-react": "workspace:^0.63.1",
"@siteimprove/alfa-web": "^0.67.0",
"@siteimprove/alfa-web": "^0.68.0",
"@types/enzyme": "^3.10.8",
"enzyme": "^3.11.0"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/alfa-formatter-earl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
"src/**/*.d.ts"
],
"dependencies": {
"@siteimprove/alfa-earl": "^0.67.0",
"@siteimprove/alfa-earl": "^0.68.0",
"@siteimprove/alfa-formatter": "workspace:^0.63.1",
"@siteimprove/alfa-future": "^0.67.0",
"@siteimprove/alfa-hash": "^0.67.0",
"@siteimprove/alfa-future": "^0.68.0",
"@siteimprove/alfa-hash": "^0.68.0",
"jsonld": "^6.0.0"
},
"publishConfig": {
Expand Down
4 changes: 2 additions & 2 deletions packages/alfa-formatter-json/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
],
"dependencies": {
"@siteimprove/alfa-formatter": "workspace:^0.63.1",
"@siteimprove/alfa-hash": "^0.67.0",
"@siteimprove/alfa-json": "^0.67.0"
"@siteimprove/alfa-hash": "^0.68.0",
"@siteimprove/alfa-json": "^0.68.0"
},
"publishConfig": {
"access": "public",
Expand Down
8 changes: 4 additions & 4 deletions packages/alfa-formatter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
"src/**/*.d.ts"
],
"dependencies": {
"@siteimprove/alfa-act": "^0.67.0",
"@siteimprove/alfa-future": "^0.67.0",
"@siteimprove/alfa-hash": "^0.67.0",
"@siteimprove/alfa-result": "^0.67.0"
"@siteimprove/alfa-act": "^0.68.0",
"@siteimprove/alfa-future": "^0.68.0",
"@siteimprove/alfa-hash": "^0.68.0",
"@siteimprove/alfa-result": "^0.68.0"
},
"publishConfig": {
"access": "public",
Expand Down
12 changes: 6 additions & 6 deletions packages/alfa-frontier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
"src/**/*.d.ts"
],
"dependencies": {
"@siteimprove/alfa-equatable": "^0.67.0",
"@siteimprove/alfa-json": "^0.67.0",
"@siteimprove/alfa-option": "^0.67.0",
"@siteimprove/alfa-predicate": "^0.67.0",
"@siteimprove/alfa-url": "^0.67.0"
"@siteimprove/alfa-equatable": "^0.68.0",
"@siteimprove/alfa-json": "^0.68.0",
"@siteimprove/alfa-option": "^0.68.0",
"@siteimprove/alfa-predicate": "^0.68.0",
"@siteimprove/alfa-url": "^0.68.0"
},
"devDependencies": {
"@siteimprove/alfa-test": "^0.67.0"
"@siteimprove/alfa-test": "^0.68.0"
},
"publishConfig": {
"access": "public",
Expand Down
6 changes: 3 additions & 3 deletions packages/alfa-interviewer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"src/**/*.d.ts"
],
"dependencies": {
"@siteimprove/alfa-act": "^0.67.0",
"@siteimprove/alfa-hash": "^0.67.0",
"@siteimprove/alfa-result": "^0.67.0",
"@siteimprove/alfa-act": "^0.68.0",
"@siteimprove/alfa-hash": "^0.68.0",
"@siteimprove/alfa-result": "^0.68.0",
"@types/node": "^14.14.31"
},
"publishConfig": {
Expand Down
6 changes: 3 additions & 3 deletions packages/alfa-jasmine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
"src/**/*.d.ts"
],
"dependencies": {
"@siteimprove/alfa-act": "^0.67.0",
"@siteimprove/alfa-act": "^0.68.0",
"@siteimprove/alfa-assert": "workspace:^0.63.1",
"@siteimprove/alfa-hash": "^0.67.0",
"@siteimprove/alfa-mapper": "^0.67.0",
"@siteimprove/alfa-hash": "^0.68.0",
"@siteimprove/alfa-mapper": "^0.68.0",
"@types/jasmine": "^3.3.12",
"jasmine": "^3.9.0"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/alfa-jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
"src/**/*.d.ts"
],
"dependencies": {
"@siteimprove/alfa-act": "^0.67.0",
"@siteimprove/alfa-act": "^0.68.0",
"@siteimprove/alfa-assert": "workspace:^0.63.1",
"@siteimprove/alfa-future": "^0.67.0",
"@siteimprove/alfa-hash": "^0.67.0",
"@siteimprove/alfa-mapper": "^0.67.0",
"@siteimprove/alfa-future": "^0.68.0",
"@siteimprove/alfa-hash": "^0.68.0",
"@siteimprove/alfa-mapper": "^0.68.0",
"@types/jest": "^26.0.10",
"jest": "^29.0.1"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/alfa-jquery/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
"src/**/*.d.ts"
],
"dependencies": {
"@siteimprove/alfa-device": "^0.67.0",
"@siteimprove/alfa-dom": "^0.67.0",
"@siteimprove/alfa-http": "^0.67.0",
"@siteimprove/alfa-web": "^0.67.0",
"@siteimprove/alfa-device": "^0.68.0",
"@siteimprove/alfa-dom": "^0.68.0",
"@siteimprove/alfa-http": "^0.68.0",
"@siteimprove/alfa-web": "^0.68.0",
"@types/jquery": "^3.3.29",
"jquery": "^3.6.0"
},
Expand Down
Loading

0 comments on commit e9d01a5

Please sign in to comment.