Skip to content

Releases

v0.3.3

Choose a tag to compare

@github-actions github-actions released this 23 Nov 22:20
Immutable release. Only release title and notes can be modified.
v0.3.3
7645773
  • File.readDir returns the entries of a directory as File.Entry records, each with its name and whether it is a directory or a symbolic link, so telling directories from files needs no File.stat per entry.
  • Host declaration files: a .d.ant file beside a program's root module declares what a host adds to the prelude. ant check, ant code, the language server, and the Go API check and complete a script against it with no host running. Running a program that reads a name only the file declares is a load error.
  • Embedding: Runtime.Tag and Program.Tag give a host the tag of a record type its namespace declares, and value.NewInstant, value.NewDuration, value.GoTime, and value.GoDuration convert Time.Instant and Time.Duration to and from Go's. A new guide, Embedding Ant in a Go program, walks through a host.
  • ant test prints a program that fails to load as ant run does, and as error events under -json.

Breaking changes:

  • Json.parse is Err for an object that repeats a name, and for an escaped surrogate outside a pair, as Go's encoding/json/v2 is. It used to keep the last value of a repeated name.

Full changelog

v0.3.2

Choose a tag to compare

@github-actions github-actions released this 21 Nov 11:32
Immutable release. Only release title and notes can be modified.
v0.3.2
7efbdc6
  • WebAssembly: ant.wasm runs tests as test, which takes test files as ant test does and reports each event of ant test -json.
  • Language server: completion after a Result offers the Result functions, such as Result.unwrap, and matches a function's first parameter as the checker does.

No language changes.

Full changelog

v0.3.1

Choose a tag to compare

@github-actions github-actions released this 21 Nov 00:37
Immutable release. Only release title and notes can be modified.
v0.3.1
fb31114
  • WebAssembly: ant.wasm exposes the debugger as debugAdapter, a Debug Adapter Protocol session over messages that runs a program from files it is given, as languageServer does for the language server.
  • Output written in small pieces while a program computes now shows on time in WebAssembly, instead of waiting for a batch to fill.
  • Install on Windows with install.ps1.

No language changes.

Full changelog

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 20 Nov 10:58
v0.3.0
c580bdf
  • ant check takes files and directories, reports every error in one run, and adds -json, warnings (-strict fails on them), and a code on every diagnostic with -explain code.
  • ant code: def, refs, type, symbols, and rename from the command line.
  • ant test checks the test files before running them, and adds -list; -parallel defaults to Os.cpus().
  • Language server: references and rename follow imports across modules, quick fixes, and faded unused names.
  • File.chown, File.sync, File.Info uid and gid, Os.gid, and Os.cpus.
  • ant doc suggests names when a lookup finds nothing; long assert values are trimmed; the REPL loads modules that import others.

Breaking changes: ant test runs no tests when the checker reports an error; -nocheck skips the check. Diagnostics end with their code, path:line:col: message [code].

Full changelog

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 14 Nov 22:46
v0.2.0
bd92c50
  • Duration literals: 500ms, 1h30m.
  • Mutable Bytes with binary read/write helpers.
  • Result.fail, improved type inference, clearer diagnostics, and runtime fixes.

Breaking changes: Bytes now shares mutations by reference. HTTP request/response .body is replaced by Http.text(r). Cmd.Output drops stdoutBytes and stderrBytes; use Cmd.captureBytes for binary stdout.

Full changelog

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 08 Nov 17:06
v0.1.0
a6cbb22
v0.1.0