Skip to content

Commit

Permalink
Merge branch 'main' into style-cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Jym77 committed Nov 23, 2023
2 parents 6c448c8 + 321a7eb commit 7bf734e
Show file tree
Hide file tree
Showing 500 changed files with 8,186 additions and 7,676 deletions.
5 changes: 0 additions & 5 deletions .changeset/beige-birds-taste.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/bright-gorillas-travel.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/dry-peaches-draw.md

This file was deleted.

18 changes: 0 additions & 18 deletions .changeset/gentle-maps-march.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/green-days-fly.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/happy-gorillas-flash.md

This file was deleted.

7 changes: 7 additions & 0 deletions .changeset/lemon-rabbits-appear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@siteimprove/alfa-selector": minor
---

**Breaking:** The type guards on selectors are now under the namespace of the same name.

That is, use `Compound.isCompound` instead of `Selector.isCompound`, …
5 changes: 0 additions & 5 deletions .changeset/long-plums-join.md

This file was deleted.

7 changes: 7 additions & 0 deletions .changeset/metal-pandas-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@siteimprove/alfa-selector": minor
---

**Breaking:** `Compound` selectors are now built on top of Iterable, rather than re-inventing chained lists.

That is, `Compound#left` and `Compound#right` are no more available, but `Compound.selectors` replaces them.
7 changes: 7 additions & 0 deletions .changeset/moody-kings-nail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@siteimprove/alfa-selector": minor
---

**Breaking:** The various kinds of selectors are now directly exported from the package, out of the `Selector` namespace.

That is, use `Id` instead of `Selector.Id`, … (or `import * as Selector` and keep using `Selector.Id`).
5 changes: 0 additions & 5 deletions .changeset/sharp-apricots-explain.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/shiny-worms-push.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/strange-hairs-share.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/thin-melons-hope.md

This file was deleted.

7 changes: 7 additions & 0 deletions .changeset/tidy-cars-own.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@siteimprove/alfa-css": minor
---

**Added:** `Function.parse` now also accepts a `Thunk` as body parser.

This notably allows to build recursive parsers by wrapping them in continuation.
7 changes: 7 additions & 0 deletions .changeset/twenty-seahorses-try.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@siteimprove/alfa-selector": minor
---

**Breaking:** `List` selectors are now built on top of Iterable, rather than re-inventing chained lists.

That is, `List#left` and `List#right` are no more available, but `List.selectors` replaces them.
1 change: 1 addition & 0 deletions .github/workflows/alfa-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ jobs:
- name: Make npm release
run: >
yarn workspaces foreach
--all
--no-private
--topological-dev
npm publish --tolerate-republish
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/pr-commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ on:
issue_comment:
types: [created]

permissions:
contents: write
pull-requests: write
repository-projects: write

jobs:
pull-request-command:
runs-on: ubuntu-latest
Expand All @@ -24,7 +19,7 @@ jobs:
uses: siteimprove/pr-command/check-run/check@v2.4
with:
# Personal access token (PAT) used to fetch the repository and add reaction on comment.
token: ${{ secrets.A11Y_PUBLIC_GITHUB_TOKEN }}
token: ${{ secrets.TEST_TOKEN }}

# The repository has been checked out by PR commands!

