Skip to content

v1.1.0

Choose a tag to compare

@reteps reteps released this 14 May 20:57
· 36 commits to master since this release
5943d61

Custom tag validators

Custom tag validation now separates attribute schemas from richer project rules:

  • Tag schemas are draft-06 JSON Schemas over the flat attribute object only.
  • pluginModule replaces ajvModule and can export formats and synchronous validators.
  • Validator ids behave like lint rule ids, including severity overrides and inline disables.
  • Validators receive one-level child facades with mustache-section flattening and optional raw innerHtml.

Breaking validation changes

  • Removed draft 2020-12 schema support.
  • Removed the element-envelope schema shape (tag, attributes, children, text, innerHtml).
  • Removed custom AJV keyword registration and htmlGlobalAttributes expansion.
  • Schema deprecation diagnostics now apply to flat attribute schemas only.

Cleanup

  • Removed unused aria-attributes and html-element-attributes dependencies.

Checks

  • pnpm run lint
  • pnpm run format:check
  • pnpm run typecheck
  • pnpm run test:js
  • pnpm run build:js
  • pnpm --prefix lsp run typecheck
  • pnpm --prefix lsp run test
  • pnpm --prefix lsp run build:production
  • pnpm test