# scriptc changelog > TypeScript-to-native compiler, from Vercel Labs. - Vendor: Vercel - Category: Languages & Runtimes - License: Apache-2.0 - Language: TypeScript - Official site: https://scriptc.dev/ - Tracked by: What's New (https://whatsnew.fyi/product/scriptc) - Harvested from: GitHub (vercel-labs/scriptc) - Entries below: 25 (newest first) What's New is an index, not a publisher: every entry below links to the vendor's own release notes, which are the authoritative source. Entries are labelled where they are hand-curated sample data, pre-releases, or drawn from a secondary source such as a developer blog. Reuse: release facts (products, versions, dates, links, CVE ids and flags) are open data under CC BY 4.0, from the API at https://whatsnew.fyi/api/v1 or the nightly dataset at https://github.com/whatsnew-fyi/dataset. The summaries, labels and curation are © What's New: quote freely with attribution and a link back; wholesale republication of them is not permitted — terms: https://whatsnew.fyi/terms. The vendors' own release notes remain their publishers'. ## Releases ### v0.4.14 - Date: 2026-11-15 - Version: v0.4.14 - Original notes: https://github.com/vercel-labs/scriptc/releases/tag/v0.4.14 - Permalink: https://whatsnew.fyi/product/scriptc/releases/v0.4.14 - **changed** — A concat whose arguments hold elements the receiver's array cannot take as they are runs as the checked-dynamic concat, building the mixed array JavaScript builds and appending a non-array argument as one element, instead of failing with SC1090 or SC2009 - **changed** — A call resolved to an overload naming a subclass of the class its implementation returns checks the value against the subclass as an assertion does instead of refusing to build, and a value of another class throws the assertion's TypeError - **fixed** — A class with static fields whose getter names a subclass declared later in the same module, used as a value from another module, no longer throws ReferenceError at startup and prints what Node prints - **fixed** — The compiler-generated class helpers no longer receive the checks that guard a reference to a class made before its definition ran, while the program's own references keep their checks ##### 0.4.14 ###### Highlights - **TypeScript parity:** - `concat` whose arguments hold elements the receiver's array cannot take as they are, such as a row of strings and numbers concatenated onto a string array or a `var` that may still be undefined, runs as the checked-dynamic `concat`: it builds the mixed array JavaScript builds and appends a non-array argument as one element, instead of failing with SC1090 or SC2009. - A call resolved to an overload that names a subclass of the class its implementation returns, such as a DOM factory's `createElement("canvas")` returning the canvas element class over an element implementation, checks the value against the subclass as an assertion does instead of refusing to build; a value of another class throws the assertion's `TypeError`. - **Fixes:** - A class with static fields whose getter names a subclass declared later in the same module, used as a value from another module, no longer throws `ReferenceError: Cannot access 'Element' before initialization` at startup and prints what Node prints. The compiler-generated class helpers no longer receive the checks that guard a reference to a class made before its definition ran; the program's own references keep their checks. ### v0.4.13 - Date: 2026-11-15 - Version: v0.4.13 - Original notes: https://github.com/vercel-labs/scriptc/releases/tag/v0.4.13 - Permalink: https://whatsnew.fyi/product/scriptc/releases/v0.4.13 - **added** — Add parallelInto, parallelReduce and parallelFor to @scriptc/experimental, running loop chunks on a runtime thread pool when a syntactic check proves no chunk writes a value another chunk reads or writes - **changed** — Loops whose chunks cannot run in parallel compile to the sequential loop as before, emitting an SC6106 warning with unchanged output - **changed** — new URL() answers repeated parses of the same input from the cached component strings, parsing once per request instead of three times while returning a fresh mutable URL each time - **changed** — The IPv4 host parser and port normalization write digits directly instead of calling snprintf - **changed** — end() on a chunked response with corked head and chunks sends the head, chunks and terminator (with any trailers) in one write, matching Node - **changed** — A checked element read stabilized in its hidden local is lent to the projecting call, removing a retain and release pair per iteration - **changed** — Classes whose tree children are typed C | undefined or C | null | undefined use the same tree-class layout as C | null - **changed** — (x / c) | 0 for a proven-int32 x and nonzero integer constant c divides with a single sdiv i64, keeping the conversion for INT32_MIN / -1 - **changed** — A build answered from the executable cache prints every warning the original build reported, using the cached source text - **added** — fs.openSync, fs.mkdirSync, fs.chmodSync and fs.fchmodSync accept octal-string or integer modes in 0..2^32-1 and run Node's validation at run time when argument types are unknown - **added** — fs.openSync accepts string flag names or raw open(2) bits, and fs.mkdirSync returns the first directory created by a recursive walk - **added** — fs.open callback form reads numeric flags and defaults an omitted, null or undefined mode to 0o666 - **added** — fs.writeFileSync and fs.appendFileSync accept numeric or octal-string mode and raw open(2) bits for the flag option, validating at run time with Node's errors - **added** — The stat family (fs.stat, fs.lstat, fs.fstat and their sync forms) supports run-time option ladders, bigint stats, and all fs.Stats fields and is* predicates - **added** — fs.readSync and fs.writeSync run Node's argument validation at run time, including bigint positions up to 2n ** 63n - 1n less the read length - **added** — fs.closeSync, fsyncSync, fdatasyncSync, ftruncateSync, fchmodSync, fchownSync, readvSync, writevSync and futimesSync run run-time paths with Node's check order and error messages ##### 0.4.13 ###### Highlights - **Faster programs:** - `@scriptc/experimental` adds `parallelInto`, `parallelReduce` and `parallelFor`: the chunks of a loop run on a runtime thread pool when a syntactic check proves that no chunk writes a value another chunk reads or writes, the same source runs its chunks in order under Node.js, and a loop whose chunks cannot run in parallel compiles to the sequential loop it compiled to before, with an SC6106 warning and the same output. - `new URL()` answers an input that repeats the last parse from that parse's component strings, so a server that builds a `Request` from a URL and then parses `request.url` parses the URL once per request instead of three times, and every returned URL is still its own mutable value. A compiled HTTP server serves 1.20 to 1.23 times the requests per second of the same server on the previous build, over 11 paired samples per workload with 95% confidence intervals that exclude 1.0 in all three, and the IPv4 host parser and the port normalization write their digits directly instead of calling `snprintf`. - `end()` on a chunked response whose head and chunks are still corked sends the head, the chunks and the terminator, with any trailers, in one write, as Node does, where the previous build sent the terminator in a second write; the bytes on the wire do not change. Small responses from a server built on `node:http` and `Response` serve 15% to 16% more requests per second, and a larger framework app 3% to 8% on its text, JSON and POST routes, over 10 paired runs each with confidence intervals above zero; a response that already carried a `Content-Length` went out in one write and is unchanged. - A checked element read that the lowering stabilizes in its hidden local is lent to the call that projects it, which removes the retain and release pair that each iteration took: the two target workloads run 1.57 to 1.62 times faster, with both intervals excluding no difference, and a program that stores the read in a `const` first reaches the speed of the form without the copy (1.0327, an interval that includes no difference). - A class whose tree children are typed `C | undefined`, or `C | null | undefined`, takes the tree-class layout that the `C | null` spelling already used, which is the same pointer shape: a tree built with `undefined` children runs 5% to 8% faster, and the gap between the two spellings falls from 1.18 times to 1.05. - `(x / c) | 0` for a proven-int32 `x` and a constant nonzero integer `c` divides with one `sdiv i64` instead of a floating-point divide and a conversion, 1.43 times faster on the workload that divides in a loop, with a 95% interval excluding no difference; `INT32_MIN / -1` keeps the conversion, because the 32-bit result wraps there. - **Faster builds:** - A build answered from the executable cache prints every warning the build reported, not only the performance summary, so a program with a type patch, a divergence or a start-up warning keeps the cached fast path, and a replayed warning uses the source text the cache entry kept, so the cached stderr matches the original build. - **Node.js parity:** - `fs.openSync`, `fs.mkdirSync`, `fs.chmodSync` and `fs.fchmodSync` read the modes Node's `parseFileMode` accepts, an octal string or an integer in `0..2^32-1`, and an argument whose static type is `any` or a union runs Node's own validation ladder at run time instead of being refused by the build: `openSync` takes a string flag name or raw `open(2)` bits, `mkdirSync` answers the first directory a recursive walk created and accepts the mode as the options argument itself, and each check throws Node's error with its code and message. `fs.open`'s callback form reads numeric flags the same way, and an omitted, `null` or `undefined` mode there opens with `parseFileMode`'s `0o666` default. The options record of `fs.writeFileSync` and `fs.appendFileSync` takes `mode` as a number or an octal string too, over string, Buffer and chec _[Truncated at 4000 characters — full notes: https://github.com/vercel-labs/scriptc/releases/tag/v0.4.13]_ ### v0.4.12 - Date: 2026-11-11 - Version: v0.4.12 - Original notes: https://github.com/vercel-labs/scriptc/releases/tag/v0.4.12 - Permalink: https://whatsnew.fyi/product/scriptc/releases/v0.4.12 - **changed** — A promise reaction that answers unknown or any runs without a fiber and its 512 KB stack, making then, catch and finally handlers of that result and awaits of an unknown result faster - **changed** — A union box that dies is freed without reporting to the dispose hook, and the dispose filter and queued-disposal pointer are tested once per release, making fully typed benchmarks smaller and two run-time workloads faster - **changed** — Final fields and int32 slots stay in a class's static layout while no dynamic code in the program can observe the object - **changed** — The && and || operators over boolean or number unions with undefined build their result in a stack box like ??, avoiding union allocation and release in hot code and making Queens run about 1.86 times faster - **changed** — A nullable element array read compiles to one guard and a direct null map instead of an out-of-line helper, making towers and richards faster - **changed** — An unannotated JavaScript var that every read sees stored takes the union of the sequence types its writes store, and a documented Array. parameter of a compiled npm package binds the storage its argument holds, so bcryptjs uses typed arrays for its Blowfish key schedule - **changed** — The call of the program entry from main, the entry's calls of file initializers, and an initializer's once-per-process calls are marked noinline, reducing backend time per program on several benchmarks - **added** — All 14 zlib one-shot codecs and the stream writable side accept strings, Buffers, any TypedArray, DataViews and ArrayBuffers, matching Node's conversion and rejection behaviour - **changed** — zlib.constants is one record per program built from the same table the member literals bake, matching Node in identity, typeof, key order, spread, destructuring and JSON, and the ZlibConstants interface accepts it - **added** — Every Brotli encoder and decoder parameter, zstd parameters with a dictionary and pledged source size, and their validation errors are covered through one-shots, callbacks, promises and streams - **added** — http.Server.maxHeadersCount, http.Server.maxRequestsPerSocket, the http.Server dropRequest event, http.ClientRequest.maxHeadersCount and https.Server.maxHeadersCount follow Node 24's limits, including the 431 response at the header-line cap, response-header truncation, the 503 with Connection: close for dropped requests, and the Keep-Alive max hint - **fixed** — In JavaScript, globalThis.X = class X {} or global.X = ... in any module makes X, new X(), X() and typeof X use that value instead of throwing ReferenceError - **fixed** — var c = void 0 compiles in JavaScript where it previously failed with SC2001 - **fixed** — A bare reference to a global declared with declare var or declare const, or in a declare global block, resolves through the global object so a value assigned to globalThis before the read is what the reference evaluates to, as in Node - **fixed** — a.length++, a.length--, and compound assignment on a native array's length grow and truncate the array and throw Node's RangeError for an invalid length, with the receiver and length read saved before the right side runs - **fixed** — The in operator over a brand-record union arm answers from the class's declared members, so a hoisted TextEncoder reports encodeInto - **fixed** — stdin and stdout imported from node:process bind the streams readline.createInterface expects - **added** — new ArrayBuffer(byteLength, { maxByteLength }) lowers from TypeScript as it does from JavaScript ##### 0.4.12 ###### Highlights - **Faster programs:** - A promise reaction that answers `unknown` or `any` runs without a fiber and its 512 KB stack: a `.then`, `.catch` or `.finally` handler of that result costs 111 ns instead of 2,060 ns a reaction, `finally` 605 ns instead of 8,464 and an `await` of an `unknown` 133 ns instead of 2,007, and a round no longer maps and unmaps a stack (112 calls before). Of the 1,017 programs that hold such a body or link the dynamic promise unit, 943 are smaller by a median of 3,776 bytes and at most 4,336; 74 are larger, four of them by more than 3%, because a stackless body is larger than the fiber it replaces. - A union box that dies is freed without reporting to the dispose hook, and the dispose filter and the queued-disposal pointer are tested once per release: the 39 fully typed benchmarks are all smaller by 240 to 72 bytes (median 112), the 5,772 runtime-only programs are 144 bytes smaller at the median, and of 75 run-time workloads 73 are neutral, two are faster (`stream-buffered-drain` 4.6%, `value-records` 3.1%) and none is slower. - Final fields and int32 slots stay in a class's static layout while no dynamic code in the program can observe the object. - `&&` and `||` over `boolean | undefined` or `number | undefined` build their result in a stack box like `??`: the hot function of Queens calls neither `scr_union_new_bool` nor `scr_union_release`, where it called three of each, and Queens runs 1.86 times faster (2,081.7 ms to 1,116.6 ms). The repository runtime suite's 52 measured workloads are byte-identical in size, print what Node prints and are 1.0% faster in geometric mean, and compile time is 0.97 times. - A nullable element array read is one guard and a direct null map instead of an out-of-line helper: towers runs 1.39 times faster with 223.0 instead of 315.9 instructions a move, and richards 1.06 times faster with 5.9% fewer instructions; every other runtime workload, compile time and program output are unchanged. - An unannotated JavaScript `var` that every read sees stored takes the union of the sequence types its writes store, and a documented `Array.` parameter of a compiled npm package binds the storage its argument holds, so bcryptjs keeps its Blowfish key schedule in typed arrays instead of the checked-dynamic tier: 13.6 s to 3.6 s on the repro, with output identical to Node, and the runtime benchmark workloads are byte-identical. - **Faster builds:** - The call of the program entry from `main`, the entry's calls of the file initializers and an initializer's once-per-process calls are `noinline`, so LLVM no longer inlines the whole program into `main` and re-optimizes it once per level of the chain: the backend's time per program drops on sieve (1.49 times faster), mandelbrot (1.37), nbody (1.35) and json-build (1.17), and run time and output are unchanged. - **Node.js parity:** - All 14 zlib one-shot codecs and the stream writable side accept strings, Buffers, any TypedArray as its byte range, DataViews and ArrayBuffers, with Node's `Buffer.from(buffer.buffer, …)` conversion and its `"chunk"` rejection of a bare ArrayBuffer; 48 zlib rows move from `partial` to `supported`. - `zlib.constants` is one record per program, built from the same table the member literals bake, so identity, `typeof`, key order, spread, destructuring and JSON match Node, and the declared `ZlibConstants` interface accepts the object; the row moves from `partial` to `supported`. - Every Brotli encoder and decoder parameter, zstd parameters with a dictionary and a pledged source size, and their validation errors are covered through the one-shots, callbacks, promises and streams; 24 zlib rows move from `partial` to `supported`, and `BrotliOptions` and `ZstdOptions` stay partial until the `info` option lands. - `http.Server.maxHeadersCount`, `http.Server.maxRequestsPerSocket`, `http.Server` `'dropRequest'`, `http.ClientRequest.maxHeadersCount` and `https.Server.maxH _[Truncated at 4000 characters — full notes: https://github.com/vercel-labs/scriptc/releases/tag/v0.4.12]_ ### v0.4.11 - Date: 2026-11-10 - Version: v0.4.11 - Original notes: https://github.com/vercel-labs/scriptc/releases/tag/v0.4.11 - Permalink: https://whatsnew.fyi/product/scriptc/releases/v0.4.11 - **changed** — A read through an untyped value of a typed record or array no longer copies it, making three React render loops execute 31% to 57% fewer instructions per render - **changed** — The untyped-record-probes workload runs about 72.8% faster, taking about 0.7 s instead of 0.18 s, against 0.13 s in Node - **changed** — A write by a name known only at run time costs 134 instructions instead of 300 when the receiver is a class instance, and 379 instead of 534 for a typed record - **changed** — A typed array read through an untyped value reads the element from the array itself, costing 508 instructions an item instead of 1,189 for an array of class instances and 346 instead of 1,026 for an array of numbers - **changed** — A property copied from a layout-mode object onto an array view takes the ordinary writable, enumerable, configurable write instead of the descriptor path - **changed** — A type that carries the collector header only for the weak analysis is emitted without cycle-capable children, so it nominates nothing to the collector - **changed** — An Object.freeze, Object.seal or Object.preventExtensions call that can never run no longer sets the program-wide integrity flag - **changed** — A switch on the code unit inside a scanning loop and a for without an initializer take the UTF-16 units copy, reducing non-ASCII character cost to 7.7 instructions instead of 26.7 - **changed** — A chain of five replaceAll calls with one-character literals becomes one scan at 410 instructions instead of 637 - **changed** — A question about one member of a Node stream held in an untyped value no longer builds the stream's member view when the name is absent or the question is in or Reflect.has - **changed** — Own-key questions a serializer asks about a value held under a closed record type are answered from the record's static layout and one runtime fact instead of building the key array - **changed** — A write to an untyped record by a name known only at run time costs 100 instructions instead of 361 - **changed** — A field append such as this.text += s is linear instead of quadratic, so a 1,000,000-character append completes where the previous build does not finish - **changed** — The first .length of a finished JSON document scans it 32 bytes a step and marks it ASCII instead of walking it through the index - **changed** — parts.join(sep) on a string[] costs 21.5 instructions an element instead of 53.0 with an empty separator - **changed** — A string | null, string | undefined or three-state union keyed in a Map or held in a Set stays the string pointer instead of being boxed in every position of the program - **changed** — A chain of setImmediate callbacks no longer grows the immediate queue, peaking at 1,660 KB of maximum resident size instead of 6,524 KB over 200,000 turns - **changed** — A statement that holds many values across steps that can throw compiles in linear time instead of quadratic release calls, building a dynamic object literal of 494 members in 15.9 s instead of 52 minutes 43 s ##### 0.4.11 ###### Highlights - **Faster programs:** - A read through an untyped value of a typed record or array no longer copies it: three React render loops execute 31% to 57% fewer instructions per render (294,339 to 197,439, 6,765,442 to 4,653,659 and 6,648,657 to 2,880,208 by callgrind), and the `untyped-record-probes` workload runs 72.8% faster, about 0.7 s instead of 0.18 s against 0.13 s in Node. Of 74 run-time workloads, 73 are neutral, one is faster and none is slower. - A write by a name known only at run time (`v[k] = x`) costs 134 instructions instead of 300 when the receiver is a class instance, 379 instead of 534 for a typed record, 349 instead of 528 for a parsed object and 319 instead of 501 for an object literal; `k in v` costs 112 instead of 278 for a class instance, an element read 109 instead of 174, a `typeof` test 87 instead of 125, and an object spread of three members 1,324 and 3,160 instead of 9,364. Executables that link the changed functions grow by 256 to 512 bytes. - A typed array read through an untyped value reads the element from the array itself: `v[i]` costs 508 instructions an item instead of 1,189 for an array of class instances and 346 instead of 1,026 for an array of numbers, with identical compiled code. - A property copied from a layout-mode object onto an array view takes the ordinary writable, enumerable, configurable write instead of the descriptor path: 300,000 Array subclass instances with three fields, each read once through a view, take 206 ms instead of 559 ms, against 18 ms in Node. - A type that carries the collector header only for the weak analysis is emitted without cycle-capable children, so it nominates nothing to the collector: a program of 200 plain records a round filed in a `WeakMap` over 25 rounds costs 242,083 instructions a round instead of 349,827, against 217,117 before the weak analysis needed the header. - An `Object.freeze`, `Object.seal` or `Object.preventExtensions` call that can never run, under `if (false)`, a `const` that is `false` or a comparison `--define` decides, no longer sets the program-wide integrity flag: a loop of five field stores and one object goes from 156 to 97 instructions an iteration, and its executable from 382,520 to 188,864 bytes. - A `switch` on the code unit inside a scanning loop and a `for` without an initializer take the UTF-16 units copy, at 7.7 instructions a character for non-ASCII text instead of 26.7 and 8.0 instead of 22.0 for a counter declared before the `for`, and a chain of five `replaceAll` calls with one-character literals becomes one scan at 410 instructions instead of 637. - A question about one member of a Node stream held in an untyped value no longer builds the stream's member view when the name is absent or the question is `in` or `Reflect.has`: `typeof h.flush` on a `Writable` costs 541 instructions instead of 33,952, and asked twice 867 instead of 73,587, with every answer unchanged. - The own-key questions a serializer asks about a value held under a closed record type, whether its prototype is `Object.prototype`, how many own keys it has and whether a key is a given name, are answered from the record's static layout and one runtime fact: 44 instructions a question instead of 985 for one member with `Object.keys`, 41 instead of 4,777 with `Reflect.ownKeys` and `Object.keys(r).length`, and 78 instead of 20,205 for 11 members. A record that kept a source object, a linked copy or a live capsule falls back to building the key array. - A write to an untyped record by a name known only at run time costs 100 instructions instead of 361, against 129 for the same write with the name in the source. A program with no such write is identical to its previous build. - A field append (`this.text += s`, `obj.text += s`, a record field) is linear instead of quadratic: at 10,000 characters an append costs 126 instructions instead of 2,225, and at 1,000,000 characters it costs 125 where the _[Truncated at 4000 characters — full notes: https://github.com/vercel-labs/scriptc/releases/tag/v0.4.11]_ ### v0.4.10 - Date: 2026-11-09 - Version: v0.4.10 - Original notes: https://github.com/vercel-labs/scriptc/releases/tag/v0.4.10 - Permalink: https://whatsnew.fyi/product/scriptc/releases/v0.4.10 - **changed** — A function literal written where a function with more parameters or other parameter types is expected is lowered once with that slot's parameter list instead of being wrapped in a signature adapter, so a loop calling a two-parameter callback 12 million times takes 154 ms instead of 1,544 ms - **changed** — Typed-array conversion between integer kinds stores each element directly instead of routing it through a double, so set() of 131,072 elements from a Uint8Array into a Uint16Array takes 1.9 ms instead of 61.2 ms - **changed** — Loop-bound versioning covers loops that write record fields, so advance in n-body drops its double counter and double-to-integer round trip per index, taking 132.5 ms instead of 158.4 ms at scale 1 under --layouts=4 --runs=16 - **changed** — new Error(message), Error(message) and super(message) into a builtin error base use the typed constructor when the message is a native string or undefined, making a throw-and-catch new Error("too big") executable 96,760 bytes instead of 307,392 bytes - **changed** — A same-shape clone snapshots its source's own keys only when the source keeps keys the plain copy would not reproduce, so a tree rewriter over Expr values built by literals runs in 311 ms instead of 3,769 ms - **changed** — A boxed function's name lookup sorts the module's closure-name table once and binary-searches it, so 600,000 boxes take 166 ms instead of 1,349 ms with 5,178 named functions - **changed** — A regular expression's character class is collected, sorted and merged once, so six patterns of two properties and 60 ranges each compile in 1.19 ms instead of 7.20 ms - **changed** — A start of a program with Node islands no longer parses the manifest or reads and hashes the island module tree, so a warm --version of pi takes 560 ms and 157.7 MB instead of 1,050 ms and 171.6 MB - **changed** — A regular expression anchored at the start is searched with one attempt when every path through the pattern meets a non-multiline ^ first - **changed** — A non-ASCII subject is matched on the bytes its string holds instead of being converted to UTF-16, so a tokenizer over non-ASCII text takes 12.9 ms instead of 4,876 ms - **changed** — s.slice(k) on a non-ASCII string no longer reads the whole string to find its end, so a slice of one takes 10.3 µs instead of 59.1 µs - **changed** — x instanceof C, new C() and C.member with C an untyped value, and computed reads on an untyped value, index a table from eight class values (sixty-four for computed reads) instead of walking every class, so a 240-class program takes 696 ms instead of 2,183 ms - **changed** — A list Object.values makes over a checked-dynamic object stays a native list through map, filter, flatMap, reduceRight and findLastIndex, with callbacks called directly, so the catalog-tables workload takes 95.0 ms instead of 186.7 ms - **changed** — A record that is one arm of a union stays the same object in a checked conversion, so a write through the union value reaches the record, and collecting a 300-record table takes 0.223 ms instead of 37.6 ms - **changed** — A loop over rows of numbers or numeric class instances runs the rows as masked lanes, each lane running its own inner loop with instance methods inlined, so the value-objects mandelbrot workload takes 0.7571 of its former wall time - **changed** — A loop's carried values are packed only when the pack gains more than it costs, so a break-even pack stays scalar, making a Mandelbrot sampling loop 17% faster with the same output - **changed** — A program's start-up code is emitted first in the image and its symbols and called runtime functions are ordered first at link time, so a program using fx-ts reports 186 to 191 minor faults instead of 227 to 230 and peaks at 3.0 to 3.1 MB instead of 4.2 to 4.5 MB - **changed** — A program with island packages it does not use starts in 2.2 ms instead of 75.1 ms, and one that uses them starts in 71.6 ms instead of 87.7 ms (60.5 ms cold instead of 76.0 ms), for executables 1.15% larger - **changed** — Math.random() draws from a per-thread xorshift128+ generator seeded once per thread from the system's secure source instead of asking the secure source for every number, so 5,000,000 calls take 20 ms instead of 184 ms - **changed** — node:crypto and WebCrypto keep using the secure source for every call - **changed** — A captured binding filled once before a closure over it is created, and never rebound afterwards, is captured by value instead of through a heap box, and a binding whose captures are all of that kind has no box, so the compiler's own emitted module has 10,422 boxed captured bindings instead of 43,472 ##### 0.4.10 ###### Highlights - **Faster programs:** - A function literal written where a function with more parameters or other parameter types is expected is lowered once with that slot's parameter list instead of being wrapped in a signature adapter: a loop that calls a two-parameter callback 12 million times takes 154 ms instead of 1,544 ms. - Typed-array conversion between integer kinds stores each element directly instead of routing it through a double: `set()` of 131,072 elements from a `Uint8Array` into a `Uint16Array` takes 1.9 ms instead of 61.2 ms, and the `typed-array-convert` workload runs at 0.65x Node's time instead of 1.29x. - Loop-bound versioning covers loops that write record fields, so `advance` in `n-body` drops its double counter and its double-to-integer round trip per index: scale 1 under `--layouts=4 --runs=16` takes 132.5 ms instead of 158.4 ms. - `new Error(message)`, `Error(message)` and `super(message)` into a builtin error base use the typed constructor when the message is a native string or `undefined`: a throw-and-catch `new Error("too big")` executable is 96,760 bytes instead of 307,392, and 774 of the 779 changed corpus executables are smaller. - A same-shape clone snapshots its source's own keys only when the source keeps keys the plain copy would not reproduce: a tree rewriter over `Expr` values built by literals runs in 311 ms instead of 3,769 ms once the program also parses one `Expr` and prints it. - A boxed function's name lookup sorts the module's closure-name table once and binary-searches it: with 5,178 named functions, 600,000 boxes take 166 ms instead of 1,349 ms. - A regular expression's character class is collected, sorted and merged into the class once: six patterns of two properties and 60 ranges each compile in 1.19 ms instead of 7.20 ms. - A start of a program with Node islands no longer parses the manifest or reads and hashes the island module tree: a warm `--version` of pi takes 560 ms and 157.7 MB instead of 1,050 ms and 171.6 MB, and makes 14,000 system calls instead of 232,000. - A regular expression anchored at the start is searched with one attempt when every path through the pattern meets a non-multiline `^` first, a non-ASCII subject is matched on the bytes its string holds instead of being converted to UTF-16, and `s.slice(k)` on a non-ASCII string no longer reads the whole string to find its end: a tokenizer over non-ASCII text takes 12.9 ms instead of 4,876 ms against Node's 90.3 ms, a loop over a 600,000-character text takes 0.30 s instead of 381 s, a slice of one takes 10.3 µs instead of 59.1 µs, and a regular-expression call on a new non-ASCII string takes 0.04 µs instead of 64 µs at 100,000 characters. The 260 programs that link the regular-expression unit grow by 832 to 18,880 bytes. - `x instanceof C`, `new C()` and `C.member` with `C` an untyped value, and a computed read on an untyped value, index a table from eight class values, sixty-four for computed reads, instead of walking every class of the program: a 240-class program takes 696 ms instead of 2,183 ms. - A list `Object.values` makes over a checked-dynamic object stays a native list through `map`, `filter`, `flatMap`, `reduceRight` and `findLastIndex`, and the callbacks are called directly: the `catalog-tables` workload takes 95.0 ms instead of 186.7 ms. - A record that is one arm of a union stays the same object in a checked conversion, so a write through the union value reaches the record: collecting a 300-record table takes 0.223 ms instead of 37.6 ms, and the `stream-buffered-drain` workload takes 44.7 ms instead of 59.8 ms. - A loop over rows of numbers or numeric class instances runs the rows as masked lanes, each lane running its own inner loop with the instance methods inlined: the `value-objects` mandelbrot workload takes 0.7571 of its former wall time, and every other runtime workload's generated code is unchanged. - A loop's carried values are packed only when _[Truncated at 4000 characters — full notes: https://github.com/vercel-labs/scriptc/releases/tag/v0.4.10]_ ### v0.4.9 - Date: 2026-11-06 - Version: v0.4.9 - Original notes: https://github.com/vercel-labs/scriptc/releases/tag/v0.4.9 - Permalink: https://whatsnew.fyi/product/scriptc/releases/v0.4.9 - **changed** — Typed-array and dense number[] loops run as lane loops that process whole vectors and finish remainders with the scalar loop - **changed** — Typed arrays copy in bulk for construction, set() and TypedArray.from(view) between compatible element kinds - **changed** — Callees called in a loop with an array parameter of one known length are compiled for that length, removing a per-element hole guard - **changed** — Byte loops that count a constant product or index downwards are versioned on their trip count - **changed** — Dynamic computed access has a faster path for byte-array stores and indexed charCodeAt - **changed** — Buffer.write with latin1 or ascii encoding uses the word-wise encoder - **changed** — Untyped process.stdout.write and process.stderr.write calls reach one runtime call - **added** — Opt-in --stdout-buffering keeps console output in a 64 KiB buffer when stdout is not a terminal - **changed** — The collector does less work at collection points and sizes its nursery window from what it collects - **changed** — Object chunks of 1 MiB or more are allocated from huge pages - **changed** — Large immutable number tables are built in the program image, reducing small CLI program startup time - **changed** — An optional-element array read skips the runtime getter - **changed** — --cpu-dispatch copies only functions whose body has a loop - **changed** — A failing program's whole-slot relower runs on the pass whose result is kept, after the general-streams relower - **changed** — A build whose inputs did not change returns the existing executable on disk without lowering, emitting LLVM, or linking - **changed** — Runtime-pack selections and link-driver jobs are kept in the build cache - **changed** — Partition groups are numbered from the file name relative to the entry module - **changed** — Repeated frontend loads share one checker project so parsed files carry between passes, and source parses and alias answers are cached - **changed** — Npm-static package selection is memoized per build - **changed** — Lowering reads mapped symbol names, union arm keys and library-file answers once instead of repeatedly - **changed** — A build of the compiler's own sources loads a smaller frontend graph and the bundled-library scan asks once per directory - **changed** — Windows release executables request no debug info, reducing hello world executable size - **changed** — Large shared buffers get their own mapping, reducing peak memory in multi-checker type checks - **added** — node:dns lowers lookup, lookupService, getServers and default result-order functions with Node's argument ladder, error codes and error properties - **changed** — node:dns address, hint and error-code constants come from the target libc - **added** — node:tls accepts tls.createServer({ SNICallback }) without a default cert/key pair - **added** — node:readline interfaces have prependListener, prependOnceListener, removeListener, off, removeAllListeners, listenerCount and eventNames - **added** — readline question(query, { signal }, callback) cancels on abort - **changed** — process.allowedNodeEnvironmentFlags reports the target's NODE_OPTIONS flag names - **added** — process emits 'beforeExit' and has abort() - **added** — ChildProcess reports spawnfile and spawnargs ##### 0.4.9 ###### Highlights - **Faster programs:** - Typed-array and dense `number[]` loops run as lane loops: elementwise stores and dense sums, counts and stores run whole vectors and finish the remainder with the scalar loop. The typed-array benchmark runs 1.83x faster, and integer sums and counts 1.56x. - Typed arrays copy in bulk where the element kinds allow it: construction, `set()` and `TypedArray.from(view)` between typed arrays move same-width integer pairs with one `memmove` and convert every other pair in one loop. A `Uint8ClampedArray` over a decoded buffer runs 1.9x faster, at 1.19x Node's time instead of 2.39x. - A callee called in a loop with an array parameter of one known length is compiled for that length, so the loop loses a per-element hole guard: n-body at 50,000,000 iterations is 5.0% faster. - Byte loops that count a constant product and byte loops that index downwards are versioned on their trip count: 1.31x and 5.98x on probes of those shapes (1,305 ms to 1,000 ms and 1,140 ms to 190 ms). - Dynamic computed access has a faster path: the fasta benchmark port runs at 1.73x Node's time instead of about 3.2x, a byte-array store falls from 63.3 to 20.4 ns per operation, and an indexed `charCodeAt` from 172.0 to 90.2 ns. - `Buffer.write` with a latin1 or ascii encoding uses the word-wise encoder: a 16 MB write is 55% faster, from 3.9x to 1.75x Node's time. Indexed scans of long non-ASCII texts are 47-51% faster. - Untyped `process.stdout.write(text)` and `process.stderr.write(text)` calls reach one runtime call: 10,000,000 writes to `/dev/null` take 1.38 s instead of 3.13 s. The opt-in `--stdout-buffering` keeps console output in the 64 KiB buffer when stdout is not a terminal: 10,000,000 `console.log` lines to a pipe take 0.54 s instead of 6.3 s. - The collector does less work at collection points and sizes its nursery window from what it collects: channel-messages is 12.4% faster and worker-messages 5.9% faster. Object chunks of 1 MiB or more come from huge pages, an async function's statement frame stays out of a group when nothing in it awaits, and depth-21 binary-trees runs at 0.84 of its former wall time with 199 MB of peak memory instead of 253 MB. - Large immutable number tables are built in the program image, so a small CLI program starts in 1.21 ms instead of 1.51 ms. An optional-element array read skips the runtime getter (13% faster, 35% fewer instructions), and 200,000 calls through builtin function values take 4.6 ms against Node's 75.3 ms. - `--cpu-dispatch` copies only the functions whose body has a loop: 1.305x on mandelbrot and 1.068x on n-body against the default build. - **Faster builds:** - A failing program's whole-slot relower runs on the pass whose result is kept, after the general-streams relower: a large program that takes the general-streams relower builds 1.22x faster (1,141.9 s to 932.5 s cold). - A build whose inputs did not change returns the executable already on disk, without reading a source, lowering, emitting LLVM, generating objects or linking: a no-change build takes 16.6 ms instead of 71.9 ms, 17.6 ms instead of 426.8 ms with an LLVM helper set, and 58.6 ms instead of 959 ms with a profile and an FFI manifest. - Runtime-pack selections and link-driver jobs are kept in the build cache: cold builds take 16.3 ms less on average over 369 paired builds. - Partition groups are numbered from the file name relative to the entry module, so a warm one-function edit that adds a module recompiles 3 of 64 partitions and the module-init pass is 19.5% faster. - A build's repeated frontend loads share one checker project, so parsed files carry between passes: a large multi-package program builds 15.9% faster (652.96 s to 549.05 s). Source parses are cached and declaration type queries batched (59,075 source-parser requests become 2,595), alias answers are memoized for one load (573,047 requests become 190,448), and npm-static package selection is memo _[Truncated at 4000 characters — full notes: https://github.com/vercel-labs/scriptc/releases/tag/v0.4.9]_ ### v0.4.8 - Date: 2026-11-03 - Version: v0.4.8 - Original notes: https://github.com/vercel-labs/scriptc/releases/tag/v0.4.8 - Permalink: https://whatsnew.fyi/product/scriptc/releases/v0.4.8 - **changed** — Counted loops run two iterations at a time where the iterations are independent, making a single-file mandelbrot port 39% faster - **changed** — Class instances forming a tree keep their nodes in the group arena at 16 bytes per node instead of 24, making a class-based binary-trees program 20% faster and reducing its peak memory by 33% - **changed** — A dictionary update fuses its second hash probe into the following write, making dictionary walks 4.5% faster - **changed** — Number and identity-word map keys hash with one multiply instead of two, making number-key maps 6.9% faster - **changed** — A run of dynamic property reads on one object shares one guard, untyped code calls typed records' dynamic parameters through specialized calls, and dynamic class tables dispatch on an indexed class key - **changed** — Compact class fields store 32-bit references to arrays, maps, sets and instances, reducing memory use for programs that keep many objects - **changed** — musl executables use an allocator built for the program they link into, making runtime benchmarks 2.9% faster, line-by-line reading 39% faster, and reducing an HTTP server's peak memory from 34.6 MiB to 2.4 MiB - **changed** — musl executables use musl's string comparison and a faster getenv - **changed** — x86-64-v3 builds keep baseline copies of the program's functions - **changed** — The thin-LTO pre-link runs at the build's optimization level, making a cold build of a large program 2.4% faster with the LLVM stage 10% faster and unchanged runtime speed - **changed** — The partition cache also covers builds that name their LLVM helper with SCRIPTC_LLVM_HELPER, making a warm one-function edit of a large program rebuild 13% faster in that setup - **changed** — A build shares one frontend services scope across its loads, memoizes type mappings per generic binding context, shares type-memo entries that read no type-parameter binding, and computes its preflight diagnostics once - **changed** — LLVM partitions are sized from the host's threads as well as the module, and IR functions decode without a whole-document number reviver - **changed** — The LLVM helper's identity is checked once per install and the installed compiler package digest is reused - **changed** — node:path, node:url and node:os match Node 24, node:buffer matches Node 24's Buffer members, encodings and module surface - **added** — node:zlib adds the zstd API - **added** — util.inspect supports showHidden, numericSeparator, maxStringLength, maxArrayLength and the getters option - **added** — console.dir supports showHidden - **changed** — Errors print from their stack in util.format, util.inspect and console.log - **changed** — child_process lowers the shell forms, typed spawnSync options including cwd and input, the cwd option of the exec and execFile callback forms, and child stdio pipes typed as node:stream streams - **changed** — node:http applies Node's HTTP/1 parser checks, answers ClientRequest listeners, reports late Transfer-Encoding errors, and lowers the server 'clientError' event and the URL-plus-options request form with protocol and shorthand headers - **added** — process.stdin has its readable surface - **changed** — readline accepts process.stderr output and runtime question options - **changed** — getEventListeners answers for EventTarget receivers - **added** — ArrayBuffer transfer, detach and resizable or growable buffers compile - **fixed** — A cgroup CPU quota below one CPU is floored at one - **changed** — Node.js is pinned to 24.22.1 - **added** — More early errors are reported - **changed** — RegExp coerces its constructor arguments - **added** — The async-generator yield* delegation protocol is implemented - **changed** — Class values honor Symbol.hasInstance - **changed** — Promise statics accept a foreign constructor - **changed** — Iterator helpers run on a live Iterator.prototype - **added** — BigInt typed arrays work in the checked-dynamic tier - **added** — Builtin global functions and classes have values in JavaScript sources - **changed** — Generator parameters bind at the call - **changed** — Higher-order functions honor thisArg - **changed** — Pattern defaults take their binding's name - **changed** — Object literals accept __proto__ with any prototype value - **changed** — Coverage lowers once with the islands the build proves, packages that are not opted in keep their JavaScript out of the inferred surface, and npm-static packages are classified only from real loads - **fixed** — A record reached through an alias keeps writes made through either name when its shape widens under the shape overlay - **added** — More record, union and generic patterns compile, including overload sets held as values, class overload declarations, unions of a class and its subclasses, Object.assign over a narrowed record arm, and partial record views that gain keys through dynamic writes ##### 0.4.8 ###### Highlights - **Faster programs:** - Counted loops run two iterations at a time where the iterations are independent: a single-file mandelbrot port is 39% faster. - A class whose instances form a tree, each node owned by one parent, keeps its nodes in the group arena that holds the rest of the tree, at 16 bytes per node instead of 24: a class-based binary-trees program is 20% faster and uses 33% less peak memory. - A dictionary update fuses its second hash probe into the write that follows (4.5% faster on dictionary walks), and number and identity-word map keys hash with one multiply instead of two (6.9% faster on number-key maps). - A run of dynamic property reads on one object shares one guard, untyped code calls typed records' dynamic parameters through specialized calls, and dynamic class tables dispatch on an indexed class key. - Compact class fields store 32-bit references to arrays, maps, sets and instances, so programs that keep many objects use less memory. - musl executables use an allocator built for the program they link into: across the runtime benchmarks they are 2.9% faster, line-by-line reading is 39% faster, and an HTTP server's peak memory falls from 34.6 MiB to 2.4 MiB. musl executables also use musl's string comparison and a faster `getenv`. - x86-64-v3 builds keep baseline copies of the program's functions. - **Faster builds:** - The thin-LTO pre-link runs at the build's optimization level: a cold build of a large program is 2.4% faster, with the LLVM stage 10% faster and the same runtime speed. - The partition cache also covers builds that name their LLVM helper with `SCRIPTC_LLVM_HELPER`: a warm one-function edit of a large program rebuilds 13% faster in that setup. - A build shares one frontend services scope across its loads, memoizes type mappings per generic binding context, shares type-memo entries that read no type-parameter binding, and computes its preflight diagnostics once. Island rounds share their program facts across lowering passes. - LLVM partitions are sized from the host's threads as well as the module, the emission passes read their node scans from one recorded walk, and IR functions decode without a whole-document number reviver. - The LLVM helper's identity is checked once per install, the installed compiler package digest is reused, and edit builds keep less per-build bookkeeping. The native compiler's optimization profile is refreshed. - **Node.js parity:** - node:path, node:url and node:os match Node 24. node:buffer matches Node 24's Buffer members, encodings and module surface. node:zlib adds the zstd API. - `util.inspect` supports `showHidden`, `numericSeparator`, `maxStringLength`, `maxArrayLength` and the `getters` option, `console.dir` supports `showHidden`, and errors print from their stack in `util.format`, `util.inspect` and `console.log`. - child_process lowers the shell forms, typed `spawnSync` options including `cwd` and `input`, the `cwd` option of the exec and execFile callback forms, and child stdio pipes typed as node:stream streams. - node:http applies Node's HTTP/1 parser checks, answers ClientRequest listeners, reports late Transfer-Encoding errors, and lowers the server `'clientError'` event and the URL-plus-options request form with `protocol` and shorthand `headers`. - `process.stdin` has its readable surface, readline accepts `process.stderr` output and runtime question options, and `getEventListeners` answers for EventTarget receivers. - ArrayBuffer transfer, detach and resizable or growable buffers compile. A cgroup CPU quota below one CPU is floored at one. - Node.js is pinned to 24.22.1. - **JavaScript semantics (Test262):** - More early errors are reported, `RegExp` coerces its constructor arguments, and the async-generator `yield*` delegation protocol is implemented. - Class values honor `Symbol.hasInstance`. Promise statics accept a foreign constructor. Iterator helpers run on a live `Iterato _[Truncated at 4000 characters — full notes: https://github.com/vercel-labs/scriptc/releases/tag/v0.4.8]_ ### v0.4.7 - Date: 2026-10-31 - Version: v0.4.7 - Original notes: https://github.com/vercel-labs/scriptc/releases/tag/v0.4.7 - Permalink: https://whatsnew.fyi/product/scriptc/releases/v0.4.7 - **added** — Intl.Segmenter splits text into graphemes and words, and toLocaleString uses the default locale, on Linux x64 (ICU 78.3) - **changed** — Malformed UTF-8 in directory entries and command-line arguments decodes to U+FFFD, as in Node - **changed** — node:http emits Node's abort events, matches Node's outgoing header behavior, and checks http.request options before a socket opens - **changed** — Sockets after setEncoding pipe decoded strings, untyped listen ports are validated, and net errors carry Node's system properties - **changed** — node:querystring and node:string_decoder match Node 24 for values known only at run time, and node:path matches Node 24's path tests - **changed** — TextDecoder matches Node's errors, options and printing - **added** — structuredClone copies Maps and Sets - **added** — SharedArrayBuffer, DataView, BigInt64Array, BigUint64Array, Proxy and Intl can be read as values - **changed** — process.memoryUsage() counts ArrayBuffer storage - **changed** — import() of a specifier that cannot be resolved rejects with ERR_MODULE_NOT_FOUND - **changed** — fs reads return Buffers in programs that can observe the difference, and values held from process.env read the live environment - **changed** — EventEmitter and stream listeners are called with the emitter as this, and listeners that read arguments receive every argument - **changed** — The EventEmitter leak warning is delivered at exit, and 'error' events accept non-Error payloads - **changed** — readline accepts listener values and ends lines at U+2028 and U+2029 - **changed** — fs.watch names the changed entry, and assert.throws reports validation-object failures as Node does - **changed** — Executables ignore SIGPIPE and SIGXFSZ, as Node does - **fixed** — Timer deadlines hold on macOS, and intervals re-arm as in Node - **added** — Timeout delay warnings are emitted, and untyped timer delays convert with ToNumber - **changed** — process.emitWarning, process.kill, process.chdir and os.userInfo behave as in Node - **changed** — Replacing process.stdout.write or process.stderr.write receives the arguments, Buffers and whole writes that Node passes - **fixed** — Each evaluation of a class expression creates its own class, and private static members check their brand - **fixed** — Wrapper objects for strings, numbers and booleans work in JavaScript sources, and Set, Map and weak-collection methods can be read as values - **fixed** — for...in runs over a value that may be null or undefined, and a null or undefined destructuring source throws Node's TypeError - **fixed** — Functions held in records and arrays keep their names ##### 0.4.7 ###### Highlights - **Node.js parity:** - `Intl.Segmenter` splits text into graphemes and words, and `toLocaleString` uses the default locale, on Linux x64 (ICU 78.3). Malformed UTF-8 in directory entries and command-line arguments decodes to U+FFFD, as in Node. - node:http emits Node's abort events, matches Node's outgoing header behavior, and checks `http.request` options before a socket opens. Sockets after `setEncoding` pipe decoded strings, untyped listen ports are validated, and net errors carry Node's system properties. - node:querystring and node:string_decoder match Node 24 for values known only at run time, and node:path matches Node 24's path tests. `TextDecoder` matches Node's errors, options and printing. - `structuredClone` copies Maps and Sets. `SharedArrayBuffer`, `DataView`, `BigInt64Array`, `BigUint64Array`, `Proxy` and `Intl` can be read as values. `process.memoryUsage()` counts ArrayBuffer storage. - `import()` of a specifier that cannot be resolved rejects with `ERR_MODULE_NOT_FOUND`. fs reads return Buffers in programs that can observe the difference. Values held from `process.env` read the live environment. - EventEmitter and stream listeners are called with the emitter as `this`, listeners that read `arguments` receive every argument, and the leak warning is delivered at exit. `'error'` events accept non-Error payloads. - readline accepts listener values and ends lines at U+2028 and U+2029. `fs.watch` names the changed entry. `assert.throws` reports validation-object failures as Node does. - Executables ignore SIGPIPE and SIGXFSZ, as Node does. Timer deadlines hold on macOS, and intervals re-arm as in Node. Timeout delay warnings are emitted, and untyped timer delays convert with ToNumber. - `process.emitWarning`, `process.kill`, `process.chdir` and `os.userInfo` behave as in Node. Replacing `process.stdout.write` or `process.stderr.write` receives the arguments, Buffers and whole writes that Node passes. - JavaScript semantics from Test262: each evaluation of a class expression creates its own class, private static members check their brand, wrapper objects for strings, numbers and booleans work in JavaScript sources, and Set, Map and weak-collection methods can be read as values. - `for...in` runs over a value that may be null or undefined. A null or undefined destructuring source throws Node's TypeError. Functions held in records and arrays keep their names. - **Node islands:** - Sloppy-mode modules and modules that patch builtins run in Node islands automatically. - Islands can `require` CommonJS modules and hold builtin classes, and garbage cycles are collected across the program's heap and Node's. - Island modules whose load is deterministic are deferred until first use, and shared modules resolve by real path, so caches reached through symbolic links work. - **Faster programs:** - Untyped code calls methods of compiled class instances inline. - Integer arithmetic: sums built on unsigned shifts stay in 32 bits, and loops are versioned on the range of locals they write as remainders. Saturating loops that run together test their exit every fourth iteration. - Number-key map lookups test the direct index once and inline the probe in loops. - Streams: taking from a Readable's buffered queue is constant time, object-mode stream callbacks do less work per chunk and keep typed records unboxed, and a line goes to a single line listener directly. - fs streams read and write cached regular files on the loop thread, worker threads that allocate large blocks no longer reread the process's memory map, and constructors store their own fields without releasing a previous value. - `--cpu-dispatch` keeps x86-64-v3 code from running slower than the baseline. - Profile-guided builds compile the functions a profile never ran as cold code, and weigh profile matches by the profile's counts. The runtime profile is refreshed. - x86_64 musl executables use SSE2 me _[Truncated at 4000 characters — full notes: https://github.com/vercel-labs/scriptc/releases/tag/v0.4.7]_ ### v0.4.6 - Date: 2026-10-29 - Version: v0.4.6 - Original notes: https://github.com/vercel-labs/scriptc/releases/tag/v0.4.6 - Permalink: https://whatsnew.fyi/product/scriptc/releases/v0.4.6 - **added** — Node islands let programs load Node.js in-process on first use and run npm packages that scriptc does not compile. - **added** — Native values, closures and promises can be passed into Node islands by reference, and island handles, classes and collections can be used from compiled code. - **added** — Modules are shared between a program and its Node islands, and island modules are evaluated only when the program uses them. - **changed** — Once Node loads, the runtime's event loop runs on Node's libuv, and programs exit cleanly with Node loaded. - **added** — The --exceptions=rare option unwinds through recursive functions instead of checking a status after each call. - **added** — The --static option builds static Linux executables and is opt-in. - **added** — The --large-pages option moves executable code onto huge pages. - **added** — The --cpu-dispatch option adds x86-64-v3 copies of hot functions. - **added** — Type patches can replace a package's declaration files or supply missing declarations. - **added** — The shape overlay types JavaScript from facts the compiler proves and is opt-in. - **changed** — Exceptions raise through cached unwind plans on x86-64 Linux, and every native function has an unwind table entry. - **changed** — Ordinary objects are stored as a layout plus value slots, unions of classes are the instance pointer itself, and class instances that stay in their frame use frame storage. - **changed** — Object groups that die together are allocated in arenas, and the cycle collector does cheaper trial deletion and adapts its nursery trigger. - **changed** — The speed runtime is optimized with a committed runtime profile, and Math functions are computed as V8 does, with libm linked only when needed. - **changed** — Loop optimizations include running short constant-count loops together, versioning for and while loops on the ranges their locals enter with, unrolling counted loops by the period of a guard, and inlining small leaf functions called from loops. - **changed** — Typed array access reads header fields once at a speculative loop's entry, keeps products under bitwise operators in 32 bits, and uses plain accesses for shared typed-array elements at a counted loop's counter. - **changed** — UTF-16 indexes of long non-ASCII strings map in constant time, ASCII case conversion works eight bytes at a time, template literals allocate at their exact length, and strings iterate over their bytes. - **changed** — Untyped code reads class instance fields inline at dynamic property sites with two inline-cache entries, iterates native arrays without type-name scans, and passes numbers to directly called untyped functions as JavaScript values. - **changed** — fs thread-pool completions and pool-thread writes make fewer syscalls, and sockets, clients and agent entries register in constant time. - **changed** — fetch() reuses keep-alive connections, and web streams, WritableStream and TransformStream run natively. - **changed** — Large executables map their text with 2 MiB pages, and freed heap pages are returned to the system after the frontend is disposed. - **changed** — Small release and speed programs compile in balanced partitions, the entry module's top-level code gets its own partition, and unchanged partitions stay cached across edits. - **changed** — Optimized executables that stay one partition generate code concurrently, and emission's workers stay busy. - **changed** — The native compiler is laid out by context-sensitive profiles collected in two phases. - **changed** — Type checking uses a shared tsc-ts server by default on Linux and macOS, and lib diagnostics are reused across options and module sets that cannot change them. - **changed** — Rebuilds skip the helper version probe and the digests of unchanged files, and the CLI links without huge text pages so cold builds use less memory. - **added** — Error.captureStackTrace is supported. - **added** — Node's navigator is supported, and builtin globals are read through the global object. - **changed** — Unhandled rejections are reported in programs without async work. - **changed** — node:zlib is built on the zlib that Node bundles. - **added** — Response.clone and Request.clone work on typed values. - **changed** — Fetch bodies have the members of a web ReadableStream. - **changed** — Redirects whose chunked body has not ended are followed. - **added** — Classes that extend Array compile. - **added** — Strings spread into their code points. - **fixed** — Frozen checked records stay frozen. - **changed** — Sloppy-mode this is the global object. - **added** — util.format supports runtime format strings, and inspect.custom and colors are supported. - **added** — Untyped promisify is supported. - **added** — scriptc reads TypeScript 7.1's binary AST format and API server beside 7.0's. - **changed** — tsc-ts is updated to 0.0.10. ##### 0.4.6 ###### Highlights - **Node islands:** programs can load Node.js in-process on first use and run npm packages that scriptc doesn't compile in Node islands. - Native values, closures and promises pass into islands by reference, and island handles, classes and collections can be used from compiled code. - Modules are shared between a program and its islands, and island modules are evaluated only when the program uses them. - Once Node loads, the runtime's event loop runs on Node's libuv, and programs exit cleanly with Node loaded. - **New options:** - `--exceptions=rare` unwinds through recursive functions instead of checking a status after each call. - `--static` builds static Linux executables (opt-in). - `--large-pages` moves executable code onto huge pages; `--cpu-dispatch` adds x86-64-v3 copies of hot functions. - Type patches replace a package's declaration files or supply missing declarations. - The shape overlay types JavaScript from facts the compiler proves (opt-in). - **Faster programs:** - Exceptions raise through cached unwind plans on x86-64 Linux, and every native function has an unwind table entry. - Ordinary objects are stored as a layout plus value slots; unions of classes are the instance pointer itself; class instances that stay in their frame use frame storage. - Object groups that die together are allocated in arenas, and the cycle collector does cheaper trial deletion and adapts its nursery trigger. - The speed runtime is optimized with a committed runtime profile, and Math functions are computed as V8 does, with libm linked only when needed. - Loops: short constant-count loops run together, for and while loops are versioned on the ranges their locals enter with, counted loops unroll by the period of a guard, and small leaf functions called from loops are inlined. - Typed arrays: header fields are read once at a speculative loop's entry, products under bitwise operators stay in 32 bits, and shared typed-array elements are read and written with plain accesses at a counted loop's counter. - Strings: UTF-16 indexes of long non-ASCII strings map in constant time, ASCII case converts eight bytes at a time, template literals allocate at their exact length, and strings iterate over their bytes. - Untyped code: class instance fields are read inline at dynamic property sites with two inline-cache entries, native arrays iterate without type-name scans, and numbers pass to directly called untyped functions as JavaScript values. - I/O: fs thread-pool completions and pool-thread writes make fewer syscalls; sockets, clients and agent entries register in constant time; fetch() reuses keep-alive connections; web streams, WritableStream and TransformStream run natively. - Large executables map their text with 2 MiB pages, and freed heap pages are returned to the system after the frontend is disposed. - **Faster builds:** - Small release and speed programs compile in balanced partitions, the entry module's top-level code gets its own partition, and unchanged partitions stay cached across edits. - Optimized executables that stay one partition generate code concurrently, and emission's workers stay busy. - The native compiler is laid out by context-sensitive profiles collected in two phases. - Type checking uses a shared tsc-ts server by default on Linux and macOS, and lib diagnostics are reused across options and module sets that cannot change them. - Rebuilds skip the helper version probe and the digests of unchanged files, and the CLI links without huge text pages, so cold builds use less memory. - **Node.js parity:** - `Error.captureStackTrace`, Node's navigator, builtin globals read through the global object, and unhandled rejections reported in programs without async work. - node:zlib is built on the zlib Node bundles; `Response.clone` and `Request.clone` work on typed values; fetch bodies have the members of a web ReadableStream; redirects whose chunked bod _[Truncated at 4000 characters — full notes: https://github.com/vercel-labs/scriptc/releases/tag/v0.4.6]_ ### v0.4.5 - Date: 2026-10-25 - Version: v0.4.5 - Original notes: https://github.com/vercel-labs/scriptc/releases/tag/v0.4.5 - Permalink: https://whatsnew.fyi/product/scriptc/releases/v0.4.5 - **fixed** — Release builds no longer read a typed array's length without a header load that could read a freed view - **fixed** — net.Socket write() returns Node's backpressure boolean and fires 'drain' - **fixed** — Super calls in JavaScript method values call the declared base method - **fixed** — Calling a non-function through an asserted callee throws Node's TypeError - **changed** — Exceptions propagate by unwinding from directly called functions on Linux instead of status checks after every call - **changed** — Typed-array loops prove bounds and keep views disjoint in more cases, including views over shared memory in worker programs - **changed** — Integer loops stay in integers across nested counted loops, pure helper calls, powers of two and byte reads - **changed** — Lone array callbacks run as loops with their bodies inlined, and row sums run two rows per pass - **changed** — Number-key maps look keys up on their integer view and write updates through the entry the read found, and small number-key maps use a direct index - **changed** — Base64 decodes eight characters at a time, Buffers fill, swap byte order and decode utf16le a word at a time, readline splits input in one scan, and string scans over non-ASCII strings use their UTF-16 units - **changed** — Property caches also cache absent properties, object literal members go through the store caches, calls on plain arrays skip the method ladder, and dynamic values dispose without key-cache walks - **changed** — JSON parses into discriminated unions, and dynamic values convert into nested unions, in one pass - **changed** — BigInt division settles quotients from the top limbs, and limb shifts are vectorized - **changed** — Function bodies are emitted on up to eight workers, including in dev builds, and repeated work in LLVM module emission is cut - **changed** — Linux executables link with lld when the driver finds it, and unchanged executables are reused without selecting the runtime pack - **changed** — Dev builds reuse frontend output after edits that keep token positions, and unchanged frontend inputs are checked by file identity before hashing - **changed** — Lowering fetches only the syntax trees it reads, and the large compiler tables are built on first use - **changed** — Release builds of the native compiler use a profile collected on the release commit - **added** — Type checking can use a tsc-ts server shared by later builds (opt-in) - **added** — Crypto support for RSA key generation lengths, RSA-PSS keys, encrypted private keys, X509Certificate fields and methods, and TLS certificates and tls.Server contexts, matching Node.js - **added** — zlib Brotli compression and decompression, matching Node.js - **changed** — Dates are mutable objects with Node's setters and conversions, and URL hosts and paths parse as the URL Standard does, including non-ASCII hosts with UTS #46 - **changed** — Math, JSON and Reflect are real objects in JavaScript, objects can inherit from JavaScript class prototypes, and typed arrays held as untyped values support named properties and Symbol.species - **changed** — JSON.parse syntax errors use V8's messages and positions, and Object.getPrototypeOf of an Error answers Error.prototype - **changed** — util.inspect of dynamic classes, functions and %o arguments, and Symbol.toStringTag fields and getters, match Node - **changed** — More npm and CommonJS dependencies compile statically, including namespace-style packages with guarded declarations and var exports, and untyped Maps, Sets and arrays are typed from their uses ##### 0.4.5 ###### Highlights - **Fixes:** - Release builds read a typed array's length without a header load that could read a freed view. - `net.Socket` `write()` returns Node's backpressure boolean and fires `'drain'`. - Super calls in JavaScript method values call the declared base method. - Calling a non-function through an asserted callee throws Node's TypeError. - **Faster programs:** - Exceptions propagate by unwinding from directly called functions on Linux, instead of status checks after every call. - Typed-array loops prove their bounds and keep their views disjoint in more cases, including views over shared memory in worker programs; integer loops stay in integers across nested counted loops, pure helper calls, powers of two and byte reads. - Lone array callbacks run as loops with their bodies inlined, and row sums run two rows per pass. - Number-key maps look keys up on their integer view and write updates through the entry the read found; small number-key maps use a direct index. - Strings: base64 decodes eight characters at a time; Buffers fill, swap byte order and decode `utf16le` a word at a time; readline splits input in one scan; string scans over non-ASCII strings use their UTF-16 units. - Untyped code: property caches also cache absent properties, object literal members go through the store caches, calls on plain arrays skip the method ladder, and dynamic values dispose without key-cache walks. - JSON parses into discriminated unions, and dynamic values convert into nested unions, in one pass. - BigInt division settles quotients from the top limbs, and limb shifts are vectorized. - **Faster builds:** - Function bodies are emitted on up to eight workers, including in dev builds, and repeated work in LLVM module emission is cut. - Linux executables link with lld when the driver finds it, and unchanged executables are reused without selecting the runtime pack. - Dev builds reuse their frontend output after edits that keep token positions, and unchanged frontend inputs are checked by file identity before hashing. - Lowering fetches only the syntax trees it reads, and the large compiler tables are built on first use. - Release builds of the native compiler use a profile collected on the release commit. - Type checking can use a tsc-ts server shared by later builds (opt-in). - **Node.js parity:** - Crypto: RSA key generation lengths, RSA-PSS keys, encrypted private keys, `X509Certificate` fields and methods, and TLS certificates and `tls.Server` contexts. - zlib: Brotli compression and decompression. - Dates are mutable objects with Node's setters and conversions; URL hosts and paths parse as the URL Standard does, including non-ASCII hosts with UTS #46. - `Math`, `JSON` and `Reflect` are real objects in JavaScript; objects can inherit from JavaScript class prototypes; typed arrays held as untyped values support named properties and `Symbol.species`. - Error messages: `JSON.parse` syntax errors use V8's messages and positions; `Object.getPrototypeOf` of an Error answers `Error.prototype`. - `util.inspect` of dynamic classes, functions and `%o` arguments, and `Symbol.toStringTag` fields and getters, match Node. - **npm packages:** more npm and CommonJS dependencies compile statically, including namespace-style packages with guarded declarations and `var` exports, and untyped Maps, Sets and arrays are typed from their uses. ### v0.4.4 - Date: 2026-10-24 - Version: v0.4.4 - Original notes: https://github.com/vercel-labs/scriptc/releases/tag/v0.4.4 - Permalink: https://whatsnew.fyi/product/scriptc/releases/v0.4.4 - **fixed** — Unchanged rebuilds hit the frontend cache again, making an unchanged 23-module program rebuild in 93 ms instead of 1.26 s and tsc-ts (dev) in 1.6 s instead of 58.2 s - **fixed** — The native compiler builds programs with several typed-array accesses at one masked index in a loop again, including tsc-ts's release build which previously failed with SC3004 - **fixed** — `x!` returned from a function, used as an arrow function's result, or passed as an argument keeps null or undefined when the destination type holds it, as JavaScript does - **fixed** — `x!` operands of `+`, `+=` and other conversions that hold undefined or null convert as Node does - **fixed** — Effect 4 programs whose generators yield clients built by other generators run again - **fixed** — The cache for untyped property access in programs that declare classes is reverted, fixing a crash in Effect 4 observability programs - **changed** — Number compares and typed-array indexes use the exact integer of sums like `i + 1`, making a heap sift-down over an Int32Array run 17.5% faster - **changed** — glibc's per-thread heaps use huge pages, making the VS Code type-check run 3.4% faster - **changed** — Mid-size executables (over 1 MiB of LLVM text) build in at least eight partitions, reducing the LLVM backend phase time by 34 to 74% for three.js programs of 1.4 to 7.8 MB - **changed** — JavaScript class instances are boxed at their exact class, and stores into nested string-keyed dictionaries keep class method calls direct - **added** — `--target-cpu` option selects an x86-64 microarchitecture level - **added** — X25519 keys and `crypto.diffieHellman` are supported - **added** — `existsSync` and `fs.promises` accept `file:` URLs - **added** — `Buffer.from` ranges over ArrayBuffers, the deprecated `Buffer()` constructor, and `Buffer` as a value are supported - **changed** — Dates are objects with identity, matching Node.js - **changed** — `Promise.all` over different entry types settles on Node's turns - **changed** — Completion callbacks run in their call's AsyncLocalStorage context - **added** — TypedArray methods run on typed arrays held as untyped values, and unions of typed-array classes compile - **added** — Borrowed `TypedArray.prototype.set` calls compile and throw Node's TypeError for other targets - **added** — Split CommonJS `require` bindings, `__`-prefixed exports, string-key destructuring of `any` values, and record key order for values JavaScript built are supported - **changed** — zod 4 and `@hono/zod-validator` values are projected at the declaration boundary ##### 0.4.4 ###### Highlights - **Fixes for 0.4.3:** - Unchanged rebuilds hit the frontend cache again. An unchanged rebuild of a 23-module program takes 93 ms instead of 1.26 s, and of tsc-ts (dev) 1.6 s instead of 58.2 s. - The native compiler builds programs with several typed-array accesses at one masked index in a loop again, including tsc-ts's release build, which failed with SC3004. - `x!` returned from a function, used as an arrow function's result, or passed as an argument keeps null or undefined when the destination type holds it, as JavaScript does. `x!` operands of `+`, `+=` and other conversions that hold undefined or null convert as Node does. - Effect 4 programs whose generators yield clients built by other generators run again. - The cache for untyped property access in programs that declare classes is reverted, fixing a crash in Effect 4 observability programs. - **Faster:** - Number compares and typed-array indexes use the exact integer of sums like `i + 1`: a heap sift-down over an `Int32Array` runs 17.5% faster. - glibc's per-thread heaps use huge pages: the VS Code type-check runs 3.4% faster. - Mid-size executables (over 1 MiB of LLVM text) build in at least eight partitions: the LLVM backend phase takes 34 to 74% less time for three.js programs of 1.4 to 7.8 MB. - JavaScript class instances are boxed at their exact class, and stores into nested string-keyed dictionaries keep class method calls direct. - `--target-cpu` selects an x86-64 microarchitecture level. - **Node.js parity:** - X25519 keys and `crypto.diffieHellman`; `existsSync` and `fs.promises` accept `file:` URLs; `Buffer.from` ranges over ArrayBuffers, the deprecated `Buffer()` constructor and `Buffer` as a value. - Dates are objects with identity; `Promise.all` over different entry types settles on Node's turns; completion callbacks run in their call's AsyncLocalStorage context. - TypedArray methods run on typed arrays held as untyped values, and unions of typed-array classes compile. Borrowed `TypedArray.prototype.set` calls compile and throw Node's TypeError for other targets. - Split CommonJS `require` bindings, `__`-prefixed exports, string-key destructuring of `any` values, and record key order for values JavaScript built. - **npm packages:** zod 4 and `@hono/zod-validator` values are projected at the declaration boundary. ### v0.4.3 - Date: 2026-10-23 - Version: v0.4.3 - Original notes: https://github.com/vercel-labs/scriptc/releases/tag/v0.4.3 - Permalink: https://whatsnew.fyi/product/scriptc/releases/v0.4.3 - **changed** — Checking uses tsc-ts 0.0.9, and builds reuse the bundled declaration files' diagnostics instead of checking them again - **changed** — Small IR builds are 10.6 to 16.0% faster and small executable builds 5.5 to 7.6% faster, with identical output - **changed** — Number arrays that only hold int32 values use 4-byte slots in locals, across direct calls and in module globals - **changed** — Loop-carried locals written from array elements stay int32 - **changed** — Loops with two counters closing in on each other run without per-element checks - **changed** — Element copies through a[i]! run without per-element checks - **changed** — Two-counter while loops run on integer counters - **changed** — Loops over typed arrays and charAt scans are versioned on their bounds, and ASCII strings are scanned as bytes - **changed** — String-keyed record reads under ?? and ! no longer allocate union boxes - **changed** — Checked-dynamic method calls dispatch on method ids - **changed** — Observed class methods call natively while their slot is unchanged - **changed** — Calls on bag-tracked class instances skip building their views - **added** — crypto.getCipherInfo - **added** — AES-CCM and AES key wrap support - **added** — Legacy createCipheriv modes - **added** — checkPrime and generatePrime - **added** — Node's argument checks for generateKeyPair - **added** — Stream construct support - **added** — Stream writev support - **added** — Stream decodeStrings and defaultEncoding options - **added** — writev on Transform and PassThrough streams - **added** — FinalizationRegistry - **added** — new.target - **added** — String.prototype.at on untyped values - **added** — Error.stackTraceLimit - **added** — spawnSync env option - **changed** — Class constructors called through call or apply throw Node's TypeError - **changed** — Records enumerate in the key order their object literal wrote - **fixed** — Objects converting to a union with an empty-record arm keep every field - **added** — zod 3 compiles natively and zod 4's core runs - **added** — Minified packages such as marked compile - **added** — chalk 5 and hot-shots 8 build from built-in shims - **added** — @hono/node-server 2.x is built in - **changed** — User code types npm package declarations at a checked, identity-preserving boundary - **changed** — Cached build is reused after whitespace and comment edits - **changed** — Function bodies are emitted on forked workers - **changed** — LLVM emitter reads its analyses from one recorded walk of each module ##### 0.4.3 ###### Highlights - **Faster checking and smaller builds with tsc-ts 0.0.9:** scriptc checks with tsc-ts 0.0.9, and builds reuse the bundled declaration files' diagnostics instead of checking them again. Small IR builds are 10.6 to 16.0% faster and small executable builds 5.5 to 7.6% faster, with identical output. A native build of tsc-ts with this release checks 0.4 to 6.6% faster than with 0.4.2 and peaks 4 to 16% lower. - **Integer arrays and loops:** - Number arrays that only hold int32 values use 4-byte slots in locals, across direct calls and in module globals, and loop-carried locals written from their elements stay int32. A workload that walks arrays of cursors runs 54.5% faster. - Loops with two counters closing in on each other (`for (let i = lo, j = hi; i < j; i++, j--)`) and element copies through `a[i]!` run without per-element checks, and two-counter `while` loops run on integer counters. - Loops over typed arrays and charAt scans are versioned on their bounds, and ASCII strings are scanned as bytes. - **Less work for untyped and dynamic code:** - String-keyed record reads under `??` and `!` no longer allocate: a dictionary-walking workload makes no union boxes instead of 363,359 and runs 12 to 15% faster. - Checked-dynamic method calls dispatch on method ids, observed class methods call natively while their slot is unchanged, and calls on bag-tracked class instances skip building their views. - **Node.js parity:** - `crypto.getCipherInfo`, AES-CCM, AES key wrap, the legacy `createCipheriv` modes, `checkPrime`/`generatePrime`, and Node's argument checks for `generateKeyPair`. - Streams: `construct`, `writev`, `decodeStrings` and `defaultEncoding`, including `writev` on `Transform` and `PassThrough`. - `FinalizationRegistry`, `new.target`, `String.prototype.at` on untyped values, `Error.stackTraceLimit`, `spawnSync`'s `env` option, and class constructors called through `call`/`apply` throw Node's TypeError. - Records enumerate in the key order their object literal wrote, and objects converting to a union with an empty-record arm keep every field. - **npm packages:** zod 3 compiles natively and zod 4's core runs, minified packages such as marked compile, chalk 5 and hot-shots 8 build from built-in shims, and `@hono/node-server` 2.x is built in. User code types npm package declarations at a checked, identity-preserving boundary. - **Builds:** the cached build is reused after whitespace and comment edits, function bodies are emitted on forked workers, and the LLVM emitter reads its analyses from one recorded walk of each module. ### v0.4.2 - Date: 2026-10-22 - Version: v0.4.2 - Original notes: https://github.com/vercel-labs/scriptc/releases/tag/v0.4.2 - Permalink: https://whatsnew.fyi/product/scriptc/releases/v0.4.2 - **changed** — scriptc checks with tsc-ts 0.0.7, which answers contextual types and resolved signatures in batches, so lowering asks for them in one request per chunk instead of one per node - **changed** — A native build of tsc-ts is 7% faster (110.5 to 103.5 s on 8 vCPUs), with lowering 12% faster and an identical executable - **changed** — The native compiler is built with profile-guided optimization, so tsc-ts builds 6.9% faster cold and 10.7% faster after an edit - **changed** — The native compiler's optimization profile is refreshed, so a native build of tsc-ts is a further 10% faster (124.7 to 111.7 s on 16 vCPUs), with lowering 17% faster - **changed** — The class dispatch passes index their receivers by name instead of testing each one, and they reuse their per-function scans while a function's body is unchanged - **changed** — Checker replies resolve objects the compiler already holds from their ids without decoding them - **changed** — The frontend of an optimized executable's first build runs in a child process, so the native code generator starts after its memory is released; the cold build of tsc-ts peaks at 2.21 GB instead of 3.30 GB - **changed** — The compiler collects its heap as lowering and LLVM emission grow it - **added** — The crypto global, node:crypto's webcrypto and crypto.subtle are one object - **added** — generateKey, importKey, exportKey, encrypt, decrypt, deriveBits, deriveKey, wrapKey and unwrapKey cover HMAC, AES-GCM, AES-CBC, AES-CTR, AES-KW, PBKDF2, HKDF and JSON Web Keys - **added** — crypto.subtle signs and verifies with ECDSA, RSASSA-PKCS1-v1_5, RSA-PSS and Ed25519 - **changed** — WebCrypto follows Node 24's argument conversion, algorithm normalization and DOMExceptions, and jose's symmetric JWE paths run as in Node - **added** — .tsx, .jsx and JavaScript files with JSX compile under the project's jsx options - **added** — The react, react-jsx and react-jsxdev JSX modes lower to the factory calls TypeScript emits, with the same keys, fallbacks and source positions - **added** — The preserve and react-native JSX modes are refused with a named diagnostic - **changed** — A worker message is encoded into one block sized to its contents - **changed** — A typed record is posted from its fields - **changed** — A 'message' listener with a typed parameter builds it from the message, without a checked-dynamic copy - **changed** — Messages between MessageChannel ports take 90 ms instead of 250 ms in 0.4.1, with a peak RSS of 45 MB instead of 115 MB - **changed** — A loop to a typed array's length keeps one bounds test for every typed array it indexes - **changed** — Index temporaries such as const j = i * 4 are computed as integers, Uint8ClampedArray stores convert inline, and row-major index terms such as r * cols + j are tested once before the loop - **changed** — Typed-array callback methods call a literal callback directly on an integer counter, making Uint8Array.map 4.5 times as fast and Int32Array.some 7.8 times as fast as in 0.4.1 - **added** — generateKeyPair, generateKeyPairSync, createPrivateKey and createPublicKey handle RSA, EC and Ed25519 keys in PEM, DER and JWK - **added** — sign, verify, createSign and createVerify sign and verify with RSA, EC and Ed25519 keys, with Node's output and errors - **added** — crypto.createDiffieHellman, crypto.getDiffieHellman and crypto.createDiffieHellmanGroup, supporting the modp groups, explicit primes and generators, and generated safe primes with Node 24's behaviour - **added** — Diffie-Hellman rejects secrets of 0, 1 and p − 1, rejects peer keys outside the RFC 5114 subgroups, and refuses primes longer than 8192 bits - **added** — tls.connect and tls.createServer negotiate ALPNProtocols, and both sockets report alpnProtocol - **added** — minVersion and maxVersion bound the TLS handshake, and getProtocol() reports the version picked - **added** — tls.createServer takes an SNICallback that answers a SecureContext synchronously or later - **added** — new tls.TLSSocket(socket, { isServer: true, ... }) and tls.connect({ socket }) run the handshake on an open socket, such as an HTTP CONNECT tunnel - **fixed** — A TLS client whose peer closes before the handshake completes fails with Node's ECONNRESET - **added** — Readable, Writable, Duplex, Transform and PassThrough streams take objectMode, readableObjectMode and writableObjectMode - **changed** — _write and _transform receive the encoding argument as Node passes it - **added** — Cipheriv and Decipheriv are Transforms that can be piped, used as pipeline() stages, read and iterated - **added** — pipeline() accepts function stages anywhere among its streams, and an array, a string or a synchronous generator as its source - **added** — js-yaml and smol-toml compile statically and match Node, including ES5 error constructors and classes extending Date - **added** — TypeScript's UMD module wrapper compiles as the module body, and tsc's __importDefault and __importStar helpers around builtin modules compile as plain require() calls - **fixed** — Interfaces, type aliases and enums that only a package's .d.ts declares keep their types - **added** — Error constructors can be read as values, so err.constructor === TypeError works - **added** — workerData can be destructured - **fixed** — Unary + converts unions of strings, numbers, booleans, null and undefined as Number() does, so +process.argv[2] compiles ##### 0.4.2 ###### Highlights - **Faster builds of large programs:** - scriptc checks with tsc-ts 0.0.7, which answers contextual types and resolved signatures in batches, so lowering asks for them in one request per chunk instead of one per node. A native build of tsc-ts is 7% faster (110.5 → 103.5 s on 8 vCPUs, lowering 12% faster), with an identical executable. - The native compiler is built with profile-guided optimization, so tsc-ts builds 6.9% faster cold and 10.7% faster after an edit. - The native compiler's optimization profile is refreshed, so a native build of tsc-ts is a further 10% faster (124.7 → 111.7 s on 16 vCPUs), with lowering 17% faster. - The class dispatch passes index their receivers by name instead of testing each one, and they reuse their per-function scans while a function's body is unchanged. - Checker replies resolve objects the compiler already holds from their ids without decoding them. - **Leaner builds:** - The frontend of an optimized executable's first build runs in a child process, so the native code generator starts after its memory is released. The cold build of tsc-ts peaks at 2.21 GB instead of 3.30 GB. - The compiler collects its heap as lowering and LLVM emission grow it. - **WebCrypto:** - The `crypto` global, `node:crypto`'s `webcrypto` and `crypto.subtle` are one object. - `generateKey`, `importKey`, `exportKey`, `encrypt`, `decrypt`, `deriveBits`, `deriveKey`, `wrapKey` and `unwrapKey` cover HMAC, AES-GCM, AES-CBC, AES-CTR, AES-KW, PBKDF2, HKDF and JSON Web Keys. - `crypto.subtle` signs and verifies with ECDSA, RSASSA-PKCS1-v1_5, RSA-PSS and Ed25519. - All of it follows Node 24's argument conversion, algorithm normalization and `DOMException`s. jose's symmetric JWE paths run as in Node. - **JSX:** `.tsx`, `.jsx` and JavaScript files with JSX compile under the project's `jsx` options. - `react`, `react-jsx` and `react-jsxdev` lower to the factory calls TypeScript emits, with the same keys, fallbacks and source positions. - `preserve` and `react-native` are refused with a named diagnostic. - **Faster worker messages:** - A message is encoded into one block sized to its contents. - A typed record is posted from its fields. - A `'message'` listener with a typed parameter builds it from the message, without a checked-dynamic copy. - Messages between `MessageChannel` ports take 90 ms where they took 250 ms in 0.4.1 (Node: 337 ms), with a peak RSS of 45 MB instead of 115 MB. - **Loops over typed arrays vectorize:** a loop to a typed array's length keeps one bounds test for every typed array it indexes. - Index temporaries such as `const j = i * 4` are computed as integers. - Uint8ClampedArray stores convert inline. - Row-major index terms such as `r * cols + j` are tested once before the loop. - Typed-array callback methods call a literal callback directly on an integer counter. - An 896 × 896 matrix-vector product with four accumulators takes 55 ms instead of 396 ms (Node: 275 ms). `Uint8Array.map` is 4.5 times as fast and `Int32Array.some` 7.8 times as fast as in 0.4.1. ###### Features - **Asymmetric keys and signatures in `node:crypto`:** - `generateKeyPair`, `generateKeyPairSync`, `createPrivateKey` and `createPublicKey` handle RSA, EC and Ed25519 keys in PEM, DER and JWK. - `sign`, `verify`, `createSign` and `createVerify` sign and verify with those keys, with Node's output and errors. - Ed25519 verification matches Node on 2,083 test vectors, including small-order and mixed-order keys. - **`crypto.createDiffieHellman`, `crypto.getDiffieHellman` and `crypto.createDiffieHellmanGroup`:** - The modp1, modp2 and modp5 to modp18 groups, explicit primes and generators, and generated safe primes are supported, with Node 24's key widths, `verifyError` bits, key range checks and errors. - Secrets of 0, 1 and p − 1 are rejected, and so are peer keys outside the RFC 5114 subgroups. - Primes longer than 8192 bits are refused. - **TLS:** _[Truncated at 4000 characters — full notes: https://github.com/vercel-labs/scriptc/releases/tag/v0.4.2]_ ### libnode-dev-24.22.1 — libnode dev pack inputs (CI only) - Date: 2026-10-22 - Version: libnode-dev-24.22.1 - Original notes: https://github.com/vercel-labs/scriptc/releases/tag/libnode-dev-24.22.1 - Permalink: https://whatsnew.fyi/product/scriptc/releases/libnode-dev-24.22.1 - Labels: Pre-release **CI-only mirror. This is not a scriptc release.** These files are inputs for the development libnode pack that scriptc's Linux CI test lanes assemble (`packages/libnode-common/dev-pack.json`, `.github/actions/libnode-dev-pack`) until the prebuilt `@scriptc/libnode-` packs exist. They are mirrored byte for byte so CI does not depend on a third-party release staying available. CI verifies each file's sha256 before use. | File | Original URL | sha256 | | --- | --- | --- | | `libnode-linux-x64.tar.gz` | https://github.com/dockfries/libnode/releases/download/v24.22.1/libnode-linux-x64.tar.gz | `b02809c5d332516cc72890fec0cbbca404bac526bd0f841e00a8a6056ec1ff54` | | `node-v24.22.1-headers.tar.gz` | https://nodejs.org/dist/v24.22.1/node-v24.22.1-headers.tar.gz | `322e0a27db9088093ab8347bdc8c7e0aaa21dc9ed548390bf06b394494c09267` | | `LICENSE` | https://raw.githubusercontent.com/nodejs/node/v24.22.1/LICENSE | Node.js's license, covering the libnode build and its bundled components | `libnode-linux-x64.tar.gz` is the community dockfries/libnode build of Node.js v24.22.1 (`libnode.so.137`), redistributed under Node.js's license (MIT, with the bundled components' licenses in `LICENSE`). ### v0.4.1 - Date: 2026-10-21 - Version: v0.4.1 - Original notes: https://github.com/vercel-labs/scriptc/releases/tag/v0.4.1 - Permalink: https://whatsnew.fyi/product/scriptc/releases/v0.4.1 - **added** — scriptc build --profile-generate builds an instrumented executable that writes profiles when run - **added** — scriptc merge-profiles command, with a --sparse option, merges the profiles written by instrumented runs - **added** — scriptc build --profile-use optimizes release and speed builds with a merged profile - **changed** — Large class-based programs build in partitions instead of as one module, making cold builds 25 to 32% faster and letting an edit to one function recompile only its partition - **added** — More npm packages compile from their JavaScript, including execa 5, hot-shots, @opentelemetry/api, async-sema, buffer-crc32, yazl, tar-stream, smol-toml and truncate-utf8-bytes - **added** — undici 5.x and 7.x compile from an implementation that ships with scriptc - **changed** — isarray, safe-buffer and process-nextick-args compile as the Node builtins they stand in for - **changed** — Dynamic-tier property access uses per-site inline caches keyed on object shapes, making untyped code run 1.4 to 3 times as fast as in 0.4.0 - **changed** — The array header is 48 bytes instead of 64, and small arrays start with three inline slots - **changed** — Instances of program class hierarchies keep their class id in the reference-count word instead of a vtable pointer - **changed** — Map and Set with number keys store 16-byte entries, lowering peak memory of a large TypeScript type checker by 8 to 10% - **added** — for await iterates untyped values, including async generators, Symbol.asyncIterator results and synchronous iterators - **added** — yield* delegates inside async generators - **added** — crypto.createECDH and ECDH.convertKey are supported for the 11 short Weierstrass curves mbedTLS implements - **added** — Packages can be marked as never loaded via the scriptc packages setting in package.json, making require throw MODULE_NOT_FOUND - **added** — util.promisify of an untyped function returns a promise-returning wrapper at run time - **added** — Destructuring with runtime computed keys reads records and untyped values, with element defaults applied to missing keys - **fixed** — Import cycles compile when a class is used only after both modules finish initializing, and reaching the class earlier throws Node's ReferenceError - **added** — await of an untyped value adopts thenables, including objects that define then at run time - **added** — Function values convert their results and arguments when stored in a slot with the same structure but a different shape - **added** — Declarations from SDKs and shared type packages compile, including index signatures of any, any[] members, declared-only classes and Pick views of classes - **added** — bind, call and apply work on builtin functions, and several builtins can be read as values - **added** — Bitwise operators convert boolean operands as ToNumber does - **added** — arguments.length can be read in sloppy-mode functions with named parameters - **added** — Index-signature records answer the in operator for literal keys - **added** — Set.prototype.add returns the Set when its result is used, so chained adds compile - **added** — exec works on regular expressions held as any - **added** — dns.lookup passes the ADDRCONFIG, V4MAPPED and ALL hints, and net.connect accepts the lookup option - **added** — util.inspect, console.log and util.format print program-declared Error subclasses with Node's constructor-name header ##### 0.4.1 ###### Highlights - **Profile-guided optimization:** `scriptc build --profile-generate` builds an instrumented executable, `scriptc merge-profiles` (with `--sparse`) merges the profiles its runs write, and `--profile-use` optimizes a release or speed build with the merged profile. tsc-ts built with a profile from its own type check checks other projects 1.15 to 1.2 times as fast, with the same diagnostics and memory. Builds without a profile are unchanged. - **Faster cold builds of large programs:** large class-based programs build in partitions instead of as one module, so their cold builds are 25 to 32% faster, and an edit to one function recompiles only its partition. - **npm packages:** more packages that pass builtins, classes and promises around as values now compile from their JavaScript. Among them are execa 5, hot-shots, @opentelemetry/api, async-sema, buffer-crc32, yazl, tar-stream, smol-toml and truncate-utf8-bytes. `undici` 5.x and 7.x compile from an implementation that ships with scriptc, and `isarray`, `safe-buffer` and `process-nextick-args` compile as the Node builtins they stand in for. - **Dynamic-tier property access goes through per-site inline caches** keyed on object shapes. On constructor-and-prototype code, the code that reads several object shapes at one site and an AST interpreter, untyped code runs 1.4 to 3 times as fast as in 0.4.0. Typed programs compile to the same code as before. - **Smaller arrays, class instances and number-keyed maps:** - The array header is 48 bytes instead of 64. - Small arrays start with three inline slots. - Instances of program class hierarchies keep their class id in the reference-count word instead of a vtable pointer. - `Map`s and `Set`s with number keys store 16-byte entries. - Together they lower the peak memory of a large TypeScript type checker by 8 to 10%, with the same output and wall time. ###### Features - **`for await` iterates untyped values,** including async generators, `Symbol.asyncIterator` results and synchronous iterators, whose values are awaited. `yield*` delegates inside async generators. A JavaScript generator whose return type is inferred as `any` compiles, including one that delegates to itself. - **`crypto.createECDH` and `ECDH.convertKey`** are supported for the 11 short Weierstrass curves mbedTLS implements, with Node 24's key formats, encodings and errors. Other curves are refused. - **`undici` 5.x and 7.x:** `Client`, `Pool`, `Agent`, `request`, the global dispatcher, `fetch` through a dispatcher, the error classes and the `undici:` diagnostics channels follow each version's behavior. Each importing package compiles against its own installed version. The limitations page lists the parts that differ. - **Packages marked as never loaded:** `"scriptc": { "packages": { "": "unloaded" } }` in the entry's `package.json` makes `require("")` throw Node's `MODULE_NOT_FOUND`, so optional dependencies take their absent branch. - **`util.promisify` of an untyped function** returns a promise-returning wrapper at run time. - **Destructuring with runtime computed keys** (`const { [name]: v } = source`) reads records and untyped values. A missing key gives `undefined` and the element default applies. - **Import cycles compile when a class is used only after both modules finish initializing.** Reaching the class earlier throws Node's `ReferenceError: Cannot access 'X' before initialization`. - **`await` of an untyped value adopts thenables,** including objects that define `then` at run time. `Promise.prototype` and `promise.constructor` can be read as values. A child process can be given new properties and awaited as a thenable. - **Function values convert their results and arguments** when they are stored in a slot whose signature has the same structure but a different shape, such as a function returning `Promise` stored in a `() => Promise` slot. - **Declarations from SDKs and shared type _[Truncated at 4000 characters — full notes: https://github.com/vercel-labs/scriptc/releases/tag/v0.4.1]_ ### v0.4.0 - Date: 2026-10-20 - Version: v0.4.0 - Original notes: https://github.com/vercel-labs/scriptc/releases/tag/v0.4.0 - Permalink: https://whatsnew.fyi/product/scriptc/releases/v0.4.0 - **changed** — tsc-ts is the default TypeScript 7 checker on Linux and macOS, installed with the compiler, with SCRIPTC_CHECKER=tsgo selecting tsgo, which remains the default on Windows - **changed** — A build cache entry made with one checker is not reused with the other - **changed** — The default --npm-static=auto compiles packages typed by their DefinitelyTyped twin (@types/) and untyped dependencies imported by another package's JavaScript - **changed** — A twin whose declarations disagree with the package's JavaScript fails the build at the use - **changed** — Program type errors are reported as type errors instead of as refusals of the npm package that contains them - **added** — WebAssembly modules whose bytes are visible are translated into native code, and WebAssembly.compile, instantiate, validate, Module and Instance run them without an interpreter - **added** — WebAssembly.Memory, Table, Global, Module.imports, Module.exports, Module.customSections and function references from tables are supported, and modules can be sent to workers - **added** — scriptc coverage lists the WebAssembly modules a program loads, with --wasm for modules loaded from paths the sources do not spell out - **changed** — Async functions that suspend only at their awaits run as stackless coroutines instead of on fibers with their own stack - **changed** — Discriminated unions of records are the record pointer itself, with no box around each value - **changed** — The dynamic tier computes with NaN-boxed numbers, booleans, undefined and null between operators without allocating - **added** — scriptc coverage --explain-dynamic lists the functions that run in the dynamic tier and why, and --tier=static-only keeps a program fully static - **changed** — esbuild's bundled CommonJS chunks, CommonJS cycles, lazily initialized ES modules, classic CommonJS packages, class hierarchies across a package's modules, and packages unblocked by type-only imports, @types packages, punycode and constants compile statically - **changed** — chalk 5 and the jose root entry compile - **added** — @scriptc/experimental adds ThreadSlots, one value per key and thread on shared objects, read without a lock - **added** — node:test adds mock.timers, getTestContext, t.assert.snapshot and t.assert.fileSnapshot - **added** — node:test adds TestContext values filePath, attempt, passed, workerId and tags - **added** — node:test adds module-level before and after hooks, the SuiteContext and hook contexts, and unnamed test and describe calls - **changed** — A timed-out node:test test cancels its running subtests - **added** — node:worker_threads adds BroadcastChannel, setEnvironmentData and getEnvironmentData, receiveMessageOnPort, markAsUntransferable, markAsUncloneable, threadName, resourceLimits.stackSizeMb, and the stdout, stderr and stdin options and streams - **added** — node:worker_threads adds worker[Symbol.asyncDispose] - **added** — node:net adds SocketAddress and BlockList, and net.connect resolves host names - **changed** — node:http pools keep-alive sockets in Agents, uses globalAgent for default requests, reads http.request options at run time, and speaks HTTP over Unix domain sockets - **added** — fetch tunnels through HTTP_PROXY and HTTPS_PROXY with CONNECT - **added** — DisposableStack, Float16Array, Error.isError, Promise.try and the regular expression v flag are supported - **added** — Iterator helpers run on generators, Map and Set iterators, string and typed array iterators, Iterator.from and untyped iterators - **added** — Object.groupBy and Map.groupBy group Sets, Maps and generators - **added** — v8, stream/web, dns/promises, EvalError and graceful-fs are available, and Temporal is reported as absent - **added** — util.promisify works over the crypto callback functions, dns lookups, child_process.exec callback forms and callback-style functions - **added** — events.once takes an AbortSignal and works over streams - **fixed** — AsyncLocalStorage stores carry into timer, immediate, process.nextTick and microtask callbacks - **changed** — JavaScript classes compile like TypeScript classes when their layout or JSDoc types allow it - **added** — Classes extending EventEmitter or a stream class can be used as values, as can EventEmitter, the stream classes and the error classes themselves - **added** — Class instances can be frozen and their fields redefined - **changed** — Method overrides may differ from the overridden method in parameter and result types as long as each value converts - **added** — Library profiles add the cstring class - **added** — An experimental young-object nursery for compiled classes and records is available with SCRIPTC_YOUNG_NURSERY=1 at compile time - **changed** — Dense arrays have head room, so shift, splice(0, n) and unshift runs cost amortized O(1), and pop of a packed array is inline - **changed** — Index loops over arrays and typed arrays are versioned on one bounds guard, with stable lengths proven and typed-array memory tagged for alias analysis - **changed** — Retain and release pairs are removed through private-array precision and last-use moves, borrowed string slices go into stack buffers, and records, tuples and spread updates stay in frame storage - **changed** — SHA-384 and SHA-512 use AVX2, AVX-512VL or arm64 SHA-512 instructions, and MD5's block function is unrolled - **changed** — String character tests, optional-string switches, String.fromCharCode and long-string length are faster, and Buffer.write widens ASCII to UTF-16 sixteen bytes per step ##### 0.4.0 ###### Breaking changes - **tsc-ts is the default TypeScript 7 checker** on Linux and macOS. scriptc installs it with the compiler (`tsc-ts` 0.0.5 and its platform package for the host). Programs get the same diagnostics and generated code as with tsgo, and compiling takes less checker memory. `SCRIPTC_CHECKER=tsgo` selects tsgo, which stays the default on Windows. A build cache entry made with one checker isn't reused with the other. - **`--npm-static=auto`, the default, compiles more packages:** packages typed by their DefinitelyTyped twin (`@types/`), and untyped dependencies that another package's JavaScript imports. A program whose dependencies were refused before can now compile them, and a twin whose declarations disagree with the package's JavaScript fails the build at the use. Use `--npm-static ` to name the packages to compile. - **Program type errors are reported as type errors** instead of as refusals of the npm package that contains them. ###### Highlights - **WebAssembly:** builds translate every WebAssembly module whose bytes they can see into native code, and `WebAssembly.compile`, `instantiate`, `validate`, `new WebAssembly.Module` and `new WebAssembly.Instance` run them. There is no interpreter. `WebAssembly.Memory`, `Table` and `Global`, `Module.imports`, `Module.exports` and `Module.customSections`, and function references from tables are supported, and modules can be sent to workers. `scriptc coverage` lists the modules a program loads, with `--wasm ` for modules loaded from paths the sources don't spell out. - **Async functions that suspend only at their `await`s run as stackless coroutines** instead of on fibers with their own stack, so a suspended call keeps only the values live across its awaits. - **Discriminated unions of records are the record pointer itself,** with no box around each value. - **The dynamic tier computes with NaN-boxed values:** numbers, booleans, `undefined` and `null` between operators no longer allocate. `scriptc coverage --explain-dynamic` lists the functions that run in the dynamic tier and why, and `--tier=static-only` keeps a program fully static. - **npm packages:** esbuild's bundled CommonJS chunks, CommonJS cycles and lazily initialized ES modules compile statically, as do classic CommonJS packages (late and JSON `require`s, require cycles), class hierarchies across a package's modules, and the packages unblocked by type-only imports, `@types` packages, `punycode` and `constants`. chalk 5 and the jose root entry compile. ###### Features - **`@scriptc/experimental` adds `ThreadSlots`,** one value per key and thread on shared objects, read without a lock. - **`node:test` adds `mock.timers`, `getTestContext`, `t.assert.snapshot` and `t.assert.fileSnapshot`,** the `TestContext` values `filePath`, `attempt`, `passed`, `workerId` and `tags`, module-level `before` and `after` hooks, the `SuiteContext` and hook contexts, and unnamed `test` and `describe` calls. A timed-out test cancels its running subtests. - **`node:worker_threads` adds `BroadcastChannel`,** `setEnvironmentData`/`getEnvironmentData`, `receiveMessageOnPort`, `markAsUntransferable`, `markAsUncloneable`, `threadName`, `resourceLimits.stackSizeMb`, the `stdout`/`stderr`/`stdin` options and streams, and `worker[Symbol.asyncDispose]`. - **`node:net` adds `SocketAddress` and `BlockList`,** and `net.connect` resolves host names. - **`node:http` pools keep-alive sockets in `Agent`s,** uses `globalAgent` for default requests, reads `http.request` options at run time, and speaks HTTP over Unix domain sockets. `fetch` tunnels through `HTTP_PROXY`/`HTTPS_PROXY` with `CONNECT`. - **`DisposableStack`, `Float16Array`, `Error.isError`, `Promise.try` and the regular expression `v` flag** are supported. - **Iterator helpers** run on generators, `Map` and `Set` iterators, string and typed array iterators, `Iterator.from` and untyped iterators. - **`Object.groupBy` and `Map.groupBy`** group S _[Truncated at 4000 characters — full notes: https://github.com/vercel-labs/scriptc/releases/tag/v0.4.0]_ ### v0.3.6 - Date: 2026-10-17 - Version: v0.3.6 - Original notes: https://github.com/vercel-labs/scriptc/releases/tag/v0.3.6 - Permalink: https://whatsnew.fyi/product/scriptc/releases/v0.3.6 - **added** — node:readline adds terminal mode, cursor helpers and emitKeypressEvents, along with the history and completer options and the history members - **added** — node:http supports request signals, destroy(err), servername, Expect events and maxHeaderSize - **added** — createHash and createHmac values work as streams - **added** — node:test adds the concurrency, plan and timeout options - **added** — fs.cpSync, fs.cp and fs/promises cp are supported - **added** — util.promisify works over setTimeout, setImmediate, stream.finished, stream.pipeline and the zlib callback one-shots - **added** — Array.fromAsync works over arrays - **added** — Readable.from accepts Sets, iterators and class iterables, and the Set composition methods accept Map arguments - **added** — using disposes Disposable-typed values, and SuppressedError exposes error and suppressed - **changed** — Int32 class fields stay int32 next to arithmetic on dynamic operands and in programs that register process event listeners, running a large TypeScript type-checker workload about 12% faster with about 5% less memory - **changed** — while loops bounded by a string's length keep int32 counters - **changed** — Worker threads reserve heap growth up front once they allocate many large blocks, and share one prefault budget - **changed** — Small runtime functions are inlined into release executables - **changed** — Integers are speculated only where the static range proof gives up - **changed** — Constant-key dynamic reads are cached per site, and JSON.parse follows repeated key sequences - **changed** — The zlib one-shot forms run on the stream engine, and statSync's throwIfNoEntry option no longer builds the error it discards - **fixed** — Class instances keep their identity through structural record views, including in switch statements and assertions - **fixed** — Node 24 builtin forms that ran with wrong output now match Node or are refused, and Object.groupBy results have a null prototype - **fixed** — IPv4 hosts in special-scheme URLs parse like WHATWG URL - **fixed** — fs paths with a null byte are refused as Node does - **fixed** — Object.setPrototypeOf returns primitive receivers, and createHmac without a key throws Node's error - **fixed** — Boxed records that hold an async function link the dynamic promise unit ##### 0.3.6 ###### Features - **`node:readline` adds terminal mode, cursor helpers and `emitKeypressEvents`,** along with the `history` and `completer` options and the history members. - **`node:http` supports request `signal`s, `destroy(err)`, `servername`, `Expect` events and `maxHeaderSize`.** - **`createHash` and `createHmac` values work as streams.** - **`node:test` adds the `concurrency`, `plan` and `timeout` options.** - **`fs.cpSync`, `fs.cp` and `fs/promises` `cp` are supported.** - **`util.promisify` works over `setTimeout`, `setImmediate`, `stream.finished`, `stream.pipeline` and the zlib callback one-shots.** - **`Array.fromAsync` works over arrays,** `Readable.from` accepts Sets, iterators and class iterables, and the `Set` composition methods accept `Map` arguments. - **`using` disposes `Disposable`-typed values,** and `SuppressedError` exposes `error` and `suppressed`. ###### Performance - **Int32 class fields stay int32 next to arithmetic on dynamic operands** and in programs that register process event listeners. A large TypeScript type-checker workload runs about 12% faster with about 5% less memory. - **`while` loops bounded by a string's length keep int32 counters.** - **Worker threads reserve heap growth up front** once they allocate many large blocks, and share one prefault budget. - **Small runtime functions are inlined into release executables.** - **Integers are speculated only where the static range proof gives up.** - **Constant-key dynamic reads are cached per site,** and `JSON.parse` follows repeated key sequences. - **The zlib one-shot forms run on the stream engine,** and `statSync`'s `throwIfNoEntry` option no longer builds the error it discards. ###### Fixes - **Class instances keep their identity through structural record views,** including in `switch` statements and assertions. - **Node 24 builtin forms that ran with wrong output now match Node or are refused,** and `Object.groupBy` results have a null prototype. - **IPv4 hosts in special-scheme URLs parse like WHATWG URL.** - **fs paths with a null byte are refused as Node does.** - **`Object.setPrototypeOf` returns primitive receivers,** and `createHmac` without a key throws Node's error. - **Boxed records that hold an async function link the dynamic promise unit.** ### v0.3.5 - Date: 2026-10-16 - Version: v0.3.5 - Original notes: https://github.com/vercel-labs/scriptc/releases/tag/v0.3.5 - Permalink: https://whatsnew.fyi/product/scriptc/releases/v0.3.5 - **added** — Added read and write streams to node:fs, including fs.createReadStream and fs.createWriteStream - **added** — util.promisify works over child_process.exec and fs callback functions that have an fs/promises counterpart - **added** — node:net adds socket.address(), socket.resetAndDestroy() and server.dropMaxConnection - **added** — node:dgram supports the socket options and disconnect() - **added** — node:tls adds getProtocol, getCipher, alpnProtocol and tls.DEFAULT_MIN_VERSION/DEFAULT_MAX_VERSION - **added** — events.once works on EventEmitter instances - **added** — Checked JSON records keep keys they do not declare - **added** — Compound assignment with untyped operands compiles - **changed** — Map and Set headers and small entry arrays are smaller, so an empty map takes 100 bytes instead of 188 - **changed** — Released lifetime regions are freed without a pass over the whole heap - **changed** — The cycle collector frees its large work vectors after a pass, and intact parsed JSON documents skip cycle collection - **changed** — Classes keep a property bag only when something stores into it, and class and record views without dynamic stores emit no commit adapters - **changed** — Integer arithmetic is proven through calls and module-level code, pure number recursion runs on integer clones, and array lengths load with the range of a JS array length - **changed** — Closed virtual calls are dispatched directly, read-modify-write operations reuse their Map lookup, and never-reassigned bindings are read as values - **changed** — Generators, user iterators and awaits cost less per value, and promises use a smaller block allocated inline - **changed** — SHA-1 and SHA-256 use the SHA extensions on x86-64, about 4 to 5 times faster than before - **changed** — Regex exec results, parseInt of captures, UTF-8 file reads, string-and-number concatenation and small Buffer allocation are cheaper, and JSON.parse storage fits its length - **changed** — The main thread leaves its heap to the operating system at exit - **fixed** — Sockets read ahead without a consumer, so a peer's close reaches them - **fixed** — Publication walkers with more than ten pushes keep distinct value names - **fixed** — int32 field storage survives reflection reads through unknown - **changed** — Native program objects use runtime ABI v22; external object consumers must link the matching v0.3.5 runtime pack, and the versioned marker rejects incompatible runtime objects at link time ##### 0.3.5 ###### Features - **`node:fs` adds read and write streams,** including `fs.createReadStream` and `fs.createWriteStream`. - **`util.promisify` works over `child_process.exec`** and the fs callback functions that have an `fs/promises` counterpart. - **`node:net` adds `socket.address()`, `socket.resetAndDestroy()` and `server.dropMaxConnection`,** and `node:dgram` supports the socket options and `disconnect()`. - **`node:tls` adds `getProtocol`, `getCipher`, `alpnProtocol`** and `tls.DEFAULT_MIN_VERSION`/`DEFAULT_MAX_VERSION`. - **`events.once` works on `EventEmitter` instances.** - **Checked JSON records keep keys they do not declare,** and compound assignment with untyped operands compiles. ###### Performance - **`Map` and `Set` headers and small entry arrays are smaller:** an empty map takes 100 bytes instead of 188. - **Released lifetime regions are freed without a pass over the whole heap.** - **The cycle collector frees its large work vectors after a pass,** and intact parsed JSON documents skip cycle collection. - **Classes keep a property bag only when something stores into it,** and class and record views without dynamic stores emit no commit adapters. - **Integer arithmetic is proven through calls and module-level code,** pure number recursion runs on integer clones, and array lengths load with the range of a JS array length. - **Closed virtual calls are dispatched directly,** read-modify-write operations reuse their `Map` lookup, and never-reassigned bindings are read as values. - **Generators, user iterators and awaits cost less per value,** and promises use a smaller block allocated inline. - **SHA-1 and SHA-256 use the SHA extensions on x86-64,** about 4 to 5 times faster than before. - **Regex exec results, `parseInt` of captures, UTF-8 file reads, string-and-number concatenation and small `Buffer` allocation are cheaper,** and `JSON.parse` storage fits its length. - **The main thread leaves its heap to the operating system at exit.** ###### Fixes - **Sockets read ahead without a consumer,** so a peer's close reaches them. - **Publication walkers with more than ten pushes keep distinct value names,** and int32 field storage survives reflection reads through `unknown`. - **Native program objects use runtime ABI v22.** External object consumers must link the matching v0.3.5 runtime pack; the versioned marker rejects incompatible runtime objects at link time. ### v0.3.4 - Date: 2026-10-16 - Version: v0.3.4 - Original notes: https://github.com/vercel-labs/scriptc/releases/tag/v0.3.4 - Permalink: https://whatsnew.fyi/product/scriptc/releases/v0.3.4 - **added** — InternTable in @scriptc/experimental is a shared, append-only table of published values that every thread can read and add to, with string, number and array keys - **added** — node:zlib adds the stream classes - **added** — node:crypto supports createCipheriv and createDecipheriv - **added** — node:stream adds the Readable operators, stream.compose, Readable.from over generators and the Readable.from options - **added** — node:stream supports async generator stages, source functions, promise destinations and { signal } in pipeline - **added** — node:test adds TestContext hooks, plan, fullName, Node's todo and only rules, mock.fn and t.mock.fn - **added** — node:assert adds AssertionError, deepEqual, partialDeepStrictEqual and the Assert class - **changed** — node:http matches Node's keep-alive, header and framing behavior - **added** — node:net adds socket address fields, write and end callbacks and server connection limits - **changed** — dns.lookup supports Node's forms, and lookupService, getServers and the result order are supported - **added** — fs.opendirSync, fs.promises.opendir and fs.Dir are supported - **changed** — The fs option checks follow Node's - **added** — util.format supports %f - **added** — timers/promises resolve values and setInterval work under @types/node - **changed** — Atomics run without a lock on shared storage and compile to inline atomic instructions - **changed** — Lifetime regions are cheaper: programs that never create a region no longer pay for region counting, a kept region is retried only when its counted references change, and owned objects with a single reference are released without a table entry - **changed** — Publishing large object graphs is faster - **changed** — Dropped cyclic graphs are collected while they are still in cache - **changed** — fs callbacks and worker-pool completions wake the event loop directly instead of waiting for a timer turn - **changed** — Number-keyed Map and Set operations are faster: lookups are probed inline, and set and add after a read store into the entry they found - **changed** — Named property reads of unknown values take one receiver retain, dyn array elements and lengths are read by number, and cyclic dyn values convert to recursive shapes - **changed** — Small exact arrays have room for one append - **changed** — Large wasm32 programs are partitioned like native ones - **fixed** — process.nextTick callbacks drain before promise jobs after every callback, as in Node - **fixed** — wasm32 array lengths past 2^31 are correct - **fixed** — The exit codes of pending top-level await are correct - **fixed** — Typed-array indices stay integral through the shared-buffer check - **fixed** — The npm case fixtures run natively, and the issues they found are fixed ##### 0.3.4 ###### Features - **`InternTable` in `@scriptc/experimental`** is a shared, append-only table of published values that every thread can read and add to, with string, number and array keys. - **`node:zlib` adds the stream classes,** and `node:crypto` supports `createCipheriv` and `createDecipheriv`. - **`node:stream` adds the Readable operators, `stream.compose`, `Readable.from` over generators** and the `Readable.from` options, plus async generator stages, source functions, promise destinations and `{ signal }` in `pipeline`. - **`node:test` adds `TestContext` hooks, `plan`, `fullName`, Node's `todo` and `only` rules, `mock.fn` and `t.mock.fn`.** - **`node:assert` adds `AssertionError`, `deepEqual`, `partialDeepStrictEqual` and the `Assert` class.** - **`node:http` matches Node's keep-alive, header and framing behavior,** and `node:net` adds socket address fields, `write` and `end` callbacks and server connection limits. - **`dns.lookup` supports Node's forms,** along with `lookupService`, `getServers` and the result order. - **`fs.opendirSync`, `fs.promises.opendir` and `fs.Dir`** are supported, and the fs option checks follow Node's. - **`util.format` supports `%f`,** and `timers/promises` resolve values and `setInterval` work under `@types/node`. ###### Performance - **`Atomics` run without a lock** on shared storage and compile to inline atomic instructions. - **Lifetime regions are cheaper.** Programs that never create a region no longer pay for region counting, a kept region is retried only when its counted references change, and owned objects with a single reference are released without a table entry. - **Publishing large object graphs is faster,** and dropped cyclic graphs are collected while they are still in cache. - **fs callbacks and worker-pool completions wake the event loop directly** instead of waiting for a timer turn. - **Number-keyed `Map` and `Set` operations are faster:** lookups are probed inline, and `set` and `add` after a read store into the entry they found. - **Named property reads of unknown values take one receiver retain,** dyn array elements and lengths are read by number, and cyclic dyn values convert to recursive shapes. - **Small exact arrays have room for one append.** - **Large wasm32 programs are partitioned** like native ones. ###### Fixes - **`process.nextTick` callbacks drain before promise jobs** after every callback, as in Node. - **wasm32 array lengths past 2^31** and the exit codes of pending top-level `await` are correct, and typed-array indices stay integral through the shared-buffer check. - **The npm case fixtures run natively,** and the issues they found are fixed. ##### 0.3.3 ###### Features - **scriptc targets Node 24.22.0.** Compatibility tables, tests and behavior follow Node 24.22.0. - **`node:crypto` covers more of Node 24:** every digest in `createHash`, `createHmac`, `crypto.hash`, `pbkdf2` and `hkdf`, every Hash and Hmac encoding and option, secret `KeyObject`s (`createSecretKey`, `generateKey`, `generateKeySync`), `randomFill`, `randomInt` callbacks, `randomUUID` options, `randomUUIDv7`, and `timingSafeEqual` over any view or `ArrayBuffer`. - **`node:fs` adds `glob`, `globSync` and `fs/promises` `glob`,** the remaining `fs/promises` functions with Node's argument checks, complete `fs.Stats` in both lanes, and results from `mkdir`, `readFile` and `write` callbacks. `readdir` lists entries in byte order on POSIX hosts, and dynamic `Dirent` values have Node's prototype and inspect form. - **`Blob` and `File`** are supported. - **`readline/promises`, `stream.addAbortSignal` and the `stream/promises` options** are supported, and stream chunks made from strings reach user code as `Buffer`s. - **The legacy `url` API, `url.domainToASCII` and `url.domainToUnicode`** are supported. - **`process.memoryUsage`, process identity members, and `performance` marks and measures** are supported. - **`EventTarget` and `Event` can be subclassed.** - **Sockets and serve _[Truncated at 4000 characters — full notes: https://github.com/vercel-labs/scriptc/releases/tag/v0.3.4]_ ### v0.3.3 - Date: 2026-10-15 - Version: v0.3.3 - Original notes: https://github.com/vercel-labs/scriptc/releases/tag/v0.3.3 - Permalink: https://whatsnew.fyi/product/scriptc/releases/v0.3.3 - **changed** — scriptc targets Node 24.22.0, with compatibility tables, tests and behavior following Node 24.22.0 - **added** — node:crypto covers every digest in createHash, createHmac, crypto.hash, pbkdf2 and hkdf, plus every Hash and Hmac encoding and option - **added** — node:crypto supports secret KeyObjects via createSecretKey, generateKey and generateKeySync - **added** — node:crypto supports randomFill, randomInt callbacks, randomUUID options, randomUUIDv7, and timingSafeEqual over any view or ArrayBuffer - **added** — node:fs adds glob, globSync and fs/promises glob - **added** — node:fs/promises gains the remaining functions with Node's argument checks - **changed** — fs.Stats is complete in both callback and promise lanes, and mkdir, readFile and write callbacks return results - **changed** — readdir lists entries in byte order on POSIX hosts - **changed** — Dynamic Dirent values have Node's prototype and inspect form - **added** — Blob and File are supported - **added** — readline/promises is supported - **added** — stream.addAbortSignal and stream/promises options are supported - **changed** — Stream chunks made from strings reach user code as Buffers - **added** — The legacy url API, url.domainToASCII and url.domainToUnicode are supported - **added** — process.memoryUsage, process identity members, and performance marks and measures are supported - **added** — EventTarget and Event can be subclassed - **added** — Sockets and servers support ref() and unref() - **changed** — The HTTP server enforces Node's header field limits - **added** — util.types has Node 24's keys - **changed** — util.inspect prints class names and dynamic Maps and Sets as Node does - **changed** — localeCompare matches Node's collation for l·, U+0130, ligatures, combining Latin letters and vulgar fractions - **changed** — Comparator sorts use V8's TimSort, and typed-array sort and toSorted are lowered natively - **changed** — The allocator uses 8-byte size classes below 128 bytes, reducing memory waste for small objects - **changed** — Interface calls are faster: class methods are called directly through interfaces and interface dispatch is inlined - **changed** — Arrays of interface values are stored natively with direct field reads - **changed** — Strings append in place for fields, concatenation chains and character codes, and string retains are inlined in release builds - **changed** — Scalar-union record fields are stored inline, and record parameters and returns widen by flow class - **changed** — Nullable records use widened record slots, result-slot entries are inlined, and conversions from typed records to unknown are cheaper - **changed** — Typed JSON.parse matches member names against the text and reads scalar members inline - **changed** — Typed JSON.stringify writes arrays from their slots - **changed** — Map and Set iteration steps are inlined, and Object.values is built natively when only iterated or read - **changed** — Array searches over objects and strings run inline, and array headers stay out of loops - **changed** — localeCompare is faster, comparing without building element lists and checking ASCII strings eight bytes at a time - **changed** — Remainders by powers of two skip fmod, number and string dynamic boxes are freed without the destroy queue, and VT control characters are stripped in one pass - **fixed** — parseInt rounds as Node does on each architecture - **fixed** — New runtime globals are defined with initializers, so library localization hides them - **changed** — Native program objects use runtime ABI v21; external object consumers must link the matching v0.3.3 runtime pack, and the versioned marker rejects incompatible runtime objects at link time ##### 0.3.3 ###### Features - **scriptc targets Node 24.22.0.** Compatibility tables, tests and behavior follow Node 24.22.0. - **`node:crypto` covers more of Node 24:** every digest in `createHash`, `createHmac`, `crypto.hash`, `pbkdf2` and `hkdf`, every Hash and Hmac encoding and option, secret `KeyObject`s (`createSecretKey`, `generateKey`, `generateKeySync`), `randomFill`, `randomInt` callbacks, `randomUUID` options, `randomUUIDv7`, and `timingSafeEqual` over any view or `ArrayBuffer`. - **`node:fs` adds `glob`, `globSync` and `fs/promises` `glob`,** the remaining `fs/promises` functions with Node's argument checks, complete `fs.Stats` in both lanes, and results from `mkdir`, `readFile` and `write` callbacks. `readdir` lists entries in byte order on POSIX hosts, and dynamic `Dirent` values have Node's prototype and inspect form. - **`Blob` and `File`** are supported. - **`readline/promises`, `stream.addAbortSignal` and the `stream/promises` options** are supported, and stream chunks made from strings reach user code as `Buffer`s. - **The legacy `url` API, `url.domainToASCII` and `url.domainToUnicode`** are supported. - **`process.memoryUsage`, process identity members, and `performance` marks and measures** are supported. - **`EventTarget` and `Event` can be subclassed.** - **Sockets and servers support `ref()` and `unref()`.** The HTTP server enforces Node's header field limits, and `util.types` has Node 24's keys. - **`util.inspect` prints class names and dynamic Maps and Sets** as Node does. - **`localeCompare` matches Node's collation** for `l·`, U+0130, ligatures, combining Latin letters and vulgar fractions. ###### Performance - **Comparator sorts use V8's TimSort,** and typed-array `sort` and `toSorted` are lowered natively. - **The allocator has 8-byte size classes below 128 bytes,** so small objects waste less memory. - **Interface calls are faster.** Class methods are called directly through interfaces, interface dispatch is inlined and borrows array elements, and arrays of interface values are stored natively with direct field reads. - **Strings append in place** for fields, concatenation chains and character codes, and string retains are inlined in release builds. - **Records are leaner.** Scalar-union fields are stored inline, record parameters and returns widen by flow class, nullable records use widened record slots, result-slot entries are inlined, and conversions from typed records to `unknown` are cheaper. - **Typed `JSON.parse` matches member names against the text** and reads scalar members inline, and typed `JSON.stringify` writes arrays from their slots. - **Map and Set iteration steps are inlined,** and `Object.values` is built natively when its result is only iterated or read. - **Array searches over objects and strings run inline,** and array headers stay out of loops. - **`localeCompare` is faster:** it compares without building element lists and checks ASCII strings eight bytes at a time. - **Remainders by powers of two skip `fmod`,** number and string dynamic boxes are freed without the destroy queue, and VT control characters are stripped in one pass. ###### Fixes - **`parseInt` rounds as Node does on each architecture.** - **New runtime globals are defined with initializers,** so library localization hides them. - **Native program objects use runtime ABI v21.** Array, record and allocator layouts changed, so external object consumers must link the matching v0.3.3 runtime pack; the versioned marker rejects incompatible runtime objects at link time. ### v0.3.2 - Date: 2026-10-14 - Version: v0.3.2 - Original notes: https://github.com/vercel-labs/scriptc/releases/tag/v0.3.2 - Permalink: https://whatsnew.fyi/product/scriptc/releases/v0.3.2 - **added** — EventTarget, Event and CustomEvent are supported, with Node's dispatch order, once/passive/signal options and listener error reporting - **added** — AbortSignal uses the same implementation as EventTarget, and events.errorMonitor and events.addAbortListener are supported - **added** — Promise.allSettled and Promise.any are supported in typed and JavaScript code, with Node's microtask order, AggregateError, and PromiseSettledResult records - **added** — JavaScript Promise combinators adopt thenables - **added** — yield* delegates to arrays, strings, Sets and Maps, and forwards typed next values, return() and throw() - **changed** — A finished generator's .value reads as undefined - **added** — The global console is complete, including assert, count/countReset, dir/dirxml, group*, table, time/timeLog/timeEnd, clear and profile/timeStamp, printing Node's output - **added** — node:os is complete, and path.parse, path.format and path.matchesGlob are supported for the posix and win32 families - **added** — util.inherits, util.deprecate, util.callbackify and util.debuglog follow Node 24, including NODE_DEBUG, process.noDeprecation and process.throwDeprecation - **added** — LifetimeRegion in @scriptc/experimental frees ProgramLifetime instances one generation at a time - **changed** — Short-lived number records and small class instances with number and boolean fields that are only read, updated by their own methods, or returned unchanged are kept in the function's frame instead of being heap-allocated, including results of functions returning a fresh object - **changed** — Maybe-missing number reads stay unboxed, and directly called functions returning number | undefined return the tag and payload in registers - **changed** — boolean[] stores one byte per element, small appended arrays keep their first elements in the array's own block, and cycle-capable objects carry an 8-byte header instead of 16 bytes - **changed** — Sorting with a recognized numeric comparator sorts by key without calling the comparator, for number[] and arrays of records or class instances - **changed** — Regex replace, match and capture reads are faster, as compiled matchers write replacements directly and captures only compared or converted to numbers are not copied into strings - **changed** — for...in, Object.keys and Object.entries over values typed unknown or any build native arrays from the record layout or the object's own keys - **changed** — Calls through function-typed class fields box the receiver only when the callee reads this - **changed** — Indexed non-ASCII string scans, split(""), template literals and join are faster - **fixed** — Strings keep lone UTF-16 surrogates by being stored as canonical WTF-8, so they survive literals, split(""), charAt, slice, fromCharCode and JSON.parse, and output streams write them as U+FFFD as Node does - **fixed** — A var read before its first store reads undefined, and classes used before their declaration runs throw a ReferenceError - **fixed** — Reflection over typed values seen as unknown matches Node: in sees prototype members, for...in walks class instances, typed records work as prototypes, and JSON.stringify accepts array replacers - **fixed** — Microtask and event order match Node for Promise.all, Promise.race, async generator returns, and fork IPC exit, disconnect and close events - **fixed** — Module initializers that only ++ or -- a binding run - **changed** — Native program objects use runtime ABI v20, so array and object layouts changed and external object consumers must link the matching v0.3.2 runtime pack; the versioned marker rejects incompatible runtime objects at link time ##### 0.3.2 ###### Features - **`EventTarget`, `Event` and `CustomEvent`** are supported, with Node's dispatch order, `once`/`passive`/`signal` options and listener error reporting. `AbortSignal` uses the same implementation, and `events.errorMonitor` and `events.addAbortListener` are supported. - **`Promise.allSettled` and `Promise.any`** are supported in typed and JavaScript code, with Node's microtask order, `AggregateError`, and `PromiseSettledResult` records. JavaScript combinators adopt thenables. - **`yield*` delegates to arrays, strings, Sets and Maps,** forwards typed `next` values, `return()` and `throw()`, and a finished generator's `.value` reads as `undefined`. - **The global console is complete:** `assert`, `count`/`countReset`, `dir`/`dirxml`, `group*`, `table`, `time`/`timeLog`/`timeEnd`, `clear` and `profile`/`timeStamp` print Node's output. - **`node:os` is complete,** and `path.parse`, `path.format` and `path.matchesGlob` are supported for the posix and win32 families. - **`util.inherits`, `util.deprecate`, `util.callbackify` and `util.debuglog`** follow Node 24, including `NODE_DEBUG`, `process.noDeprecation` and `process.throwDeprecation`. - **`LifetimeRegion` in `@scriptc/experimental`** frees `ProgramLifetime` instances one generation at a time. A watch-style compiler benchmark stays at 190 MB after 10 builds. ###### Performance - **Short-lived number records and objects live in the function's frame.** Records and small class instances with number and boolean fields that are only read, updated by their own methods, or returned unchanged are not heap-allocated, including results of functions that return a fresh object. - **Maybe-missing number reads stay unboxed,** and directly called functions returning `number | undefined` return the tag and payload in registers. - **Arrays and objects use less memory.** `boolean[]` stores one byte per element, small appended arrays keep their first elements in the array's own block, and cycle-capable objects carry an 8-byte header instead of 16 bytes. - **Sorting with a recognized numeric comparator sorts by key** without calling the comparator, for `number[]` and arrays of records or class instances. - **Regex `replace`, `match` and capture reads are faster.** Compiled matchers write replacements directly, and captures that are only compared or converted to numbers are not copied into strings. - **`for...in`, `Object.keys` and `Object.entries` over values typed `unknown` or `any`** build native arrays from the record layout or the object's own keys. - **Calls through function-typed class fields** box the receiver only when the callee reads `this`. - **Indexed non-ASCII string scans, `split("")`, template literals and `join` are faster.** ###### Fixes - **Strings keep lone UTF-16 surrogates.** Strings are stored as canonical WTF-8, so lone surrogates survive literals, `split("")`, `charAt`, `slice`, `fromCharCode` and `JSON.parse`, and output streams write them as U+FFFD as Node does. - **A `var` read before its first store reads `undefined`,** and classes used before their declaration runs throw a `ReferenceError`. - **Reflection over typed values seen as `unknown` matches Node:** `in` sees prototype members, `for...in` walks class instances, typed records work as prototypes, and `JSON.stringify` accepts array replacers. - **Microtask and event order match Node** for `Promise.all`, `Promise.race`, async generator returns, and fork IPC `exit`, `disconnect` and `close` events. - **Module initializers that only `++` or `--` a binding run.** - **Native program objects use runtime ABI v20.** Array and object layouts changed, so external object consumers must link the matching v0.3.2 runtime pack; the versioned marker rejects incompatible runtime objects at link time. ### v0.3.1 - Date: 2026-10-13 - Version: v0.3.1 - Original notes: https://github.com/vercel-labs/scriptc/releases/tag/v0.3.1 - Permalink: https://whatsnew.fyi/product/scriptc/releases/v0.3.1 - **added** — node:console Console instances write to process.stdout, process.stderr or other writable streams, with Node's ignoreErrors handling - **added** — stream/consumers arrayBuffer() is supported - **added** — ArrayBuffer and SharedArrayBuffer values print like Node - **added** — Compound assignment and ++/-- work on bigint locals and fields - **changed** — Locals proven to stay within 32 bits are stored as 32-bit integers - **changed** — int32 parameters and results pass in integer registers on direct calls - **changed** — Integer sums that feed bitwise conversions wrap in 32 bits - **changed** — Loop accumulators keep uint32 ranges - **changed** — Filter, map, flatMap and slice chains feeding reduce, some, every, findIndex, forEach, length or a final array run as single loops without building intermediate arrays when callback effects allow it - **changed** — Arrays track a hole-free prefix whose reads and writes skip per-slot state - **changed** — Compound element updates are native - **changed** — Dense arrays sort without a snapshot - **changed** — Typed-array reads compared with numbers stay unboxed - **changed** — Calls are devirtualized by the classes a program constructs - **changed** — Closure bodies borrow unchanged reference parameters - **changed** — The comparator sort lends its slots - **changed** — Unchanged captures are read in place - **changed** — Awaiting a direct async call that completes without suspending creates no promise - **changed** — Synchronous generators run as stackless coroutines - **changed** — Comparisons and switch against string literals run inline - **changed** — Regex literals compile to native matchers at build time and literal sites reuse their compiled pattern - **changed** — Plain-text patterns and string replace/replaceAll scan directly - **changed** — BigInt arithmetic and text conversion use limb-based division, chunked radix conversion and Karatsuba multiplication - **changed** — BigInt literals are constants and small-value expressions run in 64-bit registers - **changed** — Reflective reads of typed values (for...in, Object.keys/values/entries, in, spread and JSON.stringify of typed records seen as unknown) read native fields instead of copying the record - **changed** — The cycle collector frees young garbage sooner and tears down typed children directly - **changed** — Types the cycle collector bypasses are measured again in probe windows - **changed** — The compiler's analyses walk the IR through typed fields, making compilation faster - **fixed** — return p in an async function takes Node's microtask turns - **fixed** — A rejection of the returned promise reaches the caller instead of the function's own catch - **fixed** — Core dumps leave out the allocator's untouched reservation, so crashing programs no longer write gigabytes of empty memory - **changed** — glibc's heap is left to the huge-page policy in core dumps - **changed** — Native program objects use runtime ABI v17, so external consumers must link the matching v0.3.1 runtime pack ##### 0.3.1 ###### Features - **`node:console` `Console` instances** write to `process.stdout`, `process.stderr` or other writable streams, with Node's `ignoreErrors` handling. - **`stream/consumers` `arrayBuffer()`** is supported, and `ArrayBuffer` and `SharedArrayBuffer` values print like Node. - **Compound assignment and `++`/`--` work on bigint locals and fields.** ###### Performance - **Integer code stays in integer registers.** Locals proven to stay within 32 bits are stored as 32-bit integers, int32 parameters and results pass in integer registers on direct calls, integer sums that feed bitwise conversions wrap in 32 bits, and loop accumulators keep uint32 ranges. - **Array callback chains run as single loops.** `filter`, `map`, `flatMap` and `slice` chains feeding `reduce`, `some`, `every`, `findIndex`, `forEach`, `length` or a final array no longer build intermediate arrays when the callbacks' effects allow it. - **Array element access does less work.** Arrays track a hole-free prefix whose reads and writes skip per-slot state, compound element updates are native, dense arrays sort without a snapshot, and typed-array reads compared with numbers stay unboxed. - **Calls and closures retain less.** Calls are devirtualized by the classes a program constructs, closure bodies borrow unchanged reference parameters, the comparator sort lends its slots, and unchanged captures are read in place. - **Async calls and generators are cheaper.** Awaiting a direct async call that completes without suspending creates no promise, and synchronous generators run as stackless coroutines. - **Strings and regular expressions are faster.** Comparisons and `switch` against string literals run inline, regex literals compile to native matchers at build time, literal sites reuse their compiled pattern, and plain-text patterns and string `replace`/`replaceAll` scan directly. - **BigInt arithmetic and text conversion are much faster,** with limb-based division, chunked radix conversion and Karatsuba multiplication; literals are constants, and small-value expressions run in 64-bit registers. - **Reflective reads of typed values** (`for...in`, `Object.keys`/`values`/`entries`, `in`, spread and `JSON.stringify` of typed records seen as `unknown`) read native fields instead of copying the record. - **The cycle collector frees young garbage sooner and teardown is direct.** Types the collector bypasses are measured again in probe windows, and typed children are torn down without the generic release path. - **The compiler is faster,** because its own analyses walk the IR through typed fields. ###### Fixes - **`return p` in an async function takes Node's microtask turns,** and a rejection of the returned promise reaches the caller instead of the function's own `catch`. - **Core dumps leave out the allocator's untouched reservation,** so crashing programs no longer write gigabytes of empty memory, and glibc's heap is left to the huge-page policy. - **Native program objects use runtime ABI v17.** Array, closure and regex layouts changed, so external object consumers must link the matching v0.3.1 runtime pack; the versioned marker rejects incompatible runtime objects at link time. ### v0.3.0 - Date: 2026-10-12 - Version: v0.3.0 - Original notes: https://github.com/vercel-labs/scriptc/releases/tag/v0.3.0 - Permalink: https://whatsnew.fyi/product/scriptc/releases/v0.3.0 - **removed** — The --dynamic option and embedded JavaScript execution runtime have been removed, and compilation is now native-only - **added** — process.constrainedMemory() and process.availableMemory() read the process's own cgroup limits, as Node.js does through libuv - **changed** — Absent string keys are rejected before the map is probed during map and string lookups - **changed** — Multi-byte substring searches no longer call memchr for every first-byte hit - **changed** — Class property bags are read without being created - **changed** — Runtime packs for Linux musl, Windows and WASI are much smaller because their dev runtime objects no longer carry undefined-behavior checks - **changed** — Native program objects use runtime ABI v14, so external object consumers must link the matching v0.3.0 runtime pack ##### 0.3.0 ###### Breaking changes - **Compilation is native-only.** The `--dynamic` option and embedded JavaScript execution runtime have been removed. Eligible dependencies compile natively by default; unsupported packages receive build diagnostics. QuickJS remains only in the native compiler's isolated `comptime` helper and as standalone regex/Unicode libraries. ###### Features - **`process.constrainedMemory()` and `process.availableMemory()` read the process's own cgroup limits,** as Node.js does through libuv. ###### Performance - **Map and string lookups do less work.** Absent string keys are rejected before the map is probed, and multi-byte substring searches no longer call `memchr` for every first-byte hit. - **Class property bags are read without being created.** - **Runtime packs for Linux musl, Windows and WASI are much smaller.** Their dev runtime objects no longer carry undefined-behavior checks, matching the glibc and macOS packs. ###### Fixes - **Native program objects use runtime ABI v14.** The embedded JavaScript runtime's symbols were removed, so external object consumers must link the matching v0.3.0 runtime pack; the versioned marker rejects incompatible runtime objects at link time. ### v0.2.10 - Date: 2026-10-12 - Version: v0.2.10 - Original notes: https://github.com/vercel-labs/scriptc/releases/tag/v0.2.10 - Permalink: https://whatsnew.fyi/product/scriptc/releases/v0.2.10 - **added** — Add a types-only @scriptc/types package with NoThrow, Int32, Immutable, Acyclic and ProgramLifetime contract types that scriptc proves at compile time or fails the build with a diagnostic - **added** — Store proven Int32 slots as native integers, take no reference counts for immutable module constants, and skip reference counting and cycle collection for program-lifetime classes - **added** — Discharge NoThrow outside worker programs when the surrounding code is wrapped in try/catch - **changed** — Construction of private constructor stores drops publication guards and construction-only fields are borrowed - **changed** — String-keyed Map reads retain inline and narrowed member reads are rechecked only when a call can invalidate them - **changed** — charCodeAt at proven integer indices skips the double round trip - **changed** — Literal switch statements dispatch without range tests - **changed** — Indexed-read helpers are inlined - **changed** — Identity bitwise forms over proven int32 operands return the operand - **changed** — Array counters use signed conversions - **changed** — Small arrays are sized exactly and map storage stays on the runtime allocator - **changed** — Array element reference-count entry points live in one shared descriptor per element type - **changed** — glibc large blocks use transparent huge pages and Linux pre-faults allocator memory on a helper thread - **changed** — Runtime throw paths are kept out of line so hot code stays smaller - **fixed** — A constructor that stores this into its own field keeps its publication guards so published object graphs stay immutable - **fixed** — Calls that may replace a field keep their own reference to arguments read from it - **changed** — Native program objects use runtime ABI v13 with changed array headers, so external object consumers must link the matching v0.2.10 runtime pack ##### 0.2.10 ###### Features - **Contract types check extra promises at compile time.** The new types-only `@scriptc/types` package adds `NoThrow`, `Int32`, `Immutable`, `Acyclic` and `ProgramLifetime`. They mean nothing to TypeScript or Node.js, but scriptc proves each one or fails the build with a diagnostic that names the throwing path, the non-int32 store, the write that breaks immutability or the reference cycle. Proven `Int32` slots are stored as native integers, immutable module constants take no reference counts, and program-lifetime classes skip reference counting and cycle collection. Outside worker programs, a surrounding `try`/`catch` discharges `NoThrow`. ###### Performance - **Construction and narrowed reads do less work.** Private constructor stores drop publication guards, construction-only fields are borrowed, string-keyed `Map` reads retain inline, and narrowed member reads are rechecked only when a call can invalidate them. - **Indexed reads and integer code are cheaper.** `charCodeAt` at proven integer indices skips the double round trip, literal `switch` statements dispatch without range tests, indexed-read helpers are inlined, identity bitwise forms over proven int32 operands return the operand, and array counters use signed conversions. - **Allocation is faster and smaller.** Small arrays are sized exactly, map storage stays on the runtime allocator, array element reference-count entry points live in one shared descriptor per element type, glibc's large blocks use transparent huge pages, and Linux pre-faults allocator memory on a helper thread. - **Runtime throw paths stay out of line,** so hot code around checks that rarely fail stays smaller. ###### Fixes - **Published object graphs stay immutable in more cases.** A constructor that stores `this` into its own field keeps its publication guards, and calls that may replace a field keep their own reference to arguments read from it. - **Native program objects use runtime ABI v13.** Array headers changed, so external object consumers must link the matching v0.2.10 runtime pack; the versioned marker rejects incompatible runtime objects at link time. ### v0.2.9 - Date: 2026-10-11 - Version: v0.2.9 - Original notes: https://github.com/vercel-labs/scriptc/releases/tag/v0.2.9 - Permalink: https://whatsnew.fyi/product/scriptc/releases/v0.2.9 - **added** — os.availableParallelism() works in static programs. - **added** — --detached-exit frees the address space after process.exit off the critical path, so large programs exit sooner. - **changed** — Cycle-capable objects are smaller, using a 16-byte collector header, typed rest spreads, leaf capture boxes, out-of-line rarely used array storage, and tracing only types that can actually lie on a cycle. - **changed** — The heap and cycle collector scale better, with busy small-object slices using transparent huge pages, a wider collector growth fraction on large live heaps, and Map/Set clear and delete costing O(live) rather than O(peak). - **changed** — Indexed reads are cheaper, with typed-array reads staying plain numbers where undefined acts like NaN, unproven indexes checked with a signed round trip, lengths and in-range indexes converted to doubles without the unsigned sequence, nullable-union array elements read inline, and counted loops from unproven values running on integer counters. - **changed** — Worker programs pay less overhead through fewer termination polls, an exact per-thread pending word, a call-free macOS stack guard, and exiting worker threads returning their free pages to the system. - **changed** — More receivers and fields stay native: optional-chain receivers are borrowed, int32 fields survive Error subclasses that forward constructor arguments, and method calls stay native when only an unrelated callback field shares the name. - **changed** — Compiler-scale programs compile without hitting V8's string limit because serialized IR is streamed. - **fixed** — Missing array and typed-array reads stay undefined through number arguments, narrowed slots, and lambda results, and null stays distinct from the temporal dead zone in forward-captured bindings. - **fixed** — Union class fields work in more shapes: optional base-class receivers are narrowed before shared field access, and fields declared with different types across a union can be read and written. - **fixed** — Workers share descriptor tables safely, and live array references are accessed one element at a time. - **changed** — Native program objects use runtime ABI v12, so runtime object layouts changed and external object consumers must link the matching v0.2.9 runtime pack; the versioned marker rejects incompatible runtime objects at link time. ##### 0.2.9 ###### Features - **`os.availableParallelism()` works in static programs.** - **`--detached-exit` frees the address space after `process.exit` off the critical path,** so large programs exit sooner. ###### Performance - **Cycle-capable objects are smaller.** A 16-byte collector header, typed rest spreads, leaf capture boxes, rarely used array storage moved out of line, and tracing only types that can actually lie on a cycle. - **The heap and cycle collector scale better.** Busy small-object slices use transparent huge pages, the collector's growth fraction widens further on large live heaps, and `Map`/`Set` `clear` and `delete` cost O(live) rather than O(peak). - **Indexed reads are cheaper.** Typed-array reads stay plain numbers where `undefined` acts like `NaN`, unproven indexes are checked with a signed round trip, lengths and in-range indexes convert to doubles without the unsigned sequence, nullable-union array elements are read inline, and counted loops that start from an unproven value run on integer counters. - **Worker programs pay less overhead.** Fewer termination polls, an exact per-thread pending word, a call-free macOS stack guard, and exiting worker threads return their free pages to the system. - **More receivers and fields stay native.** Optional-chain receivers are borrowed, `int32` fields survive `Error` subclasses that forward constructor arguments, and method calls stay native when only an unrelated callback field shares the name. - **Compiler-scale programs compile without hitting V8's string limit.** Serialized IR is streamed. ###### Fixes - **More values behave as in Node.js.** Missing array and typed-array reads stay `undefined` through number arguments, narrowed slots and lambda results, and `null` stays distinct from the temporal dead zone in forward-captured bindings. - **Union class fields work in more shapes.** Optional base-class receivers are narrowed before shared field access, and fields declared with different types across a union can be read and written. - **Workers share descriptor tables safely,** and live array references are accessed one element at a time. - **Native program objects use runtime ABI v12.** Runtime object layouts changed, so external object consumers must link the matching v0.2.9 runtime pack; the versioned marker rejects incompatible runtime objects at link time.