Skip to content

Commit 1756b16

Browse files
denobotbartlomieju
andauthored
0.174.0 (#3135)
Co-authored-by: bartlomieju <[email protected]> Co-authored-by: Bartek Iwańczuk <[email protected]>
1 parent a03fab1 commit 1756b16

File tree

4 files changed

+24
-8
lines changed

4 files changed

+24
-8
lines changed

Releases.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
### 0.174.0 / 2023.01.25
2+
3+
- feat(fmt/printf): add formatter i/I (Deno.inspect) (#3100)
4+
- fix(encoding/csv): escape cells containing newlines (LFs) (#3128)
5+
16
### 0.173.0 / 2023.01.16
27

38
- fix(fs): change globstar default to true for expandGlob and expandGlobSync

node/child_process.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
// This module implements 'child_process' module of Node.JS API.
44
// ref: https://nodejs.org/api/child_process.html
5+
import { core } from "./_core.ts";
56
import {
67
ChildProcess,
78
ChildProcessOptions,
@@ -139,8 +140,7 @@ export function fork(
139140
options.shell = false;
140141

141142
Object.assign(options.env ??= {}, {
142-
// deno-lint-ignore no-explicit-any
143-
DENO_DONT_USE_INTERNAL_NODE_COMPAT_STATE: (Deno as any).core.ops
143+
DENO_DONT_USE_INTERNAL_NODE_COMPAT_STATE: core.ops
144144
.op_npm_process_state(),
145145
});
146146

testing/bdd_test.ts

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,27 @@ Deno.test("global", async (t) => {
4040
fn: (t: Deno.TestContext) => void | Promise<void>,
4141
): Promise<boolean>;
4242
async step(
43-
tOrName: Deno.TestStepDefinition | string,
43+
fn: (t: Deno.TestContext) => void | Promise<void>,
44+
): Promise<boolean>;
45+
async step(
46+
tOrNameOrFn:
47+
| Deno.TestStepDefinition
48+
| string
49+
| ((t: Deno.TestContext) => void | Promise<void>),
4450
fn?: (t: Deno.TestContext) => void | Promise<void>,
4551
): Promise<boolean> {
4652
let ignore = false;
47-
if (typeof tOrName === "object") {
48-
ignore = tOrName.ignore ?? false;
49-
fn = tOrName.fn;
53+
if (typeof tOrNameOrFn === "function") {
54+
ignore = false;
55+
fn = tOrNameOrFn;
56+
} else if (typeof tOrNameOrFn === "object") {
57+
ignore = tOrNameOrFn.ignore ?? false;
58+
fn = tOrNameOrFn.fn;
5059
}
5160

52-
const name = typeof tOrName === "string" ? tOrName : tOrName.name;
61+
const name = typeof tOrNameOrFn === "string"
62+
? tOrNameOrFn
63+
: tOrNameOrFn.name;
5364
const context = new TestContext(name);
5465
this.steps.push(context);
5566
if (!ignore) {

version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
* the cli's API is stable. In the future when std becomes stable, likely we
66
* will match versions with cli as we have in the past.
77
*/
8-
export const VERSION = "0.173.0";
8+
export const VERSION = "0.174.0";

0 commit comments

Comments
 (0)