Skip to content

Commit f3703e9

Browse files
Merge pull request #3 from httpland/beta
Beta
2 parents 7009037 + 4bc1833 commit f3703e9

File tree

6 files changed

+71
-60
lines changed

6 files changed

+71
-60
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# [1.1.0-beta.1](https://github.com/httpland/compression-middleware/compare/1.0.0...1.1.0-beta.1) (2023-04-02)
2+
3+
4+
### Features
5+
6+
* **deps:** update deps version ([c8a343d](https://github.com/httpland/compression-middleware/commit/c8a343d90e74c9b205336a8d3874ffba01cc3a5c))
7+
18
# 1.0.0 (2023-03-19)
29

310

_dev_deps.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ export {
33
assertEquals,
44
assertFalse,
55
assertThrows,
6-
} from "https://deno.land/std@0.180.0/testing/asserts.ts";
7-
export { describe, it } from "https://deno.land/std@0.180.0/testing/bdd.ts";
6+
} from "https://deno.land/std@0.181.0/testing/asserts.ts";
7+
export { describe, it } from "https://deno.land/std@0.181.0/testing/bdd.ts";
88
export {
99
assertSpyCalls,
1010
spy,
11-
} from "https://deno.land/std@0.180.0/testing/mock.ts";
12-
export { equalsResponse } from "https://deno.land/x/[email protected]-beta.13/response.ts";
11+
} from "https://deno.land/std@0.181.0/testing/mock.ts";
12+
export { equalsResponse } from "https://deno.land/x/[email protected]/response.ts";

_tools/meta.ts

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,34 @@ export const makeOptions = (version: string): BuildOptions => ({
4242
publishConfig: {
4343
access: "public",
4444
},
45+
dependencies: {
46+
"@types/compressible": "2.0.0",
47+
"@types/node": "^18",
48+
},
4549
},
4650
mappings: {
47-
"https://esm.sh/[email protected]": {
51+
"https://esm.sh/[email protected]?pin=v111": {
4852
name: "compressible",
4953
version: "2.0.18",
5054
},
5155
"https://deno.land/x/[email protected]/mod.ts": {
5256
name: "@httpland/http-middleware",
5357
version: "1.0.0",
5458
},
55-
"https://deno.land/x/[email protected]/header.ts": {
56-
name: "@httpland/http-utils",
57-
version: "1.0.0-beta.13",
59+
"https://deno.land/x/[email protected]/is_null.ts": {
60+
name: "@miyauci/isx",
61+
version: "1.1.1",
62+
subPath: "is_null",
63+
},
64+
"https://deno.land/x/[email protected]/is_iterable.ts": {
65+
name: "@miyauci/isx",
66+
version: "1.1.1",
67+
subPath: "is_iterable",
5868
},
59-
"https://deno.land/x/[email protected]/mod.ts": {
60-
name: "isxx",
61-
version: "1.0.0-beta.24",
69+
"https://deno.land/x/[email protected]/header.ts": {
70+
name: "@httpland/http-utils",
71+
version: "1.0.0",
72+
subPath: "header.js",
6273
},
6374
},
6475
packageManager: "pnpm",

deno.lock

Lines changed: 33 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deps.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,10 @@ export {
99
CachingHeader,
1010
ContentNegotiationHeader,
1111
RepresentationHeader,
12-
} from "https://deno.land/x/[email protected]/header.ts";
13-
export { acceptsEncodings } from "https://deno.land/[email protected]/http/negotiation.ts";
14-
export { parseMediaType } from "https://deno.land/[email protected]/media_types/mod.ts";
15-
export {
16-
isIterable,
17-
isNull,
18-
} from "https://deno.land/x/[email protected]/mod.ts";
19-
export { default as compressible } from "https://esm.sh/[email protected]";
12+
} from "https://deno.land/x/[email protected]/header.ts";
13+
export { acceptsEncodings } from "https://deno.land/[email protected]/http/negotiation.ts";
14+
export { parseMediaType } from "https://deno.land/[email protected]/media_types/mod.ts";
15+
export { isNull } from "https://deno.land/x/[email protected]/is_null.ts";
16+
export { isIterable } from "https://deno.land/x/[email protected]/is_iterable.ts";
17+
export { default as compressible } from "https://esm.sh/[email protected]?pin=v111";
2018
export { vary } from "https://deno.land/x/[email protected]/mod.ts";

utils.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@
33

44
import { RepresentationHeader } from "./deps.ts";
55

6+
// TODO(miayuci): add strict parsing.
7+
68
const ReNoTransform = /(?:^|,)\s*?no-transform\s*?(?:,|$)/;
79

810
export function isNoTransform(input: string): boolean {
911
return ReNoTransform.test(input);
1012
}
1113

14+
/** Return new `Response` if the response include `Content-Length` header and readable. */
1215
export async function reCalcContentLength(
1316
response: Response,
1417
): Promise<Response> {

0 commit comments

Comments
 (0)