mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
0.144.0 (#2351)
* 0.144.0 * fix(Releases.md): update note about collections/mod.ts Co-authored-by: David Sherret <dsherret@users.noreply.github.com> * chore: fix formatting * fix(tests): use `Deno.currentExe()` instead of `"deno"` Co-authored-by: aslilac <aslilac@users.noreply.github.com> Co-authored-by: Kayla Washburn <mckayla@hey.com> Co-authored-by: David Sherret <dsherret@users.noreply.github.com> Co-authored-by: David Sherret <dsherret@gmail.com>
This commit is contained in:
parent
23c46fdc27
commit
55addb3ad1
@ -1,3 +1,10 @@
|
||||
### 0.144.0 / 2022.06.15
|
||||
|
||||
- Add warning on usage of collections/mod.ts (#2321, #2346)
|
||||
- encoding: add front matter module (#2335)
|
||||
- feat(node): add missing TTY methods to stdout,stderr (#2337)
|
||||
- fix: update ci script and fix type errors (#2344)
|
||||
|
||||
### 0.143.0 / 2022.06.09
|
||||
|
||||
- BREAKING feat(http): improve type safety and docs for http_status (#2297)
|
||||
|
@ -26,19 +26,19 @@
|
||||
*/
|
||||
export function sortBy<T>(
|
||||
array: readonly T[],
|
||||
selector: ((el: T) => number),
|
||||
selector: (el: T) => number,
|
||||
): T[];
|
||||
export function sortBy<T>(
|
||||
array: readonly T[],
|
||||
selector: ((el: T) => string),
|
||||
selector: (el: T) => string,
|
||||
): T[];
|
||||
export function sortBy<T>(
|
||||
array: readonly T[],
|
||||
selector: ((el: T) => bigint),
|
||||
selector: (el: T) => bigint,
|
||||
): T[];
|
||||
export function sortBy<T>(
|
||||
array: readonly T[],
|
||||
selector: ((el: T) => Date),
|
||||
selector: (el: T) => Date,
|
||||
): T[];
|
||||
export function sortBy<T>(
|
||||
array: readonly T[],
|
||||
|
@ -20,7 +20,7 @@ function assertValidParse(
|
||||
function assertInvalidParse(
|
||||
text: string,
|
||||
// deno-lint-ignore no-explicit-any
|
||||
ErrorClass: (new (...args: any[]) => Error),
|
||||
ErrorClass: new (...args: any[]) => Error,
|
||||
msgIncludes?: string,
|
||||
options?: JSONC.ParseOptions,
|
||||
) {
|
||||
|
@ -805,7 +805,7 @@ const build_tree = (s, desc) => // deflate_state *s;
|
||||
/* The elements heap[heap_len/2+1 .. heap_len] are leaves of the tree,
|
||||
* establish sub-heaps of increasing lengths:
|
||||
*/
|
||||
for (n = (s.heap_len >> 1 /*int /2*/); n >= 1; n--) pqdownheap(s, tree, n);
|
||||
for (n = s.heap_len >> 1 /*int /2*/; n >= 1; n--) pqdownheap(s, tree, n);
|
||||
|
||||
/* Construct the Huffman tree by repeatedly combining the least two
|
||||
* frequent nodes.
|
||||
|
@ -176,7 +176,7 @@ export function once<T = undefined>(
|
||||
* @param {number} [expectedExecutions = 1]
|
||||
* @param {number} [timeout = 1000] Milliseconds to wait before the promise is forcefully exited */
|
||||
export function mustCall<T extends unknown[]>(
|
||||
fn: ((...args: T) => void) = () => {},
|
||||
fn: (...args: T) => void = () => {},
|
||||
expectedExecutions = 1,
|
||||
timeout = 1000,
|
||||
): [Promise<void>, (...args: T) => void] {
|
||||
|
@ -32,7 +32,7 @@ export default function randomFill(
|
||||
export default function randomFill(
|
||||
buf: Buffer,
|
||||
offset: number,
|
||||
cb: ((err: Error | null, buf: Buffer) => void),
|
||||
cb: (err: Error | null, buf: Buffer) => void,
|
||||
): void;
|
||||
|
||||
export default function randomFill(
|
||||
@ -46,7 +46,7 @@ export default function randomFill(
|
||||
buf: Buffer,
|
||||
offset?: number | ((err: Error | null, buf: Buffer) => void),
|
||||
size?: number | ((err: Error | null, buf: Buffer) => void),
|
||||
cb?: ((err: Error | null, buf: Buffer) => void),
|
||||
cb?: (err: Error | null, buf: Buffer) => void,
|
||||
): void {
|
||||
if (typeof offset === "function") {
|
||||
cb = offset;
|
||||
|
@ -265,7 +265,14 @@ Deno.test("Snapshot Test - Options", async (t) => {
|
||||
await Deno.writeTextFile(tempTestFilePath, test);
|
||||
|
||||
const process = await Deno.run({
|
||||
cmd: ["deno", "test", "--allow-all", tempTestFilePath, "--", "-u"],
|
||||
cmd: [
|
||||
Deno.execPath(),
|
||||
"test",
|
||||
"--allow-all",
|
||||
tempTestFilePath,
|
||||
"--",
|
||||
"-u",
|
||||
],
|
||||
stdout: "piped",
|
||||
stderr: "piped",
|
||||
});
|
||||
@ -313,7 +320,7 @@ Deno.test(
|
||||
async function runTestWithUpdateFlag(test: string) {
|
||||
await Deno.writeTextFile(tempTestFilePath, test);
|
||||
|
||||
const { stdout, stderr } = await Deno.spawn("deno", {
|
||||
const { stdout, stderr } = await Deno.spawn(Deno.execPath(), {
|
||||
args: ["test", "--allow-all", tempTestFilePath, "--", "-u"],
|
||||
});
|
||||
|
||||
|
@ -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.143.0";
|
||||
export const VERSION = "0.144.0";
|
||||
|
Loading…
Reference in New Issue
Block a user