Skip to content

Releases

0.2.0

Choose a tag to compare

@github-actions github-actions released this 11 Nov 19:44
19adae7

Added

  • The ears-check command line on Node, as the npm package @tsnee/ears-checker-cli, with the
    same output and exit statuses as the jar. It's attached to the GitHub Release as a tarball; it
    isn't on npm yet.
  • The ears-check command line as a native binary for Linux (x64 and Arm) and macOS (Arm). It
    reads Markdown through an installed cmark 0.30 or later, loaded when it runs (brew install cmark, or apt install cmark on Debian and Ubuntu); plain text and OpenSpec JSON need
    nothing installed. It never loads cmark from the current directory, even when
    LD_LIBRARY_PATH or DYLD_LIBRARY_PATH has a relative entry; on macOS it then reads no
    Markdown and says which entry to remove.
  • The classifier as the npm package @tsnee/ears-checker, with TypeScript declarations and a
    source map leading back to the Scala sources, likewise attached to the release as a tarball and
    not on npm yet.
  • ears-check as a Coursier app, from this repository's channel (see the README): cs install
    gives the native binary on Linux and macOS (Apple silicon) and the JVM launcher elsewhere, and
    cs update ears-check moves it to the next release.
  • Release notes from this changelog, and a GitHub Release for each version with the jar, both
    npm tarballs, the native binaries, a SHA256SUMS file, and build-provenance attestations.

Changed

  • The README is written for users, with a quick start for each way to get ears-checker and its
    limits; building and contributing moved to CONTRIBUTING.md, and SECURITY.md says how to
    report a vulnerability privately.
  • JSON output starts with a format version, "version": 1, and the release that wrote it,
    "checker", and is documented field by field in docs/json-output.md, with what can change
    within a version.
  • Markdown is read the same way on every platform: commonmark-java on the JVM, commonmark.js on
    Node, and cmark natively, checked against one conformance suite.
  • Checking is much faster on Node and natively: a 7 MB Markdown file takes about 2 to 3 s on
    every build, where Node took 43 s and the native binary 88 s (docs/performance.md).
  • Inline code in a Markdown requirement reads as one quoted word, as OpenSpec's JSON gives it.
  • Input must be UTF-8: a file with a bad byte is an error naming its line and column. Output
    is UTF-8 whatever the locale.
  • An empty file name is a bad argument (exit status 2).

Fixed

  • Text output and messages no longer pass control characters from the input to the terminal: an
    escape sequence, bell, or line separator in a requirement, a file name, or an OpenSpec name
    shows as \uXXXX, so a file can't hide or forge findings on screen. Backslashes are unchanged.

Files

File What it is Needs
ears-check-0.2.0.jar The ears-check command line, with its dependencies JDK 17 or later
tsnee-ears-checker-cli-0.2.0.tgz The npm package @tsnee/ears-checker-cli: npm install gives the ears-check command Node 22 or later
tsnee-ears-checker-0.2.0.tgz The npm package @tsnee/ears-checker: npm install gives the classifier as a library, with TypeScript declarations Node 22 or later
ears-check-0.2.0-linux-x64 ears-check as a native binary for Linux on x64 glibc 2.35 or later (Ubuntu 22.04, Debian 12)
ears-check-0.2.0-linux-arm64 ears-check as a native binary for Linux on Arm glibc 2.35 or later (Ubuntu 22.04, Debian 12)
ears-check-0.2.0-macos-arm64 ears-check as a native binary for macOS on Apple silicon macOS 15 or later
SHA256SUMS The SHA-256 of every other file

The library is on Maven Central as io.github.tsnee:ears-checker_3:0.2.0 (and
ears-checker_sjs1_3 for Scala.js), and the command line as
io.github.tsnee:ears-checker-cli_3:0.2.0.

The jar here and the one on Maven Central are built from the same tagged commit, but in
separate jobs, so they may not be identical byte for byte. The checksums and attestations below
cover the files here.

