Repository navigation
Added
-
fetch(url, { decompress: false })(DECISIONS D210), Bun's init member:
a compressed response body arrives as the server sent it, with
Content-EncodingandContent-Lengthintact, and the request asks for
identityunless it sets its ownAccept-Encoding. For a stored object whose
coding is part of it (an S3 object saved gzipped), a byte-exact proxy, or a
checksum over the wire bytes. -
runtime:websocket'sserve()serveswss:withsecureTransport: "on",
certandkey, likeruntime:http'sserve. -
--proxy=<url>and--no-proxy=<list>(DECISIONS D205):fetch, the
WebSocketclient and the--otelexporter go through anhttp://or
https://forward proxy —http:targets forwarded,https:/ws:/wss:
tunnelled withCONNECT, credentials from the URL sent as
Proxy-Authorizationand never printed.--allow-netstill judges the
target. Exceptions take domains, IPs, CIDR blocks andhost:port;
loopback always goes direct. No environment variable is read: esrun warns
whenHTTP(S)_PROXYis set. A refused tunnel is the new code
ERR_PROXY_TUNNEL. -
serve({ onError(error, request) })(DECISIONS D206): answers for a
handler that threw or returned noResponse. Without it the500's report
now names the request:runtime:http: GET /path failed (trace …), the query
left out. -
--otelreports the outcome of a request: its span carries
http.response.status_codeanderror.typeand isERRORfor a5xxor a
throw, andhttp.server.request.durationis exported to/v1/metrics—
counted before sampling. A request span used to closeOKwhatever happened. -
The
WebSocketclient has the 30s connect deadlinefetchhas, and its
connect errors carry codes (ERR_DNS,ERR_CONNECTION_REFUSED,ERR_TLS,
ERR_TIMED_OUT). -
runtime:pdfsanitize profiles and categories (otf-pdf 0.2):
sanitize({ profile: "basic" | "privacy" | "strict" | "all" }), and
comments,hiddenAnnotations,thumbnails,navigation,webCapture,
structure,hiddenLayersandinvisibleText, each counted by
sanitizeReport. Hidden layers and invisible text are cut from page
content without moving the visible text. The defaults are unchanged.
Changed
-
The minimum supported Rust version is 1.97, up from 1.96: oxc 0.157, which
esdev builds with, requires it. -
runtime:serializationmoves toquick-xml0.42 andtoml1.2. XML input
nested more than 65,535 elements deep is refused instead of overflowing the
parser's depth counter; output is unchanged (the writer is our own). esdev's
HTML splicing moves tohtml5gum0.9. -
brotli9 (withasync-compression0.4.52) andbase640.23: one copy of
each in the binary, matching whatbcryptand the bundler already use. No
change in behaviour. -
runtime:websocketmoves totungstenite0.30: a server refuses a
handshake whoseSec-WebSocket-Keyis not a valid 16-byte key, as RFC 6455
requires, and large messages read faster. The last copy of the older
digestcrates leaves the binary with it. -
Password hashing moves to
argon20.6 andscrypt0.12, on the same
digestgeneration as the rest of the crypto stack, so the oldersha2,
hmac,pbkdf2andblake2copies leave the binary. Hashes are written in
the same PHC format and verify in both directions across the upgrade.
Fixed
-
On Windows, the warning that a proxy variable is ignored names it once:
HTTP_PROXYandhttp_proxyare one variable there, and the warning listed
both. -
runtime:httpkeeps a handler'sContent-Lengthon the answer to aHEAD,
sonew Response(null, { headers: { "content-length": "1234" } })tells the
client the size aGETwould return (RFC 9110 §9.3.2), as Deno does. It was
dropped, leaving no length at all. Only a plain decimal is kept, and only for
HEAD; every other response is still framed from its body. -
fetchwith aRangeheader sendsAccept-Encoding: identity, as the Fetch
standard says (D210), instead of leaving the header out — which accepted any
coding, so a server could compress the range into a body that cannot be
decoded. -
runtime:pdf: a page whose content stream exceedsmaxDecodedSizefails
withERR_PDF_LIMITinstead of reading as an empty page, andpageText
reuses the fonts an earlier call loaded on the same document (otf-pdf 0.2). -
A response the server cut short fails
fetchwithERR_CONNECTION_RESET
and "the connection closed before the response completed", instead of the
HTTP client's chain of wrappers.
Removed
esrun upgrade(DECISIONS D204). A deployment pins its esrun in its
image or install step; on a development machine,esdev upgradenow
updates esrun and esdev together.esrun upgradeexits with an error that
names both routes. To upgrade an esrun-only machine, re-run the installer
withESRUN_VERSION=<version>.
Security
rustix1.1.6, for RUSTSEC-2026-0486 (GHSA-jh2m-fhpj-3vr7): its xattr
functions marked unwritten bytes as initialized. Neither binary calls them.copycan no longer be pointed outside the root jail. It checked both
paths when called and opened them by name when it ran, so acopyissued
with arenameof its directory and asymlinkout of the jail in the same
tick read a file outside the root, or wrote one there. Both ends are now
pinned by descriptor at the call, like every other mutation.stat,
exists,readDir, glob scans andmakeTempFile/makeTempDirare pinned
the same way, which closes the same window for threads racing each other.- No op hands a worker's entry source back to JavaScript. Starting a worker
was two ops, and the first, reachable from guest code through__ops,
returned the entry's text: under--allow-importsalone it read any text
file in the project,.envincluded, whatever--allow-readsaid. The
spawn now reads the entry itself. A worker refused for want ofworkers
says that starting it is what needs the grant. - An import loads only a module file (DECISIONS D209). Any other file —
.env,config.yaml,notes.txt, an extensionless name — is refused
with the new codeERR_UNKNOWN_FILE_EXTENSIONbefore it is read. The
loader used to run whatever a specifier named as JavaScript: a YAML mapping
is a valid script, and a trap on the global object collected every value in
it, so--allow-importsread project files that--allow-readdid not
grant. A module file is.js,.mjs,.cjs,.json(with
type: "json") or.wasm; the file you run, andimport.meta.resolve(),
are unaffected. --allow-run=<program>no longer admits every name of a multi-call
binary. Entries were matched on the real file alone, and on Alpinels
andshare both links to busybox — so--allow-run=lsransh -c …. The
name a program is invoked by must now match as well as the file.crypto.subtleRSA is constant-time (DECISIONS D203). It moves to
RustCryptorsa0.10.0-rc.20, which fixes RUSTSEC-2023-0071 ("Marvin"):
constant-time private-key arithmetic, blinded signing and decryption, and
implicit rejection. All RSA randomness still comes from the injected
entropy provider. RSA-OAEP labels may now be any bytes;generateKey
refuses a modulus outside 1024–8192 bits, andimportKeyrefuses an RSA
key under 1024 bits with aDataError. Checked against OpenSSL-generated
keys, signatures and ciphertexts in both directions.