Skip to content

v0.3.0

Choose a tag to compare

@f-klement f-klement released this 05 Nov 22:17
· 52 commits to main since this release

Breaking changes

  • A step under embedded no longer reads a document in an unquoted YAML date or timestamp, a YAML !!binary value or a TOML date or time; the rule is unknown instead. Quote the value, or tag it !!str in YAML, to read it as before.

Changes

  • errata --help and the help of each command now give every flag with its default, the exit codes, the config file errata reads, examples, and the address of the full command line reference.
  • errata help and errata completion now have full help with examples, and the address of the command line reference in the help of a build from source names main.
  • A lone CR, the old Mac line end, now ends a line in every reader, so a value in such a file names the line an editor shows.
  • The html reader reads svg and math as a browser does: a style, title, script or textarea inside them no longer hides the text a browser shows after them.
  • The html reader leaves out svg text a browser does not draw, such as text outside a text element or inside a filter.
  • An HTML file whose misnested formatting tags make the parser rebuild elements over and over now meets the token limit and is refused; it could take seconds for each MiB.
  • In HTML, a caption, col or colgroup start tag inside a table cell now closes the cell as a browser does, so the text after it is no longer read as the cell's.
  • The size guards of split, join and replace now take their bounds from the cost limit the rule runs under.
  • CEL asserts can use charAt, substring, trim, indexOf, lastIndexOf, lowerAscii, upperAscii, reverse, format and strings.quote, each refused before it runs when its read, search or result alone would exceed the cost limit.
  • New literal extractor: reads the values a program writes as literal data (a Django settings.py, a PHP config, a vite.config.ts, a Gradle build, an Elixir config.exs) without running it; a value the file only computes is marked not literal, and a filter refuses to compare it.
  • New dependency extractor: returns one package's version from every manifest and lockfile a check lists (go.mod, package.json and its lockfiles, Python requirements, Poetry, uv, Cargo, Gemfile, Composer), so one agree rule can say they match.
  • tool_version numbers a go.mod's go and toolchain directives as every file's lines are numbered, a lone CR ending a line; the go command reads such a CR as a blank.
  • env no longer reads a code file such as .env.d.ts or .env.py as a dotenv file
  • A TOML date or time where a version or a range goes is refused, as Cargo and the Python tools refuse it.
  • package_version takes tag, a prefix: each git tag on HEAD that starts with it gives the rest of its name as a version, read from the repository's files without running git.
  • New code extractor: reads the value one name a source file declares, a Go const or var through go/parser, or a module level name or class member in the languages literal reads; a value the program computes is marked not literal, and a Go file is held to a token limit and its constants to a work budget.

All commits since v0.2.5: v0.2.5...v0.3.0