Skip to content

Releases: PrairieLearn/tree-sitter-htmlmustache

v1.4.3

Choose a tag to compare

@reteps reteps released this 01 Jun 20:03
61b6383

Full Changelog: v1.4.2...v1.4.3

v1.4.2

Choose a tag to compare

@reteps reteps released this 01 Jun 17:51
49a7427

Full Changelog: v1.4.1...v1.4.2

lsp-v1.4.3

Choose a tag to compare

@reteps reteps released this 01 Jun 18:14
a6f618c

VS Code extension republished as prairielearn.tree-sitter-htmlmustache with displayName "HTML Mustache Templates". Functionally identical to the prior extension; renamed because the old Marketplace name/displayName became unavailable after unpublishing.

lsp-v1.4.2

Choose a tag to compare

@reteps reteps released this 01 Jun 18:11
43cabf8

Rename the VS Code extension to prairielearn.tree-sitter-htmlmustache (the old htmlmustache-lsp Marketplace name became unavailable after unpublishing). No functional changes.

v1.4.1

Choose a tag to compare

@reteps reteps released this 24 May 04:22
f01ef21

Changes

Install (Python)

pip install tree-sitter tree-sitter-htmlmustache
from tree_sitter import Language, Parser
import tree_sitter_htmlmustache

parser = Parser(Language(tree_sitter_htmlmustache.language()))
tree = parser.parse(b"<div>{{#items}}<li>{{name}}</li>{{/items}}</div>")

v1.4.0

Choose a tag to compare

@reteps reteps released this 19 May 00:28
93c5cf9

Changes

  • Add public tag validator helpers: attr(), validateElement(), and validateAttributes().
  • Move attribute access off the public TagElement method surface; use attr(element, name).present(), .literal(), and .literalMap(mapper).
  • Bump package and LSP versions to 1.4.0.

Verification

  • pnpm run typecheck
  • pnpm run test:js
  • npm run build:js
  • npm test
  • npm run lint

v1.3.4

Choose a tag to compare

@reteps reteps released this 18 May 23:51
328fe90

Patch release for tag validator child facades.\n\n- Populate TagElement child facades recursively so nested direct children can be inspected from each child facade.\n- Update validator facade documentation and regression coverage.

v1.3.3

Choose a tag to compare

@reteps reteps released this 15 May 17:08
4f57ff1

What's Changed

  • Add customTagDefaults.allowBooleanAttributes for custom tag validation, defaulting to the existing permissive behavior.
  • Add per top-level custom tag and child tag allowBooleanAttributes overrides.
  • Report customTagSchema diagnostics for disallowed HTML boolean attributes on custom tags, without affecting ordinary HTML boolean attributes.
  • Narrow validator attribute types with TagElement<false>, including helper methods, child facades, and defineTagValidators() callbacks.
  • Regenerate config schema and update documentation for the new option.
  • Bump npm package and VS Code extension manifests to 1.3.3.

v1.3.2

Choose a tag to compare

@reteps reteps released this 15 May 05:24
b44422a

What's Changed

  • Add a generated JSON Schema for .htmlmustache.jsonc at schemas/htmlmustache-config.schema.json.
  • Use Zod 4 as the config shape source of truth and generate the JSON Schema during prepack.
  • Document the raw GitHub $schema URL for editor validation.
  • Bump npm package and VS Code extension manifests to 1.3.2.

v1.3.1

Choose a tag to compare

@reteps reteps released this 15 May 04:47
99c16e0

Changes

  • Flatten custom child schema config from children.tags to children arrays.
  • Replace children.mode with allowAdditionalChildren.
  • Support self-references for child-only recursive tags.

Verification

  • pnpm lint
  • pnpm typecheck
  • pnpm test:js
  • pnpm test (lsp/server)
  • pnpm build (lsp/server)