mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
0.174.0 (#3135)
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com> Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
This commit is contained in:
parent
a03fab1991
commit
1756b160fa
@ -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
|
||||
|
@ -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(),
|
||||
});
|
||||
|
||||
|
@ -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) {
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user