Repository navigation
Releases
Releases · ant-src/ant
v0.3.3
Immutable
release. Only release title and notes can be modified.
File.readDirreturns the entries of a directory asFile.Entryrecords, each with its name and whether it is a directory or a symbolic link, so telling directories from files needs noFile.statper entry.- Host declaration files: a
.d.antfile 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.TagandProgram.Taggive a host the tag of a record type its namespace declares, andvalue.NewInstant,value.NewDuration,value.GoTime, andvalue.GoDurationconvertTime.InstantandTime.Durationto and from Go's. A new guide, Embedding Ant in a Go program, walks through a host. ant testprints a program that fails to load asant rundoes, and as error events under-json.
Breaking changes:
Json.parseisErrfor an object that repeats a name, and for an escaped surrogate outside a pair, as Go'sencoding/json/v2is. It used to keep the last value of a repeated name.
v0.3.2
Immutable
release. Only release title and notes can be modified.
- WebAssembly:
ant.wasmruns tests astest, which takes test files asant testdoes and reports each event ofant test -json. - Language server: completion after a
Resultoffers theResultfunctions, such asResult.unwrap, and matches a function's first parameter as the checker does.
No language changes.
v0.3.1
Immutable
release. Only release title and notes can be modified.
- WebAssembly:
ant.wasmexposes the debugger asdebugAdapter, a Debug Adapter Protocol session over messages that runs a program from files it is given, aslanguageServerdoes 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.
v0.3.0
ant checktakes files and directories, reports every error in one run, and adds-json, warnings (-strictfails on them), and a code on every diagnostic with-explain code.ant code:def,refs,type,symbols, andrenamefrom the command line.ant testchecks the test files before running them, and adds-list;-paralleldefaults toOs.cpus().- Language server: references and rename follow imports across modules, quick fixes, and faded unused names.
File.chown,File.sync,File.Infouidandgid,Os.gid, andOs.cpus.ant docsuggests names when a lookup finds nothing; longassertvalues 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].
v0.2.0
- Duration literals:
500ms,1h30m. - Mutable
Byteswith 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.