Skip to content

Commit

Permalink
chore: upgrade to Deno 1.37.0 (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
cknight committed Sep 20, 2023
1 parent 4dd6931 commit 91a4ee0
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/optic-ci.yml
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: download deno
uses: denolib/setup-deno@v2
with:
deno-version: v1.36.2
deno-version: v1.37.0
- name: check format
if: matrix.os == 'ubuntu-latest'
run: deno fmt --check
Expand Down
2 changes: 1 addition & 1 deletion deps.ts
Expand Up @@ -5,4 +5,4 @@ export {
gray,
red,
yellow,
} from "https://deno.land/std@0.199.0/fmt/colors.ts";
} from "https://deno.land/std@0.202.0/fmt/colors.ts";
22 changes: 13 additions & 9 deletions logger/profileMeasure_test.ts
Expand Up @@ -212,15 +212,19 @@ test({
.test(outputNoOps),
);

setTimeout(() => {}, 1); // push pending op to the task queue
const outputWithPendingOp = smf.format(
processStartMark,
getMark({ label: "Now", memory: false, ops: true }),
);
assert(
/^Measuring 'Process start' -> 'Now', took (?:\d+s\s)?\d+(?:\.\d+)?ms; \d+ ops dispatched, 1 ops still to complete$/
.test(outputWithPendingOp),
);
const id = setTimeout(() => {}, 1); // push pending op to the task queue
try {
const outputWithPendingOp = smf.format(
processStartMark,
getMark({ label: "Now", memory: false, ops: true }),
);
assert(
/^Measuring 'Process start' -> 'Now', took (?:\d+s\s)?\d+(?:\.\d+)?ms; \d+ ops dispatched, 1 ops still to complete$/
.test(outputWithPendingOp),
);
} finally {
clearTimeout(id);
}
},
});

Expand Down
6 changes: 3 additions & 3 deletions streams/fileStream/deps.ts
Expand Up @@ -2,9 +2,9 @@
export {
basename as posixBasename,
dirname as posixDirname,
} from "https://deno.land/std@0.199.0/path/posix.ts";
} from "https://deno.land/std@0.202.0/path/posix.ts";
export {
basename as win32Basename,
dirname as win32Dirname,
} from "https://deno.land/std@0.199.0/path/win32.ts";
export { BufWriterSync } from "https://deno.land/std@0.199.0/io/buf_writer.ts";
} from "https://deno.land/std@0.202.0/path/win32.ts";
export { BufWriterSync } from "https://deno.land/std@0.202.0/io/buf_writer.ts";
2 changes: 1 addition & 1 deletion test_deps.ts
Expand Up @@ -9,4 +9,4 @@ export {
assertStrictEquals,
assertStringIncludes,
assertThrows,
} from "https://deno.land/std@0.199.0/testing/asserts.ts";
} from "https://deno.land/std@0.202.0/assert/mod.ts";

0 comments on commit 91a4ee0

Please sign in to comment.