Skip to content

v0.3.3

Latest

Choose a tag to compare

@github-actions github-actions released this 23 Nov 22:20
· 1 commit to master since this release
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