Skip to content

v1.11.0

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Dec 08:41
2211e70

1.11.0 (2026-12-01)

⚠️ Upgrade notes

ValidateTemplate reports more problems

Processing output of existing templates does not change (apart from the bug fixes below). ValidateTemplate is stricter, so a template that passed before can now fail:

  • Block marker with other text (#253): a {{#if}}, {{#foreach}}, {{/if}} … marker that shares its paragraph (or table row) with other text is now a ValidationErrorType.BlockMarkerWithText error. Processing drops that text, as before, and now reports it as a ProcessingWarningType.BlockMarkerWithText warning. Move the marker into its own paragraph.
  • Template lint (#255): unterminated tags (ValidationErrorType.UnterminatedTag), several block markers in one paragraph (ValidationErrorType.MultipleBlockMarkers) and orphan {{/if}}, {{#else}}, {{#elseif}}, {{/foreach}} are errors. Structural errors now carry a location (body, table 1, row 2, cell 3, paragraph 1: '…') in Location, and the same error at two places is reported at each.
  • Loop item paths with data (#299): ValidateTemplate(stream, data) resolves the whole path of a loop item ({{item.Customer.Name}}), not only its first segment. A nested path that no item has is now a MissingVariable error (values) or a MissingConditionVariable warning (conditions).

New enum members

ValidationErrorType.BlockMarkerWithText, UnterminatedTag, MultipleBlockMarkers and ProcessingWarningType.BlockMarkerWithText. A switch over these enums without a default branch needs the new cases.

Features

  • :join format specifier for collections (#272) (#273) (0ac402c)
  • template lint — locations, unterminated tags, multiple and orphan markers (#255) (#276) (a9d74ce)

Bug Fixes

  • insert w:updateFields at its schema position in settings (#254) (#256) (8d9c359)
  • report text removed together with block markers (#253) (#259) (da01316)
  • validate the whole path of a loop item, not only its first segment (#299) (#301) (ca1a1cf)