Jennifer 0.28: what's new, what's deprecated, what breaks

Jennifer

Nine modules become decks, the 0.27 deprecations are removed, and the libraries agree on errors, caps and timeouts.

November 2026, by @mplx.
Based on Jennifer 0.28.0

Powered by Jennifer's Cantrip - Markdown into slide decks, https://github.com/jennifer-language/cantrip
1 / 22

The release in one slide

2 / 22

Breaking: nine bundled modules are decks

gotify, slack, discord, telegram, prometheus, statsd, influxdb, mikrotik, mactelnet: same calls, now a deck.

[decks]
"@deckyard/gotify" = "^0.4.0"
import "@deckyard/gotify/" as gotify;   # was: import "gotify.j" as gotify;

Then jvc install, which copies the deck to vendor/deckyard/gotify/.

3 / 22

Breaking: @jennifer decks are @deckyard

4 / 22

Breaking: removed names and builtins

old.j:4:22: warning: `strings.substring` was removed in 0.28.0;
use a slice: `$s[a..b]`, `$s[a..]` [L302]
RemovedUse
strings.substring, lists.slice / head / tail / pop, binary.sliceslices
strings.repeat, testing.runWith / assertThrowsWithreplicate, runArgs / assertThrowsArgs
crypto.hkdf / pbkdf2 / argon2id / scryptcrypto.deriveKey
convert.bytesFromString / stringFromBytesencoding.encode / decode
orm.hasOne, validate.isInt, insecure, withCaCert, ...oneToOne, integer, withSkipVerify, withCA
io.printf($v), lists.range(a, b), convert.toString(n, 16)"%v", a..b, `"%d
5 / 22

Breaking: network halves move

def store as kvstore.Store init redis.kvStore($rc);   # was kvstore.redisStore($rc)
def cache as kvstore.Store init memcache.kvStore($mc); # was kvstore.memcacheStore($mc)
http.post($url, "application/json", $payload,
    webhook.signedHeaders($payload, $secret));        # was webhook.send(...)
6 / 22

Breaking: error kinds

Case0.270.28
bad JSON, XML, TOML, YAML, ... data"runtime"the library: "json", "xml", ...
invalid UTF-8 read as text"runtime""fs", "io", "os"
use of a closed or consumed handlemostly "runtime""closed"
a second closethrew in fs, net, term, channeldoes nothing
web.form, bodyJson on a bad body"encoding", "runtime", "multipart"web.WebError, answered 400
term.readByte at the end, on timeout-1, -2"closed", "timeout"
7 / 22

Breaking: sql and net

8 / 22

Breaking: caps, timeouts, outside text

9 / 22

Breaking: smaller changes

10 / 22

Deprecated: one request function in http

# deprecated in 0.28.0
def r as http.Response init http.requestWith("GET", $url, {}, "", 5000, 1048576);
# use
def r as http.Response init http.send("GET", $url, {}, "",
    http.Options{timeoutMs: 5000, maxBytes: 1048576});

requestWith, requestTls, requestWithTls, requestRawBody, requestRawBodyTls, requestBytes, requestWithBytes: send or sendBytes, TLS settings in Options.tlsOptions.

11 / 22

Deprecated: options structs, not trailing arguments

DeprecatedUse
net.connect(addr, ms), connectTLS, startTLS with a timeoutconnectWith, startTLSWith
net.readAll / readN idle timeout; net.eofnet.setIdleTimeout; an empty readBytes
compress.unpack / images.decode caps; "tgz"unpackWith, decodeWith; "tar.gz"
os.spawn(argv, map), fs.watch intervalos.spawnWith, fs.watchWith
httpd.listenTLS, serveFileEtag, serveDirEtaghttpd.Options{certPem, keyPem, etag}
two-argument xml.decode, spi.configurexml.decodeWith, spi.openWith
12 / 22

Deprecated: one way per thing

DeprecatedUse
sql drivers "mariadb", "postgresql"; sql.setQueryTimeout"mysql", "postgres"; Options.queryTimeoutMs
time.fromUnixMillis / unixMillisfromUnixMilliseconds / unixMilliseconds
crypto "rsa-sha256" / 384 / 512, a string password"rsa-pkcs1-sha*", bytes
the gpio module, gpio.chip, pin-only callsthe gpio library: gpio.open gives a Chip
stats.multipleRegression, convert.toInt(float)ml.linearRegression, math.trunc / round / ...
os.hasFlag / flag, decimal.toString, images.rgbathe args module, "%v", images.Color{...}
13 / 22

New: a 48-byte Value

14 / 22

New: binary writers

def rec as bytes init binary.join([
    binary.fromUint("le", 0x4A454E4E, 4),
    binary.fromInt("le", -2, 2),
    binary.fromFloat("le", 3.25, 8)
]);
$rec = binary.setInt("le", $rec, 4, 7, 2);      # a copy: assign it back
def pcm as bytes init binary.fromInts("le", [0, 1000, -1000, 32767], 2);

A value that does not fit is refused, never truncated: fromUint("le", 256, 1) throws.

15 / 22

New: bounded child processes

def p as os.Process init os.spawnWith(["sh", "-c", "sleep 30 & sleep 30; wait"],
    os.SpawnOptions{cleanEnv: true, env: {"PATH": "/usr/bin:/bin"}, group: true});
try { os.waitTimeout($p, 500); } catch (e) {
    if ($e.kind != "timeout") { throw $e; }
    os.signal($p, "term");                   # the shell and its background job
}

SpawnOptions also takes dir. Files: fs.seek / fs.tell resume a read at a byte offset, fs.syncDir makes a rename survive a crash.

16 / 22

New: a memory budget per task

def t as task of int init spawn {
    task.setAllocBudget(1024 * 1024);
    try { return build(1000000); } catch (e) {
        if ($e.kind != "limit") { throw $e; }
        io.printf("over budget: %s, %d bytes counted\n", $e.kind, task.allocatedBytes());
        return -1;
    }
};
over budget: limit, 1048608 bytes counted

web.allocBudget($app, bytes) sets one per request.

17 / 22

New: tools and releases

old.j:5:19: warning: `%d` in the `io.printf` format takes int, got string [L117]
18 / 22

New in the libraries and modules

19 / 22

Fixed

20 / 22

Upgrading a program or a deck

  1. Run jennifer lint: L302 for removed calls and modules, L301 for 0.29.0's removals
  2. Replace the nine bundled modules and every @jennifer/* deck with @deckyard
  3. Search catches that compare "runtime" around parsers, handles, web bodies
  4. Check sql DSNs for verified TLS and net.connect(addr, 0) for a deadline
  5. Raise [engines] jennifer or the pragma to >=0.28.0 when you use something new
21 / 22

Read more

Based on Jennifer 0.28.0, November 2026.

22 / 22