Skip to content

v8.0.0

Compare
Choose a tag to compare
@anko anko released this 26 Nov 00:56
· 11 commits to master since this release

Big, so I figure I should finally start doing release notes.

Breaking changes

  • If you're using this package programmatically, as a required JavaScript module, then you'll have to upgrade to ESM imports, because that's how the library is exposed now. See Sindre Sorhus' helpful document if you're feeling unsure how to migrate.

New features

  • New !test commands: exit, only. See the readme.

  • You can finally use << inside HTML comments now, so you can do shell heredocs. Not because upstream fixed their bug, but because I rejected their reality and substituted my own.

  • New TXM_HAS_COLOR/TXM_HAS_COLOUR env variable exposed to tests, which you can use to force colour on at appropriate times, if you're using a custom assert library in check tests. (Colours you output on stdout/stderr show up as part of the error message.)

  • Better error messages and documentation improvements.

  • Lighter package; fewer dependencies. Removed yargs, parse5-sax-parser, concat-stream, and wrote the necessary parts myself, because they're not worth the bloat for how little of them we're using. Likely much faster too.

Background maintenance details for nerds

  • I moved the package to ES modules, so the future is here. Was necessary to upgrade dependencies that had moved to ESM. (Tests still use require for now. I'll get around eventually to porting them to real JavaScript.)

  • I git CI working on Github Actions, in a way that automatically tests against Node Active LTS.