@siteimprove/alfa-lazy 0.97.0 → 0.98.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,11 @@
1
1
  # @siteimprove/alfa-lazy
2
2
 
3
+ ## 0.98.0
4
+
5
+ ### Patch Changes
6
+
7
+ - **Changed:** Classes that do not implement the Singleton pattern now have `protected` constructor and can be extended. ([#1735](https://github.com/Siteimprove/alfa/pull/1735))
8
+
3
9
  ## 0.97.0
4
10
 
5
11
  ## 0.96.0
package/dist/lazy.d.ts CHANGED
@@ -5,6 +5,7 @@ import { Serializable } from "@siteimprove/alfa-json";
5
5
  import type { Mapper } from "@siteimprove/alfa-mapper";
6
6
  import type { Monad } from "@siteimprove/alfa-monad";
7
7
  import type { Thunk } from "@siteimprove/alfa-thunk";
8
+ import { Trampoline } from "@siteimprove/alfa-trampoline";
8
9
  /**
9
10
  * @public
10
11
  */
@@ -12,7 +13,7 @@ export declare class Lazy<T> implements Functor<T>, Applicative<T>, Monad<T>, It
12
13
  static of<T>(thunk: Thunk<T>): Lazy<T>;
13
14
  static force<T>(value: T): Lazy<T>;
14
15
  private _value;
15
- private constructor();
16
+ protected constructor(value: Trampoline<T>);
16
17
  force(): T;
17
18
  map<U>(mapper: Mapper<T, U>): Lazy<U>;
18
19
  apply<U>(mapper: Lazy<Mapper<T, U>>): Lazy<U>;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$schema": "http://json.schemastore.org/package",
3
3
  "name": "@siteimprove/alfa-lazy",
4
4
  "homepage": "https://alfa.siteimprove.com",
5
- "version": "0.97.0",
5
+ "version": "0.98.0",
6
6
  "license": "MIT",
7
7
  "description": "An implementation of lazy values, which are values whose initialization can be delayed until needed",
8
8
  "repository": {
@@ -22,17 +22,17 @@
22
22
  "dist/**/*.d.ts"
23
23
  ],
24
24
  "dependencies": {
25
- "@siteimprove/alfa-applicative": "^0.97.0",
26
- "@siteimprove/alfa-equatable": "^0.97.0",
27
- "@siteimprove/alfa-functor": "^0.97.0",
28
- "@siteimprove/alfa-json": "^0.97.0",
29
- "@siteimprove/alfa-mapper": "^0.97.0",
30
- "@siteimprove/alfa-monad": "^0.97.0",
31
- "@siteimprove/alfa-thunk": "^0.97.0",
32
- "@siteimprove/alfa-trampoline": "^0.97.0"
25
+ "@siteimprove/alfa-applicative": "^0.98.0",
26
+ "@siteimprove/alfa-equatable": "^0.98.0",
27
+ "@siteimprove/alfa-functor": "^0.98.0",
28
+ "@siteimprove/alfa-json": "^0.98.0",
29
+ "@siteimprove/alfa-mapper": "^0.98.0",
30
+ "@siteimprove/alfa-monad": "^0.98.0",
31
+ "@siteimprove/alfa-thunk": "^0.98.0",
32
+ "@siteimprove/alfa-trampoline": "^0.98.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@siteimprove/alfa-test": "^0.97.0"
35
+ "@siteimprove/alfa-test": "^0.98.0"
36
36
  },
37
37
  "publishConfig": {
38
38
  "access": "public",