@amritk/nish-aarch64-darwin 0.35.0 → 0.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/INSTALL.md +6 -1
- package/bin/nish +0 -0
- package/docs/AI.md +9 -2
- package/package.json +1 -1
- package/runtime/nish.d.ts +4612 -430
- package/runtime/vite.d.ts +30 -0
- package/runtime/vite.mjs +150 -0
- package/scripts/build.sh +108 -13
- package/std/base64.ts +34 -5
- package/std/bytes.ts +256 -40
- package/std/cli-args.ts +296 -70
- package/std/cli-flags.ts +184 -19
- package/std/cli.ts +475 -54
- package/std/collections.ts +121 -23
- package/std/compress/checksum.ts +44 -14
- package/std/compress/deflate.ts +224 -111
- package/std/compress/gzip.ts +217 -53
- package/std/compress/zlib.ts +63 -7
- package/std/crypto/aes.ts +80 -9
- package/std/crypto/base64url.ts +22 -0
- package/std/crypto/bcrypt-batch.ts +88 -21
- package/std/crypto/bcrypt.ts +60 -0
- package/std/crypto/chacha20poly1305.ts +53 -0
- package/std/crypto/ct.ts +32 -13
- package/std/crypto/ed25519.ts +47 -0
- package/std/crypto/hkdf.ts +198 -13
- package/std/crypto/hmac.ts +235 -31
- package/std/crypto/jwt.ts +192 -63
- package/std/crypto/p256.ts +159 -16
- package/std/crypto/p384.ts +28 -3
- package/std/crypto/pki-roots.ts +32 -2
- package/std/crypto/pki.ts +81 -15
- package/std/crypto/rsa.ts +33 -3
- package/std/crypto/sha1.ts +3 -0
- package/std/crypto/sha256.ts +24 -1
- package/std/crypto/sha512.ts +99 -14
- package/std/crypto/x25519.ts +152 -14
- package/std/crypto/x509-random.ts +10 -0
- package/std/crypto/x509.ts +67 -7
- package/std/json-equal.ts +19 -0
- package/std/json-format.ts +112 -13
- package/std/json-number.ts +64 -14
- package/std/json-pointer.ts +23 -1
- package/std/json-tokenizer.ts +100 -29
- package/std/json-typed.ts +713 -66
- package/std/json-value.ts +400 -124
- package/std/json.ts +138 -10
- package/std/map.ts +25 -7
- package/std/math.ts +36 -4
- package/std/net/buffer-pool.ts +42 -11
- package/std/net/dns-config.ts +109 -23
- package/std/net/dns-message.ts +62 -7
- package/std/net/dns-resolver.ts +247 -53
- package/std/net/dns.ts +203 -35
- package/std/net/fetch.ts +151 -61
- package/std/net/handler.ts +278 -80
- package/std/net/hpack.ts +262 -52
- package/std/net/http-compress.ts +125 -15
- package/std/net/http-fields.ts +85 -9
- package/std/net/http1-client-codec.ts +100 -19
- package/std/net/http1-codec.ts +235 -27
- package/std/net/http1-server.ts +343 -85
- package/std/net/http2-frame.ts +272 -35
- package/std/net/http2-tls.ts +135 -34
- package/std/net/http2.ts +247 -106
- package/std/net/http3-frame.ts +154 -17
- package/std/net/http3-server.ts +246 -96
- package/std/net/http3.ts +307 -115
- package/std/net/outbound.ts +37 -3
- package/std/net/postgres-carrier.ts +144 -8
- package/std/net/postgres.ts +723 -103
- package/std/net/prefork.ts +164 -31
- package/std/net/qpack.ts +105 -18
- package/std/net/quic-conn-ack.ts +59 -12
- package/std/net/quic-conn-cid.ts +124 -27
- package/std/net/quic-conn-params.ts +70 -10
- package/std/net/quic-datagram.ts +43 -3
- package/std/net/quic-frame.ts +286 -12
- package/std/net/quic-listener.ts +101 -32
- package/std/net/quic-packet.ts +302 -21
- package/std/net/quic-recovery.ts +228 -44
- package/std/net/quic-stream.ts +353 -91
- package/std/net/quic.ts +489 -171
- package/std/net/router.ts +87 -40
- package/std/net/tls/client.ts +166 -51
- package/std/net/tls/codec.ts +413 -56
- package/std/net/tls/record-client.ts +110 -55
- package/std/net/tls/record-server.ts +159 -59
- package/std/net/tls/record.ts +109 -12
- package/std/net/tls/schedule.ts +235 -26
- package/std/net/tls/ticket.ts +159 -40
- package/std/net/tls/verify.ts +49 -3
- package/std/net/tls-tcp.ts +250 -45
- package/std/net/tls.ts +221 -59
- package/std/net/upstream.ts +81 -45
- package/std/net/url.ts +97 -13
- package/std/net/websocket.ts +122 -12
- package/std/net/webtransport.ts +220 -89
- package/std/pair.ts +10 -2
- package/std/random.ts +34 -9
- package/std/regex.ts +352 -198
- package/std/region.ts +70 -15
- package/std/secret.ts +52 -11
- package/std/sort.ts +17 -2
- package/std/sqlite.ts +256 -35
- package/std/sync/ring.ts +205 -35
- package/std/sync/shm.ts +194 -16
- package/std/term-io.ts +137 -64
- package/std/term-pixels.ts +144 -19
- package/std/term-probe.ts +66 -25
- package/std/term-rate.ts +128 -57
- package/std/term.ts +332 -121
- package/std/testing.ts +130 -32
- package/std/text.ts +73 -7
- package/std/threads.ts +229 -41
- package/std/yaml-json.ts +94 -82
- package/std/yaml-lines.ts +47 -15
- package/std/yaml-write.ts +24 -16
- package/std/yaml.ts +764 -384
package/INSTALL.md
CHANGED
|
@@ -52,7 +52,12 @@ export PATH="$(brew --prefix llvm@18)/bin:$PATH" # add to your shell profile
|
|
|
52
52
|
```
|
|
53
53
|
|
|
54
54
|
Xcode's `clang` (`xcode-select --install`) also works for native binaries;
|
|
55
|
-
the Homebrew LLVM is needed for the `wasm` and `wasi` profiles (`wasm-ld`).
|
|
55
|
+
the Homebrew LLVM is needed for the `wasm`, `wasm-host` and `wasi` profiles (`wasm-ld`).
|
|
56
|
+
|
|
57
|
+
`wasm-opt` (binaryen: `apt-get install binaryen`, `brew install binaryen`) is
|
|
58
|
+
optional. When it is on `PATH`, `scripts/build.sh --profile wasm-host` runs
|
|
59
|
+
`wasm-opt -Oz` on the module, and the build line says whether it ran. Without
|
|
60
|
+
it the module is complete, just not as small.
|
|
56
61
|
|
|
57
62
|
<a id="wasi-optional-for---profile-wasi" style="scroll-margin-top: 65px"></a>
|
|
58
63
|
|
package/bin/nish
CHANGED
|
Binary file
|
package/docs/AI.md
CHANGED
|
@@ -1480,6 +1480,13 @@ export const main = (): i32 => {
|
|
|
1480
1480
|
```
|
|
1481
1481
|
|
|
1482
1482
|
- **No body, and it cannot be `export`ed.**
|
|
1483
|
+
- **Not in a `--target wasm32` build, nor an `--emit-dts` one with no
|
|
1484
|
+
`--target`** (NL2666; `--target wasm32-wasi` keeps it): there a function the page
|
|
1485
|
+
supplies is imported from a host module, the page's own TypeScript file
|
|
1486
|
+
named by `--host`, and becomes a wasm import from module `host`. Only
|
|
1487
|
+
scalars, enums and `HostHandle<"kind">` (a nominal `i32` for an object the
|
|
1488
|
+
page keeps) cross; `import { Canvas, fill } from "./host.ts"`, no `type`
|
|
1489
|
+
modifier.
|
|
1483
1490
|
- **A class with a `CPtr` field is a handle class: open one with `using`.**
|
|
1484
1491
|
`using f = new File(p)` closes `f` once at every exit of its block (falling
|
|
1485
1492
|
off the end, `return`, `break`, `continue`, `orReturn()`), so never call the
|
|
@@ -3019,8 +3026,8 @@ export const first = (xs: i32[]): i32 => uncheckedGet(xs, 0);
|
|
|
3019
3026
|
A package that must not touch the network says so in `package.json`,
|
|
3020
3027
|
`"nish": { "capabilities": { "deny": ["net"] } }`, and `--deny net` or an
|
|
3021
3028
|
allowlist such as `--allow fs.read,exit` says the same on the command line.
|
|
3022
|
-
The `"nish"` field holds `noPanic` and `
|
|
3023
|
-
written once; anything more is refused (NL3036) rather than skipped. A
|
|
3029
|
+
The `"nish"` field holds `noPanic`, `capabilities` and `host` and nothing
|
|
3030
|
+
else, each written once; anything more is refused (NL3036) rather than skipped. A
|
|
3024
3031
|
program whose `main` — or, in a library or a header build, any export —
|
|
3025
3032
|
reaches more is refused (NL2459), spanned at the first call and naming the
|
|
3026
3033
|
whole chain to the builtin; nothing changes in a program
|