Skip to content

Commit 12d6888

Browse files
committed
clear up tasks
1 parent 043e24a commit 12d6888

40 files changed

+449
-167
lines changed

runtime/reference/std/assert.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ version: 1.0.15
77
generated: true
88
stability: stable
99
---
10+
1011
<!-- Autogenerated from JSR docs. Do not edit directly. -->
1112

1213
## Overview
@@ -30,10 +31,12 @@ assert(false); // Throws `AssertionError`
3031
deno add jsr:@std/assert
3132
```
3233

33-
<a href="https://jsr.io/@std/assert/doc" class="docs-cta jsr-cta">See all symbols in @std/assert on
34+
<a href="https://jsr.io/@std/assert/doc" class="docs-cta jsr-cta">See all
35+
symbols in @std/assert on
3436
<svg class="inline ml-1" viewBox="0 0 13 7" aria-hidden="true" height="20"><path d="M0,2h2v-2h7v1h4v4h-2v2h-7v-1h-4" fill="#083344"></path><g fill="#f7df1e"><path d="M1,3h1v1h1v-3h1v4h-3"></path><path d="M5,1h3v1h-2v1h2v3h-3v-1h2v-1h-2"></path><path d="M9,2h3v2h-1v-1h-1v3h-1"></path></g></svg></a>
3537

3638
<!-- custom:start -->
39+
3740
## What is an assertion?
3841

3942
An assertion is a check that must be true. If it isn’t, the program throws an
@@ -195,4 +198,5 @@ Deno.test("rejects for failed fetch", async () => {
195198

196199
- [`@std/expect`](/runtime/reference/std/expect/) offers a Jest-style BDD
197200
assertion API if you prefer fluent matchers.
201+
198202
<!-- custom:end -->

runtime/reference/std/async.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ version: 1.0.15
77
generated: true
88
stability: stable
99
---
10+
1011
<!-- Autogenerated from JSR docs. Do not edit directly. -->
1112

1213
## Overview
@@ -27,10 +28,12 @@ await delay(100); // waits for 100 milliseconds
2728
deno add jsr:@std/async
2829
```
2930

30-
<a href="https://jsr.io/@std/async/doc" class="docs-cta jsr-cta">See all symbols in @std/async on
31+
<a href="https://jsr.io/@std/async/doc" class="docs-cta jsr-cta">See all symbols
32+
in @std/async on
3133
<svg class="inline ml-1" viewBox="0 0 13 7" aria-hidden="true" height="20"><path d="M0,2h2v-2h7v1h4v4h-2v2h-7v-1h-4" fill="#083344"></path><g fill="#f7df1e"><path d="M1,3h1v1h1v-3h1v4h-3"></path><path d="M5,1h3v1h-2v1h2v3h-3v-1h2v-1h-2"></path><path d="M9,2h3v2h-1v-1h-1v3h-1"></path></g></svg></a>
3234

3335
<!-- custom:start -->
36+
3437
## What is async?
3538

3639
Asynchronous programming lets your program start work now and finish it later
@@ -107,4 +110,5 @@ import { deadline } from "@std/async/deadline";
107110

108111
await deadline(fetch("/slow"), 1_000); // throws DOMException("TimeoutError") after 1s
109112
```
113+
110114
<!-- custom:end -->

runtime/reference/std/bytes.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ version: 1.0.6
77
generated: true
88
stability: stable
99
---
10+
1011
<!-- Autogenerated from JSR docs. Do not edit directly. -->
1112

1213
## Overview
@@ -16,7 +17,7 @@ stability: stable
1617
byte slices.</p>
1718

1819
```js
19-
import { concat, indexOfNeedle, endsWith } from "@std/bytes";
20+
import { concat, endsWith, indexOfNeedle } from "@std/bytes";
2021
import { assertEquals } from "@std/assert";
2122

2223
const a = new Uint8Array([0, 1, 2]);
@@ -37,10 +38,12 @@ assertEquals(endsWith(c, b), true);
3738
deno add jsr:@std/bytes
3839
```
3940

40-
<a href="https://jsr.io/@std/bytes/doc" class="docs-cta jsr-cta">See all symbols in @std/bytes on
41+
<a href="https://jsr.io/@std/bytes/doc" class="docs-cta jsr-cta">See all symbols
42+
in @std/bytes on
4143
<svg class="inline ml-1" viewBox="0 0 13 7" aria-hidden="true" height="20"><path d="M0,2h2v-2h7v1h4v4h-2v2h-7v-1h-4" fill="#083344"></path><g fill="#f7df1e"><path d="M1,3h1v1h1v-3h1v4h-3"></path><path d="M5,1h3v1h-2v1h2v3h-3v-1h2v-1h-2"></path><path d="M9,2h3v2h-1v-1h-1v3h-1"></path></g></svg></a>
4244

4345
<!-- custom:start -->
46+
4447
### What is a Uint8Array?
4548

4649
`Uint8Array` is a typed array view over an `ArrayBuffer` that represents raw
@@ -71,4 +74,5 @@ console.log(indexOfNeedle(all, new Uint8Array([2, 3]))); // 1
7174

7275
- Prefer these helpers over manual loops for clarity and correctness.
7376
- Convert text ↔ bytes using `TextEncoder`/`TextDecoder`.
77+
7478
<!-- custom:end -->

runtime/reference/std/cache.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,16 @@ version: 0.2.0
77
generated: true
88
stability: unstable
99
---
10+
1011
<!-- Autogenerated from JSR docs. Do not edit directly. -->
1112

1213
:::info Unstable
1314

14-
This @std package is experimental and its API may change without a major version bump.
15+
This @std package is experimental and its API may change without a major version
16+
bump.
1517

1618
:::
19+
1720
## Overview
1821

1922
<p>In-memory cache utilities, such as memoization and caches with different
@@ -39,10 +42,12 @@ assertEquals(fib(100n), 354224848179261915075n);
3942
deno add jsr:@std/cache
4043
```
4144

