Releases: guigrpa/docx-templates
Releases · guigrpa/docx-templates
v4.14.1
v4.14.0
What's Changed
- Add UnterminatedForLoopError to README by @davidjb in #372
- Fix: corrupted docx issue caused by duplicate extensions in ContentType.xml with different casing by @ACHP in #400
- Feat: improve table row and column deletion logic by @PleBea in #402
- Use
Buffer
instead of string concatenation for huge XML support by @AlexC-ux in #386 - Add
"type": "module"
topackage.json
. - Various Dependabot dependency updates.
New Contributors
Full Changelog: v4.13.0...v4.14.0
v4.13.0
What's Changed
- Added
maximumWalkingDepth
option for supporting large documents by @BrandonDR in #360 - Updated dependencies.
New Contributors
- @BrandonDR made their first contribution in #360
Full Changelog: v4.12.0...v4.13.0
v4.12.0
v4.11.5
v4.11.4
What's Changed
- Replace weak
Object
types ofrunJs
arguments. - Remove unnecessary use of
eval()
internally. - #341 Add result to
ObjectCommandResultError
. When aObjectCommandResultError
is thrown, this change attaches the computed result to the error in case a custom error handler wants to use it for some reason. (thanks @emilong!) - #345: Make types for template more liberal. What works with Buffer should work with ArrayBuffer, with the benefit that browsers don't need a
Buffer
polyfill.
New Contributors
Full Changelog: v4.11.3...v4.11.4
v4.11.3
What's Changed
- (PR #321) Fix
InvalidCommandError
referring to'Unexpected END-IF outside of IF statement context:'
when the problem was actually an unexpectedEND-FOR
. Thanks @davidjb - Issue #322: Fix silent failure caused by unterminated for-loop in template, leading to a (partially) empty report. Throw new
UnterminatedForLoopError
whenFOR
loop is not properly terminated with anEND-FOR
. - Remove unnecessary runtime dependency (
timm
). - Upgrade
jszip
dependency to latest version.
New Contributors
Full Changelog: v4.11.2...v4.11.3
v4.11.2
v4.11.1
v4.11.0
4.11.0 (2023-03-02)
- Issue #143: Add optional
processLineBreaksAsNewText
toggle which provides an alternative way of inserting line breaks from commands into the docx XML. This should improve rendering of newlines in a few docx readers, like LibreOffice. (MR #182). Thanks @khaled-iva-docs ! - Updated dependencies.
Full Changelog: v4.10.0...v4.11.0