Expand All @@ -43,4 +38,4 @@ jobs:
uses: siteimprove/pr-command/check-run/run@v2.4
with:
# Personal access token (PAT) used to fetch the repository and add reaction on comment.
token: ${{ secrets.A11Y_PUBLIC_GITHUB_TOKEN }}
token: ${{ secrets.TEST_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
user-email: 8577410+siteimprove-builduser@users.noreply.github.com
generate-documentation: true
secrets:
token: ${{ secrets.A11Y_PUBLIC_GITHUB_TOKEN }}
token: ${{ secrets.TEST_TOKEN }}
670 changes: 335 additions & 335 deletions .yarn/releases/yarn-4.0.1.cjs → .yarn/releases/yarn-4.0.2.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ npmScopes:
siteimprove:
npmRegistryServer: "https://npm.pkg.github.com"

yarnPath: .yarn/releases/yarn-4.0.1.cjs
yarnPath: .yarn/releases/yarn-4.0.2.cjs
40 changes: 40 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,45 @@
# Alfa changelog

## [0.69.0](../../compare/v0.68.0...v0.69.0) (2023-11-21)

### Breaking

- [@siteimprove/alfa-style](packages/alfa-style/CHANGELOG.md#0690): The `hasInlineStyleProperty` and `hasCascadedValueDeclaredInInlineStyleOf` predicates have been removed.

- [@siteimprove/alfa-css](packages/alfa-css/CHANGELOG.md#0690): Various `Value.partiallyResolve()` functions have been removed.

- [@siteimprove/alfa-rules](packages/alfa-rules/CHANGELOG.md#0690): Diagnostics `WithPreviousHeading` and `WithNextHeading` have been replaced by `WithOtherHeading`.

- [@siteimprove/alfa-css](packages/alfa-css/CHANGELOG.md#0690): The various `Value.parseBase` functions are no more available.

- [@siteimprove/alfa-css](packages/alfa-css/CHANGELOG.md#0690): `Angle#resolve()` does not require a resolver anymore, since 100% is always 1 full turn.

- [@siteimprove/alfa-rules](packages/alfa-rules/CHANGELOG.md#0690): Question `visible-focus-classes`, and question type `string[]` have been removed.

- [@siteimprove/alfa-css](packages/alfa-css/CHANGELOG.md#0690): CSS `Value` types no longer accept a `CALC` parameter; it is automatically inferred.

### Added

- [@siteimprove/alfa-rules](packages/alfa-rules/CHANGELOG.md#0690): Accessible name is now recorded in the diagnostics for R15, R39, R41 and R81.

- [@siteimprove/alfa-css](packages/alfa-css/CHANGELOG.md#0690): `Value` now expose a `partiallyResolve()` instance method.

- [@siteimprove/alfa-rules](packages/alfa-rules/CHANGELOG.md#0690): Role is now recorded in the diagnostic for R8.

- [@siteimprove/alfa-dom](packages/alfa-dom/CHANGELOG.md#0690), [@siteimprove/alfa-tree](packages/alfa-tree/CHANGELOG.md#0690): Tree `Node`, and DOM `Node` can now have an `externalId` (`string`) and some `extraData` (`any`).

- [@siteimprove/alfa-css](packages/alfa-css/CHANGELOG.md#0690): `Percentage` can now be partially resolved into fixed `Percentage`.

- [@siteimprove/alfa-css](packages/alfa-css/CHANGELOG.md#0690): a `AnglePercentage.resolve()` helper is now available to handle `Percentage` shenanigans.

- [@siteimprove/alfa-css](packages/alfa-css/CHANGELOG.md#0690): `Percentage` builders now accept an optional type hint indicating into what the percentage resolves.

### Fixed

- [@siteimprove/alfa-rules](packages/alfa-rules/CHANGELOG.md#0690): SIA-R70 ow accepts `<hgroup>`.

- [@siteimprove/alfa-aria](packages/alfa-aria/CHANGELOG.md#0690): The `<hgroup>` element now has an implicit role of `group`.

## [0.68.0](../../compare/v0.67.0...v0.68.0) (2023-10-20)

### Breaking
Expand Down
2 changes: 1 addition & 1 deletion docs/api/alfa-css.angle.calculated.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
**Signature:**

```typescript
export namespace Calculated
namespace Calculated
```
## Interfaces
Expand Down
2 changes: 1 addition & 1 deletion docs/api/alfa-css.angle.canonical.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
**Signature:**

```typescript
export type Canonical = Fixed<"deg">;
type Canonical = Fixed<"deg">;
```
**References:** [Fixed](./alfa-css.angle.fixed.md)

2 changes: 1 addition & 1 deletion docs/api/alfa-css.angle.fixed.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
**Signature:**

```typescript
export namespace Fixed
namespace Fixed
```
## Interfaces
Expand Down
15 changes: 0 additions & 15 deletions docs/api/alfa-css.angle.iangle.hascalculation.md

This file was deleted.

20 changes: 0 additions & 20 deletions docs/api/alfa-css.angle.iangle.md

This file was deleted.

15 changes: 0 additions & 15 deletions docs/api/alfa-css.angle.iangle.resolve.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/api/alfa-css.angle.isangle.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
**Signature:**

```typescript
export function isAngle(value: unknown): value is Angle;
function isAngle(value: unknown): value is Angle;
```

## Parameters
Expand Down
2 changes: 1 addition & 1 deletion docs/api/alfa-css.angle.iscalculated.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
**Signature:**

```typescript
export function isCalculated(value: unknown): value is Calculated;
function isCalculated(value: unknown): value is Calculated;
```

## Parameters
Expand Down
2 changes: 1 addition & 1 deletion docs/api/alfa-css.angle.isfixed.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
**Signature:**

```typescript
export function isFixed(value: unknown): value is Fixed;
function isFixed(value: unknown): value is Fixed;
```

## Parameters
Expand Down
2 changes: 1 addition & 1 deletion docs/api/alfa-css.angle.json.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
**Signature:**

```typescript
export type JSON = Calculated.JSON | Fixed.JSON;
type JSON = Calculated.JSON | Fixed.JSON;
```
**References:** [Calculated.JSON](./alfa-css.angle.calculated.json.md)<!-- -->, [Fixed.JSON](./alfa-css.angle.fixed.json.md)

2 changes: 1 addition & 1 deletion docs/api/alfa-css.angle.of.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
**Signature:**

```typescript
export function of<U extends Unit.Angle>(value: number, unit: U): Fixed<U>;
function of<U extends Unit.Angle>(value: number, unit: U): Fixed<U>;
```

## Parameters
Expand Down
2 changes: 1 addition & 1 deletion docs/api/alfa-css.angle.of_1.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
**Signature:**

```typescript
export function of<U extends Unit.Angle>(value: BaseAngle<U>): Fixed<U>;
function of<U extends Unit.Angle>(value: BaseAngle<U>): Fixed<U>;
```

## Parameters
Expand Down
2 changes: 1 addition & 1 deletion docs/api/alfa-css.angle.of_2.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
**Signature:**

```typescript
export function of(value: Math<"angle">): Calculated;
function of(value: Math<"angle">): Calculated;
```

## Parameters
Expand Down
2 changes: 1 addition & 1 deletion docs/api/alfa-css.angle.resolver.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
**Signature:**

```typescript
export type Resolver = {};
type Resolver = {};
```
2 changes: 1 addition & 1 deletion docs/api/alfa-css.anglepercentage.calculated.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
**Signature:**

```typescript
export namespace Calculated
namespace Calculated
```
## Interfaces
Expand Down
9 changes: 1 addition & 8 deletions docs/api/alfa-css.anglepercentage.calculated.resolve.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,8 @@
**Signature:**

```typescript
resolve(resolver: Resolver): Canonical;
resolve(): Canonical;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| resolver | [Resolver](./alfa-css.anglepercentage.resolver.md) | |

**Returns:**

[Canonical](./alfa-css.anglepercentage.canonical.md)
Expand Down
Loading

0 comments on commit 7bf734e

Please sign in to comment.