Checking the files

Each file was built and checked by this release's workflow run. Check a file before running it,
in the directory holding it and SHA256SUMS, naming the file:

grep ' ears-check-0.2.0-linux-x64$' SHA256SUMS | sha256sum -c

(shasum -a 256 -c where there's no sha256sum.) That shows the download is intact, but not who
built it, since SHA256SUMS comes from the same page. The attestation shows who: this
repository's release workflow, for tag v0.2.0. Check it with the
GitHub CLI:

gh attestation verify ears-check-0.2.0-linux-x64 --repo tsnee/ears-checker \
  --signer-workflow tsnee/ears-checker/.github/workflows/release.yml \
  --source-ref refs/tags/v0.2.0

Running the files

Run the jar with
java -XX:+IgnoreUnrecognizedVMOptions --sun-misc-unsafe-memory-access=allow -jar ears-check-0.2.0.jar:
the flag stops JDK 23 and later from warning about the Scala runtime's use of sun.misc.Unsafe,
and older JDKs skip it. Install an npm tarball with
npm install ./tsnee-ears-checker-cli-0.2.0.tgz.

The native binaries read Markdown through cmark 0.30 or later, which they load when they run:
brew install cmark on macOS, apt install cmark on Debian and Ubuntu. Plain text and OpenSpec
JSON need nothing installed. Make a binary executable with chmod +x after downloading it.

The Coursier app installs these too:
cs install --channel https://raw.githubusercontent.com/tsnee/ears-checker/main/coursier/apps.json ears-check
gets this platform's native binary, or runs the jar from Maven Central on the JVM where there's
none. Coursier keeps the binary as .ears-check.aux next to the ears-check it installs (by
default in ~/.local/share/coursier/bin on Linux and ~/Library/Application Support/Coursier/bin
on macOS); to check who built it, run the attestation command above on that file.

macOS

The macOS binary isn't signed. macOS refuses to open an unsigned program that a browser
downloaded ("Apple could not verify…"), because the browser marks the file as quarantined.
Download it with curl, which doesn't mark it:

curl -fLO https://github.com/tsnee/ears-checker/releases/download/v0.2.0/ears-check-0.2.0-macos-arm64

Or, after checking its checksum and attestation as above, clear the mark from a file the browser
downloaded (this tells macOS to open it without Apple's check):

xattr -d com.apple.quarantine ears-check-0.2.0-macos-arm64

0.1.1

Choose a tag to compare

@tsnee tsnee released this 08 Nov 00:01
52e9c40

Added

  • ears-check logs to standard error, one line per entry: warnings and errors by default, and
    every level from debug with --verbose.

Fixed

  • The Scala.js library (ears-checker_sjs1_3) links without scala-java-locales.

Maven Central

  • io.github.tsnee:ears-checker_3:0.1.1 and ears-checker_sjs1_3:0.1.1
  • io.github.tsnee:ears-checker-cli_3:0.1.1

0.1.0

Choose a tag to compare

@tsnee tsnee released this 08 Nov 00:01
18b8d15

The first release, on Maven Central.

Added

  • io.github.tsnee:ears-checker_3 and ears-checker_sjs1_3: classifies one requirement
    sentence against the six EARS templates, with a diagnostic and a suggested fix where one
    exists. Pure, with no IO and no effect system; Scala 3.10 or later.
  • io.github.tsnee:ears-checker-cli_3: the ears-check command line, on JDK 17 or later. It
    checks plain text, Markdown, and OpenSpec JSON (openspec show --json), from files or
    standard input, with the classic or openspec profile and text or JSON output; it exits 0
    when every requirement passes, 1 when any finding is reported, and 2 for bad arguments or
    input.

Maven Central

  • io.github.tsnee:ears-checker_3:0.1.0 and ears-checker_sjs1_3:0.1.0
  • io.github.tsnee:ears-checker-cli_3:0.1.0