42-
<a href="https://jsr.io/@std/cache/doc" class="docs-cta jsr-cta">See all symbols in @std/cache on
45+
<a href="https://jsr.io/@std/cache/doc" class="docs-cta jsr-cta">See all symbols
46+
in @std/cache on
4347
<svg class="inline ml-1" viewBox="0 0 13 7" aria-hidden="true" height="20"><path d="M0,2h2v-2h7v1h4v4h-2v2h-7v-1h-4" fill="#083344"></path><g fill="#f7df1e"><path d="M1,3h1v1h1v-3h1v4h-3"></path><path d="M5,1h3v1h-2v1h2v3h-3v-1h2v-1h-2"></path><path d="M9,2h3v2h-1v-1h-1v3h-1"></path></g></svg></a>
4448

4549
<!-- custom:start -->
50+
4651
## What is caching?
4752

4853
Caching stores recently used or expensive-to-compute data in memory so you can
@@ -94,4 +99,5 @@ const fib = memoize(
9499
{ cache },
95100
);
96101
```
102+
97103
<!-- custom:end -->

runtime/reference/std/cbor.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,16 @@ version: 0.1.8
77
generated: true
88
stability: unstable
99
---
10+
1011
<!-- Autogenerated from JSR docs. Do not edit directly. -->
1112

1213
:::info Unstable
1314

14-
This @std package is experimental and its API may change without a major version bump.
15+
This @std package is experimental and its API may change without a major version
16+
bump.
1517

1618
:::
19+
1720
## Overview
1821

1922
<h2 id="overview">
@@ -55,10 +58,12 @@ assertEquals(decodedMessage, rawMessage);
5558
deno add jsr:@std/cbor
5659
```
5760

58-
<a href="https://jsr.io/@std/cbor/doc" class="docs-cta jsr-cta">See all symbols in @std/cbor on
61+
<a href="https://jsr.io/@std/cbor/doc" class="docs-cta jsr-cta">See all symbols
62+
in @std/cbor on
5963
<svg class="inline ml-1" viewBox="0 0 13 7" aria-hidden="true" height="20"><path d="M0,2h2v-2h7v1h4v4h-2v2h-7v-1h-4" fill="#083344"></path><g fill="#f7df1e"><path d="M1,3h1v1h1v-3h1v4h-3"></path><path d="M5,1h3v1h-2v1h2v3h-3v-1h2v-1h-2"></path><path d="M9,2h3v2h-1v-1h-1v3h-1"></path></g></svg></a>
6064

6165
<!-- custom:start -->
66+
6267
## What is CBOR?
6368

