Skip to content

Commit ab24b7d

Browse files
committed
feat: mark as deprecated
1 parent 21f7109 commit ab24b7d

File tree

5 files changed

+29
-0
lines changed

5 files changed

+29
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Compliant with [RFC 9110](https://www.rfc-editor.org/rfc/rfc9110).
1616

1717
Utilities for `Request` object.
1818

19+
@deprecated Move to [request-utils](https://github.com/httpland/request-utils).
20+
1921
### equalsRequest
2022

2123
Check two `Request` fields equality.
@@ -84,6 +86,9 @@ assertEquals(isRequest(null), false);
8486

8587
Utilities for `Response` object.
8688

89+
@deprecated Move to
90+
[response-utils](https://github.com/httpland/response-utils).
91+
8792
### equalsResponse
8893

8994
Check two `Response` fields equality.
@@ -152,6 +157,8 @@ Utilities for `Headers` object.
152157

153158
### equalsHeaders
154159

160+
@deprecated Move to [headers-utils](https://github.com/httpland/headers-utils).
161+
155162
Check two `Headers` field name and field value equality.
156163

157164
```ts
@@ -170,6 +177,8 @@ assertEquals(
170177

171178
### filterKeys
172179

180+
@deprecated Move to [headers-utils](https://github.com/httpland/headers-utils).
181+
173182
Returns a new `Headers` with all entries of the given headers except the ones
174183
that have a key(header name or field name) that does not match the given
175184
predicate.
@@ -506,6 +515,10 @@ HTTP message is following union types:
506515

507516
### withHeader
508517

518+
@deprecated Move to [request-utils](https://github.com/httpland/request-utils).
519+
@deprecated Move to
520+
[response-utils](https://github.com/httpland/response-utils).
521+
509522
Return an instance with the provided value replacing the specified header. There
510523
are no side effects on the original target.
511524

header.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
* false,
1717
* );
1818
* ```
19+
*
20+
* @deprecated Move to [headers-utils](https://github.com/httpland/headers-utils).
1921
*/
2022
export function equalsHeaders(left: Headers, right: Headers): boolean {
2123
const entries = [...left, ...right];
@@ -51,6 +53,8 @@ export function equalsHeaders(left: Headers, right: Headers): boolean {
5153
* assert(headers.has("content-type"));
5254
* assert(!headers.has("date"));
5355
* ```
56+
*
57+
* @deprecated Move to [headers-utils](https://github.com/httpland/headers-utils).
5458
*/
5559
export function filterKeys(
5660
headers: Headers,

message.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
* assert(request.headers.get(header), value);
1919
* assert(init !== request);
2020
* ```
21+
*
22+
* @deprecated Move to [request-utils](https://github.com/httpland/request-utils).
2123
*/
2224
export function withHeader(
2325
request: Request,
@@ -41,6 +43,8 @@ export function withHeader(
4143
* assert(response.headers.get(header), value);
4244
* assert(init !== response);
4345
* ```
46+
*
47+
* @deprecated Move to [response-utils](https://github.com/httpland/response-utils).
4448
*/
4549
export function withHeader(
4650
response: Response,

request.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ import { equalsType } from "./_utils.ts";
2020
* ),
2121
* );
2222
* ```
23+
*
24+
* @deprecated Move to [request-utils](https://github.com/httpland/request-utils).
2325
*/
2426
export function equalsRequest(
2527
left: Request,
@@ -96,6 +98,8 @@ export function equalsRequest(
9698
* assertEquals(isRequest({}), false);
9799
* assertEquals(isRequest(null), false);
98100
* ```
101+
*
102+
* @deprecated Move to [request-utils](https://github.com/httpland/request-utils).
99103
*/
100104
export function isRequest(input: unknown): input is Request {
101105
return input instanceof Request;

response.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ import { equalsType } from "./_utils.ts";
1818
* ),
1919
* );
2020
* ```
21+
*
22+
* @deprecated Move to [response-utils](https://github.com/httpland/response-utils).
2123
*/
2224
export function equalsResponse(left: Response, right: Response): boolean;
2325
/** Strict check two `Response` fields equality.
@@ -83,6 +85,8 @@ export function equalsResponse(
8385
* assertEquals(isResponse({}), false);
8486
* assertEquals(isResponse(null), false);
8587
* ```
88+
*
89+
* @deprecated Move to [response-utils](https://github.com/httpland/response-utils).
8690
*/
8791
export function isResponse(input: unknown): input is Response {
8892
return input instanceof Response;

0 commit comments

Comments
 (0)