@siteimprove/alfa-continuation 0.112.0 → 0.113.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,13 @@
1
1
  # @siteimprove/alfa-continuation
2
2
 
3
+ ## 0.113.0
4
+
5
+ ### Minor Changes
6
+
7
+ - **Breaking:** The `Continuation` namespace (and the `.of`, `.map` and `flatMap` functions) has been removed. ([#2020](https://github.com/Siteimprove/alfa/pull/2020))
8
+
9
+ These functions were not used anywhere in the codebase.
10
+
3
11
  ## 0.112.0
4
12
 
5
13
  ## 0.111.0
@@ -1,15 +1,6 @@
1
1
  import type { Callback } from "@siteimprove/alfa-callback";
2
- import type { Mapper } from "@siteimprove/alfa-mapper";
3
2
  /**
4
3
  * @public
5
4
  */
6
5
  export type Continuation<T, R = void, A extends Array<unknown> = []> = Callback<Callback<T, R>, R, A>;
7
- /**
8
- * @public
9
- */
10
- export declare namespace Continuation {
11
- function of<T, R = void, A extends Array<unknown> = []>(value: T): Continuation<T, R, A>;
12
- function map<T, U, R = void, A extends Array<unknown> = []>(continuation: Continuation<T, R, A>, mapper: Mapper<T, U>): Continuation<U, R, A>;
13
- function flatMap<T, U, R = void, A extends Array<unknown> = []>(continuation: Continuation<T, R, A>, mapper: Mapper<T, Continuation<U, R, A>>): Continuation<U, R, A>;
14
- }
15
6
  //# sourceMappingURL=continuation.d.ts.map
@@ -1,19 +1,2 @@
1
- /**
2
- * @public
3
- */
4
- export var Continuation;
5
- (function (Continuation) {
6
- function of(value) {
7
- return (callback, ..._) => callback(value);
8
- }
9
- Continuation.of = of;
10
- function map(continuation, mapper) {
11
- return (callback, ...args) => continuation((value, ...args) => callback(mapper(value), ...args), ...args);
12
- }
13
- Continuation.map = map;
14
- function flatMap(continuation, mapper) {
15
- return (callback, ...args) => continuation((value) => mapper(value)(callback, ...args), ...args);
16
- }
17
- Continuation.flatMap = flatMap;
18
- })(Continuation || (Continuation = {}));
1
+ export {};
19
2
  //# sourceMappingURL=continuation.js.map
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$schema": "http://json.schemastore.org/package",
3
3
  "name": "@siteimprove/alfa-continuation",
4
4
  "homepage": "https://alfa.siteimprove.com",
5
- "version": "0.112.0",
5
+ "version": "0.113.0",
6
6
  "license": "MIT",
7
7
  "description": "Functionality for working with continuations, which are abstract representations of control flow",
8
8
  "repository": {
@@ -22,8 +22,7 @@
22
22
  "dist/**/*.d.ts"
23
23
  ],
24
24
  "dependencies": {
25
- "@siteimprove/alfa-callback": "^0.112.0",
26
- "@siteimprove/alfa-mapper": "^0.112.0"
25
+ "@siteimprove/alfa-callback": "^0.113.0"
27
26
  },
28
27
  "publishConfig": {
29
28
  "access": "public",