deno_std
deno_std copied to clipboard
The Deno Standard Library
**Describe the bug** When creating a copy of a `BinarySearchTree` using the `BinarySearchTree.from()` method, removing an element from the copied tree inadvertently affects the original tree. Specifically, the original tree...
**Describe the bug** the `ignoreZero` flag seems to ignore leading zeros: **Steps to Reproduce** ```ts format(785000, { style: "digital", ignoreZero: true }) > "00:00:13:05" // expected: "13:05" ``` **Expected behavior**...
**Describe the bug** **Steps to Reproduce** Run with Deno: ```console ~> deno --version deno 2.1.4 (stable, release, x86_64-unknown-linux-gnu) v8 13.0.245.12-rusty typescript 5.6.2 ~> deno Deno 2.1.4 exit using ctrl+d, ctrl+c,...
probably we can use https://www.npmjs.com/package/lcov-result-merger for merging lcov reports
**Is your feature request related to a problem? Please describe.** Would there be interest in a .toBeWithin matcher like the one from [jest-extend](https://jest-extended.jestcommunity.dev/docs/matchers/Number#tobewithinstart-end)? **Describe the solution you'd like** If so,...
**Is your feature request related to a problem? Please describe.** For now, there is a misalignment between `@std/expect` and `@std/testing/mock`, which causes inability to use `@std/expect`'s `fn` in `@std/testing/mock`'s `assertSpyCalls`...
**Is your feature request related to a problem? Please describe.** I tried to use `partition` and expected to be able to access the element index like normal array methods, but...
**Is your feature request related to a problem? Please describe.** The Rust standard library has [strip_prefix](https://doc.rust-lang.org/std/string/struct.String.html#method.strip_prefix)/[strip_suffix](https://doc.rust-lang.org/std/string/struct.String.html#method.strip_suffix) functions to remove a substring from the start or end of a string if...
Context: * `Deno.writeAll` and `Deno.writeAllSync` were deprecated and then removed. * `writeAll` and `writeAllSync` of `@std/streams` were deprecated, moved to `@std/io`, and then removed. * Per https://github.com/denoland/std/issues/5003, `@std/io` is no...