docxtemplater
Advanced tools
Changelog
3.43.1
Improve Typescript support to use the NodeNext moduleResolution setting.
See the explanation here.
Fixed in this pull request thanks to @benasher44.
Changelog
3.43.0
Add getResolvedId calculation in docxtemplater to all template parts so that
all modules can store a value for each templated part. This value is guaranteed
to be the same for a given {placeholder} and data attribute between resolve
and render
.
Changelog
3.42.7
Throw specific error if two modules with the same name are attached.
Bugfix issue on TxtTemplater when using {paragraphLoop: true}
.
Changelog
3.42.5
Bugfix for TxtTemplating :
const TxtTemplater = require("docxtemplater/text.js");
The following template :
<p>Foobar</p>
Would be rendered as :
<p>Foobar</p>
Also, errors such as unclosed loops, like in :
{#users}Foo
would produce an internal stacktrace.
Now, a MultiError is thrown which contains the list of all errors inside error.properties.errors
Changelog
3.42.4
Avoid issue Cannot read properties of undefined (reading 'length')
when using renderAsync
.
Now, the correct error message should be shown.
Changelog
3.42.3
Bugfix to avoid following error when runnig iModule.getStructuredTags()
:
TypeError: Cannot read properties of undefined (reading 'replace')
Now, the tags are correctly returned.
Changelog
3.42.1
Bugfix for inspect module when used together with qrcode/xlsx or table module, in some specific cases, the getTags function would return values correctly, but also return a key named "undefined", like this :
const tags = iModule.getAllTags();
console.log(tags); // would return : { name: {}, undefined: {}}
In order to apply the fix, you have to update the following modules (if you use them) :
Changelog
3.42.0
[Internal] Add filePath to each "inspect" call, which fixes a bug with the chart module when used together with the "getTags" feature of the inspect module.
If you update to this version, it is important that you also upgrade following modules if you use them :