Docx Templates Versions Save

Template-based docx report creation

v4.13.0

1 month ago

What's Changed

New Contributors

Full Changelog: https://github.com/guigrpa/docx-templates/compare/v4.12.0...v4.13.0

v4.12.0

1 month ago

What's Changed

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

Full Changelog: https://github.com/guigrpa/docx-templates/compare/v4.11.5...v4.12.0

v4.11.5

1 month ago

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: https://github.com/guigrpa/docx-templates/compare/v4.11.4...v4.11.5

v4.11.4

4 months ago

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

Full Changelog: https://github.com/guigrpa/docx-templates/compare/v4.11.3...v4.11.4

v4.11.3

9 months ago

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: https://github.com/guigrpa/docx-templates/compare/v4.11.2...v4.11.3

v4.11.2

10 months ago
  • 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: https://github.com/guigrpa/docx-templates/compare/v4.11.1...v4.11.2

v4.11.1

1 year ago

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: https://github.com/guigrpa/docx-templates/compare/v4.11.0...v4.11.1

v4.11.0

1 year ago

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: https://github.com/guigrpa/docx-templates/compare/v4.10.0...v4.11.0

v4.10.0

1 year ago

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 8b2ba5526df78da675eaf59f88cb76035ffac5bd.
  • 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: https://github.com/guigrpa/docx-templates/compare/v4.9.2...v4.10.0

v4.9.3-beta.2

1 year ago
  • Contains a candidate fix for #279 that required changes to the core XML tree walking routine.