@siteimprove/alfa-formatter 0.82.1 → 0.84.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @siteimprove/alfa-formatter
2
2
 
3
+ ## 0.84.0
4
+
5
+ ### Minor Changes
6
+
7
+ - **Breaking:** All usages of `Future` from `@siteimprove/alfa-future` have been replaced by native `Promise`. ([#393](https://github.com/Siteimprove/alfa-integrations/pull/393))
8
+
9
+ ### Patch Changes
10
+
11
+ - **Changed:** Update Alfa ([#393](https://github.com/Siteimprove/alfa-integrations/pull/393))
12
+
13
+ ## 0.83.0
14
+
15
+ ### Patch Changes
16
+
17
+ - **Changed:** Update Alfa to v0.115.1 ([#380](https://github.com/Siteimprove/alfa-integrations/pull/380))
18
+
3
19
  ## 0.82.1
4
20
 
5
21
  ## 0.82.0
@@ -1,11 +1,10 @@
1
1
  import type { Outcome, Question, Rule } from "@siteimprove/alfa-act";
2
- import type { Future } from "@siteimprove/alfa-future";
3
2
  import type { Hashable } from "@siteimprove/alfa-hash";
4
3
  import { Result } from "@siteimprove/alfa-result";
5
4
  /**
6
5
  * @public
7
6
  */
8
- export type Formatter<I, T extends Hashable, Q extends Question.Metadata = {}, S = T> = (input: I, rules: Iterable<Rule<I, T, Q, S>>, outcomes: Iterable<Outcome<I, T, Q, S>>) => Future.Maybe<string>;
7
+ export type Formatter<I, T extends Hashable, Q extends Question.Metadata = {}, S = T> = (input: I, rules: Iterable<Rule<I, T, Q, S>>, outcomes: Iterable<Outcome<I, T, Q, S>>) => string | Promise<string>;
9
8
  /**
10
9
  * @public
11
10
  */
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$schema": "http://json.schemastore.org/package",
3
3
  "name": "@siteimprove/alfa-formatter",
4
4
  "homepage": "https://alfa.siteimprove.com",
5
- "version": "0.82.1",
5
+ "version": "0.84.0",
6
6
  "license": "MIT",
7
7
  "description": "Types for modelling ACT outcome formatters",
8
8
  "repository": {
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "bugs": "https://github.com/siteimprove/alfa/issues",
14
14
  "engines": {
15
- "node": ">=20.0.0"
15
+ "node": ">=22.0.0"
16
16
  },
17
17
  "type": "module",
18
18
  "main": "dist/index.js",
@@ -22,16 +22,14 @@
22
22
  "dist/**/*.d.ts"
23
23
  ],
24
24
  "dependencies": {
25
- "@siteimprove/alfa-act": "^0.114.3",
26
- "@siteimprove/alfa-future": "^0.114.3",
27
- "@siteimprove/alfa-hash": "^0.114.3",
28
- "@siteimprove/alfa-result": "^0.114.3"
25
+ "@siteimprove/alfa-act": "^0.117.0",
26
+ "@siteimprove/alfa-hash": "^0.117.0",
27
+ "@siteimprove/alfa-result": "^0.117.0"
29
28
  },
30
29
  "peerDependencies": {
31
- "@siteimprove/alfa-act": "^0.114.3",
32
- "@siteimprove/alfa-future": "^0.114.3",
33
- "@siteimprove/alfa-hash": "^0.114.3",
34
- "@siteimprove/alfa-result": "^0.114.3"
30
+ "@siteimprove/alfa-act": "^0.117.0",
31
+ "@siteimprove/alfa-hash": "^0.117.0",
32
+ "@siteimprove/alfa-result": "^0.117.0"
35
33
  },
36
34
  "publishConfig": {
37
35
  "access": "public",