Skip to content

Releases: kristoff-it/superhtml

v0.6.2

13 Oct 10:46

Choose a tag to compare

  • The "boolean attributes cannot have a value" error now puts squigglies under the attribute name instead of the value.
  • Improved validation for <link> [crossorigin], it previously used its own implementation of CORS validation, while now it uses one central implementation shared by all other similar attributes.
  • [lang] (and similar attributes) now accept the empty string as value, used to signify that the language is unknown.
  • Fixed a condition that would cause the language server to attempt to detect html elements inside of svg elements.

v0.6.1

03 Oct 13:01

Choose a tag to compare

Fixes two bugs:

  • fmt now properly leaves <pre> tags untouched, this regressed in the recent changes to formatting code, sorry!
  • --syntax-only (and relative switch in VSCode) now silences also "invalid element name" errors, making it viable to use superhtml with some kinds of templated html

v0.6.0 - State of the art release!

22 Sep 13:46

Choose a tag to compare

This release introduces two huge new features

  • Validation for HTML elements and attributes (including nesting, attribute values and combinations, etc).
  • All the main LSP features: completions, polished autoformatting, definitions, etc.

SuperHTML is as of today the only HTML language server that implements the WHATWG HTML living spec to this degree (see open issues for the last few remaining bits).

Detailed changelist:

  • All major Language Server features implemented: completions, clear diagnostics, descriptions, etc.
  • New diagnostics cover element nesting errors and attribute validation, including complex interactions between different attributes and elements.
  • Duplicate ID diagnostics that are <template> aware.
  • Rename symbol on a tag name will rename both start and end tags at once.
  • Find references can be used on class names to find other elements that have the same class.
  • New improved autoformatting that keeps the first attribute on the same line as the element:
    • Uses tabs for indentation and spaces for alignment (experimental, might be reverted)
    • Respects empty lines that delineate separate blocks.
    • Doesn't format vertically elements in between text nodes anymore.
    • Basic CSS and JS autoformatting.
  • Introduced a "Syntax Only Mode" setting to disable advanced validation for compatibility with templated HTML files.

This is a huge jump forward bug reports (with repro instructions!) are appreciated.
If you believe a diagnostic produced by SuperHTML to be wrong you are welcome to open an issue but
you will be asked to reference the HTML spec to dissuade poorly researched, drive-by issues.

v0.5.3

31 Oct 16:34

Choose a tag to compare

  • Fixes a remaining bug when formatting void elements vertically.
  • patch version bumped to 3 to match the VScode extension

v0.5.1

30 Oct 16:03

Choose a tag to compare

  • Added WASM build of the Language Server to the list of releases, in case editors other than vscode might want to bundle a WASM-WASI version of SuperHTML. NOTE: unlike other artifacts, the wasm module only contains the language server, not the entire CLI tool.
  • Fixed #40

v0.5.0

12 Sep 01:38

Choose a tag to compare

Fixed the list of obsolete tag names as it previously contained outdated entries.

v0.4.3

26 Jul 10:41

Choose a tag to compare

Add -Dforce-version flag to build the SuperHTML CLI tool with a manually specified version, bypassing git describe. This is useful for package managers that build superhtml from a shallow clone of the git repository (or use a tarball, et simila).

v0.4.2

25 Jul 16:52

Choose a tag to compare

Fixes a crash found by @EliSauder, updates zig-afl-fuzz (development only) dependency.

v0.4.1

24 Jul 20:07

Choose a tag to compare

Minor polishes to the CLI help menu and other improvements to the build script.

Bugfixes, proper version reporting

23 Jul 16:47

Choose a tag to compare

SuperHTML CLI (LSP)

  • Bugfixes
  • Introduced correct version reporting (now superhtml version will report the correct version)

SuperHTML Templating Language

  • Added support for Scripty interrupts