Skip to content

Releases: guigrpa/docx-templates

v4.13.0

17 Apr 06:59
Compare
Choose a tag to compare

What's Changed

  • Added maximumWalkingDepth option for supporting large documents by @BrandonDR in #360
  • Updated dependencies.

New Contributors

Full Changelog: v4.12.0...v4.13.0

v4.12.0

01 Apr 13:42
Compare
Choose a tag to compare

What's Changed

  • #15 New feature: generate columns for a table using FOR loop. Thanks @SuchiraD !

Full Changelog: v4.11.5...v4.12.0

v4.11.5

24 Mar 14:13
Compare
Choose a tag to compare

What's Changed

  • #340 Fix for infinite loop bug: don't allow nested IFs on same w:p or w:tr tag. Thanks @dseiler
  • #356 Simplify documentation of INS commands.
  • #355 Retain original sandbox errors (from different JavaScript realms) without coercion. Thanks @davidjb !

Full Changelog: v4.11.4...v4.11.5

v4.11.4

12 Jan 15:56
Compare
Choose a tag to compare

What's Changed

  • Replace weak Object types of runJs arguments.
  • Remove unnecessary use of eval() internally.
  • #341 Add result to ObjectCommandResultError. When a ObjectCommandResultError 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

  • @abs made their first contribution in #332

Full Changelog: v4.11.3...v4.11.4

v4.11.3

08 Aug 10:55
Compare
Choose a tag to compare

What's Changed

  • (PR #321) Fix InvalidCommandError referring to 'Unexpected END-IF outside of IF statement context:' when the problem was actually an unexpected END-FOR. Thanks @davidjb
  • Issue #322: Fix silent failure caused by unterminated for-loop in template, leading to a (partially) empty report. Throw new UnterminatedForLoopError when FOR loop is not properly terminated with an END-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

14 Jul 14:52
Compare
Choose a tag to compare
  • Issue #296: Fix bug caused by Shapes having the same ID they are generated from a FOR loop. (MR #315) Thanks @SuchiraD!
  • Issue #314: Ensure all custom error types are exported.

Full Changelog: v4.11.1...v4.11.2

v4.11.1

04 Apr 17:46
Compare
Choose a tag to compare

What's Changed

  • (MR #305) the IncompleteConditionalStatementError is now thrown when an 'IF' statement lacks a corresponding 'END-IF' command. Thanks @RoXuS !

New Contributors

Full Changelog: v4.11.0...v4.11.1

v4.11.0

02 Mar 14:21
Compare
Choose a tag to compare

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

03 Feb 08:43
Compare
Choose a tag to compare

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)

New Contributors

Full Changelog: v4.9.2...v4.10.0

v4.9.3-beta.2

01 Nov 09:49
Compare
Choose a tag to compare
v4.9.3-beta.2 Pre-release
Pre-release
  • Contains a candidate fix for #279 that required changes to the core XML tree walking routine.