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

Jennifer

The release that tidied the standard library before 1.0.

November 2026, by @mplx.
Based on Jennifer 0.26.0

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

The release in one slide

2 / 17

Before you upgrade: jvc first

jvc 0.1.0 does not run on 0.26.0, so it cannot update itself afterwards.

# before installing 0.26.0:
jvc app update jvc            # to 0.2.0

# or afterwards, once, from the tag:
git clone --depth 1 --branch 0.2.0 https://github.com/jennifer-language/jvc /tmp/jvc
jennifer run /tmp/jvc/bin/jvc app update jvc
3 / 17

Breaking: the name comes first

# 0.25
def digest as bytes init hash.compute($data, "sha256");
def text as string init encoding.toText($digest, "hex");
use convert;
use encoding;
use hash;
def data as bytes init convert.bytesFromString("utf-8", "Jennifer");
def digest as bytes init hash.compute("sha256", $data);
def text as string init encoding.toText("hex", $digest);

Also compress, archive, crc, convert, crypto.hkdf / pbkdf2, jwt.sign / verify, log.new and more: move the name to the front.

4 / 17

Breaking: crypto, one function per operation

0.250.26
signKeypair()keypair("ed25519")
rsaSign / ecdsaSignsign("rsa-sha256", ...) / sign("ecdsa-sha256", ...)
rsaGenerateKey / ecGenerateKeykeypair("rsa2048") / keypair("p256")
encrypt(plaintext, key)encrypt("aes-gcm", plaintext, key, nonce, aad)
hmacEqualhash.equal

Old encrypt boxes still open.

5 / 17

Breaking: match the kind, never the message

use io;
use json;
use strings;
try {
    json.decode(strings.repeat("[", 2000) + strings.repeat("]", 2000));
} catch (e) {
    if ($e.kind == "limit") {
        io.printf("too deep, refused\n");
    }
}

"limit" a cap, "timeout", "closed", "net" (a net.NetError), "cancelled": the same in every library and module.

6 / 17

Breaking: module errors are structs

try {
    def r as http.Response init rest.get($api, "/orders/7");
} catch (e) {
    if ($e.kind == "http") {
        def he as rest.HttpError init $e;
        io.printf("status %d\n", $he.status);
    }
}

acme amqp graphql imap jsonrpc ldap mcp memcache mqtt ntp oauth pop redis rest s3 smtp snmp soap webdav zmq: one struct each, kind and message unchanged.

7 / 17

Breaking: stricter input

8 / 17

Breaking: new caps, refused for safety

9 / 17

Breaking: moved and removed

10 / 17

Deprecated: nine clients become decks

discord, gotify, influxdb, mactelnet, mikrotik, prometheus, slack, statsd, telegram: removed in 0.28.0.

jvc add "@deckyard/slack"
import "@deckyard/slack/" as slack;    # was: import "slack.j";

Same surface; only the import changes.

11 / 17

New in the language

12 / 17

New: decimal and images

use decimal;
use images;
use io;
io.printf("%v\n", decimal.add("0.10", "0.20"));
io.printf("%v\n", decimal.div(1, 3, 4));
def img as images.Image init images.create(40, 20, images.rgb(200, 30, 30));
def png as bytes init images.encode("png", $img);
io.printf("%d bytes\n", len($png));

decimal: exact base-10, rounding spelled out. images: PNG / JPEG / GIF, an immutable images.Image.

13 / 17

New in the modules

14 / 17

Tooling and jennifer-tiny

15 / 17

Upgrading a program or a deck

  1. Update jvc to 0.2.0
  2. Raise the floor: # pragma-jennifer-version: >=0.26.0, deck.toml
  3. Run jennifer lint: argument order and types show up as L109 / L110
  4. Search for message matching (strings.contains($e.message, ...)) and match $e.kind instead
  5. Run the tests, on jennifer-tiny-dev too if you support it
  6. Move off the nine deprecated modules before 0.28.0
16 / 17

Read more

Based on Jennifer 0.26.0, November 2026.

17 / 17