<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Koja releases</title>
  <subtitle>Release notes for the Koja programming language.</subtitle>
  <id>https://kojalang.org/changelog/</id>
  <link href="https://kojalang.org/changelog/feed.xml" rel="self" type="application/atom+xml" />
  <link href="https://kojalang.org/changelog/" rel="alternate" type="text/html" />
  <updated>2026-11-27T00:00:00+00:00</updated>
  <author>
    <name>Henry Popp</name>
  </author>
  <entry>
    <title>Koja 0.21.1</title>
    <id>https://kojalang.org/changelog/0.21.1/</id>
    <link href="https://kojalang.org/changelog/0.21.1/" rel="alternate" type="text/html" />
    <published>2026-11-27T00:00:00+00:00</published>
    <updated>2026-11-27T00:00:00+00:00</updated>
    <content type="html">&lt;h3 id=&quot;added&quot;&gt;Added&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;An enum variant pattern and a struct pattern match one member of a union. For a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Result&amp;lt;Int, ParseError | NetError&amp;gt;&lt;/code&gt;, the arm &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Result.Err(ParseError.BadDigit(pos)) -&amp;gt;&lt;/code&gt; compiles, and so does &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Cat{name: n} -&amp;gt;&lt;/code&gt; for a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Cat | Dog&lt;/code&gt; value. A &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;match&lt;/code&gt; is exhaustive when its arms cover every variant of each member.&lt;/li&gt;
  &lt;li&gt;A &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;match&lt;/code&gt; arm on a union can name more than one member, as in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rest: Bool | String -&amp;gt;&lt;/code&gt; for a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Bool | Int | String&lt;/code&gt; value. The arm runs for each of those members, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rest&lt;/code&gt; is a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Bool | String&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;changed&quot;&gt;Changed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;A number literal that does not fit the type of an annotated declaration reports the value and the range, as in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;local `tiny` expects `Int8`, but value `300` does not fit in `Int8` (range -128..=127)&lt;/code&gt;. A reassignment and a write to a field report the same.&lt;/li&gt;
  &lt;li&gt;A type declaration that is a member of a union inside its own definition is a compile error, as in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;type Tree = Int | List&amp;lt;Float | Tree&amp;gt;&lt;/code&gt;. Give the inner union a type declaration of its own, as in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;type Item = Float | Tree&lt;/code&gt; with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;type Tree = Int | List&amp;lt;Item&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;fixed&quot;&gt;Fixed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;A generic function can return a union that uses its type parameter. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;fn wrap&amp;lt;T&amp;gt;(item: T) -&amp;gt; Int | List&amp;lt;T&amp;gt;&lt;/code&gt; with the body &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;[item]&lt;/code&gt; compiles. A local variable of such a type works too, and so does a method of a generic struct.&lt;/li&gt;
  &lt;li&gt;A number literal takes the width of the local or the field on a reassignment, a write to a field, and a compound assignment. For &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;small: Int32 = 1&lt;/code&gt;, the lines &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;small = 2&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;small += 1&lt;/code&gt; compile, and so does &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;self.count += 1&lt;/code&gt; for an &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Int32&lt;/code&gt; field. A sized value widens into an &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Int&lt;/code&gt; local or field, as in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;total = small&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;A member of a union widens on a reassignment and on a write to a field. For &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;pet: Pet = cat&lt;/code&gt;, the line &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;pet = dog&lt;/code&gt; compiles, and so does &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;home.pet = dog&lt;/code&gt; for a field of type &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Pet&lt;/code&gt;. A union with fewer members widens the same way. A local with no annotation keeps the type of its first value.&lt;/li&gt;
  &lt;li&gt;The value of a reassignment reads its type from the local. For &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;found: Option&amp;lt;Int&amp;gt;&lt;/code&gt;, the line &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;found = Option.None&lt;/code&gt; compiles, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;items = []&lt;/code&gt; compiles for a list.&lt;/li&gt;
  &lt;li&gt;A member of a union widens in the payload of a generic enum variant. For &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;type Pet = Cat | Dog&lt;/code&gt;, a function that returns &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Option&amp;lt;Pet&amp;gt;&lt;/code&gt; can end with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Option.Some(cat)&lt;/code&gt;. This works in every position that names the type, and for &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Result.Ok&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Result.Err&lt;/code&gt;, and the variants of each generic enum. A literal works the same way, so &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;x: Option&amp;lt;Int32&amp;gt; = Option.Some(42)&lt;/code&gt; compiles.&lt;/li&gt;
  &lt;li&gt;A generic struct literal, variant constructor, or function call takes its type arguments from a member of the expected union. For a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;String | Box&amp;lt;Int32&amp;gt;&lt;/code&gt;, the value &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Box{value: 3}&lt;/code&gt; compiles, and so do &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Option.None&lt;/code&gt; for a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;String | Option&amp;lt;Int&amp;gt;&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;List.new()&lt;/code&gt; for a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;String | List&amp;lt;Int&amp;gt;&lt;/code&gt;. When two members have the same generic type, the values decide.&lt;/li&gt;
  &lt;li&gt;A union that uses a type parameter is the same type as the union written by hand when the parameter gets its type. For &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;struct Holder&amp;lt;T&amp;gt;&lt;/code&gt; with a field &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;value: String | T&lt;/code&gt;, the field of a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Holder&amp;lt;Int | Bool&amp;gt;&lt;/code&gt; is a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Bool | Int | String&lt;/code&gt;, and the field of a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Holder&amp;lt;String&amp;gt;&lt;/code&gt; is a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;String&lt;/code&gt;. A function that returns &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Int | T&lt;/code&gt; returns an &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Int&lt;/code&gt; when &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;T&lt;/code&gt; is &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Int&lt;/code&gt;. In a generic body, a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;match&lt;/code&gt; on an &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Int | T&lt;/code&gt; value with the arms &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;n: Int -&amp;gt;&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;t: T -&amp;gt;&lt;/code&gt; runs the first arm when &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;T&lt;/code&gt; is &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Int&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;A type declaration of a union takes the members of a type declaration of a union that the file declares later. For &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;type B = Int | A&lt;/code&gt; followed by &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;type A = String | Bool&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;B&lt;/code&gt; is a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Bool | Int | String&lt;/code&gt;, and a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;match&lt;/code&gt; on a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;B&lt;/code&gt; value can have a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;text: String -&amp;gt;&lt;/code&gt; arm. A union inside a type argument, a tuple, or a function type does the same, so &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;type Row = List&amp;lt;Int | A&amp;gt;&lt;/code&gt; is a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;List&amp;lt;Bool | Int | String&amp;gt;&lt;/code&gt; in each order of the two declarations.&lt;/li&gt;
  &lt;li&gt;A member of a union widens in a tuple literal that is an argument of a generic function. For a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;List&amp;lt;(String, Pet)&amp;gt;&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;pets.append((&quot;tom&quot;, tom))&lt;/code&gt; compiles when &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;tom&lt;/code&gt; is a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Cat&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;A destructuring assignment from a tuple literal follows the rules of a plain assignment for each name. For &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;pet: Pet&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;small: Int32&lt;/code&gt;, the line &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;(pet, small) = (dog, 7)&lt;/code&gt; compiles.&lt;/li&gt;
  &lt;li&gt;A &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;match&lt;/code&gt; arm can give a binding the type of the value it matches, as in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;n: Int -&amp;gt;&lt;/code&gt; for an &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Int&lt;/code&gt; value. The arm matches every value, the same as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;n -&amp;gt;&lt;/code&gt;. The annotation also works inside enum, tuple, and struct patterns, as in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Option.Some(n: Int) -&amp;gt;&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;A struct literal takes its type arguments from a type declaration of a generic type. For &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;type IntBox = Box&amp;lt;Int32&amp;gt;&lt;/code&gt;, the line &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;box: IntBox = Box{value: 3}&lt;/code&gt; compiles.&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
  <entry>
    <title>Koja 0.21.0</title>
    <id>https://kojalang.org/changelog/0.21.0/</id>
    <link href="https://kojalang.org/changelog/0.21.0/" rel="alternate" type="text/html" />
    <published>2026-11-22T00:00:00+00:00</published>
    <updated>2026-11-22T00:00:00+00:00</updated>
    <content type="html">&lt;h3 id=&quot;added&quot;&gt;Added&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;A &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;type&lt;/code&gt; alias of a union can name itself in a type argument of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;List&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Map&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Set&lt;/code&gt;, or a generic struct or enum, as in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;type Value = Int | String | List&amp;lt;Value&amp;gt;&lt;/code&gt;. Two aliases can name each other the same way. A recursive alias is a type of its own, so two recursive aliases with the same members are different types.&lt;/li&gt;
  &lt;li&gt;A union satisfies a protocol bound when every member implements the protocol, so a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Cat | Dog&lt;/code&gt; value can go to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;fn show&amp;lt;T: Label&amp;gt;(value: T)&lt;/code&gt;. A call through the bound runs the function of the member the value holds. The protocol must take &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;self&lt;/code&gt; in every function and name &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Self&lt;/code&gt; in no other position.&lt;/li&gt;
  &lt;li&gt;A literal in a position that expects a union builds one member of it. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&quot;text&quot;&lt;/code&gt; is the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;String&lt;/code&gt; member and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;true&lt;/code&gt; is the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Bool&lt;/code&gt; member. Without such a member, the literal goes to the one member that implements its literal protocol, and it is an error when two members do.&lt;/li&gt;
  &lt;li&gt;Each entry of a list or map literal flows into the expected element type the way an argument does. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;List&amp;lt;Int | String&amp;gt; = [1, &quot;a&quot;]&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;List&amp;lt;UInt8&amp;gt; = [1, 2, 3]&lt;/code&gt;, and a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;List&amp;lt;Shape&amp;gt;&lt;/code&gt; literal that holds a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Circle&lt;/code&gt; and a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Square&lt;/code&gt; compile.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;JSON.Number&lt;/code&gt; holds a JSON number as its text. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;to_int()&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;to_float()&lt;/code&gt; convert it and fail with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;NumericConversionError&lt;/code&gt;. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;to_int()&lt;/code&gt; accepts a number with a fraction of zero, so &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;1.0&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;1e2&lt;/code&gt; are integers.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;JSON.NULL&lt;/code&gt; is the JSON &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;null&lt;/code&gt; value, of the new type &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;JSON.Null&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;JSON.get(value, key)&lt;/code&gt; returns the value of a key in a JSON object as an &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Option&amp;lt;JSON.Value&amp;gt;&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Option.None&lt;/code&gt; when the value is not an object. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;JSON.Object.get(key)&lt;/code&gt; does the same for an object.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;HTTP.Version&lt;/code&gt; names the HTTP version of a message: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;HTTP1_0&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;HTTP1_1&lt;/code&gt;, or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;HTTP2&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;HTTP.Method&lt;/code&gt; gains &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Connect&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Query&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Trace&lt;/code&gt;, so an exhaustive &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;match&lt;/code&gt; needs three more arms.&lt;/li&gt;
  &lt;li&gt;Every &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;HTTP&lt;/code&gt; client function takes a trailing &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;timeout: Option&amp;lt;Duration&amp;gt; = Option.None&lt;/code&gt;. It bounds the whole request except the DNS lookup, and a request that passes it fails with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;HTTP.Error.Timeout&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;HTTP.patch&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;HTTP.post&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;HTTP.put&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;HTTP.request&lt;/code&gt; take a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Binary | String&lt;/code&gt; body.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Request.text()&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Response.text()&lt;/code&gt; decode the body as UTF-8 and fail with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;String.ConversionError&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Request.serialize()&lt;/code&gt; encodes a request as HTTP/1.1 bytes. It adds &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Host&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Content-Length&lt;/code&gt; when the headers have none.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Status.reason()&lt;/code&gt; returns the standard reason phrase for a code, or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&quot;&quot;&lt;/code&gt; when there is none.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Writer.write_all(data, options)&lt;/code&gt; writes all of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;data&lt;/code&gt;. It is a default body on the protocol, so &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Descriptor&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TCPSocket&lt;/code&gt;, and every other writer have it. It calls &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;write&lt;/code&gt; until the destination has accepted every byte. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;options.timeout&lt;/code&gt; bounds each &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;write&lt;/code&gt;, not the whole call, and a failure can come after some bytes are written. The contract of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;write&lt;/code&gt; now says that a call with data writes at least one byte or fails.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TLSConfig.with_alpn(protocols)&lt;/code&gt; names the application protocols a client offers during the TLS handshake, as in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TLSConfig.client().with_alpn([&quot;h2&quot;, &quot;http/1.1&quot;])&lt;/code&gt;. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TCPSocket.alpn()&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TLSSession.alpn()&lt;/code&gt; return the protocol the server selected as an &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Option&amp;lt;String&amp;gt;&lt;/code&gt;, with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Option.None&lt;/code&gt; when it selected none and on a connection without TLS. The list is the new field &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TLSConfig.alpn&lt;/code&gt;, which is empty by default. A name that is empty or longer than 255 bytes fails the client handshake with the new variant &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TLSError.ProtocolNameInvalid&lt;/code&gt;, so an exhaustive &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;match&lt;/code&gt; on &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TLSError&lt;/code&gt; needs one more arm. A server handshake ignores the list.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TCPSocket.set_nodelay(enabled)&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Socket.set_nodelay(enabled)&lt;/code&gt; turn the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TCP_NODELAY&lt;/code&gt; option on or off, and fail with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Socket.Error&lt;/code&gt;. A new connection keeps the system default, which is off. A package that writes a message and then waits for the reply turns it on after &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;connect&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;accept&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Socket.Error.Closed&lt;/code&gt; means the socket is no longer open, the same meaning as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Error.Closed&lt;/code&gt;. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;accept&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;bind&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;listen&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;connect&lt;/code&gt; on a closed socket fail with it in place of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Socket.Error.Unknown(0)&lt;/code&gt;, and a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TCPServer&lt;/code&gt; whose listener is closed reports it. An exhaustive &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;match&lt;/code&gt; on &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Socket.Error&lt;/code&gt; needs one more arm.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;PACKAGE_NAME&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;PACKAGE_VERSION&lt;/code&gt;, constants every package declares from the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;name&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;version&lt;/code&gt; fields of its &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja.toml&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Koja.version()&lt;/code&gt; returns the version of the toolchain that compiled the program, the same string &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja --version&lt;/code&gt; prints.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;changed&quot;&gt;Changed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;JSON.Value&lt;/code&gt; is the union &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Null | Bool | Number | String | List&amp;lt;Value&amp;gt; | Object&lt;/code&gt;, not an enum. A &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;match&lt;/code&gt; arm names a type with a binding, so &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Value.String(text) -&amp;gt;&lt;/code&gt; becomes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;text: String -&amp;gt;&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Value.Array(items) -&amp;gt;&lt;/code&gt; becomes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;items: List&amp;lt;JSON.Value&amp;gt; -&amp;gt;&lt;/code&gt;. The constructors &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Value.null&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Value.bool&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Value.int&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Value.float&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Value.string&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Value.array&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Value.object&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Value.entry&lt;/code&gt; are gone. A &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;String&lt;/code&gt;, a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Bool&lt;/code&gt;, a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;List&amp;lt;JSON.Value&amp;gt;&lt;/code&gt;, or a literal is a value as it is, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Value.Null&lt;/code&gt; becomes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;JSON.NULL&lt;/code&gt;, and an &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Int&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Float&lt;/code&gt; variable takes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.to_json()&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;JSON.decode&lt;/code&gt; returns each number as a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;JSON.Number&lt;/code&gt; with the text it had, in place of an &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Int&lt;/code&gt; or a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Float&lt;/code&gt;. Call &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;to_int()&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;to_float()&lt;/code&gt; where the code needs one. An integer too large for 64 bits no longer fails the decode, a long fraction keeps every digit, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;JSON.encode&lt;/code&gt; writes the same text back.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Request.body&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Response.body&lt;/code&gt; are &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Binary&lt;/code&gt;. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;response.body&lt;/code&gt; becomes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;try response.text()&lt;/code&gt; where the code needs a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;String&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;body_as_binary()&lt;/code&gt; is gone. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Response.new(status, body)&lt;/code&gt; takes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Binary | String&lt;/code&gt; and sets &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Content-Length&lt;/code&gt; from the byte size, not the character count.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Request.uri&lt;/code&gt;, a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;URI&lt;/code&gt;, replaces &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Request.path&lt;/code&gt;. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;request.path&lt;/code&gt; becomes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;request.uri.path&lt;/code&gt;, and the query moves to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;request.uri.query&lt;/code&gt;. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Request.Parser&lt;/code&gt; fills &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;uri.host&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;uri.port&lt;/code&gt; from the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Host&lt;/code&gt; header. It keeps the query as it arrived, so &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;uri.query&lt;/code&gt; can hold text that &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;URI.parse&lt;/code&gt; rejects, such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;tag[]=a&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Request.Parser&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Response.Parser&lt;/code&gt; replace &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Parser.parse_request&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Parser.parse_response&lt;/code&gt;. A parser reads a stream in pieces. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;feed(bytes)&lt;/code&gt; adds bytes, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;next()&lt;/code&gt; returns the next event, or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Option.None&lt;/code&gt; when it needs more. The events are the message with an empty body, a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Data(Binary)&lt;/code&gt; for each piece of the body, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;End&lt;/code&gt;. A parser has no body limit, so its owner counts the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Data&lt;/code&gt; bytes. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Parser.Options&lt;/code&gt; caps the head at 16 KiB. Both parsers fail with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Parser.Error&lt;/code&gt;, which is &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;HeadersTooLarge&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Malformed(String)&lt;/code&gt;, or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;UnsupportedMethod(String)&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; The parsers reject messages that &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;HTTP.Parser&lt;/code&gt; accepted. These are &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Malformed&lt;/code&gt;: a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Content-Length&lt;/code&gt; that is not a number, two &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Content-Length&lt;/code&gt; headers that differ, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Content-Length&lt;/code&gt; with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Transfer-Encoding&lt;/code&gt;, an HTTP/1.1 request without exactly one &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Host&lt;/code&gt; header, a space before the colon of a header, a bare CR or LF in the head, and a request target with a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;#&lt;/code&gt; or an invalid path. The parsers drop the reason phrase of a response and the trailers of a chunked body.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; The &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;HTTP&lt;/code&gt; client functions fail with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;HTTP.Error | Socket.Error | IO.Error | TLSError&lt;/code&gt;, so a network failure keeps its own type. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;HTTP.Error&lt;/code&gt; is now &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;BodyTooLarge&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;InvalidUrl(String)&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Parse(Parser.Error)&lt;/code&gt;, or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Timeout&lt;/code&gt;. A union has no &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;message()&lt;/code&gt;, so &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rescue e -&amp;gt; fail e.message()&lt;/code&gt; becomes a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;match&lt;/code&gt; on the type of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;e&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Request.version&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Response.version&lt;/code&gt; are an &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;HTTP.Version&lt;/code&gt; that defaults to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Version.HTTP1_1&lt;/code&gt;. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;version: &quot;HTTP/1.1&quot;&lt;/code&gt; becomes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;version: Version.HTTP1_1&lt;/code&gt;, or leave the field out.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Status&lt;/code&gt; holds only its &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;code&lt;/code&gt;. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Status.new(503, &quot;Service Unavailable&quot;)&lt;/code&gt; becomes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Status.new(503)&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;status.reason&lt;/code&gt; becomes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;status.reason()&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Response.serialize()&lt;/code&gt; returns &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Binary&lt;/code&gt;. The status line is always &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;HTTP/1.1&lt;/code&gt; with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;status.reason()&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Error.last()&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;File.Error.last()&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Socket.Error.last()&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Error.from_errno()&lt;/code&gt; are gone. Each one read a value that a different failed call could replace first. Every function that can fail already returns its error, so match on that error. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;from_code&lt;/code&gt; on the three enums stays but is no longer in the docs.&lt;/li&gt;
  &lt;li&gt;The &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;HTTP&lt;/code&gt; client reads the response as bytes, so a binary body arrives whole and a multibyte character split across two reads no longer fails. It turns &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TCP_NODELAY&lt;/code&gt; on, skips a 1xx response other than 101, and fails with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;HTTP.Error.BodyTooLarge&lt;/code&gt; for a body over 16 MiB.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja format&lt;/code&gt; puts each element of a list, map, or tuple literal on its own line when the literal does not fit on one line. The broken form has no trailing comma, and a literal that fits stays on one line. Binary literals still pack.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;fixed&quot;&gt;Fixed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;A write to a socket whose peer has closed fails with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Error.BrokenPipe&lt;/code&gt;. Before, the OS ended the whole program with SIGPIPE. A write to stdout or stderr after the reader has gone still ends the program with SIGPIPE, so &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;app | head&lt;/code&gt; behaves like other tools.&lt;/li&gt;
  &lt;li&gt;A failed call on a file, a descriptor, a socket, or a TLS connection always reports its own cause. Before, a program with many processes could get the cause of a different failed call, such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;File.Error.NotFound&lt;/code&gt; in place of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;File.Error.AlreadyExists&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;A process that receives a message always takes on the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Process.Context&lt;/code&gt; of the sender. Before, a compiled program could give that context to a different process, so a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Trace&lt;/code&gt; span could join the wrong trace.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Socket.connect&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TCPSocket.connect&lt;/code&gt;, and the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;HTTP&lt;/code&gt; client report the real cause of a failed connection in a compiled program, such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Socket.Error.ConnectionRefused&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;A block closure checks its last expression against its declared return type, the way a function does. A member widens into a declared union, as in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;fn (cat: Cat) -&amp;gt; Pet cat end&lt;/code&gt;, and a value of another type is a compile error.&lt;/li&gt;
  &lt;li&gt;The arms of an &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;if&lt;/code&gt;, a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cond&lt;/code&gt;, a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;match&lt;/code&gt;, a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;receive&lt;/code&gt;, or a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;?:&lt;/code&gt; can yield different members of a union when the position expects that union, as in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;pet: Pet = likes_cats ? cat : dog&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;==&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;!=&lt;/code&gt; compare a union with one of its members on either side, as in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;pet == Cat{name: &quot;Tom&quot;}&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;tom == pet&lt;/code&gt; where &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;pet&lt;/code&gt; is a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Cat | Dog&lt;/code&gt;. A narrower union compares with a wider one the same way.&lt;/li&gt;
  &lt;li&gt;A struct can hold a union that names the struct, as in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;struct Node&lt;/code&gt; with a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;next: Int | Node&lt;/code&gt; field.&lt;/li&gt;
  &lt;li&gt;A constant of a union type takes a value of one member, as in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;const NOTHING: Value = Null{}&lt;/code&gt;, and so does a union field of a struct constant.&lt;/li&gt;
  &lt;li&gt;A constant of type &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Int&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Float&lt;/code&gt; takes a sized number from another constant, as in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;const WIDE: Int = SMALL&lt;/code&gt; where &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;SMALL&lt;/code&gt; is an &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Int32&lt;/code&gt;, and so does an &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Int&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Float&lt;/code&gt; field of a struct constant.&lt;/li&gt;
  &lt;li&gt;A compiled program can hold a struct constant of a recursive type, as in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;const LEAF: Node = Node{value: 1, next: Option.None}&lt;/code&gt; where &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Node&lt;/code&gt; has a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;next: Option&amp;lt;Node&amp;gt;&lt;/code&gt; field.&lt;/li&gt;
  &lt;li&gt;A function can end with a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;return&lt;/code&gt; statement, as in a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;fn answer -&amp;gt; Int&lt;/code&gt; whose only statement is &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;return 42&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;A compiled &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;for&lt;/code&gt; loop over a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;List&lt;/code&gt; no longer copies the list on each step. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;List.map&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;filter&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;reduce&lt;/code&gt; are faster for the same reason.&lt;/li&gt;
  &lt;li&gt;A &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;for&lt;/code&gt; loop over a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;String&lt;/code&gt; runs in linear time. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;String.downcase&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;upcase&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;codepoints&lt;/code&gt;, and the other functions that walk a string are faster for the same reason.&lt;/li&gt;
  &lt;li&gt;A backtrace from a compiled program shows each function name as written, such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Stack.pop_item&lt;/code&gt;. It includes a function whose name starts with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;_&lt;/code&gt; and the frame of a top-level &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;test&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;A compiled program stops at startup with a clear message when a command-line argument is not valid UTF-8.&lt;/li&gt;
  &lt;li&gt;A package can hold two test files with the same name in different directories, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja test&lt;/code&gt; runs both.&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
  <entry>
    <title>Koja 0.20.1</title>
    <id>https://kojalang.org/changelog/0.20.1/</id>
    <link href="https://kojalang.org/changelog/0.20.1/" rel="alternate" type="text/html" />
    <published>2026-11-06T00:00:00+00:00</published>
    <updated>2026-11-06T00:00:00+00:00</updated>
    <content type="html">&lt;h3 id=&quot;added&quot;&gt;Added&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;A &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;fn&lt;/code&gt; typed field can default to a named function reference, as in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;on_reject: fn (Int) -&amp;gt; () = &amp;amp;ignore_reject/1&lt;/code&gt;. A constant still does not hold one.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;changed&quot;&gt;Changed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;A public struct or enum variant whose field default names a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;priv&lt;/code&gt; constant or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;priv fn&lt;/code&gt; is a compile error, the same as a public field whose type is &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;priv&lt;/code&gt;. Before, a public struct’s default could read a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;priv&lt;/code&gt; constant.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;fixed&quot;&gt;Fixed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;A &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Map&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Set&lt;/code&gt; keyed by a union, by an enum with its own &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Hash&lt;/code&gt; impl, or by a generic struct whose &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Hash&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Equality&lt;/code&gt; impls are conditional compiles under &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--backend=llvm&lt;/code&gt;. Before, each one typechecked and ran under the interpreter but failed LLVM codegen with “does not implement Hash”.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;==&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;!=&lt;/code&gt; accept a static method call or a qualified constant as the right operand, so &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;p == Point.ORIGIN&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;i == Outer.Inner.make(1)&lt;/code&gt; typecheck, as does &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Option.Some(i) == Option.Some(Outer.Inner.make(1))&lt;/code&gt;. Before, the right operand was resolved twice and the second pass read the path as an unknown identifier or as a static call on a value. An operand of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;==&lt;/code&gt; that fails to typecheck now reports once.&lt;/li&gt;
  &lt;li&gt;A type parameter that appears only in a protocol bound’s arguments is inferred from the bounded type’s conformance. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;fn drain&amp;lt;R: IO.Reader&amp;lt;E&amp;gt;, E&amp;gt;(source: R)&lt;/code&gt; called with an &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Descriptor&lt;/code&gt; fills &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;E&lt;/code&gt; with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Error&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;fn count&amp;lt;T, Cursor, E: Enumeration&amp;lt;T, Cursor&amp;gt;&amp;gt;(source: E)&lt;/code&gt; called with a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;List&amp;lt;Int&amp;gt;&lt;/code&gt; fills &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;T&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Cursor&lt;/code&gt;. Before, both failed with “cannot infer type parameter”, and a generic consumer of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Reader&amp;lt;E&amp;gt;&lt;/code&gt; had to name one error type in its bound. When no conformance answers, the call reports the empty parameter once. Before, a second error named the bound with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;lt;unresolved&amp;gt;&lt;/code&gt; in it.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;assert&lt;/code&gt; types a comparison in either direction, so &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;assert Option.None == p&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;assert 0 == n&lt;/code&gt; on a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;UInt32&lt;/code&gt; typecheck the way &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;assert p == Option.None&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;assert n == 0&lt;/code&gt; do. Before, only the right operand took its type from the left. An operand that fails to typecheck now reports once. Before, the failure was followed by four more errors that named the internal &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;$assert_left_0&lt;/code&gt; temporary.&lt;/li&gt;
  &lt;li&gt;A &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Map&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Set&lt;/code&gt; keyed by a type alias to a union, such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;type Key = Int | String&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Map&amp;lt;Key, Int&amp;gt;&lt;/code&gt;, accepts a member of the union as a key, so &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;table.get(7)&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;table.put(&quot;seven&quot;, 7)&lt;/code&gt; typecheck. Before, both failed with “type parameter &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;K&lt;/code&gt; of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Map&lt;/code&gt; cannot be both &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Key&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Int&lt;/code&gt;”.&lt;/li&gt;
  &lt;li&gt;A protocol default method that collides with a function the type already defines reports &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;already defined&lt;/code&gt; at the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;impl&lt;/code&gt; block or header entry, with a note at the previous definition. Before, the method was dropped silently and the first call reported an unrelated error.&lt;/li&gt;
  &lt;li&gt;An operator stays quiet when an operand already failed to typecheck. Before, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;not nope&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nope + 1&lt;/code&gt; reported the unknown identifier and then a second error about an &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;lt;unresolved&amp;gt;&lt;/code&gt; operand.&lt;/li&gt;
  &lt;li&gt;A string interpolation whose expression fails to typecheck reports once. Before, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&quot;#{nope}&quot;&lt;/code&gt; reported the unknown identifier twice, because the resolver wrapped the failed expression in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.format()&lt;/code&gt; and walked it again.&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
  <entry>
    <title>Koja 0.20.0</title>
    <id>https://kojalang.org/changelog/0.20.0/</id>
    <link href="https://kojalang.org/changelog/0.20.0/" rel="alternate" type="text/html" />
    <published>2026-10-10T00:00:00+00:00</published>
    <updated>2026-10-10T00:00:00+00:00</updated>
    <content type="html">&lt;h3 id=&quot;added&quot;&gt;Added&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Reader&amp;lt;E&amp;gt;&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Writer&amp;lt;E&amp;gt;&lt;/code&gt;, the stream protocols, generic in the error each implementor fails with. A type that implements &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;read(count, options) -&amp;gt; Binary ! E&lt;/code&gt; gets &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;read_string(count, options)&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;read_line(options)&lt;/code&gt; from the protocol, each failing with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;E | String.ConversionError&lt;/code&gt;. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;read_line&lt;/code&gt; returns &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Option&amp;lt;String&amp;gt;&lt;/code&gt;, with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Option.None&lt;/code&gt; at end of input. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Writer&amp;lt;E&amp;gt;&lt;/code&gt; requires &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;write(data, options) -&amp;gt; Int ! E&lt;/code&gt;. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Descriptor&lt;/code&gt; implements both as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Reader&amp;lt;IO.Error&amp;gt;&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Writer&amp;lt;IO.Error&amp;gt;&lt;/code&gt;. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TCPSocket&lt;/code&gt; implements both as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Reader&amp;lt;IO.Error | TLSError&amp;gt;&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Writer&amp;lt;IO.Error | TLSError&amp;gt;&lt;/code&gt;, so a TLS failure on an open connection keeps its name instead of folding into a stream error. A call site never writes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;E&lt;/code&gt;. A bound does, as in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;fn drain&amp;lt;S: IO.Reader&amp;lt;IO.Error&amp;gt;&amp;gt;(source: S)&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Error&lt;/code&gt;, the error for an open stream, with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;BrokenPipe&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Closed&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ConnectionReset&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Interrupted&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TimedOut&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Unknown(Int)&lt;/code&gt;. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;File.Error&lt;/code&gt;, the error for a path, with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;AlreadyExists&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;DirectoryNotEmpty&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;InvalidPath&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IsDirectory&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;NotDirectory&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;NotFound&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;PermissionDenied&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Unknown(Int)&lt;/code&gt;. Each has &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;from_code(code) -&amp;gt; Option&amp;lt;Self&amp;gt;&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;last()&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;message()&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Reader.Options&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Writer.Options&lt;/code&gt;, each with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;timeout: Option&amp;lt;Duration&amp;gt; = Option.None&lt;/code&gt;. Every stream read and write takes one as a trailing parameter with an all-default value, so &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;socket.read(16, IO.Reader.Options{timeout: Option.Some(limit)})&lt;/code&gt; bounds one call and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;socket.read(16)&lt;/code&gt; waits without limit. A call that passes its timeout fails with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Error.TimedOut&lt;/code&gt;. A timed out write can follow a partial write, so the count returned by an earlier &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;write&lt;/code&gt; is the only record of what was sent. On both backends a timeout is a bounded reactor wait, the mechanism &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;receive ... after&lt;/code&gt; uses, so no socket option is set.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TCPSocket.connect(host, port, timeout)&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;connect_addr(addr, timeout)&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;connect_tls(host, port, timeout)&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;connect_tls_with(host, port, config, timeout)&lt;/code&gt; take a trailing &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Option&amp;lt;Duration&amp;gt;&lt;/code&gt; that bounds the TCP handshake. It defaults to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Option.None&lt;/code&gt;. DNS resolution is not bounded. The two TLS forms apply the same bound again, measured anew, to the TLS handshake.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TCPListener.accept(timeout)&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TCPSocket.upgrade_tls(host, config, timeout)&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;accept_tls(config, timeout)&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TLSSession.connect(descriptor, host, config, timeout)&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TLSSession.accept(descriptor, config, timeout)&lt;/code&gt; take a trailing &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Option&amp;lt;Duration&amp;gt;&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Option.None&lt;/code&gt; by default, that bounds the wait for a connection or the handshake.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Descriptor.block&lt;/code&gt; takes a trailing &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;timeout: Option&amp;lt;Duration&amp;gt; = Option.None&lt;/code&gt; and returns &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Bool&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;true&lt;/code&gt; when the wait ended on the timeout. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Socket.accept&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Socket.connect&lt;/code&gt; take the same parameter. A &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Duration.ZERO&lt;/code&gt; bound is a poll on every one of them, so &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;listener.accept(Option.Some(Duration.ZERO))&lt;/code&gt; returns a pending connection at once and fails with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Socket.Error.TimedOut&lt;/code&gt; when the backlog is empty.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Descriptor.Interest&lt;/code&gt;, with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Readable&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Writable&lt;/code&gt;, names the readiness a process waits for. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Descriptor.block&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Descriptor.watch&lt;/code&gt; take one.&lt;/li&gt;
  &lt;li&gt;A &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;const&lt;/code&gt; can hold a list, map, or set literal, such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;const PRIMES = [2, 3, 5, 7]&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;const PORTS = [&quot;http&quot;: 80]&lt;/code&gt;, and a struct or enum variant whose fields hold one. A constant value takes the same grammar as a field default, so it can also read another constant declared anywhere in the program. A collection constant is built once at program start and every read borrows the shared value. A constant that depends on itself through other constants is a compile error.&lt;/li&gt;
  &lt;li&gt;A union widens into a wider union that holds all of its members, the same way one member does. A &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Cat | Dog&lt;/code&gt; value flows into a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Cat | Dog | Fish&lt;/code&gt; slot, and a function that fails with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ParseError | NetError&lt;/code&gt; can be called with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;try&lt;/code&gt;, or rescued with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rescue e -&amp;gt; fail e&lt;/code&gt;, from one that fails with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ParseError | NetError | AuthError&lt;/code&gt;. Before, both were type errors.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;@experimental&lt;/code&gt; marks a declaration as unstable. Every use warns with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;`Name` is experimental and may change in a later release.&lt;/code&gt;, the tag’s optional message, and a hint that names the opt-in. It goes where &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;@deprecated&lt;/code&gt; goes, with the same carve-outs inside the tagged declaration and in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;impl&lt;/code&gt;/&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;extend&lt;/code&gt; blocks on a tagged target, and does not combine with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;@doc false&lt;/code&gt;. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja doc&lt;/code&gt; marks a tagged item &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;experimental&lt;/code&gt; and renders an &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Experimental&lt;/code&gt; callout.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;experimental = true&lt;/code&gt; under &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;[project]&lt;/code&gt; in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja.toml&lt;/code&gt; accepts &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;@experimental&lt;/code&gt; declarations in that package’s own files without a warning. The flag is per package, so a dependency’s flag does not cover the project and the project’s flag does not cover a dependency.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Experimental.&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Process.context()&lt;/code&gt; returns the calling process’s &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Process.Context&lt;/code&gt;, a 32-byte request context the runtime carries with the work. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;spawn&lt;/code&gt; copies the parent’s context into the child, every &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cast&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;call&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;send_after&lt;/code&gt; message carries the sender’s context, and the receiver takes it on when the message is dequeued. A reply leaves the caller’s context alone. The value answers &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;sampled?()&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;trace_id()&lt;/code&gt; (16 bytes), and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;span_id()&lt;/code&gt; (8 bytes). A process nobody traced carries &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Process.Context.ZERO&lt;/code&gt;. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Trace&lt;/code&gt; fills it in, and user code reads it but never builds one.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Experimental.&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Trace&lt;/code&gt;, closure-scoped spans in the standard library. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Trace.root(name, work)&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Trace.root(name, options, work)&lt;/code&gt; starts a trace at a boundary, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Trace.span(name, work)&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Trace.span(name, kind, work)&lt;/code&gt; opens a child of the calling process’s context. Both install the span’s context for the closure, so every message sent inside it carries the span, and both restore the context they found. The closure gets a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Trace.Span&lt;/code&gt; handle with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;attribute(key, value)&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;status(status)&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;recording?()&lt;/code&gt;. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Trace.Attribute&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Trace.SpanKind&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Trace.Status&lt;/code&gt; are the value types.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Experimental.&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Trace.Parent&lt;/code&gt; carries a parent decoded off the wire. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Trace.Parent.new(trace_id, span_id, sampled)&lt;/code&gt; builds one and fails with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Trace.Error&lt;/code&gt; on a wrong length, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;trace_id()&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;span_id()&lt;/code&gt; give the ids back as bytes. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Trace.RootOptions{kind, parent}&lt;/code&gt; is how a root opens, with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Internal&lt;/code&gt; and no parent as the defaults. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Trace.root&lt;/code&gt; ignores the context the process carries. Without a parent it starts a new sampled trace, and with one it keeps the parent’s trace id and sampled flag and names the parent’s span as its parent. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Trace.current()&lt;/code&gt; is the context a codec encodes into an outgoing header.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Experimental.&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Trace.Export&lt;/code&gt;, the queue an exporter package drains. A finished &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Trace.SpanRecord&lt;/code&gt; joins a queue of at most 4096 records. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Trace.Export.pop()&lt;/code&gt; takes the oldest and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Trace.Export.dropped()&lt;/code&gt; counts what a full queue refused.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Experimental.&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Log&lt;/code&gt;, structured logging in the standard library. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Log.trace&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Log.debug&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Log.info&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Log.warn&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Log.error&lt;/code&gt; take a message and a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Map&amp;lt;String, Log.Attribute&amp;gt;&lt;/code&gt; and write a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Log.Record&lt;/code&gt; that carries the calling process’s &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Process.Context&lt;/code&gt; and a timestamp. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Trace&lt;/code&gt; is the floor below &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Debug&lt;/code&gt;, for the records that show every step. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Log.with(attributes)&lt;/code&gt; returns a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Log.Logger&lt;/code&gt; whose records merge the bound attributes, with the call’s own attributes winning. A handler is a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;fn (Log.Record) -&amp;gt; Result&amp;lt;(), Log.Error&amp;gt;&lt;/code&gt;, or a type that implements &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Log.Handler&lt;/code&gt; and reaches that shape through &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;to_fn()&lt;/code&gt;. A handler that fails is dropped for the rest of that emit, and one &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Warn&lt;/code&gt; record named &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;log handler failed&lt;/code&gt; goes through the handlers that remain. A handler that logs does not recurse. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Log.Level&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Log.Attribute&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Log.Record&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Log.Config&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Log.Error&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Log.Handler&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Log.Formatter&amp;lt;T&amp;gt;&lt;/code&gt; are the types, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Log.Text&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Log.Stdout&lt;/code&gt; are the stdlib formatter and handler.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Experimental.&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Log.configure(config)&lt;/code&gt; installs a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Log.Config&lt;/code&gt; in the calling process. The runtime holds the configuration and the level floor on the process slot beside the context, so a record below the floor is dropped before it is built. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;spawn&lt;/code&gt; copies the parent’s configuration into the child, and a process spawned before the call keeps what it had. A process nobody configured writes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Info&lt;/code&gt; and above to stdout through &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Log.Text&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Experimental.&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Log.Capture&lt;/code&gt;, a collector process for tests. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Log.Capture.start()&lt;/code&gt; spawns it, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;handler()&lt;/code&gt; is the fn for a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Log.Config&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;take()&lt;/code&gt; returns every record so far and clears the collector.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja test --only &amp;lt;file&amp;gt;:&amp;lt;line&amp;gt;&lt;/code&gt; runs one test. Repeat the flag to run several.&lt;/li&gt;
  &lt;li&gt;Quick fixes in the language server. The &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;unless&lt;/code&gt; removal and a valued &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;return&lt;/code&gt; in a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Unit&lt;/code&gt; function carry the first ones.&lt;/li&gt;
  &lt;li&gt;A &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Run test&lt;/code&gt; code lens on each &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;test&lt;/code&gt; block.&lt;/li&gt;
  &lt;li&gt;The language server rechecks open documents when a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.koja&lt;/code&gt; file or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja.toml&lt;/code&gt; changes on disk.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja shell&lt;/code&gt; now accepts &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;:q&lt;/code&gt; as an alias for &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;:quit&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;changed&quot;&gt;Changed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;File&lt;/code&gt; is the path module and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Descriptor&lt;/code&gt; is the handle. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;File.open(path, mode)&lt;/code&gt; returns the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Descriptor&lt;/code&gt; for the file and fails with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;File.Error&lt;/code&gt;, and reads, writes, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;close&lt;/code&gt; are then &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Descriptor&lt;/code&gt; methods that fail with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Error&lt;/code&gt;. There is no &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;File&lt;/code&gt; value. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;File.read&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;File.read_binary&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;File.write&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;File.delete&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;File.rename&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;File.mkdir&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;File.mkdir_p&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;File.rmdir&lt;/code&gt; fail with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;File.Error&lt;/code&gt; instead of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;String&lt;/code&gt;, the one-shot &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;read&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;write&lt;/code&gt; add &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Error&lt;/code&gt; for the stream half, and the functions that returned a sentinel &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;String&lt;/code&gt; return &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Unit&lt;/code&gt;. A &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rescue message -&amp;gt; ...&lt;/code&gt; on one of these becomes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rescue e -&amp;gt; ...&lt;/code&gt; with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;e.message()&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;#{e}&lt;/code&gt; for the text, and a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;file: File&lt;/code&gt; binding becomes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;descriptor: IO.Descriptor&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Fd&lt;/code&gt; becomes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Descriptor&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Fd.Interest&lt;/code&gt; becomes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Descriptor.Interest&lt;/code&gt;. The struct field is &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;raw: Int32&lt;/code&gt;, so &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Fd{descriptor: n}&lt;/code&gt; becomes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Descriptor{raw: n}&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;fd.descriptor&lt;/code&gt; becomes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;descriptor.raw&lt;/code&gt;. The socket types follow. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Socket.fd&lt;/code&gt; becomes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Socket.descriptor&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TCPListener.fd()&lt;/code&gt; becomes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TCPListener.descriptor()&lt;/code&gt;, and the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;fd&lt;/code&gt; parameter on &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TLSSession.accept&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;connect&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;read&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;write&lt;/code&gt; becomes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;descriptor&lt;/code&gt;. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Ready&lt;/code&gt; carries an &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Descriptor&lt;/code&gt; in each variant. The runtime externs keep their &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja_fd_*&lt;/code&gt; names.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; Stream errors are &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Error&lt;/code&gt; and connection errors are &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Socket.Error&lt;/code&gt;. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TCPSocket.read&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;read_binary&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;write&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;close&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TCPListener.close&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;UDPSocket.close&lt;/code&gt; fail with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Error&lt;/code&gt;. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Socket.create&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;bind&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;listen&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;accept&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;resolve&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;set_reuse_addr&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;recv_from&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;send_to&lt;/code&gt; fail with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Socket.Error&lt;/code&gt; instead of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;String&lt;/code&gt;. The &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;close&lt;/code&gt; functions on &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Socket&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TCPSocket&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TCPListener&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;UDPSocket&lt;/code&gt; return &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Unit&lt;/code&gt;, so &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;_ = socket.close()&lt;/code&gt; becomes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;try socket.close()&lt;/code&gt; or a bare call under &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rescue&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Descriptor.read(count)&lt;/code&gt; returns &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Binary&lt;/code&gt;. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Descriptor.read_string(count)&lt;/code&gt; is the decoding read, so the old &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;read&lt;/code&gt; becomes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;read_string&lt;/code&gt; and the old &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;read_binary&lt;/code&gt; becomes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;read&lt;/code&gt;. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Descriptor.close&lt;/code&gt; fails with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Error&lt;/code&gt; instead of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;String&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TCPSocket.read(count)&lt;/code&gt; returns &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Binary&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TCPSocket.read_string(count)&lt;/code&gt; decodes, the same split as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Descriptor&lt;/code&gt;, so the old &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;read&lt;/code&gt; becomes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;read_string&lt;/code&gt; and the old &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;read_binary&lt;/code&gt; becomes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;read&lt;/code&gt;. Both come from the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Reader&lt;/code&gt; conformance, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;read_line&lt;/code&gt; arrives with them. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;read&lt;/code&gt; fails with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Error | TLSError&lt;/code&gt; and no longer lists &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;String.ConversionError&lt;/code&gt;, so a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;match&lt;/code&gt; on it drops that arm. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TLSSession.read_binary(descriptor, count, timeout)&lt;/code&gt; becomes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TLSSession.read(descriptor, count, timeout)&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.gets(prompt)&lt;/code&gt; returns &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Option&amp;lt;String&amp;gt; ! IO.Error | String.ConversionError&lt;/code&gt;, with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Option.None&lt;/code&gt; at end of input. It reads through &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;STDIN.read_line&lt;/code&gt;. Before, it returned &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;String&lt;/code&gt; and could not report an error. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;name = IO.gets(&quot;&amp;gt; &quot;)&lt;/code&gt; becomes a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;match&lt;/code&gt; on &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;try IO.gets(&quot;&amp;gt; &quot;)&lt;/code&gt;, or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;try IO.gets(&quot;&amp;gt; &quot;) rescue ...&lt;/code&gt; followed by an &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Option&lt;/code&gt; unwrap.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Socket.Error&lt;/code&gt; keeps the connection setup causes and gains &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Interrupted&lt;/code&gt;. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;BrokenPipe&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ConnectionReset&lt;/code&gt; moved to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Error&lt;/code&gt;, so a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Socket.Error.BrokenPipe&lt;/code&gt; pattern becomes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Error.BrokenPipe&lt;/code&gt;. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;NotConnected&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;WouldBlock&lt;/code&gt; are gone, since no function produced them.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Descriptor.block&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Descriptor.watch&lt;/code&gt; take an &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Descriptor.Interest&lt;/code&gt; instead of a bare flag. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;fd.block(true)&lt;/code&gt; becomes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;descriptor.block(IO.Descriptor.Interest.Readable)&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;fd.block(false)&lt;/code&gt; becomes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;descriptor.block(IO.Descriptor.Interest.Writable)&lt;/code&gt;. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;fd.watch(0)&lt;/code&gt; becomes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;descriptor.watch(IO.Descriptor.Interest.Readable)&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;fd.watch(1)&lt;/code&gt; becomes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;descriptor.watch(IO.Descriptor.Interest.Writable)&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TCPServer&lt;/code&gt; reports an accept failure to its owner as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TCPServer.Event.Error&lt;/code&gt; and keeps listening. Before, it dropped the failure and waited for the next connection.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;removed&quot;&gt;Removed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; The &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;@test&lt;/code&gt; annotation is removed after its 0.19 deprecation. The compiler reports an old annotation with a hint that names the replacement, so &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;@test &quot;description&quot;&lt;/code&gt; on a function becomes a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;test &quot;description&quot;&lt;/code&gt; block, and a body that returned &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Result&amp;lt;T, String&amp;gt;&lt;/code&gt; returns nothing and uses &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;assert&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;fail&lt;/code&gt; instead.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; The &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;File&lt;/code&gt; value type and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;File.close&lt;/code&gt; are removed. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;File.open&lt;/code&gt; returns an &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Descriptor&lt;/code&gt;, so &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;file.close()&lt;/code&gt; becomes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;descriptor.close()&lt;/code&gt; on the descriptor it returned.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Descriptor.read_binary&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TCPSocket.read_binary&lt;/code&gt; are removed. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;read&lt;/code&gt; returns &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Binary&lt;/code&gt; on both now, so &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;socket.read_binary(n)&lt;/code&gt; becomes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;socket.read(n)&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TCPListener.try_accept&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Socket.try_accept_raw&lt;/code&gt; are removed. A zero bound on &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;accept&lt;/code&gt; is the same poll, so &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;match listener.try_accept()&lt;/code&gt; with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Option.Some(socket)&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Option.None&lt;/code&gt; arms becomes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;match listener.accept(Option.Some(Duration.ZERO))&lt;/code&gt; with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Result.Ok(socket)&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Result.Err(Socket.Error.TimedOut)&lt;/code&gt; arms, and the other &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Result.Err&lt;/code&gt; arm now sees the failures &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;try_accept&lt;/code&gt; hid.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TCPServer.Event.Closed&lt;/code&gt; is removed. No version of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TCPServer&lt;/code&gt; ever produced it, since the server hands each &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TCPSocket&lt;/code&gt; to its owner at &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Connected&lt;/code&gt; and does not watch it after that, so a closed connection is seen by the holder as an empty &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;read&lt;/code&gt; or an &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Error&lt;/code&gt;. A &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TCPEvent.Closed(_) -&amp;gt;&lt;/code&gt; arm in an owner’s &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;handle&lt;/code&gt; is deleted.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;fixed&quot;&gt;Fixed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;Two nested types with the same last name, such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;File.Error&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.Error&lt;/code&gt;, stay distinct in a union. Before, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;File.Error | IO.Error&lt;/code&gt; collapsed to one member and a value of the other was rejected.&lt;/li&gt;
  &lt;li&gt;Diagnostics spell a nested type by its full path, so a mismatch reads &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;expects IO.Error, got File.Error&lt;/code&gt; where both printed as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Error&lt;/code&gt; before. Types from &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Global&lt;/code&gt; drop the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Global.&lt;/code&gt; prefix they carried in some messages, and types from every other package keep theirs, so a type reads the same way in every message.&lt;/li&gt;
  &lt;li&gt;A field default can be a struct literal named through a dotted path, such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;options: IO.Reader.Options = IO.Reader.Options{}&lt;/code&gt;, or through a file alias. Enum variants with a payload, such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Option.Some(3)&lt;/code&gt;, are accepted as defaults too. Before, the dotted literal was rejected and the aliased one could panic the compiler.&lt;/li&gt;
  &lt;li&gt;The language server syncs documents incrementally and checks 150 ms after the last edit. A check that an edit overtook publishes nothing, so a multi-step edit no longer leaves errors from a half-applied state on screen.&lt;/li&gt;
  &lt;li&gt;Language server positions are right on a line with a multi-byte character. Before, every hover, highlight, and edit after it on that line was off by the extra bytes.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja format&lt;/code&gt; no longer panics on a comment inside an empty list, map, or struct literal. The literal stays broken open with the comment inside, the layout an empty call argument list already used.&lt;/li&gt;
  &lt;li&gt;A read, write, or wait that a signal interrupts fails with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Interrupted&lt;/code&gt;. Before, the interpreter recorded no cause for it, so the caller saw a stale one.&lt;/li&gt;
  &lt;li&gt;A &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;const&lt;/code&gt; or type declared inside a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;@deprecated&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;@experimental&lt;/code&gt; type counts as inside it, so its body no longer warns about its own owner. Before, the compiler hoisted it out without the tag and warned.&lt;/li&gt;
  &lt;li&gt;Reading a constant owned by a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;@deprecated&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;@experimental&lt;/code&gt; type, such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Old.ZERO&lt;/code&gt;, warns for the owner, the same as a static call does. Before, the read was silent.&lt;/li&gt;
  &lt;li&gt;A literal that converts through a literal protocol, such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;1&lt;/code&gt; into a type that conforms to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IntLiteral&lt;/code&gt;, no longer counts as a use of the carrier type. Before, the symbol index listed the carrier’s declaration line as a reference, and a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;@deprecated&lt;/code&gt; carrier warned there from every converting literal.&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
  <entry>
    <title>Koja 0.19.1</title>
    <id>https://kojalang.org/changelog/0.19.1/</id>
    <link href="https://kojalang.org/changelog/0.19.1/" rel="alternate" type="text/html" />
    <published>2026-09-26T00:00:00+00:00</published>
    <updated>2026-09-26T00:00:00+00:00</updated>
    <content type="html">&lt;h3 id=&quot;added&quot;&gt;Added&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;Short closures with no parameters: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Task.async(() -&amp;gt; compute())&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Test.crashes(() -&amp;gt; list.get(5).unwrap())&lt;/code&gt; replace the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;fn () ... end&lt;/code&gt; block form for one-expression thunks.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja doc&lt;/code&gt; lists protocol conformances. Each struct, enum, and builtin page has a “Conforms to” section with the protocols from the type header and from &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;impl&lt;/code&gt; blocks, the requirement functions under each one, and the condition of a conditional impl such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;where T: Equality&lt;/code&gt;. A function with no &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;@doc&lt;/code&gt; shows the protocol requirement’s doc.&lt;/li&gt;
  &lt;li&gt;Protocol pages list their implementors. Search and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja doc &amp;lt;symbol&amp;gt;&lt;/code&gt; resolve conformance functions such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Int.band&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;changed&quot;&gt;Changed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;_ = expr&lt;/code&gt; is a discard. It evaluates &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;expr&lt;/code&gt; and binds nothing, so one body can discard values of different types. Reading &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;_&lt;/code&gt; is an unknown identifier error. Before, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;_&lt;/code&gt; was an ordinary local whose type was fixed at its first assignment.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja format&lt;/code&gt; puts one blank line between the fields (or enum variants) of a type and its nested constants. Consecutive constants still stack.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;fixed&quot;&gt;Fixed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja format&lt;/code&gt; breaks an assigned method chain after &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;=&lt;/code&gt; and keeps each call flush with the chain root. Before, a chain whose first call overflowed left &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;)&lt;/code&gt; on its own line above an indented &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.with_password(...)&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;Constants can hold &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Option.None&lt;/code&gt;, directly or in a struct field, such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;const EMPTY: Slot = Slot{ref: Option.None}&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;Constant type errors show the full type, such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Option&amp;lt;Int&amp;gt;&lt;/code&gt;, instead of only &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Option&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
  <entry>
    <title>Koja 0.19.0</title>
    <id>https://kojalang.org/changelog/0.19.0/</id>
    <link href="https://kojalang.org/changelog/0.19.0/" rel="alternate" type="text/html" />
    <published>2026-09-22T00:00:00+00:00</published>
    <updated>2026-09-22T00:00:00+00:00</updated>
    <content type="html">&lt;h3 id=&quot;added&quot;&gt;Added&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;The &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;test &quot;description&quot; ... end&lt;/code&gt; declaration. A test block goes at the top level of a file or inside a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;struct&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;enum&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;impl&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;extend&lt;/code&gt;, or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;builtin&lt;/code&gt; body, so tests can sit next to the code they cover in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;src/&lt;/code&gt;. Blocks compile only under &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja test&lt;/code&gt; and are dropped from every other command. Existing &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;@test&lt;/code&gt; functions keep working alongside them.&lt;/li&gt;
  &lt;li&gt;The &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;assert&lt;/code&gt; keyword, for test bodies. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;assert a == b&lt;/code&gt; fails the test with the source text, file, line, and both operands rendered through &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Debug&lt;/code&gt;. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;assert cond, &quot;message&quot;&lt;/code&gt; adds a message. Any other condition records its source text.&lt;/li&gt;
  &lt;li&gt;The &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Test&lt;/code&gt; package. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Test.Failure&lt;/code&gt; is the one error type a test body can fail with. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Test.require&lt;/code&gt; unwraps a setup step that must succeed, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Test.skip&lt;/code&gt; ends a test as skipped with a reason, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Test.crashes&lt;/code&gt; checks that a closure panics. The package also holds the runner and its reporters, so &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja test&lt;/code&gt; is a Koja program. It links only for &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja test&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja check&lt;/code&gt;, so a build cannot name &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Test.Failure&lt;/code&gt; or leave an &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;assert&lt;/code&gt; in production code.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja test&lt;/code&gt; flags. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--reporter &amp;lt;name&amp;gt;&lt;/code&gt; selects &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;dots&lt;/code&gt; (the default), &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;trace&lt;/code&gt;, or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;json&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--trace&lt;/code&gt; stays as an alias for &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--reporter trace&lt;/code&gt;. The &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;json&lt;/code&gt; reporter writes one event per line to stderr, or to a file with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--out &amp;lt;path&amp;gt;&lt;/code&gt;, for CI and editors, with each test’s time as integer &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;microseconds&lt;/code&gt;. The human reporters print the time in the unit that fits, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;452µs&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;3ms&lt;/code&gt;, or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;1.2s&lt;/code&gt;. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--timeout &amp;lt;ms&amp;gt;&lt;/code&gt; sets the deadline for each test. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--backend {interpreter,llvm}&lt;/code&gt; picks the backend the way &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja run&lt;/code&gt; does.&lt;/li&gt;
  &lt;li&gt;The interpreter calls &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;@extern &quot;C&quot;&lt;/code&gt; functions. A symbol without a built-in handler resolves through the dynamic loader, in the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;@link&lt;/code&gt; library as a shared library under the project root, on the loader’s search path, or in the running process, and runs through libffi with the declared signature. Every FFI-admissible type crosses the boundary, and a non-finite float return traps as it does in compiled code. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja run&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja test&lt;/code&gt; now interpret an FFI project whose libraries are shared libraries.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Instant&lt;/code&gt;, a point on the monotonic clock and the type for elapsed time: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;started = Instant.now()&lt;/code&gt; then &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;started.elapsed()&lt;/code&gt;. It counts nanoseconds and does not move when the system time changes.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Timestamp&lt;/code&gt;, a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Duration&lt;/code&gt; since the Unix epoch. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Timestamp.new(value, unit)&lt;/code&gt; stores an epoch value in the unit it arrived in, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;now()&lt;/code&gt; reads the clock in microseconds, and the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;since_epoch&lt;/code&gt; field converts on the way out, so &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;t.since_epoch.to_seconds()&lt;/code&gt; is Unix time. It replaces &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;DateTime&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;Calendar and zone types on top of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Timestamp&lt;/code&gt;. The &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;DateTime&lt;/code&gt; name returns as the zoned type, see the Removed entry below.
    &lt;ul&gt;
      &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Date&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Time&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;LocalDateTime&lt;/code&gt;, civil values with no zone. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Date.new&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Time.new&lt;/code&gt; check every field, so a value is always valid. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Date&lt;/code&gt; has &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;day_of_week&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;day_of_year&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;plus_days&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;plus_months&lt;/code&gt; (clamping to the month’s end), &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;plus_years&lt;/code&gt;, and the epoch-day conversions. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Time&lt;/code&gt; has microsecond precision and converts to and from a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Duration&lt;/code&gt; since midnight. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Weekday&lt;/code&gt; runs &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Monday&lt;/code&gt; to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Sunday&lt;/code&gt;.&lt;/li&gt;
      &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TimeZone&lt;/code&gt;, an enum with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;UTC&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Fixed(TimeZone.Offset)&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Named(TimeZone.Rules)&lt;/code&gt;. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TimeZone.Offset&lt;/code&gt; is a distance from UTC within -18:00..+18:00, with the constant &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TimeZone.Offset.UTC&lt;/code&gt;.&lt;/li&gt;
      &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TimeZone.Rules&lt;/code&gt;, the data behind a named zone. It holds the IANA identifier, the offset before the first transition, a sorted list of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TimeZone.Transition&lt;/code&gt; values, and a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TimeZone.Rule&lt;/code&gt; for the years after the last one. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TimeZone.Rule&lt;/code&gt; holds the standard offset and an optional &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TimeZone.Rule.Daylight&lt;/code&gt; with the daylight offset and two &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TimeZone.Rule.Point&lt;/code&gt; values, the POSIX &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Mm.w.d/time&lt;/code&gt; form. The stdlib evaluates the rules and ships no data. The &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja-lang/tz&lt;/code&gt; package embeds the IANA database and builds a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Named&lt;/code&gt; zone for an identifier such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;America/Chicago&lt;/code&gt;.&lt;/li&gt;
      &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TimeZone.Resolution&lt;/code&gt;, returned wherever a civil time is placed in a zone: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Unique&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Gap&lt;/code&gt;, or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Ambiguous&lt;/code&gt;, with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;compatible()&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;earlier()&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;later()&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;unique()&lt;/code&gt;. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;LocalDateTime.in_zone&lt;/code&gt; resolves against the offsets in force around the clock time, so a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Named&lt;/code&gt; zone reports its skipped hour as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Gap&lt;/code&gt; and its repeated hour as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Ambiguous&lt;/code&gt;. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;UTC&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Fixed&lt;/code&gt; always resolve to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Unique&lt;/code&gt;.&lt;/li&gt;
      &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;DateTime&lt;/code&gt;, a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Timestamp&lt;/code&gt; viewed in a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TimeZone&lt;/code&gt;. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;date&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;time&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;local&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;offset&lt;/code&gt; compute from the two fields. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;plus&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;minus&lt;/code&gt; take a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Duration&lt;/code&gt; and are exact. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;plus_days&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;plus_months&lt;/code&gt; keep the clock time and return a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TimeZone.Resolution&lt;/code&gt;. Two values are equal when they name the same instant in the same zone.&lt;/li&gt;
      &lt;li&gt;A format protocol per type, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Date.Format&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Time.Format&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;LocalDateTime.Format&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;DateTime.Format&lt;/code&gt;, each with a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;format_*&lt;/code&gt; and a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;parse_*&lt;/code&gt; method. Every type has &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;to_string(format)&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;parse(text, format)&lt;/code&gt; that forward to it, with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ISO8601.Extended&lt;/code&gt; as the default format, so &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Date.parse(&quot;2026-09-16&quot;)&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;date.to_string()&lt;/code&gt; need no argument.&lt;/li&gt;
      &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ISO8601&lt;/code&gt;, the stdlib format, with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Extended&lt;/code&gt; (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;2026-09-16T17:39:00Z&lt;/code&gt;) and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Basic&lt;/code&gt; (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;20260916T173900Z&lt;/code&gt;) variants. A &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;DateTime&lt;/code&gt; in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Extended&lt;/code&gt; form is RFC 3339. A parse reports an out-of-range field with that field’s error and any other shape as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Malformed&lt;/code&gt;.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;A protocol can nest under a type, in the body (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;protocol Format&lt;/code&gt; inside &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;struct Date&lt;/code&gt;) or at the top level with a qualified name (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;protocol Date.Format&lt;/code&gt;). It is referenced as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Date.Format&lt;/code&gt; in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;impl&lt;/code&gt; headers, bounds, and conformance lists. Several types can each own a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Format&lt;/code&gt;, and one type can implement all of them.&lt;/li&gt;
  &lt;li&gt;A constant can nest under a struct, enum, or builtin, in the body (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;const ZERO = ...&lt;/code&gt; inside &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;struct Duration&lt;/code&gt;) or at the top level with a qualified name (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;const Duration.ZERO = ...&lt;/code&gt;). It is read as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Duration.ZERO&lt;/code&gt; everywhere, the owner’s body included, and can be a field default. The stdlib adds &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Int.MAX&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Int.MIN&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Duration.ZERO&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Timestamp.UNIX_EPOCH&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IPAddress.ANY&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IPAddress.LOOPBACK&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja deps outdated&lt;/code&gt; lists the git dependencies whose remote has something newer than the pin. A &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;tag&lt;/code&gt; pin is compared against the remote’s &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;X.Y.Z&lt;/code&gt; tags, with an optional &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;v&lt;/code&gt;, and prints &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;tz 2026.3.0 -&amp;gt; 2026.4.0&lt;/code&gt;. A &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;branch&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rev&lt;/code&gt;, or default-branch pin is compared against the remote head. The command exits 1 when anything is outdated, so CI can run it, and never writes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja.lock&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;alias&lt;/code&gt; binds a package-level function or constant, not only a type. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;alias Test.require&lt;/code&gt; makes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;require(x)&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;amp;require/1&lt;/code&gt; available in the file, every arity included, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;alias JSON.decode as parse&lt;/code&gt; renames it. The local name keeps the case of its target.&lt;/li&gt;
  &lt;li&gt;New language server features:
    &lt;ul&gt;
      &lt;li&gt;Find references lists every use of a function, type, constant, local, or type parameter across the project.&lt;/li&gt;
      &lt;li&gt;Rename rewrites every use in one edit. It refuses, with a reason, when the program has errors, when the symbol is declared in the stdlib, or when the symbol is &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;self&lt;/code&gt; or a method that implements a protocol.&lt;/li&gt;
      &lt;li&gt;Document highlight marks the uses in the open file and tells reads from writes.&lt;/li&gt;
      &lt;li&gt;Inlay hints show the inferred type after a binding, a closure parameter, or a tuple destructure that has no annotation, and the parameter name before each positional argument.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;changed&quot;&gt;Changed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Duration&lt;/code&gt; is a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;value&lt;/code&gt; and a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Duration.Unit&lt;/code&gt;, from &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Nanoseconds&lt;/code&gt; to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Hours&lt;/code&gt;, built with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Duration.new(30, Duration.Unit.Seconds)&lt;/code&gt;. It stores what the caller wrote, so no constructor can overflow. Two durations are equal when they cover the same span, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;plus&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;minus&lt;/code&gt; return the finer unit. The accessors spell out their unit, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;to_hours&lt;/code&gt; through &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;to_nanoseconds&lt;/code&gt;, and truncate toward a coarser unit. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Duration.from_secs(n)&lt;/code&gt; becomes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Duration.new(n, Duration.Unit.Seconds)&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;millis()&lt;/code&gt; becomes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;to_milliseconds()&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;Hover, go-to-definition, and completion keep working while the program has type errors. Before, an error anywhere in the project turned them off until it was fixed.&lt;/li&gt;
  &lt;li&gt;Hover shows a function signature the way &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja format&lt;/code&gt; writes it. A long parameter list breaks one parameter per line, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;self&lt;/code&gt; stays bare, and a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;-&amp;gt; T ! E&lt;/code&gt; return keeps that spelling.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja test&lt;/code&gt; runs on the interpreter by default and falls back to LLVM when the project declares a C extern the interpreter cannot resolve, which now means a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;@link&lt;/code&gt; library that exists only as a static archive. Pass &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--backend llvm&lt;/code&gt; for the native run.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja run --backend=interpreter&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja test --backend interpreter&lt;/code&gt; on a project with an extern the loader cannot find report every unresolved symbol up front, with the library name and the loader’s reason, instead of failing at the first call.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja test&lt;/code&gt; runs each test in its own process. A crash or a hang is one failed test instead of the end of the run. The deadline is per test and defaults to 60 seconds, replacing the 60 second limit on the whole run.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja test&lt;/code&gt; output follows the compiler’s diagnostics style. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--trace&lt;/code&gt; groups tests under their file, type, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Type: Protocol&lt;/code&gt;, or extend target. A failed assertion draws its source line with the expression underlined and both operands labeled in the pretty style, or prints one &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;file:line:column: failure: ...&lt;/code&gt; line in the short style. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--diagnostics&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;KOJA_DIAGNOSTICS&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--no-color&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;NO_COLOR&lt;/code&gt; apply to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja test&lt;/code&gt; as they do to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja check&lt;/code&gt;, so piped output carries no color.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja format&lt;/code&gt; keeps the members of a type body in source order. A &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;test&lt;/code&gt; block, a nested type, and a function stay where the author put them instead of grouping by kind.&lt;/li&gt;
  &lt;li&gt;In &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;assert a == b&lt;/code&gt; the right operand is typed from the left, so a literal or a unit variant on the right takes the left’s type. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;assert count == 0&lt;/code&gt; against a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;UInt32&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;assert stack.peek() == Option.None&lt;/code&gt; now typecheck without an annotated local.&lt;/li&gt;
  &lt;li&gt;Errors about a declaration, such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;already defined&lt;/code&gt;, underline its name instead of the whole declaration.&lt;/li&gt;
  &lt;li&gt;Errors that involve a second declaration show where it is. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;already defined&lt;/code&gt; shows the earlier definition, a duplicate alias shows the earlier alias, and an error about a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;priv&lt;/code&gt; item shows where it is declared. The terminal draws the second location under the first, and editors link to it.&lt;/li&gt;
  &lt;li&gt;In the editor, the outline view and go-to-definition select the name of a function, type, constant, or protocol instead of the whole declaration.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;deprecated&quot;&gt;Deprecated&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;@test&lt;/code&gt; is deprecated and will be removed in 0.20. Every annotation reports a warning that points at the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;test &quot;description&quot;&lt;/code&gt; block. The function still runs under &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja test&lt;/code&gt; until then.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;fixed&quot;&gt;Fixed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;A binary pattern literal segment wider than 64 bits, such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;lt;&amp;lt;0::80, rest: Binary&amp;gt;&amp;gt;&lt;/code&gt;, now matches correctly. The interpreter panicked on the width and compiled code compared only part of the segment, so a value with a set high byte matched &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;lt;&amp;lt;0::80&amp;gt;&amp;gt;&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;A &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;receive&lt;/code&gt; in a helper method of a process whose message type includes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Process.ExitSignal&lt;/code&gt; no longer fails LLVM code generation with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;local slot not registered&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja format&lt;/code&gt; renders a binary pattern segment whose value or size is an expression, such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;lt;&amp;lt;head::len * 8&amp;gt;&amp;gt;&lt;/code&gt;. The formatter wrote &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;lt;expr&amp;gt;&lt;/code&gt; in its place.&lt;/li&gt;
  &lt;li&gt;A generic parameter can have a default, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;fn parse&amp;lt;F: Reader&amp;gt;(text: String, format: F = Plain.Decimal)&lt;/code&gt;. Calling it without the argument failed with “cannot infer type parameter &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;F&lt;/code&gt;” because the shorter arity kept a type parameter no argument could bind. The type now comes from the default.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja format&lt;/code&gt; keeps the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;\#{&lt;/code&gt; escape in a string pattern. The formatter dropped the backslash, so the output re-parsed as an interpolation.&lt;/li&gt;
  &lt;li&gt;A type declared twice reports one error. It also no longer reports an error for each duplicate derived &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Debug&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Equality&lt;/code&gt; method.&lt;/li&gt;
  &lt;li&gt;The underline in a terminal error no longer runs one column past the end of the code it points at.&lt;/li&gt;
  &lt;li&gt;A struct constant with an enum field, such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;const ZERO = Span{value: 0, unit: Unit.Seconds}&lt;/code&gt;, and an enum constant read from two functions both compile under LLVM. Each failed module verification before.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;-9223372036854775808&lt;/code&gt; compiles as the smallest &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Int&lt;/code&gt;. The literal was rejected because its magnitude alone does not fit.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;removed&quot;&gt;Removed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;DateTime&lt;/code&gt; as the epoch time type is removed. That role moves to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Timestamp&lt;/code&gt;, and the name now belongs to the zoned calendar type in the Added section. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;DateTime.now().timestamp_millis()&lt;/code&gt; becomes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Timestamp.now().since_epoch.to_milliseconds()&lt;/code&gt;, and two wall-clock reads subtracted to time something become one &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Instant&lt;/code&gt;. Check every &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;DateTime&lt;/code&gt; annotation by hand. The new &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;DateTime.now&lt;/code&gt; takes a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;TimeZone&lt;/code&gt;, so a zero-argument call no longer compiles, but an annotation that never calls a method compiles against the new type and means a different thing.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; The &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;unless&lt;/code&gt; keyword is removed. Write &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;if not cond&lt;/code&gt; instead. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;not&lt;/code&gt; binds tighter than &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;and&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;or&lt;/code&gt;, so a compound condition needs parentheses (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;if not (a and b)&lt;/code&gt;) or De Morgan (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;if a != x and b != y&lt;/code&gt;). The word stays reserved, and the parser reports the replacement when it meets an old &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;unless&lt;/code&gt; block.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;JSON.StringBuilder&lt;/code&gt; is removed after its 0.18.2 deprecation. Accumulate with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;lt;&amp;gt;&lt;/code&gt; or use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;String.join&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IPAddress.v4?()&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IPAddress.v6?()&lt;/code&gt; are removed after their 0.18.0 deprecation. Compare &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;address.version&lt;/code&gt; with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IPAddress.Version.V4&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IPAddress.Version.V6&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IPAddress.any()&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IPAddress.loopback()&lt;/code&gt; are removed. They are replaced by the constants &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IPAddress.ANY&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IPAddress.LOOPBACK&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
  <entry>
    <title>Koja 0.18.4</title>
    <id>https://kojalang.org/changelog/0.18.4/</id>
    <link href="https://kojalang.org/changelog/0.18.4/" rel="alternate" type="text/html" />
    <published>2026-09-12T00:00:00+00:00</published>
    <updated>2026-09-12T00:00:00+00:00</updated>
    <content type="html">&lt;h3 id=&quot;fixed&quot;&gt;Fixed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;try self.f(...)&lt;/code&gt; in tail position of a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;! E&lt;/code&gt; function is now a real tail call, so accumulator recursion through &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;try&lt;/code&gt; runs in constant stack and keeps one live copy of the accumulator instead of one per step.&lt;/li&gt;
  &lt;li&gt;Recursive builder functions such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;build(n - 1, acc.append(n))&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;build(n - 1, acc &amp;lt;&amp;gt; piece)&lt;/code&gt; now run in linear time under the interpreter as well as in compiled binaries, instead of copying the accumulator on every step.&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
  <entry>
    <title>Koja 0.18.3</title>
    <id>https://kojalang.org/changelog/0.18.3/</id>
    <link href="https://kojalang.org/changelog/0.18.3/" rel="alternate" type="text/html" />
    <published>2026-09-07T00:00:00+00:00</published>
    <updated>2026-09-07T00:00:00+00:00</updated>
    <content type="html">&lt;h3 id=&quot;added&quot;&gt;Added&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja doc &amp;lt;symbol&amp;gt;&lt;/code&gt; prints one symbol’s documentation to the terminal, such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja doc List.append&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja doc Process.MonitorRef&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja doc search&lt;/code&gt; now matches words in documentation bodies, not only symbol names, so a concept query like &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja doc search timeout&lt;/code&gt; lists the symbols that mention it.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja new&lt;/code&gt; accepts a path in kebab, snake, or Pascal case, so &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja new my-app&lt;/code&gt; creates &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;my-app/&lt;/code&gt; holding package &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;my_app&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;changed&quot;&gt;Changed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;Compiled binaries now target a portable baseline for their architecture, so a binary built on one x86_64 or aarch64 host runs on any other, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--target-cpu native&lt;/code&gt; opts back into the build machine’s CPU.&lt;/li&gt;
  &lt;li&gt;Builder loops such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;xs = xs.append(x)&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;s = s &amp;lt;&amp;gt; piece&lt;/code&gt;, interpolation accumulators, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;String.join&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;String.replace&lt;/code&gt; now run in linear time in both compiled code and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja run&lt;/code&gt; instead of copying the accumulator on every step.&lt;/li&gt;
  &lt;li&gt;Chained rebinds like &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;xs = xs.append(a).append(b)&lt;/code&gt; now reuse the buffer at every step instead of only the last.&lt;/li&gt;
  &lt;li&gt;When a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;match&lt;/code&gt; misses a case, the error now shows the exact pattern to add, such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Option.Some(Color.Green)&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja --help&lt;/code&gt; groups flags under &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Code generation&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Global options&lt;/code&gt; sections.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;fixed&quot;&gt;Fixed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;A &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;match&lt;/code&gt; can now handle a variant’s payload across several arms, such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Result.Err(CallError.Timeout)&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Result.Err(CallError.ProcessDown)&lt;/code&gt;, without a redundant &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Result.Err(_)&lt;/code&gt; catch-all.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;(a, b) = expr&lt;/code&gt; inside a loop or branch body now rebinds existing variables like plain assignment instead of declaring shadow copies that vanish at the end of the body.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja run&lt;/code&gt; now compiles through LLVM when you pass &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--release&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--target-cpu&lt;/code&gt;, or when the project declares a C extern the interpreter cannot run, instead of ignoring the flags or failing until you pass &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--backend=llvm&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;A &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;match&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;if&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cond&lt;/code&gt;, or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;?:&lt;/code&gt; bound to a variable now infers generic payload types across its arms, so &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Result.Ok(true)&lt;/code&gt; in one arm and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Result.Err(&quot;nope&quot;)&lt;/code&gt; in another give &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Result&amp;lt;Bool, String&amp;gt;&lt;/code&gt; without an annotation.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;==&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;!=&lt;/code&gt; now infer a generic call on one side from the other operand, so &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;p == CPtr.null()&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Option.None == value&lt;/code&gt; need no annotation.&lt;/li&gt;
  &lt;li&gt;A &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;match&lt;/code&gt; arm that can never run now gets a warning even when the overlap is inside a payload, tuple or struct.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IO.gets&lt;/code&gt; now returns at end of input instead of hanging, and reads non-ASCII text in full instead of stopping at the first non-ASCII character.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;==&lt;/code&gt; on two &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;CPtr&lt;/code&gt; values now compares their addresses instead of always returning &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;true&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;CPtr&amp;lt;Float32&amp;gt;.read()&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;CPtr&amp;lt;Float64&amp;gt;.read()&lt;/code&gt; now panic on a NaN or infinity, matching the check on floats returned by extern calls.&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
  <entry>
    <title>Koja 0.18.2</title>
    <id>https://kojalang.org/changelog/0.18.2/</id>
    <link href="https://kojalang.org/changelog/0.18.2/" rel="alternate" type="text/html" />
    <published>2026-09-02T00:00:00+00:00</published>
    <updated>2026-09-02T00:00:00+00:00</updated>
    <content type="html">&lt;h3 id=&quot;added&quot;&gt;Added&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;==&lt;/code&gt; works on function values. Two functions are equal when they come from the same function or closure expression and their captured values are equal.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;==&lt;/code&gt; works on union values. Two unions are equal when they carry the same member and the payloads are equal.&lt;/li&gt;
  &lt;li&gt;Union values implement &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Debug&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Hash&lt;/code&gt; through their current member, so &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;pet.print()&lt;/code&gt; shows the member and a union works as a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Map&lt;/code&gt; key.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;changed&quot;&gt;Changed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;Derived &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Equality&lt;/code&gt; now compares function fields instead of skipping them, so two structs that hold different functions no longer compare equal.&lt;/li&gt;
  &lt;li&gt;Diagnostics spell out type arguments such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;List&amp;lt;fn (Int) -&amp;gt; Int&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;deprecated&quot;&gt;Deprecated&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;JSON.StringBuilder&lt;/code&gt; is deprecated and will be removed in 0.19.0. Use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;lt;&amp;gt;&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;String.join&lt;/code&gt; instead.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;fixed&quot;&gt;Fixed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;JSON.encode&lt;/code&gt; was extremely slow when a value contained one large string.&lt;/li&gt;
  &lt;li&gt;A struct with an &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Option&amp;lt;fn ...&amp;gt;&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;List&amp;lt;fn ...&amp;gt;&lt;/code&gt; field no longer crashes the compiler.&lt;/li&gt;
  &lt;li&gt;Calling a conditional protocol method on an instantiation that does not qualify is a typecheck error instead of a compiler crash.&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
  <entry>
    <title>Koja 0.18.1</title>
    <id>https://kojalang.org/changelog/0.18.1/</id>
    <link href="https://kojalang.org/changelog/0.18.1/" rel="alternate" type="text/html" />
    <published>2026-09-01T00:00:00+00:00</published>
    <updated>2026-09-01T00:00:00+00:00</updated>
    <content type="html">&lt;h3 id=&quot;added&quot;&gt;Added&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Binary.find&lt;/code&gt; returns the byte offset of the first occurrence of a byte needle at or after a starting offset.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;fixed&quot;&gt;Fixed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;String.split&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;contains?&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;replace&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;starts_with?&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ends_with?&lt;/code&gt; now run in linear time, so operations on multi-megabyte strings finish in milliseconds instead of minutes.&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
  <entry>
    <title>Koja 0.18.0</title>
    <id>https://kojalang.org/changelog/0.18.0/</id>
    <link href="https://kojalang.org/changelog/0.18.0/" rel="alternate" type="text/html" />
    <published>2026-08-25T00:00:00+00:00</published>
    <updated>2026-08-25T00:00:00+00:00</updated>
    <content type="html">&lt;h3 id=&quot;added&quot;&gt;Added&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;Two functions may share a name when their arities differ, and generated docs give each arity its own entry.&lt;/li&gt;
  &lt;li&gt;Function parameters can declare trailing default values, so a function is callable at every arity its defaults allow.&lt;/li&gt;
  &lt;li&gt;Named function values use mandatory &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;amp;name/arity&lt;/code&gt; references, including for single-arity functions.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;JSON.EncodeOptions&lt;/code&gt; adds a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;pretty?: Bool = false&lt;/code&gt; field to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;JSON.encode&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;impl P for T&lt;/code&gt; now accepts protocols and types from other packages, so a package can implement its own protocol for stdlib types like &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;String&lt;/code&gt;, and adapter packages can conform one dependency’s type to another dependency’s protocol.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;impl P for T&lt;/code&gt; now accepts a concrete instantiation of a generic type as the target, so a package can implement its protocol for &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;List&amp;lt;Int&amp;gt;&lt;/code&gt; specifically.&lt;/li&gt;
  &lt;li&gt;Protocol impls on generic targets can require bounds on the type parameters, as in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;impl Encodable for List&amp;lt;T: Encodable&amp;gt;&lt;/code&gt;, and the conformance holds only for instantiations that satisfy them.&lt;/li&gt;
  &lt;li&gt;Generic type parameters accept parameterized protocol bounds, such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;E: Enumeration&amp;lt;T, Cursor&amp;gt;&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Range&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Map&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Set&lt;/code&gt; support &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;for&lt;/code&gt; iteration, with unspecified order for hash collections.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Checksum.crc32&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Checksum.crc32c&lt;/code&gt; compute standard checksums for binary data.&lt;/li&gt;
  &lt;li&gt;Scalar literal protocols let custom types accept boolean, integer, float, and string literals from typed contexts.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;JSON.Encoding&lt;/code&gt; lets user types work with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;JSON.encode&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;JSON.Value&lt;/code&gt; accepts nested list and map literals.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IPAddress&lt;/code&gt; can parse and render IPv4 and IPv6 text, including compressed IPv6 and embedded IPv4 forms.&lt;/li&gt;
  &lt;li&gt;Project-aware CLI commands accept &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;-S, --project &amp;lt;directory&amp;gt;&lt;/code&gt; to select a project without changing the caller’s working directory.&lt;/li&gt;
  &lt;li&gt;The &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Runtime&lt;/code&gt; struct reports scheduler and live process counts by lifecycle state and the calling process’s mailbox depth, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;pid.state()&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;pid.mailbox_depth()&lt;/code&gt; observe one process.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;changed&quot;&gt;Changed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change&lt;/strong&gt; Named function values require &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;amp;name/arity&lt;/code&gt; syntax instead of a bare function name.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change&lt;/strong&gt; The &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Equality&lt;/code&gt; protocol function is now &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;equals?&lt;/code&gt; instead of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;eq&lt;/code&gt;, following the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;?&lt;/code&gt; suffix convention for boolean functions.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Enumeration&amp;lt;T, Cursor&amp;gt;&lt;/code&gt; uses &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cursor&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;next&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;for&lt;/code&gt; requires declared conformance instead of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;length&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;get&lt;/code&gt; methods.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;MapLiteral.from_entries&lt;/code&gt; receives ordered source entries instead of a constructed map.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change&lt;/strong&gt; Use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;JSON.encode&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;JSON.decode&lt;/code&gt; because the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;JSON.Encoder&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;JSON.Decoder&lt;/code&gt; types are now private.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Runtime&lt;/code&gt; is now a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Global&lt;/code&gt; name, so rename any user type called &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Runtime&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IPAddress.v4&lt;/code&gt; accepts &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;UInt8&lt;/code&gt; octets so out-of-range values cannot construct an address.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IPAddress&lt;/code&gt; exposes its &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Version&lt;/code&gt; through the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;version&lt;/code&gt; field.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja format&lt;/code&gt; expands all &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;match&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cond&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;receive&lt;/code&gt; arms when one arm requires block layout.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja format&lt;/code&gt; keeps fallible return and error clauses on one continuation line when they fit.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja format&lt;/code&gt; uses a blank line before an arm comment to make the comment lead the next arm.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;deprecated&quot;&gt;Deprecated&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IPAddress.v4?()&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IPAddress.v6?()&lt;/code&gt; are deprecated in favor of the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;version&lt;/code&gt; field and will be removed in 0.19.0.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;fixed&quot;&gt;Fixed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;A fallible function (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;-&amp;gt; T ! E&lt;/code&gt;) can now declare default parameter values, and calls that omit defaulted arguments no longer fail to typecheck.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja doc serve&lt;/code&gt; no longer stalls page loads for seconds when a browser holds idle connections open.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja doc&lt;/code&gt; sidebars truncate long names with a hover tooltip instead of wrapping them mid-identifier.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja doc&lt;/code&gt; links to predicate function pages like &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;empty?&lt;/code&gt; no longer break at the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;?&lt;/code&gt; in the URL.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja doc&lt;/code&gt; shows deprecation notices and migration guidance in generated pages, listings, terminal search, and the search index.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja doc&lt;/code&gt; generates pages for nested types and preserves full qualified type names in listings, search results, and links.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja format&lt;/code&gt; preserves separate comments in wrapped &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;match&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cond&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;receive&lt;/code&gt; arm heads instead of merging their text.&lt;/li&gt;
  &lt;li&gt;Socket DNS and datagram receive results now initialize every &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;IPAddress&lt;/code&gt; field without reading beyond runtime buffers.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;==&lt;/code&gt; on lists compares length and elements instead of always returning &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;true&lt;/code&gt;, and lists whose elements have no equality (such as closures) are rejected at compile time.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;==&lt;/code&gt; and Debug output on maps and sets inspect their contents instead of using fieldless derived results.&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
  <entry>
    <title>Koja 0.17.3</title>
    <id>https://kojalang.org/changelog/0.17.3/</id>
    <link href="https://kojalang.org/changelog/0.17.3/" rel="alternate" type="text/html" />
    <published>2026-08-19T00:00:00+00:00</published>
    <updated>2026-08-19T00:00:00+00:00</updated>
    <content type="html">&lt;h3 id=&quot;changed&quot;&gt;Changed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;Compiled collection rebind loops, like &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;xs = xs.append(x)&lt;/code&gt;, now run in linear time instead of quadratic.&lt;/li&gt;
  &lt;li&gt;Updating a recursive value, like inserting into a tree, no longer copies the whole structure, so big trees stay fast.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja run&lt;/code&gt; is no longer quadratically slow on programs that copy recursive values.&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
  <entry>
    <title>Koja 0.17.2</title>
    <id>https://kojalang.org/changelog/0.17.2/</id>
    <link href="https://kojalang.org/changelog/0.17.2/" rel="alternate" type="text/html" />
    <published>2026-08-18T00:00:00+00:00</published>
    <updated>2026-08-18T00:00:00+00:00</updated>
    <content type="html">&lt;h3 id=&quot;added&quot;&gt;Added&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;CPtr&amp;lt;T&amp;gt;&lt;/code&gt; gains &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;address(self) -&amp;gt; Int&lt;/code&gt; and a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Debug&lt;/code&gt; impl that renders the pointer as its hex address, so &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ptr.print()&lt;/code&gt; shows &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;CPtr(0x00006000023a4f10)&lt;/code&gt; instead of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;CPtr{}&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;changed&quot;&gt;Changed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja format&lt;/code&gt; breaks after &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;=&lt;/code&gt; when the assigned value is a multi-line block (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;match&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cond&lt;/code&gt;, a multi-line closure, or a call containing one) and keeps short values glued, including calls with inline closures.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;fixed&quot;&gt;Fixed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Ref.call&lt;/code&gt; to a dead process returns &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Err(CallError.ProcessDown)&lt;/code&gt; promptly, even when the callee dies mid-wait, instead of blocking for the full timeout.&lt;/li&gt;
  &lt;li&gt;Various &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja format&lt;/code&gt; fixes:
    &lt;ul&gt;
      &lt;li&gt;Long protocol method signatures, generic parameter lists, union types, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;-&amp;gt; T ! E&lt;/code&gt; return signatures now wrap at 80 columns instead of overflowing.&lt;/li&gt;
      &lt;li&gt;String interpolation never breaks inside &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;#{...}&lt;/code&gt;, so a formatted string stays on one line.&lt;/li&gt;
      &lt;li&gt;A method call on a long collection literal breaks the literal’s brackets instead of the argument list.&lt;/li&gt;
      &lt;li&gt;A closure with a block body (for example a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;match&lt;/code&gt;) no longer collapses onto one line.&lt;/li&gt;
      &lt;li&gt;Trailing comments on &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;alias&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;const&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;type&lt;/code&gt; declarations stay on their line instead of moving below the declaration.&lt;/li&gt;
      &lt;li&gt;Trailing comments on type declaration headers and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;end&lt;/code&gt; lines stay on their line.&lt;/li&gt;
      &lt;li&gt;A comment above an &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;else&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;after&lt;/code&gt; keyword stays there instead of moving into the branch above, and a comment leading the else body stays in the else body.&lt;/li&gt;
      &lt;li&gt;A comment between the last arm and a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;match&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cond&lt;/code&gt;, or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;receive&lt;/code&gt; terminator stays inside the block.&lt;/li&gt;
      &lt;li&gt;A comment inside a list, tuple, enum, struct, or binary pattern stays anchored to its element instead of moving to the arm’s head line.&lt;/li&gt;
      &lt;li&gt;Formatting never drops a comment. Every comment now has one owner decided before printing, and tests enforce preservation over the whole corpus.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
  <entry>
    <title>Koja 0.17.1</title>
    <id>https://kojalang.org/changelog/0.17.1/</id>
    <link href="https://kojalang.org/changelog/0.17.1/" rel="alternate" type="text/html" />
    <published>2026-08-11T00:00:00+00:00</published>
    <updated>2026-08-11T00:00:00+00:00</updated>
    <content type="html">&lt;h3 id=&quot;changed&quot;&gt;Changed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja check&lt;/code&gt; now checks &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;test/&lt;/code&gt; sources in addition to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;src/&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;fixed&quot;&gt;Fixed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;Assigning to a field of a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;match&lt;/code&gt; pattern binding no longer corrupts memory and crashes at runtime.&lt;/li&gt;
  &lt;li&gt;A match or cond arm whose head wraps across lines now parses on every arm, not just the first.&lt;/li&gt;
  &lt;li&gt;Various &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja format&lt;/code&gt; fixes:
    &lt;ul&gt;
      &lt;li&gt;Trailing comments on enum variants, match/receive/cond arms, and function signatures stay put instead of moving to the next item.&lt;/li&gt;
      &lt;li&gt;Enum struct variants lay out like struct literals. Braces hug the variant name and short field lists stay on one line.&lt;/li&gt;
      &lt;li&gt;A comment above a field inside an enum struct variant no longer moves to before the next variant.&lt;/li&gt;
      &lt;li&gt;A comment between an arm head and its body no longer moves to after the end of the block.&lt;/li&gt;
      &lt;li&gt;A closure no longer collapses onto one line when a comment inside the body would comment out &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;end&lt;/code&gt;.&lt;/li&gt;
      &lt;li&gt;Comments inside collection literals, constructions, call arguments, parameter lists, and dot chains stay anchored to their element instead of moving below the statement.&lt;/li&gt;
      &lt;li&gt;A comment between an annotation and its declaration hoists above the annotation and stays put on later passes.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja test&lt;/code&gt; now reports parse errors in test files instead of printing &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;no tests found&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
  <entry>
    <title>Koja 0.17.0</title>
    <id>https://kojalang.org/changelog/0.17.0/</id>
    <link href="https://kojalang.org/changelog/0.17.0/" rel="alternate" type="text/html" />
    <published>2026-08-09T00:00:00+00:00</published>
    <updated>2026-08-09T00:00:00+00:00</updated>
    <content type="html">&lt;h3 id=&quot;added&quot;&gt;Added&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;Structs and enums can declare protocol conformances in their header (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;struct App: Process&amp;lt;C, M, R&amp;gt;&lt;/code&gt;), so an app entry no longer needs a separate &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;impl&lt;/code&gt; block.&lt;/li&gt;
  &lt;li&gt;Struct fields and enum struct-variant fields can declare default values (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;port: Int = 5432&lt;/code&gt;), which fill in at constructions that omit the field, including &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Option.None&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;[]&lt;/code&gt; on generic fields.&lt;/li&gt;
  &lt;li&gt;Public constants are now readable across package boundaries with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Pkg.NAME&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;Public functions in other packages now work as first-class values with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Pkg.helper&lt;/code&gt;, matching the bare-name form inside a package.&lt;/li&gt;
  &lt;li&gt;Standard library constants such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;STDOUT&lt;/code&gt; now resolve by bare name, like &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Global&lt;/code&gt; types and functions.&lt;/li&gt;
  &lt;li&gt;New &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;builtin&lt;/code&gt; declaration kind and keyword for compiler-owned types, so &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;String&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Int&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;List&amp;lt;T&amp;gt;&lt;/code&gt;, and friends show up in docs, hovers, and search as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;builtin&lt;/code&gt; instead of masquerading as structs.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja doc search &amp;lt;query&amp;gt;&lt;/code&gt; looks up a symbol from the terminal, printing the full doc for an exact name and a candidate list for partial matches.&lt;/li&gt;
  &lt;li&gt;Go to definition now works on standard library symbols, landing in real source files extracted under &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/.koja/stdlib/&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja doc&lt;/code&gt; commands now work outside a project, documenting the standard library on its own.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja new&lt;/code&gt; scaffolds an &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;AGENTS.md&lt;/code&gt; that points coding agents at &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja doc search&lt;/code&gt; and the language’s core conventions.&lt;/li&gt;
  &lt;li&gt;The compiler warns when a type body has a function whose name is a near miss of an unimplemented default protocol method, catching typos like &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;pritn&lt;/code&gt; for &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;print&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;changed&quot;&gt;Changed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;Compute-heavy code runs up to 40% faster on Apple Silicon, where preemption checks now cost a couple of register instructions instead of a thread-local access.&lt;/li&gt;
  &lt;li&gt;Linux binaries are now position-independent, so deployments get ASLR.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja format&lt;/code&gt; now always writes files in place like &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;mix format&lt;/code&gt;, dropping the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--write&lt;/code&gt; flag and the single-file stdout mode.&lt;/li&gt;
  &lt;li&gt;Building the compiler from source now requires LLVM 21 (up from LLVM 18).&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja doc&lt;/code&gt; pages now match the kojalang.org design, with a centered layout, a navigation rail grouped by kind, and an “on this page” column on large items.&lt;/li&gt;
  &lt;li&gt;Generated docs now syntax highlight function signatures and doc-comment code blocks in the website’s code style.&lt;/li&gt;
  &lt;li&gt;Generated docs now bundle their fonts and no longer load from a CDN, so they render fully offline.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;removed&quot;&gt;Removed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Pair&amp;lt;A, B&amp;gt;&lt;/code&gt; is removed after its 0.16 deprecation. Build with an anonymous tuple &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;(a, b)&lt;/code&gt; and replace &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.first&lt;/code&gt;/&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.second&lt;/code&gt; reads and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Pair&lt;/code&gt; patterns with tuple destructuring &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;(first, second) = value&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;fixed&quot;&gt;Fixed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;Closure calls now compile with the callee’s declared parameter types, removing a latent miscompile risk for &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Float32&lt;/code&gt; and struct arguments.&lt;/li&gt;
  &lt;li&gt;A process that overflows its stack now dies with a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;** (stack overflow)&lt;/code&gt; diagnostic instead of a bare crash.&lt;/li&gt;
  &lt;li&gt;The compiler now verifies every emitted module and reports an internal error instead of producing a corrupt binary.&lt;/li&gt;
  &lt;li&gt;Diagnostics from program-wide checks, such as a public signature that leaks a private type, now point at the offending file and line instead of printing &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;lt;unknown&amp;gt;&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;LSP: Editor diagnostics in multi-file projects now appear on the file that owns them instead of being dropped, and clear when an edit elsewhere fixes them.&lt;/li&gt;
  &lt;li&gt;LSP: Hovering a keyword or blank spot inside a type no longer shows a bogus &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;String&lt;/code&gt; hover from the auto-derived &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Debug&lt;/code&gt; impl, and derived members no longer appear in the editor outline.&lt;/li&gt;
  &lt;li&gt;Generated docs now show the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;! E&lt;/code&gt; error channel on fallible function signatures.&lt;/li&gt;
  &lt;li&gt;Builtin types like &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;String&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Int&lt;/code&gt; now appear in generated docs and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja doc search&lt;/code&gt;, with their extension methods attached.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja run&lt;/code&gt; temp binaries now live under one &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja-run&lt;/code&gt; directory in the system temp dir, and stale leftovers from interrupted runs sweep automatically.&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
  <entry>
    <title>Koja 0.16.0</title>
    <id>https://kojalang.org/changelog/0.16.0/</id>
    <link href="https://kojalang.org/changelog/0.16.0/" rel="alternate" type="text/html" />
    <published>2026-08-03T00:00:00+00:00</published>
    <updated>2026-08-03T00:00:00+00:00</updated>
    <content type="html">&lt;h3 id=&quot;added&quot;&gt;Added&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;Anonymous tuples. Build with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;(a, b)&lt;/code&gt;, annotate as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;(Int, String)&lt;/code&gt;, take apart with destructuring assignment &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;(x, y) = pair&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;match&lt;/code&gt; patterns.&lt;/li&gt;
  &lt;li&gt;Error channel notation for fallible functions: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;-&amp;gt; T ! E&lt;/code&gt; declares a function returning &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Result&amp;lt;T, E&amp;gt;&lt;/code&gt;, with success values wrapping in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Result.Ok&lt;/code&gt; automatically.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;try expr&lt;/code&gt; unwraps an &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Ok&lt;/code&gt; value or propagates the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Err&lt;/code&gt; out of the enclosing function, widening the error into a declared union such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;! ParseError | NetError&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;fail expr&lt;/code&gt; returns an error from a fallible function, as sugar for &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;return Result.Err(expr)&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;expr rescue e -&amp;gt; handler&lt;/code&gt; handles one expression’s error inline, producing the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Ok&lt;/code&gt; value or the handler’s result.&lt;/li&gt;
  &lt;li&gt;Custom CLI tasks. A package’s &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;[tasks]&lt;/code&gt; table maps package-prefixed names to types implementing the new &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Koja.Task&lt;/code&gt; protocol, runnable with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja run &amp;lt;task.name&amp;gt; [-- args]&lt;/code&gt; from the project or any project depending on it.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja tasks&lt;/code&gt; lists every task exported by the project, its dependencies, and the toolchain.&lt;/li&gt;
  &lt;li&gt;Directory functions on &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;File&lt;/code&gt;: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;mkdir&lt;/code&gt; (single level), &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;mkdir_p&lt;/code&gt; (creates missing parents), &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rmdir&lt;/code&gt; (removes an empty directory), and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;dir?&lt;/code&gt; (true only for directories).&lt;/li&gt;
  &lt;li&gt;Nested types can now be declared inside the owner’s body, equivalent to the qualified top-level form &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;struct Owner.Nested&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;The &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;@deprecated &quot;message&quot;&lt;/code&gt; annotation marks a declaration as deprecated, warning at every use site with the given migration guidance.&lt;/li&gt;
  &lt;li&gt;Tuples compare with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;==&lt;/code&gt;/&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;!=&lt;/code&gt;, print and interpolate like any other value, and can be members of type unions.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;changed&quot;&gt;Changed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;try&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;fail&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rescue&lt;/code&gt; are now reserved keywords and can no longer be used as identifiers.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Result.then&lt;/code&gt; has been removed. Use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;try&lt;/code&gt; for unwrap-or-propagate chains.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; Standard library APIs now use anonymous tuples for list pops, datagram receives, JSON object entries, parser results, and process envelopes instead of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Pair&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; The manifest &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;name&lt;/code&gt; is now the package’s lowercase snake_case identity, and code-facing PascalCase namespaces are derived from it (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;my_app&lt;/code&gt; -&amp;gt; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;MyApp&lt;/code&gt;) or declared with the new &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;namespace&lt;/code&gt; field.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; Multiline string content must start on the line after the opening &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&quot;&quot;&quot;&lt;/code&gt;, and the closing &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&quot;&quot;&quot;&lt;/code&gt; must sit on its own line.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; Explicit &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;return&lt;/code&gt; values are now typechecked against the declared return type, a bare &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;return&lt;/code&gt; in a valued function is an error, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;return &amp;lt;value&amp;gt;&lt;/code&gt; is rejected in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Unit&lt;/code&gt; functions and scripts.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; Reading a local that is not assigned on every path to the read is now a compile error, instead of silently loading an uninitialized value.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Breaking change.&lt;/strong&gt; Comparing tuples that contain a closure- or union-typed element is now a compile error, instead of silently skipping those elements.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Kernel.exit&lt;/code&gt; is now typed as divergent, so a match arm or function body can end in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Kernel.exit(...)&lt;/code&gt; without a dummy tail value.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja new&lt;/code&gt; is now a task written in Koja itself, exported by the stdlib as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja.new&lt;/code&gt; and runnable anywhere, including outside a project.&lt;/li&gt;
  &lt;li&gt;Compiler errors and warnings now print their &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;file:line:column&lt;/code&gt; location with a source snippet and caret underline.&lt;/li&gt;
  &lt;li&gt;Diagnostics render in a pretty terminal format or a machine-friendly one-line format, selectable via &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--diagnostics=pretty|short&lt;/code&gt; or the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;KOJA_DIAGNOSTICS&lt;/code&gt; environment variable (defaulting by whether stderr is a terminal).&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;fixed&quot;&gt;Fixed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja format&lt;/code&gt; now exits with an error code when a file fails to parse, instead of printing the error and reporting success.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja format&lt;/code&gt; now preserves multiline string literals exactly, including nested indentation and embedded quotes, instead of corrupting their content.&lt;/li&gt;
  &lt;li&gt;A conditional top-level &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;return&lt;/code&gt; in a script no longer crashes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja run --backend=llvm&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
  <entry>
    <title>Koja 0.15.3</title>
    <id>https://kojalang.org/changelog/0.15.3/</id>
    <link href="https://kojalang.org/changelog/0.15.3/" rel="alternate" type="text/html" />
    <published>2026-07-21T00:00:00+00:00</published>
    <updated>2026-07-21T00:00:00+00:00</updated>
    <content type="html">&lt;h3 id=&quot;changed&quot;&gt;Changed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;Message-heavy concurrent programs now scale across cores instead of serializing every send, receive, and spawn on a global scheduler lock.&lt;/li&gt;
  &lt;li&gt;Recursive loops that carry a string or collection along are now roughly twice as fast.&lt;/li&gt;
  &lt;li&gt;Completed &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;call&lt;/code&gt;s and timed-out &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;receive&lt;/code&gt;s now clean up their timeout bookkeeping immediately, making message-heavy programs significantly faster and lighter on memory.&lt;/li&gt;
  &lt;li&gt;Compute-heavy processes no longer contend on a runtime lock at every preemption point, freeing up scheduler capacity on multi-core workloads.&lt;/li&gt;
  &lt;li&gt;Timers and call timeouts now live outside the scheduler lock, so workers skip timer bookkeeping entirely unless something is actually due.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;fixed&quot;&gt;Fixed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;Deep recursion no longer overflows the stack when the recursive call sits inside an &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;if&lt;/code&gt; without an &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;else&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;Block closures in multi-statement &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;match&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cond&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;receive&lt;/code&gt; arms no longer get mistaken for the next arm.&lt;/li&gt;
  &lt;li&gt;Protocol implementations whose method signatures differ from the protocol only through a type alias or the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Int&lt;/code&gt;/&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Int64&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Float&lt;/code&gt;/&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Float64&lt;/code&gt; pairs are now accepted instead of rejected as mismatches.&lt;/li&gt;
  &lt;li&gt;Heap values bound inside a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;match&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;if&lt;/code&gt;, or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cond&lt;/code&gt; arm are now reclaimed when the arm finishes instead of leaking.&lt;/li&gt;
  &lt;li&gt;String and collection temporaries used as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;==&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;!=&lt;/code&gt; operands are now reclaimed instead of leaking on every comparison.&lt;/li&gt;
  &lt;li&gt;Returning early from inside a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;match&lt;/code&gt; arm no longer leaks the matched value.&lt;/li&gt;
  &lt;li&gt;Passing an owned &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;String&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Binary&lt;/code&gt; where a union type like &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Binary | String&lt;/code&gt; is expected no longer leaks the value on every call.&lt;/li&gt;
  &lt;li&gt;A binary pattern with a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Binary&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Bits&lt;/code&gt; tail no longer leaks memory each time the pattern fails to match.&lt;/li&gt;
  &lt;li&gt;Long-running servers no longer hold on to the peak memory reached during message bursts.&lt;/li&gt;
  &lt;li&gt;Using &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;return&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;break&lt;/code&gt; inside an expression now reports a parse error instead of silently becoming an ordinary value.&lt;/li&gt;
  &lt;li&gt;Short closures outside call arguments now report an actionable parse error instead of producing an ambiguous syntax tree.&lt;/li&gt;
  &lt;li&gt;Unterminated string interpolation and unexpected characters now report diagnostics that cover the offending source.&lt;/li&gt;
  &lt;li&gt;Source spans now use UTF-8 byte offsets, so locations after non-ASCII text remain valid source ranges.&lt;/li&gt;
  &lt;li&gt;Code completions from the LSP and shell now return in a stable order instead of varying between runs.&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
  <entry>
    <title>Koja 0.15.2</title>
    <id>https://kojalang.org/changelog/0.15.2/</id>
    <link href="https://kojalang.org/changelog/0.15.2/" rel="alternate" type="text/html" />
    <published>2026-07-17T00:00:00+00:00</published>
    <updated>2026-07-17T00:00:00+00:00</updated>
    <content type="html">&lt;h3 id=&quot;fixed&quot;&gt;Fixed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;Closing a file descriptor while another process is blocked reading or writing it can no longer leave that process hung forever.&lt;/li&gt;
  &lt;li&gt;Generic process implementations (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;impl Process&amp;lt;Config&amp;lt;T&amp;gt;, Msg&amp;lt;T&amp;gt;, R&amp;gt; for Server&amp;lt;T&amp;gt;&lt;/code&gt;) can now be spawned, with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;spawn&lt;/code&gt; inferring the instantiated &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Ref&lt;/code&gt; type instead of failing with a type mismatch.&lt;/li&gt;
  &lt;li&gt;Assigning to a generically typed field and matching a union subject with a typed binding that mentions a type parameter (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;xs: List&amp;lt;T&amp;gt;&lt;/code&gt;) no longer crash the compiler inside generic types.&lt;/li&gt;
  &lt;li&gt;Union values with a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;List&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Map&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Set&lt;/code&gt;, or closure member no longer get silently truncated and abort at runtime when copied or passed to a function.&lt;/li&gt;
  &lt;li&gt;Matching a union-typed variable at the top level of a script no longer fails to compile.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;priv fn&lt;/code&gt; helpers inside &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;impl Protocol for Type&lt;/code&gt; blocks are no longer rejected as undeclared protocol methods, matching the documented visibility rules since 0.15.0.&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
  <entry>
    <title>Koja 0.15.1</title>
    <id>https://kojalang.org/changelog/0.15.1/</id>
    <link href="https://kojalang.org/changelog/0.15.1/" rel="alternate" type="text/html" />
    <published>2026-07-15T00:00:00+00:00</published>
    <updated>2026-07-15T00:00:00+00:00</updated>
    <content type="html">&lt;h3 id=&quot;fixed&quot;&gt;Fixed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;Programs that wait on socket I/O no longer crash with a segmentation fault on shutdown on multi-core Linux.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja test&lt;/code&gt; now reports when the test binary was killed by a signal, e.g. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;terminated by signal 11 (SIGSEGV)&lt;/code&gt;, instead of silently exiting 1 after an all-green run.&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
  <entry>
    <title>Koja 0.15.0</title>
    <id>https://kojalang.org/changelog/0.15.0/</id>
    <link href="https://kojalang.org/changelog/0.15.0/" rel="alternate" type="text/html" />
    <published>2026-07-14T00:00:00+00:00</published>
    <updated>2026-07-14T00:00:00+00:00</updated>
    <content type="html">&lt;h3 id=&quot;added&quot;&gt;Added&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;Projects can now depend on git repositories: declare &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;{ github = &quot;owner/repo&quot;, tag = &quot;v1.0&quot; }&lt;/code&gt; (or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git = &amp;lt;url&amp;gt;&lt;/code&gt; with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;tag&lt;/code&gt;/&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;branch&lt;/code&gt;/&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rev&lt;/code&gt;) in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja.toml&lt;/code&gt;, run &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja deps get&lt;/code&gt; to pin exact commits into a committed &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja.lock&lt;/code&gt;, and every build stays offline and reproducible from the lock.&lt;/li&gt;
  &lt;li&gt;New &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja deps&lt;/code&gt; commands: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;get&lt;/code&gt; fetches and pins dependencies, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;update&lt;/code&gt; moves pins forward, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;clean&lt;/code&gt; removes the materialized &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;deps/&lt;/code&gt; directory, and bare &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja deps&lt;/code&gt; shows each dependency’s state.&lt;/li&gt;
  &lt;li&gt;A package can declare its minimum compiler version with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja = &quot;0.15.0&quot;&lt;/code&gt; in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;[project]&lt;/code&gt;. Older compilers refuse the package with an error naming both versions.&lt;/li&gt;
  &lt;li&gt;New &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Base&lt;/code&gt; type encodes and decodes base16, base64, and url-safe base64.&lt;/li&gt;
  &lt;li&gt;New &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Path&lt;/code&gt; type manipulates POSIX paths with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;join&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;split&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;dirname&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;basename&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;extname&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rootname&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;expand&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;relative_to&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;absolute?&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Binary&lt;/code&gt; values can now be spliced into binary construction literals, so a framed message builds in one expression: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;lt;&amp;lt;0x51, (payload.byte_size() + 4)::32, payload&amp;gt;&amp;gt;&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;Constants can now be initialized with binary literals, e.g. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;const SYNC: Binary = &amp;lt;&amp;lt;0x53::8, 4::32&amp;gt;&amp;gt;&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Binary&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Bits&lt;/code&gt; values can now be compared with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;==&lt;/code&gt; and used as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Map&lt;/code&gt; keys and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Set&lt;/code&gt; elements.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Binary&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Bits&lt;/code&gt; values now print as their literal form, e.g. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;lt;&amp;lt;83, 0, 0, 0, 4&amp;gt;&amp;gt;&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;lt;&amp;lt;72, 5::3&amp;gt;&amp;gt;&lt;/code&gt;, truncated past 64 bytes, both directly and inside structs.&lt;/li&gt;
  &lt;li&gt;New &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Bits&lt;/code&gt; functions &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;bit_size&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;byte_at&lt;/code&gt; read a bitstring’s length and storage bytes.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja new&lt;/code&gt; stamps the scaffolding compiler’s minor version as the new project’s minimum.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;fixed&quot;&gt;Fixed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja format&lt;/code&gt; now packs wrapped operator chains such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;lt;&amp;gt;&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;+&lt;/code&gt; with as many operands per line as fit, instead of one per line after the first break.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja format&lt;/code&gt; now packs the segments of a long binary literal or pattern like list elements, instead of one segment per line.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja format&lt;/code&gt; now glues a single trailing call like &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.with_password(...)&lt;/code&gt; to the closing paren of a wrapped argument list, instead of dropping it onto its own line.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja format&lt;/code&gt; now always surrounds &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;@doc&lt;/code&gt;-annotated declarations with blank lines.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;koja format&lt;/code&gt; no longer removes a blank line between a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;const&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;alias&lt;/code&gt; declaration and a comment introducing the next one.&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
</feed>
