From 45ca893d38bf7cde46ea1b7cadd4818581ca9dfb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 1 Dec 2026 18:08:13 +0000 Subject: [PATCH 1/2] chore(main): release 1.11.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 15 +++++++++++++++ src/TriasDev.Templify/TriasDev.Templify.csproj | 2 +- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index d9246dd..cf198b9 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.10.0" + ".": "1.11.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 22df398..170c1f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,21 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.11.0](https://github.com/TriasDev/templify/compare/v1.10.0...v1.11.0) (2026-12-01) + + +### Features + +* :join format specifier for collections ([#272](https://github.com/TriasDev/templify/issues/272)) ([#273](https://github.com/TriasDev/templify/issues/273)) ([0ac402c](https://github.com/TriasDev/templify/commit/0ac402caad2677f12d9b600eb9a722be129dc529)) +* template lint — locations, unterminated tags, multiple and orphan markers ([#255](https://github.com/TriasDev/templify/issues/255)) ([#276](https://github.com/TriasDev/templify/issues/276)) ([a9d74ce](https://github.com/TriasDev/templify/commit/a9d74ced201a600c95ca63336ab2abc9ceb09ab6)) + + +### Bug Fixes + +* insert w:updateFields at its schema position in settings ([#254](https://github.com/TriasDev/templify/issues/254)) ([#256](https://github.com/TriasDev/templify/issues/256)) ([8d9c359](https://github.com/TriasDev/templify/commit/8d9c359901bd7191e8cfbab12d184743fda9160d)) +* report text removed together with block markers ([#253](https://github.com/TriasDev/templify/issues/253)) ([#259](https://github.com/TriasDev/templify/issues/259)) ([da01316](https://github.com/TriasDev/templify/commit/da013160f497de2d0cf89675ef2195196136e0d2)) +* validate the whole path of a loop item, not only its first segment ([#299](https://github.com/TriasDev/templify/issues/299)) ([#301](https://github.com/TriasDev/templify/issues/301)) ([ca1a1cf](https://github.com/TriasDev/templify/commit/ca1a1cfd1925b4d7daf328bb7c6009b27ce6c622)) + ## [1.10.0](https://github.com/TriasDev/templify/compare/v1.9.0...v1.10.0) (2026-11-12) ### ⚠️ Upgrade notes diff --git a/src/TriasDev.Templify/TriasDev.Templify.csproj b/src/TriasDev.Templify/TriasDev.Templify.csproj index ec733b6..42f297a 100644 --- a/src/TriasDev.Templify/TriasDev.Templify.csproj +++ b/src/TriasDev.Templify/TriasDev.Templify.csproj @@ -10,7 +10,7 @@ TriasDev.Templify - 1.10.0 + 1.11.0 High-performance templating engine for .NET. Process Word documents (.docx), LibreOffice / OpenDocument Text documents (.odt, .ott) and plain text templates with the same powerful syntax. Replace placeholders, evaluate conditionals, and process loops without Microsoft Word or LibreOffice. Built on the OpenXML SDK; OpenDocument support needs no extra dependency. word;docx;odt;ott;opendocument;libreoffice;template;openxml;document-generation;templating;word-documents;office;dotnet;email;text-templates From 5e4b5effd474d5ac393ceab0523123fa8e501c12 Mon Sep 17 00:00:00 2001 From: Vaceslav Ustinov Date: Wed, 2 Dec 2026 09:35:00 +0100 Subject: [PATCH 2/2] docs: upgrade notes for 1.11.0 --- CHANGELOG.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 170c1f9..fb0c755 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [1.11.0](https://github.com/TriasDev/templify/compare/v1.10.0...v1.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](https://github.com/TriasDev/templify/issues/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](https://github.com/TriasDev/templify/issues/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](https://github.com/TriasDev/templify/issues/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