Skip to content

Commit

Permalink
0.174.0 (#3135)
Browse files Browse the repository at this point in the history
Co-authored-by: bartlomieju <[email protected]>
Co-authored-by: Bartek Iwańczuk <[email protected]>
  • Loading branch information
3 people authored Jan 25, 2023
1 parent a03fab1 commit 1756b16
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 8 deletions.
5 changes: 5 additions & 0 deletions Releases.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions node/child_process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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(),
});

Expand Down
21 changes: 16 additions & 5 deletions testing/bdd_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,27 @@ Deno.test("global", async (t) => {
fn: (t: Deno.TestContext) => void | Promise<void>,
): Promise<boolean>;
async step(
tOrName: Deno.TestStepDefinition | string,
fn: (t: Deno.TestContext) => void | Promise<void>,
): Promise<boolean>;
async step(
tOrNameOrFn:
| Deno.TestStepDefinition
| string
| ((t: Deno.TestContext) => void | Promise<void>),
fn?: (t: Deno.TestContext) => void | Promise<void>,
): Promise<boolean> {
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) {
Expand Down
2 changes: 1 addition & 1 deletion version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

0 comments on commit 1756b16

Please sign in to comment.