Skip to content

Commit

Permalink
Merge branch 'main' into regex-escape
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k committed Apr 30, 2023
2 parents 4077a39 + 400ba3a commit 2923126
Show file tree
Hide file tree
Showing 9 changed files with 283 additions and 143 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,10 @@ jobs:
- name: Check Deprecations
run: "deno task lint:deprecations"

- name: Check Import paths in Docs
run: "deno task lint:doc-imports"
# TODO(bartlomieju): temporarily disabled, because it relies on
# `Deno[Deno.internal].core`, which was removed in v1.33.0.
# - name: Check Import paths in Docs
# run: "deno task lint:doc-imports"

- name: Check non-test assertions
run: deno task lint:check-assertions
Expand Down
9 changes: 9 additions & 0 deletions Releases.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
### 0.185.0 / 2023.04.27

- feat(dotenv): allow reading from `.env` files without granting env access
(#3306)
- feat(jsonc): annotate return types (#3327)
- feat(uuid): uuid v3 (#3324)
- perf(http/file_server): avoid calculating Content-Type when 304 Not Modified
response (#3323)

### 0.184.0 / 2023.04.18

- BREAKING(encoding): remove deprecated APIs (#3303)
Expand Down
3 changes: 2 additions & 1 deletion examples/xeval_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ Deno.test({
},
});

Deno.test("xevalCliSyntaxError", async function () {
// TODO(kt3k): Enable this test
Deno.test("xevalCliSyntaxError", { ignore: true }, async function () {
const command = new Deno.Command(Deno.execPath(), {
args: ["run", "--quiet", xevalPath, "("],
cwd: moduleDir,
Expand Down
23 changes: 19 additions & 4 deletions fmt/printf_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -610,12 +610,27 @@ Deno.test("testWeirdos", function () {
Deno.test("formatV", function () {
const a = { a: { a: { a: { a: { a: { a: { a: {} } } } } } } };
assertEquals(S("%v", a), "[object Object]");
assertEquals(S("%#v", a), `{ a: { a: { a: { a: [Object] } } } }`);
assertEquals(
S("%#v", a),
`{
a: {
a: { a: { a: { a: [Object] } } }
}
}`,
);
assertEquals(
S("%#.8v", a),
"{ a: { a: { a: { a: { a: { a: { a: {} } } } } } } }",
`{
a: {
a: {
a: {
a: { a: { a: { a: {} } } }
}
}
}
}`,
);
assertEquals(S("%#.1v", a), `{ a: [Object] }`);
assertEquals(S("%#.1v", a), `{ a: { a: [Object] } }`);
});

Deno.test("formatJ", function () {
Expand All @@ -640,7 +655,7 @@ Deno.test("flagLessThan", function () {
const aArray = [a, a, a];
assertEquals(
S("%<#.1v", aArray),
`[ { a: [Object] }, { a: [Object] }, { a: [Object] } ]`,
`[ { a: { a: [Object] } }, { a: { a: [Object] } }, { a: { a: [Object] } } ]`,
);
const fArray = [1.2345, 0.98765, 123456789.5678];
assertEquals(S("%<.2f", fArray), "[ 1.23, 0.99, 123456789.57 ]");
Expand Down
8 changes: 7 additions & 1 deletion http/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,13 @@ export async function serve(
once: true,
});

const s = server.listenAndServe();
const listener = Deno.listen({
port,
hostname,
transport: "tcp",
});

const s = server.serve(listener);

port = (server.addrs[0] as Deno.NetAddr).port;

Expand Down
Loading

0 comments on commit 2923126

Please sign in to comment.