Skip to content

Commit

Permalink
Merge branch 'main' into is-clipped-update
Browse files Browse the repository at this point in the history
  • Loading branch information
Jym77 committed Jun 14, 2021
2 parents daf6b5f + bfb1a0d commit b6380d3
Show file tree
Hide file tree
Showing 175 changed files with 3,660 additions and 4,432 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@ Items that are related, such as breaking changes, new features, or changes to ex

## [Unreleased]

## [0.18.0](../../compare/v0.17.0...v0.18.0) (2021-06-11)

### Breaking

- [@siteimprove/alfa-graph](packages/alfa-graph), [@siteimprove/alfa-network](packages/alfa-network): Several breaking changes have been made to the `Graph` and `Network` types. Please see the associated pull request for more details. ([#765](../../pull/765))

- [@siteimprove/alfa-highlight](packages/alfa-highlight): The `syntax()` function has been removed. ([#764](../../pull/764))

- [@siteimprove/alfa-json-ld](packages/alfa-json-ld): Several unused APIs have been removed. Please see the associated pull request for more details. ([#766](../../pull/766))

### Added

- [@siteimprove/alfa-graph](packages/alfa-graph), [@siteimprove/alfa-network](packages/alfa-network): `Graph#isEmpty()`, `Network#isEmpty()`, `Graph#path()`, `Network#path()`, `Graph#reverse()`, `Network#reverse()`, `Graph#sort()`, and `Network#sort()` are now available. ([#765](../../pull/765))

## [0.17.0](../../compare/v0.16.2...v0.17.0) (2021-04-13)

### Breaking
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
"@types/node": "^14.14.31",
"async": "^3.2.0",
"axios": "^0.21.1",
"execa": "^5.0.0",
"execa": "^5.1.1",
"minimist": "^1.2.5",
"prettier": "^2.2.1",
"typescript": "^4.2.4"
"prettier": "^2.3.1",
"typescript": "^4.3.2"
}
}
38 changes: 19 additions & 19 deletions packages/alfa-act/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "http://json.schemastore.org/package",
"name": "@siteimprove/alfa-act",
"homepage": "https://alfa.siteimprove.com",
"version": "0.17.0",
"version": "0.18.0",
"license": "MIT",
"description": "Functionality for implementing rules specified in the ACT Rules Format",
"repository": {
Expand All @@ -18,26 +18,26 @@
"src/**/*.d.ts"
],
"dependencies": {
"@siteimprove/alfa-earl": "workspace:^0.17.0",
"@siteimprove/alfa-equatable": "workspace:^0.17.0",
"@siteimprove/alfa-functor": "workspace:^0.17.0",
"@siteimprove/alfa-future": "workspace:^0.17.0",
"@siteimprove/alfa-iterable": "workspace:^0.17.0",
"@siteimprove/alfa-json": "workspace:^0.17.0",
"@siteimprove/alfa-list": "workspace:^0.17.0",
"@siteimprove/alfa-mapper": "workspace:^0.17.0",
"@siteimprove/alfa-monad": "workspace:^0.17.0",
"@siteimprove/alfa-option": "workspace:^0.17.0",
"@siteimprove/alfa-performance": "workspace:^0.17.0",
"@siteimprove/alfa-record": "workspace:^0.17.0",
"@siteimprove/alfa-result": "workspace:^0.17.0",
"@siteimprove/alfa-sarif": "workspace:^0.17.0",
"@siteimprove/alfa-sequence": "workspace:^0.17.0",
"@siteimprove/alfa-thunk": "workspace:^0.17.0",
"@siteimprove/alfa-trilean": "workspace:^0.17.0"
"@siteimprove/alfa-earl": "workspace:^0.18.0",
"@siteimprove/alfa-equatable": "workspace:^0.18.0",
"@siteimprove/alfa-functor": "workspace:^0.18.0",
"@siteimprove/alfa-future": "workspace:^0.18.0",
"@siteimprove/alfa-iterable": "workspace:^0.18.0",
"@siteimprove/alfa-json": "workspace:^0.18.0",
"@siteimprove/alfa-list": "workspace:^0.18.0",
"@siteimprove/alfa-mapper": "workspace:^0.18.0",
"@siteimprove/alfa-monad": "workspace:^0.18.0",
"@siteimprove/alfa-option": "workspace:^0.18.0",
"@siteimprove/alfa-performance": "workspace:^0.18.0",
"@siteimprove/alfa-record": "workspace:^0.18.0",
"@siteimprove/alfa-result": "workspace:^0.18.0",
"@siteimprove/alfa-sarif": "workspace:^0.18.0",
"@siteimprove/alfa-sequence": "workspace:^0.18.0",
"@siteimprove/alfa-thunk": "workspace:^0.18.0",
"@siteimprove/alfa-trilean": "workspace:^0.18.0"
},
"devDependencies": {
"@siteimprove/alfa-test": "workspace:^0.17.0"
"@siteimprove/alfa-test": "workspace:^0.18.0"
},
"publishConfig": {
"access": "public",
Expand Down
12 changes: 6 additions & 6 deletions packages/alfa-affine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "http://json.schemastore.org/package",
"name": "@siteimprove/alfa-affine",
"homepage": "https://alfa.siteimprove.com",
"version": "0.17.0",
"version": "0.18.0",
"license": "MIT",
"description": "Functionality for working with affine transformations",
"repository": {
Expand All @@ -18,13 +18,13 @@
"src/**/*.d.ts"
],
"dependencies": {
"@siteimprove/alfa-equatable": "workspace:^0.17.0",
"@siteimprove/alfa-json": "workspace:^0.17.0",
"@siteimprove/alfa-math": "workspace:^0.17.0",
"@siteimprove/alfa-option": "workspace:^0.17.0"
"@siteimprove/alfa-equatable": "workspace:^0.18.0",
"@siteimprove/alfa-json": "workspace:^0.18.0",
"@siteimprove/alfa-math": "workspace:^0.18.0",
"@siteimprove/alfa-option": "workspace:^0.18.0"
},
"devDependencies": {
"@siteimprove/alfa-test": "workspace:^0.17.0"
"@siteimprove/alfa-test": "workspace:^0.18.0"
},
"publishConfig": {
"access": "public",
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 @@ -2,7 +2,7 @@
"$schema": "http://json.schemastore.org/package",
"name": "@siteimprove/alfa-angular",
"homepage": "https://alfa.siteimprove.com",
"version": "0.17.0",
"version": "0.18.0",
"license": "MIT",
"description": "Integrations and utilities for the Angular application framework",
"repository": {
Expand All @@ -19,16 +19,16 @@
],
"dependencies": {
"@angular/core": "^11.0.0",
"@siteimprove/alfa-device": "workspace:^0.17.0",
"@siteimprove/alfa-dom": "workspace:^0.17.0",
"@siteimprove/alfa-http": "workspace:^0.17.0",
"@siteimprove/alfa-option": "workspace:^0.17.0",
"@siteimprove/alfa-web": "workspace:^0.17.0",
"rxjs": "^6.6.7",
"@siteimprove/alfa-device": "workspace:^0.18.0",
"@siteimprove/alfa-dom": "workspace:^0.18.0",
"@siteimprove/alfa-http": "workspace:^0.18.0",
"@siteimprove/alfa-option": "workspace:^0.18.0",
"@siteimprove/alfa-web": "workspace:^0.18.0",
"rxjs": "^7.1.0",
"zone.js": "^0.11.4"
},
"devDependencies": {
"@siteimprove/alfa-test": "workspace:^0.17.0"
"@siteimprove/alfa-test": "workspace:^0.18.0"
},
"publishConfig": {
"access": "public",
Expand Down
6 changes: 3 additions & 3 deletions packages/alfa-applicative/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "http://json.schemastore.org/package",
"name": "@siteimprove/alfa-applicative",
"homepage": "https://alfa.siteimprove.com",
"version": "0.17.0",
"version": "0.18.0",
"license": "MIT",
"description": "Types for modelling applicative functors",
"repository": {
Expand All @@ -18,10 +18,10 @@
"src/**/*.d.ts"
],
"dependencies": {
"@siteimprove/alfa-mapper": "workspace:^0.17.0"
"@siteimprove/alfa-mapper": "workspace:^0.18.0"
},
"devDependencies": {
"@siteimprove/alfa-test": "workspace:^0.17.0"
"@siteimprove/alfa-test": "workspace:^0.18.0"
},
"publishConfig": {
"access": "public",
Expand Down
48 changes: 24 additions & 24 deletions packages/alfa-aria/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "http://json.schemastore.org/package",
"name": "@siteimprove/alfa-aria",
"homepage": "https://alfa.siteimprove.com",
"version": "0.17.0",
"version": "0.18.0",
"license": "MIT",
"description": "Functionality for working with ARIA and the accessibility tree",
"repository": {
Expand All @@ -21,31 +21,31 @@
"generate": "node scripts/attributes.js && node scripts/roles.js"
},
"dependencies": {
"@siteimprove/alfa-array": "workspace:^0.17.0",
"@siteimprove/alfa-branched": "workspace:^0.17.0",
"@siteimprove/alfa-cache": "workspace:^0.17.0",
"@siteimprove/alfa-compatibility": "workspace:^0.17.0",
"@siteimprove/alfa-device": "workspace:^0.17.0",
"@siteimprove/alfa-dom": "workspace:^0.17.0",
"@siteimprove/alfa-equatable": "workspace:^0.17.0",
"@siteimprove/alfa-graph": "workspace:^0.17.0",
"@siteimprove/alfa-hash": "workspace:^0.17.0",
"@siteimprove/alfa-iterable": "workspace:^0.17.0",
"@siteimprove/alfa-json": "workspace:^0.17.0",
"@siteimprove/alfa-lazy": "workspace:^0.17.0",
"@siteimprove/alfa-map": "workspace:^0.17.0",
"@siteimprove/alfa-mapper": "workspace:^0.17.0",
"@siteimprove/alfa-option": "workspace:^0.17.0",
"@siteimprove/alfa-predicate": "workspace:^0.17.0",
"@siteimprove/alfa-refinement": "workspace:^0.17.0",
"@siteimprove/alfa-sequence": "workspace:^0.17.0",
"@siteimprove/alfa-set": "workspace:^0.17.0",
"@siteimprove/alfa-style": "workspace:^0.17.0",
"@siteimprove/alfa-table": "workspace:^0.17.0",
"@siteimprove/alfa-thunk": "workspace:^0.17.0"
"@siteimprove/alfa-array": "workspace:^0.18.0",
"@siteimprove/alfa-branched": "workspace:^0.18.0",
"@siteimprove/alfa-cache": "workspace:^0.18.0",
"@siteimprove/alfa-compatibility": "workspace:^0.18.0",
"@siteimprove/alfa-device": "workspace:^0.18.0",
"@siteimprove/alfa-dom": "workspace:^0.18.0",
"@siteimprove/alfa-equatable": "workspace:^0.18.0",
"@siteimprove/alfa-graph": "workspace:^0.18.0",
"@siteimprove/alfa-hash": "workspace:^0.18.0",
"@siteimprove/alfa-iterable": "workspace:^0.18.0",
"@siteimprove/alfa-json": "workspace:^0.18.0",
"@siteimprove/alfa-lazy": "workspace:^0.18.0",
"@siteimprove/alfa-map": "workspace:^0.18.0",
"@siteimprove/alfa-mapper": "workspace:^0.18.0",
"@siteimprove/alfa-option": "workspace:^0.18.0",
"@siteimprove/alfa-predicate": "workspace:^0.18.0",
"@siteimprove/alfa-refinement": "workspace:^0.18.0",
"@siteimprove/alfa-sequence": "workspace:^0.18.0",
"@siteimprove/alfa-set": "workspace:^0.18.0",
"@siteimprove/alfa-style": "workspace:^0.18.0",
"@siteimprove/alfa-table": "workspace:^0.18.0",
"@siteimprove/alfa-thunk": "workspace:^0.18.0"
},
"devDependencies": {
"@siteimprove/alfa-test": "workspace:^0.17.0"
"@siteimprove/alfa-test": "workspace:^0.18.0"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 1 addition & 1 deletion packages/alfa-aria/src/name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ export namespace Name {
)
);

const name = flatten(names.map((name) => name.value).join(" "));
const name = flatten(names.map((name) => name.value).join(" ")).trim();

if (name === "") {
return None;
Expand Down
21 changes: 21 additions & 0 deletions packages/alfa-aria/test/name.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,27 @@ test(`.from() determines the name of an <a> element with a <img> child element
});
});

test(`.from() rejects whitespace only content and defaults to next step`, (t) => {
const a = (
<a href="#" title="Hello world">
<span> </span>
</a>
);

t.deepEqual(Name.from(a, device).toJSON(), {
type: "some",
value: {
value: "Hello world",
sources: [
{
type: "label",
attribute: "/a[1]/@title",
},
],
},
});
});

test(`.from() determines the name of an <a> element with a <figure> child element
with a <img> child element with an alt attribute`, (t) => {
const a = (
Expand Down
28 changes: 14 additions & 14 deletions packages/alfa-array/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "http://json.schemastore.org/package",
"name": "@siteimprove/alfa-array",
"homepage": "https://alfa.siteimprove.com",
"version": "0.17.0",
"version": "0.18.0",
"license": "MIT",
"description": "Functionality for working with arrays",
"repository": {
Expand All @@ -18,21 +18,21 @@
"src/**/*.d.ts"
],
"dependencies": {
"@siteimprove/alfa-callback": "workspace:^0.17.0",
"@siteimprove/alfa-clone": "workspace:^0.17.0",
"@siteimprove/alfa-comparable": "workspace:^0.17.0",
"@siteimprove/alfa-equatable": "workspace:^0.17.0",
"@siteimprove/alfa-hash": "workspace:^0.17.0",
"@siteimprove/alfa-iterable": "workspace:^0.17.0",
"@siteimprove/alfa-json": "workspace:^0.17.0",
"@siteimprove/alfa-mapper": "workspace:^0.17.0",
"@siteimprove/alfa-option": "workspace:^0.17.0",
"@siteimprove/alfa-predicate": "workspace:^0.17.0",
"@siteimprove/alfa-reducer": "workspace:^0.17.0",
"@siteimprove/alfa-refinement": "workspace:^0.17.0"
"@siteimprove/alfa-callback": "workspace:^0.18.0",
"@siteimprove/alfa-clone": "workspace:^0.18.0",
"@siteimprove/alfa-comparable": "workspace:^0.18.0",
"@siteimprove/alfa-equatable": "workspace:^0.18.0",
"@siteimprove/alfa-hash": "workspace:^0.18.0",
"@siteimprove/alfa-iterable": "workspace:^0.18.0",
"@siteimprove/alfa-json": "workspace:^0.18.0",
"@siteimprove/alfa-mapper": "workspace:^0.18.0",
"@siteimprove/alfa-option": "workspace:^0.18.0",
"@siteimprove/alfa-predicate": "workspace:^0.18.0",
"@siteimprove/alfa-reducer": "workspace:^0.18.0",
"@siteimprove/alfa-refinement": "workspace:^0.18.0"
},
"devDependencies": {
"@siteimprove/alfa-test": "workspace:^0.17.0"
"@siteimprove/alfa-test": "workspace:^0.18.0"
},
"publishConfig": {
"access": "public",
Expand Down
12 changes: 6 additions & 6 deletions packages/alfa-assert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "http://json.schemastore.org/package",
"name": "@siteimprove/alfa-assert",
"homepage": "https://alfa.siteimprove.com",
"version": "0.17.0",
"version": "0.18.0",
"license": "MIT",
"description": "Core assertion functions for supported input objects",
"repository": {
Expand All @@ -18,13 +18,13 @@
"src/**/*.d.ts"
],
"dependencies": {
"@siteimprove/alfa-act": "workspace:^0.17.0",
"@siteimprove/alfa-future": "workspace:^0.17.0",
"@siteimprove/alfa-mapper": "workspace:^0.17.0",
"@siteimprove/alfa-result": "workspace:^0.17.0"
"@siteimprove/alfa-act": "workspace:^0.18.0",
"@siteimprove/alfa-future": "workspace:^0.18.0",
"@siteimprove/alfa-mapper": "workspace:^0.18.0",
"@siteimprove/alfa-result": "workspace:^0.18.0"
},
"devDependencies": {
"@siteimprove/alfa-test": "workspace:^0.17.0"
"@siteimprove/alfa-test": "workspace:^0.18.0"
},
"publishConfig": {
"access": "public",
Expand Down
4 changes: 2 additions & 2 deletions packages/alfa-bits/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "http://json.schemastore.org/package",
"name": "@siteimprove/alfa-bits",
"homepage": "https://alfa.siteimprove.com",
"version": "0.17.0",
"version": "0.18.0",
"license": "MIT",
"description": "Functionality for doing bit manipulation of 32-bit numbers",
"repository": {
Expand All @@ -18,7 +18,7 @@
"src/**/*.d.ts"
],
"devDependencies": {
"@siteimprove/alfa-test": "workspace:^0.17.0"
"@siteimprove/alfa-test": "workspace:^0.18.0"
},
"publishConfig": {
"access": "public",
Expand Down
Loading

0 comments on commit b6380d3

Please sign in to comment.