@siteimprove/alfa-http 0.96.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,13 @@
1
1
  # @siteimprove/alfa-http
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
+
9
+ ## 0.97.0
10
+
3
11
  ## 0.96.0
4
12
 
5
13
  ## 0.95.0
package/dist/cookie.d.ts CHANGED
@@ -8,7 +8,7 @@ export declare class Cookie implements Equatable, Serializable<Cookie.JSON> {
8
8
  static of(name: string, value: string): Cookie;
9
9
  private readonly _name;
10
10
  private readonly _value;
11
- private constructor();
11
+ protected constructor(name: string, value: string);
12
12
  get name(): string;
13
13
  get value(): string;
14
14
  equals(value: Cookie): boolean;
package/dist/cookies.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { Iterable } from "@siteimprove/alfa-iterable";
2
2
  import type { Serializable } from "@siteimprove/alfa-json";
3
+ import { Map } from "@siteimprove/alfa-map";
3
4
  import type { Option } from "@siteimprove/alfa-option";
4
5
  import { Cookie } from "./cookie.js";
5
6
  /**
@@ -15,7 +16,7 @@ export declare class Cookies implements Iterable<Cookie>, Serializable<Cookies.J
15
16
  private static _empty;
16
17
  static empty(): Cookies;
17
18
  private readonly _cookies;
18
- private constructor();
19
+ protected constructor(cookies: Map<string, Cookie>);
19
20
  get(name: string): Option<Cookie>;
20
21
  has(name: string): boolean;
21
22
  add(cookie: Cookie): Cookies;
package/dist/header.d.ts CHANGED
@@ -8,7 +8,7 @@ export declare class Header implements Equatable, json.Serializable<Header.JSON>
8
8
  static of(name: string, value: string): Header;
9
9
  private readonly _name;
10
10
  private readonly _value;
11
- private constructor();
11
+ protected constructor(name: string, value: string);
12
12
  get name(): string;
13
13
  get value(): string;
14
14
  equals(value: Header): boolean;
package/dist/headers.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { Iterable } from "@siteimprove/alfa-iterable";
2
+ import { Map } from "@siteimprove/alfa-map";
2
3
  import type { Option } from "@siteimprove/alfa-option";
3
4
  import type * as earl from "@siteimprove/alfa-earl";
4
5
  import type * as json from "@siteimprove/alfa-json";
@@ -16,7 +17,7 @@ export declare class Headers implements Iterable<Header>, json.Serializable<Head
16
17
  private static _empty;
17
18
  static empty(): Headers;
18
19
  private readonly _headers;
19
- private constructor();
20
+ protected constructor(headers: Map<string, Header>);
20
21
  get(name: string): Option<Header>;
21
22
  has(name: string): boolean;
22
23
  add(header: Header): Headers;
package/dist/request.d.ts CHANGED
@@ -17,7 +17,7 @@ export declare class Request implements Body, json.Serializable<Request.JSON>, e
17
17
  private readonly _url;
18
18
  private readonly _headers;
19
19
  private readonly _body;
20
- private constructor();
20
+ protected constructor(method: string, url: URL, headers: Headers, body: ArrayBuffer);
21
21
  /**
22
22
  * {@link https://fetch.spec.whatwg.org/#dom-request-method}
23
23
  */
@@ -17,7 +17,7 @@ export declare class Response implements Body, json.Serializable<Response.JSON>,
17
17
  private readonly _status;
18
18
  private readonly _headers;
19
19
  private readonly _body;
20
- private constructor();
20
+ protected constructor(url: URL, status: number, headers: Headers, body: ArrayBuffer);
21
21
  /**
22
22
  * {@link https://fetch.spec.whatwg.org/#dom-response-url}
23
23
  */
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$schema": "http://json.schemastore.org/package",
3
3
  "name": "@siteimprove/alfa-http",
4
4
  "homepage": "https://alfa.siteimprove.com",
5
- "version": "0.96.0",
5
+ "version": "0.98.0",
6
6
  "license": "MIT",
7
7
  "description": "Types for modelling HTTP primitives",
8
8
  "repository": {
@@ -22,19 +22,19 @@
22
22
  "dist/**/*.d.ts"
23
23
  ],
24
24
  "dependencies": {
25
- "@siteimprove/alfa-earl": "^0.96.0",
26
- "@siteimprove/alfa-encoding": "^0.96.0",
27
- "@siteimprove/alfa-equatable": "^0.96.0",
28
- "@siteimprove/alfa-iterable": "^0.96.0",
29
- "@siteimprove/alfa-json": "^0.96.0",
30
- "@siteimprove/alfa-map": "^0.96.0",
31
- "@siteimprove/alfa-option": "^0.96.0",
32
- "@siteimprove/alfa-refinement": "^0.96.0",
33
- "@siteimprove/alfa-result": "^0.96.0",
34
- "@siteimprove/alfa-url": "^0.96.0"
25
+ "@siteimprove/alfa-earl": "^0.98.0",
26
+ "@siteimprove/alfa-encoding": "^0.98.0",
27
+ "@siteimprove/alfa-equatable": "^0.98.0",
28
+ "@siteimprove/alfa-iterable": "^0.98.0",
29
+ "@siteimprove/alfa-json": "^0.98.0",
30
+ "@siteimprove/alfa-map": "^0.98.0",
31
+ "@siteimprove/alfa-option": "^0.98.0",
32
+ "@siteimprove/alfa-refinement": "^0.98.0",
33
+ "@siteimprove/alfa-result": "^0.98.0",
34
+ "@siteimprove/alfa-url": "^0.98.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@siteimprove/alfa-test": "^0.96.0"
37
+ "@siteimprove/alfa-test": "^0.98.0"
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public",