@siteimprove/alfa-http 0.104.0 → 0.106.1

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,19 @@
1
1
  # @siteimprove/alfa-http
2
2
 
3
+ ## 0.106.1
4
+
5
+ ## 0.106.0
6
+
7
+ ## 0.105.0
8
+
9
+ ### Patch Changes
10
+
11
+ - **Added:** Test coverage data is now included in all packages, as well as at global level. ([#1878](https://github.com/Siteimprove/alfa/pull/1878))
12
+
13
+ - **Fixed:** A type incompatibility between `Uint8Array` and `ArrayBuffer` introduced by the TypeScript 5.9 upgrade has been resolved by explicitly accessing the `.buffer` property in `Request#from` and `Response#from`. ([#1850](https://github.com/Siteimprove/alfa/pull/1850))
14
+
15
+ ## 0.104.1
16
+
3
17
  ## 0.104.0
4
18
 
5
19
  ## 0.103.3
package/dist/request.js CHANGED
@@ -88,7 +88,7 @@ export class Request {
88
88
  */
89
89
  (function (Request) {
90
90
  function from(json) {
91
- return URL.parse(json.url).map((url) => Request.of(json.method, url, Headers.from(json.headers), Encoder.encode(json.body)));
91
+ return URL.parse(json.url).map((url) => Request.of(json.method, url, Headers.from(json.headers), Encoder.encode(json.body).buffer));
92
92
  }
93
93
  Request.from = from;
94
94
  function isRequest(value) {
package/dist/response.js CHANGED
@@ -87,7 +87,7 @@ export class Response {
87
87
  */
88
88
  (function (Response) {
89
89
  function from(json) {
90
- return URL.parse(json.url).map((url) => Response.of(url, json.status, Headers.from(json.headers), Encoder.encode(json.body)));
90
+ return URL.parse(json.url).map((url) => Response.of(url, json.status, Headers.from(json.headers), Encoder.encode(json.body).buffer));
91
91
  }
92
92
  Response.from = from;
93
93
  function isResponse(value) {
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.104.0",
5
+ "version": "0.106.1",
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.104.0",
26
- "@siteimprove/alfa-encoding": "^0.104.0",
27
- "@siteimprove/alfa-equatable": "^0.104.0",
28
- "@siteimprove/alfa-iterable": "^0.104.0",
29
- "@siteimprove/alfa-json": "^0.104.0",
30
- "@siteimprove/alfa-map": "^0.104.0",
31
- "@siteimprove/alfa-option": "^0.104.0",
32
- "@siteimprove/alfa-refinement": "^0.104.0",
33
- "@siteimprove/alfa-result": "^0.104.0",
34
- "@siteimprove/alfa-url": "^0.104.0"
25
+ "@siteimprove/alfa-earl": "^0.106.1",
26
+ "@siteimprove/alfa-encoding": "^0.106.1",
27
+ "@siteimprove/alfa-equatable": "^0.106.1",
28
+ "@siteimprove/alfa-iterable": "^0.106.1",
29
+ "@siteimprove/alfa-json": "^0.106.1",
30
+ "@siteimprove/alfa-map": "^0.106.1",
31
+ "@siteimprove/alfa-option": "^0.106.1",
32
+ "@siteimprove/alfa-refinement": "^0.106.1",
33
+ "@siteimprove/alfa-result": "^0.106.1",
34
+ "@siteimprove/alfa-url": "^0.106.1"
35
35
  },
36
36
  "devDependencies": {
37
- "@siteimprove/alfa-test": "^0.104.0"
37
+ "@siteimprove/alfa-test": "^0.106.1"
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public",