Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
This commit is contained in:
denobot 2023-01-25 17:25:19 -05:00 committed by GitHub
parent a03fab1991
commit 1756b160fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 8 deletions

View File

@ -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

View File

@ -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(),
});

View File

@ -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) {

View File

@ -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";