6469
CBOR (Concise Binary Object Representation) is like a binary version of JSON. It
@@ -165,4 +170,5 @@ if (!isRecord(value) || typeof value.type !== "string") {
165170
// safe to use
166171
console.log(value.type);
167172
```
173+
168174
<!-- custom:end -->

runtime/reference/std/cli.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ version: 1.0.23
77
generated: true
88
stability: stable
99
---
10+
1011
<!-- Autogenerated from JSR docs. Do not edit directly. -->
1112

1213
## Overview
@@ -28,10 +29,12 @@ assertEquals(args, { foo: true, bar: "baz", _: ["./quux.txt"] });
2829
deno add jsr:@std/cli
2930
```
3031

31-
<a href="https://jsr.io/@std/cli/doc" class="docs-cta jsr-cta">See all symbols in @std/cli on
32+
<a href="https://jsr.io/@std/cli/doc" class="docs-cta jsr-cta">See all symbols
33+
in @std/cli on
3234
<svg class="inline ml-1" viewBox="0 0 13 7" aria-hidden="true" height="20"><path d="M0,2h2v-2h7v1h4v4h-2v2h-7v-1h-4" fill="#083344"></path><g fill="#f7df1e"><path d="M1,3h1v1h1v-3h1v4h-3"></path><path d="M5,1h3v1h-2v1h2v3h-3v-1h2v-1h-2"></path><path d="M9,2h3v2h-1v-1h-1v3h-1"></path></g></svg></a>
3335

3436
<!-- custom:start -->
37+
3538
## Why use @std/cli?
3639

3740
This package helps you build command‑line tools with great developer experience.
@@ -164,4 +167,5 @@ for (let i = 0; i < 5; i++) {
164167
}
165168
bar.stop();
166169
```
170+
167171
<!-- custom:end -->

runtime/reference/std/collections.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ version: 1.1.3
77
generated: true
88
stability: stable
99
---
10+
1011
<!-- Autogenerated from JSR docs. Do not edit directly. -->
1112

1213
## Overview
@@ -18,8 +19,8 @@ objects.</p>
1819
package and <a href="https://lodash.com/" rel="nofollow">Lodash</a>.</p>
1920

2021
```js
21-
import { intersect, sample, pick } from "@std/collections";
22-
import { assertEquals, assertArrayIncludes } from "@std/assert";
22+
import { intersect, pick, sample } from "@std/collections";
23+
import { assertArrayIncludes, assertEquals } from "@std/assert";
2324

2425
const lisaInterests = ["Cooking", "Music", "Hiking"];
2526
const kimInterests = ["Music", "Tennis", "Cooking"];
@@ -30,7 +31,7 @@ assertArrayIncludes(lisaInterests, [sample(lisaInterests)]);
3031

3132
const cat = { name: "Lulu", age: 3, breed: "Ragdoll" };
3233

33-
assertEquals(pick(cat, ["name", "breed"]), { name: "Lulu", breed: "Ragdoll"});
34+
assertEquals(pick(cat, ["name", "breed"]), { name: "Lulu", breed: "Ragdoll" });
3435
```
3536

3637
### Add to your project
@@ -39,10 +40,12 @@ assertEquals(pick(cat, ["name", "breed"]), { name: "Lulu", breed: "Ragdoll"});
3940
deno add jsr:@std/collections
4041
```
4142

42-
<a href="https://jsr.io/@std/collections/doc" class="docs-cta jsr-cta">See all symbols in @std/collections on
43+
<a href="https://jsr.io/@std/collections/doc" class="docs-cta jsr-cta">See all
44+
symbols in @std/collections on
4345
<svg class="inline ml-1" viewBox="0 0 13 7" aria-hidden="true" height="20"><path d="M0,2h2v-2h7v1h4v4h-2v2h-7v-1h-4" fill="#083344"></path><g fill="#f7df1e"><path d="M1,3h1v1h1v-3h1v4h-3"></path><path d="M5,1h3v1h-2v1h2v3h-3v-1h2v-1h-2"></path><path d="M9,2h3v2h-1v-1h-1v3h-1"></path></g></svg></a>
4446

4547
<!-- custom:start -->
48+
4649
## What are collection types?
4750

4851
Collection types are data structures that hold multiple values, such as arrays
@@ -150,4 +153,5 @@ console.log(
150153

151154
- Functions are pure and data-first; they don’t mutate your inputs.
152155
- Prefer these primitives to keep dependencies light and code clear.
156+
153157
<!-- custom:end -->

runtime/reference/std/crypto.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ version: 1.0.5
77
generated: true
88
stability: stable
99
---
10+
1011
<!-- Autogenerated from JSR docs. Do not edit directly. -->
1112

1213
## Overview
@@ -32,10 +33,12 @@ await crypto.subtle.digest("BLAKE3", data);
3233
deno add jsr:@std/crypto
3334
```
3435

35-
<a href="https://jsr.io/@std/crypto/doc" class="docs-cta jsr-cta">See all symbols in @std/crypto on
36+
<a href="https://jsr.io/@std/crypto/doc" class="docs-cta jsr-cta">See all
37+
symbols in @std/crypto on
3638
<svg class="inline ml-1" viewBox="0 0 13 7" aria-hidden="true" height="20"><path d="M0,2h2v-2h7v1h4v4h-2v2h-7v-1h-4" fill="#083344"></path><g fill="#f7df1e"><path d="M1,3h1v1h1v-3h1v4h-3"></path><path d="M5,1h3v1h-2v1h2v3h-3v-1h2v-1h-2"></path><path d="M9,2h3v2h-1v-1h-1v3h-1"></path></g></svg></a>
3739

3840
<!-- custom:start -->
41+
3942
## What is web crypto?
4043

4144
The Web Crypto API is a standard set of low-level cryptographic primitives
@@ -162,4 +165,5 @@ console.log(new TextDecoder().decode(new Uint8Array(plaintext))); // "secret mes
162165

163166
- Prefer Web Crypto primitives; avoid rolling your own crypto.
164167
- Encode inputs with `TextEncoder` and compare results as bytes or hex.
168+
165169
<!-- custom:end -->

0 commit comments

Comments
 (0)