From 1756b160fa9a78a59a05461103394d6f16006237 Mon Sep 17 00:00:00 2001 From: denobot <33910674+denobot@users.noreply.github.com> Date: Wed, 25 Jan 2023 17:25:19 -0500 Subject: [PATCH] 0.174.0 (#3135) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: bartlomieju Co-authored-by: Bartek IwaƄczuk --- Releases.md | 5 +++++ node/child_process.ts | 4 ++-- testing/bdd_test.ts | 21 ++++++++++++++++----- version.ts | 2 +- 4 files changed, 24 insertions(+), 8 deletions(-) diff --git a/Releases.md b/Releases.md index d6e64d3c2903..156ffcd63af8 100644 --- a/Releases.md +++ b/Releases.md @@ -1,3 +1,8 @@ +### 0.174.0 / 2023.01.25 + +- feat(fmt/printf): add formatter i/I (Deno.inspect) (#3100) +- fix(encoding/csv): escape cells containing newlines (LFs) (#3128) + ### 0.173.0 / 2023.01.16 - fix(fs): change globstar default to true for expandGlob and expandGlobSync diff --git a/node/child_process.ts b/node/child_process.ts index 58b9c0add374..7aeeaa5f680c 100644 --- a/node/child_process.ts +++ b/node/child_process.ts @@ -2,6 +2,7 @@ // This module implements 'child_process' module of Node.JS API. // ref: https://nodejs.org/api/child_process.html +import { core } from "./_core.ts"; import { ChildProcess, ChildProcessOptions, @@ -139,8 +140,7 @@ export function fork( options.shell = false; Object.assign(options.env ??= {}, { - // deno-lint-ignore no-explicit-any - DENO_DONT_USE_INTERNAL_NODE_COMPAT_STATE: (Deno as any).core.ops + DENO_DONT_USE_INTERNAL_NODE_COMPAT_STATE: core.ops .op_npm_process_state(), }); diff --git a/testing/bdd_test.ts b/testing/bdd_test.ts index 08c48fdb870b..0190def146fe 100644 --- a/testing/bdd_test.ts +++ b/testing/bdd_test.ts @@ -40,16 +40,27 @@ Deno.test("global", async (t) => { fn: (t: Deno.TestContext) => void | Promise, ): Promise; async step( - tOrName: Deno.TestStepDefinition | string, + fn: (t: Deno.TestContext) => void | Promise, + ): Promise; + async step( + tOrNameOrFn: + | Deno.TestStepDefinition + | string + | ((t: Deno.TestContext) => void | Promise), fn?: (t: Deno.TestContext) => void | Promise, ): Promise { let ignore = false; - if (typeof tOrName === "object") { - ignore = tOrName.ignore ?? false; - fn = tOrName.fn; + if (typeof tOrNameOrFn === "function") { + ignore = false; + fn = tOrNameOrFn; + } else if (typeof tOrNameOrFn === "object") { + ignore = tOrNameOrFn.ignore ?? false; + fn = tOrNameOrFn.fn; } - const name = typeof tOrName === "string" ? tOrName : tOrName.name; + const name = typeof tOrNameOrFn === "string" + ? tOrNameOrFn + : tOrNameOrFn.name; const context = new TestContext(name); this.steps.push(context); if (!ignore) { diff --git a/version.ts b/version.ts index b397ab8e0d65..20482d17fc60 100644 --- a/version.ts +++ b/version.ts @@ -5,4 +5,4 @@ * the cli's API is stable. In the future when std becomes stable, likely we * will match versions with cli as we have in the past. */ -export const VERSION = "0.173.0"; +export const VERSION = "0.174.0";