You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Two functions may share a name when their arities differ, and generated docs give each arity its own entry.
Function parameters can declare trailing default values, so a function is callable at every arity its defaults allow.
Named function values use mandatory &name/arity references, including for single-arity functions.
JSON.EncodeOptions adds a pretty?: Bool = false field to JSON.encode.
impl P for T now accepts protocols and types from other packages, so a package can implement its own protocol for stdlib types like String, and adapter packages can conform one dependency's type to another dependency's protocol.
impl P for T now accepts a concrete instantiation of a generic type as the target, so a package can implement its protocol for List<Int> specifically.
Protocol impls on generic targets can require bounds on the type parameters, as in impl Encodable for List<T: Encodable>, and the conformance holds only for instantiations that satisfy them.
Generic type parameters accept parameterized protocol bounds, such as E: Enumeration<T, Cursor>.
Range, Map, and Set support for iteration, with unspecified order for hash collections.
Checksum.crc32 and Checksum.crc32c compute standard checksums for binary data.
Scalar literal protocols let custom types accept boolean, integer, float, and string literals from typed contexts.
JSON.Encoding lets user types work with JSON.encode, and JSON.Value accepts nested list and map literals.
IPAddress can parse and render IPv4 and IPv6 text, including compressed IPv6 and embedded IPv4 forms.
Project-aware CLI commands accept -S, --project <directory> to select a project without changing the caller's working directory.
The Runtime struct reports scheduler and live process counts by lifecycle state and the calling process's mailbox depth, and pid.state() and pid.mailbox_depth() observe one process.
Changed
Breaking change Named function values require &name/arity syntax instead of a bare function name.
Breaking change The Equality protocol function is now equals? instead of eq, following the ? suffix convention for boolean functions.
Breaking changeEnumeration<T, Cursor> uses cursor and next, and for requires declared conformance instead of length and get methods.
Breaking changeMapLiteral.from_entries receives ordered source entries instead of a constructed map.
Breaking change Use JSON.encode and JSON.decode because the JSON.Encoder and JSON.Decoder types are now private.
Breaking changeRuntime is now a Global name, so rename any user type called Runtime.
IPAddress.v4 accepts UInt8 octets so out-of-range values cannot construct an address.
IPAddress exposes its Version through the version field.
koja format expands all match, cond, and receive arms when one arm requires block layout.
koja format keeps fallible return and error clauses on one continuation line when they fit.
koja format uses a blank line before an arm comment to make the comment lead the next arm.
Deprecated
IPAddress.v4?() and IPAddress.v6?() are deprecated in favor of the version field and will be removed in 0.19.0.
Fixed
A fallible function (-> T ! E) can now declare default parameter values, and calls that omit defaulted arguments no longer fail to typecheck.
koja doc serve no longer stalls page loads for seconds when a browser holds idle connections open.
koja doc sidebars truncate long names with a hover tooltip instead of wrapping them mid-identifier.
koja doc links to predicate function pages like empty? no longer break at the ? in the URL.
koja doc shows deprecation notices and migration guidance in generated pages, listings, terminal search, and the search index.
koja doc generates pages for nested types and preserves full qualified type names in listings, search results, and links.
koja format preserves separate comments in wrapped match, cond, and receive arm heads instead of merging their text.
Socket DNS and datagram receive results now initialize every IPAddress field without reading beyond runtime buffers.
== on lists compares length and elements instead of always returning true, and lists whose elements have no equality (such as closures) are rejected at compile time.
== and Debug output on maps and sets inspect their contents instead of using fieldless derived results.