Releases: PrairieLearn/tree-sitter-htmlmustache
Releases · PrairieLearn/tree-sitter-htmlmustache
Release list
v1.4.3
v1.4.2
lsp-v1.4.3
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
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
Changes
- Add Python bindings published to PyPI as
tree-sitter-htmlmustachefor use withpy-tree-sitter. - Drop the unused Rust binding.
Install (Python)
pip install tree-sitter tree-sitter-htmlmustachefrom 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
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
v1.3.3
What's Changed
- Add
customTagDefaults.allowBooleanAttributesfor custom tag validation, defaulting to the existing permissive behavior. - Add per top-level custom tag and child tag
allowBooleanAttributesoverrides. - Report
customTagSchemadiagnostics 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, anddefineTagValidators()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
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
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)