Releases: guigrpa/docx-templates
Releases · guigrpa/docx-templates
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
v4.10.0
Summary
- Issue #194: add ability to provide captions for images (MR #286).
- Ensure XMLs are processed in a deterministic order (mainly relevant for
listCommands()
), see commit 8b2ba55. - Various minor code quality and typing improvements.
- Various improvements to the user guide in the README.md.
- Bumped dependencies.
What's Changed (automatically generated changelog)
- Bump minimist from 1.2.5 to 1.2.6 by @dependabot in #267
- Bump ansi-regex from 4.1.0 to 4.1.1 by @dependabot in #268
- clarify that the loop variable must be prefixed with $ by @paulovieira in #274
- add ability to provide captions for images by @jwasnoggin in #286
- Bump json5 from 1.0.1 to 1.0.2 by @dependabot in #290
- Bump qs from 6.5.2 to 6.5.3 by @dependabot in #288
- Bump minimatch from 3.0.4 to 3.1.2 by @dependabot in #291
- Bump jszip from 3.7.1 to 3.8.0 by @dependabot in #293
New Contributors
- @paulovieira made their first contribution in #274
- @jwasnoggin made their first contribution in #286
Full Changelog: v4.9.2...v4.10.0
v4.9.3-beta.2
- Contains a candidate fix for #279 that required changes to the core XML tree walking routine.