-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(deps): update dependency docxtemplater to v3.54.1 #192
Open
renovate
wants to merge
1
commit into
master
Choose a base branch
from
renovate/docxtemplater-3.x
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
renovate
bot
force-pushed
the
renovate/docxtemplater-3.x
branch
from
March 27, 2020 15:40
e8958da
to
89afd37
Compare
renovate
bot
changed the title
fix(deps): update dependency docxtemplater to v3.17.2
fix(deps): update dependency docxtemplater to v3.17.3
Mar 27, 2020
renovate
bot
force-pushed
the
renovate/docxtemplater-3.x
branch
from
April 2, 2020 21:53
89afd37
to
c837918
Compare
renovate
bot
changed the title
fix(deps): update dependency docxtemplater to v3.17.3
fix(deps): update dependency docxtemplater to v3.17.4
Apr 2, 2020
renovate
bot
force-pushed
the
renovate/docxtemplater-3.x
branch
from
April 3, 2020 21:36
c837918
to
cdee1de
Compare
renovate
bot
changed the title
fix(deps): update dependency docxtemplater to v3.17.4
fix(deps): update dependency docxtemplater to v3.17.5
Apr 3, 2020
renovate
bot
force-pushed
the
renovate/docxtemplater-3.x
branch
from
April 17, 2020 14:54
cdee1de
to
3c4aa85
Compare
renovate
bot
changed the title
fix(deps): update dependency docxtemplater to v3.17.5
fix(deps): update dependency docxtemplater to v3.17.6
Apr 17, 2020
renovate
bot
force-pushed
the
renovate/docxtemplater-3.x
branch
from
June 15, 2020 14:42
3c4aa85
to
d9e1bce
Compare
renovate
bot
changed the title
fix(deps): update dependency docxtemplater to v3.17.6
fix(deps): update dependency docxtemplater to v3.17.7
Jun 15, 2020
renovate
bot
changed the title
fix(deps): update dependency docxtemplater to v3.17.7
fix(deps): update dependency docxtemplater to v3.17.8
Jun 15, 2020
renovate
bot
force-pushed
the
renovate/docxtemplater-3.x
branch
2 times, most recently
from
June 18, 2020 13:04
c884f17
to
5e8f15a
Compare
renovate
bot
changed the title
fix(deps): update dependency docxtemplater to v3.17.8
fix(deps): update dependency docxtemplater to v3.17.9
Jun 18, 2020
renovate
bot
force-pushed
the
renovate/docxtemplater-3.x
branch
from
August 22, 2020 05:57
5e8f15a
to
324d74f
Compare
renovate
bot
changed the title
fix(deps): update dependency docxtemplater to v3.17.9
fix(deps): update dependency docxtemplater to v3.18.0
Aug 22, 2020
renovate
bot
force-pushed
the
renovate/docxtemplater-3.x
branch
from
October 28, 2020 05:55
324d74f
to
67bdb6a
Compare
renovate
bot
changed the title
fix(deps): update dependency docxtemplater to v3.18.0
fix(deps): update dependency docxtemplater to v3.19.6
Oct 28, 2020
renovate
bot
force-pushed
the
renovate/docxtemplater-3.x
branch
from
November 5, 2020 22:57
67bdb6a
to
3cb7bf0
Compare
renovate
bot
changed the title
fix(deps): update dependency docxtemplater to v3.19.6
fix(deps): update dependency docxtemplater to v3.19.7
Nov 5, 2020
renovate
bot
force-pushed
the
renovate/docxtemplater-3.x
branch
from
January 22, 2021 11:53
3cb7bf0
to
cb724e7
Compare
renovate
bot
changed the title
fix(deps): update dependency docxtemplater to v3.19.7
fix(deps): update dependency docxtemplater to v3.19.9
Jan 22, 2021
renovate
bot
force-pushed
the
renovate/docxtemplater-3.x
branch
from
February 9, 2021 13:00
cb724e7
to
4a4f78b
Compare
renovate
bot
changed the title
fix(deps): update dependency docxtemplater to v3.19.9
fix(deps): update dependency docxtemplater to v3.19.10
Feb 9, 2021
renovate
bot
force-pushed
the
renovate/docxtemplater-3.x
branch
from
April 26, 2021 15:27
4a4f78b
to
757b08a
Compare
renovate
bot
changed the title
fix(deps): update dependency docxtemplater to v3.19.10
fix(deps): update dependency docxtemplater to v3.21.1
Apr 26, 2021
renovate
bot
force-pushed
the
renovate/docxtemplater-3.x
branch
from
May 20, 2021 10:29
757b08a
to
f9435fd
Compare
renovate
bot
changed the title
fix(deps): update dependency docxtemplater to v3.21.1
fix(deps): update dependency docxtemplater to v3.21.2
May 20, 2021
renovate
bot
changed the title
fix(deps): update dependency docxtemplater to v3.47.1
fix(deps): update dependency docxtemplater to v3.47.2
May 9, 2024
renovate
bot
force-pushed
the
renovate/docxtemplater-3.x
branch
from
May 21, 2024 22:58
e8fc80a
to
9d33037
Compare
renovate
bot
changed the title
fix(deps): update dependency docxtemplater to v3.47.2
fix(deps): update dependency docxtemplater to v3.47.3
May 21, 2024
renovate
bot
force-pushed
the
renovate/docxtemplater-3.x
branch
from
May 25, 2024 16:47
9d33037
to
1baa214
Compare
renovate
bot
changed the title
fix(deps): update dependency docxtemplater to v3.47.3
fix(deps): update dependency docxtemplater to v3.47.4
May 25, 2024
renovate
bot
force-pushed
the
renovate/docxtemplater-3.x
branch
from
June 28, 2024 22:09
1baa214
to
9d09898
Compare
renovate
bot
changed the title
fix(deps): update dependency docxtemplater to v3.47.4
fix(deps): update dependency docxtemplater to v3.48.0
Jun 28, 2024
renovate
bot
force-pushed
the
renovate/docxtemplater-3.x
branch
from
July 24, 2024 17:20
9d09898
to
1d58996
Compare
renovate
bot
changed the title
fix(deps): update dependency docxtemplater to v3.48.0
fix(deps): update dependency docxtemplater to v3.49.0
Jul 24, 2024
renovate
bot
force-pushed
the
renovate/docxtemplater-3.x
branch
from
July 25, 2024 10:42
1d58996
to
488d2cf
Compare
renovate
bot
changed the title
fix(deps): update dependency docxtemplater to v3.49.0
fix(deps): update dependency docxtemplater to v3.49.1
Jul 25, 2024
renovate
bot
force-pushed
the
renovate/docxtemplater-3.x
branch
from
August 10, 2024 16:27
488d2cf
to
364627c
Compare
renovate
bot
changed the title
fix(deps): update dependency docxtemplater to v3.49.1
fix(deps): update dependency docxtemplater to v3.49.2
Aug 10, 2024
renovate
bot
force-pushed
the
renovate/docxtemplater-3.x
branch
from
August 25, 2024 20:25
364627c
to
0ffc909
Compare
renovate
bot
changed the title
fix(deps): update dependency docxtemplater to v3.49.2
fix(deps): update dependency docxtemplater to v3.50.0
Aug 25, 2024
renovate
bot
force-pushed
the
renovate/docxtemplater-3.x
branch
from
October 12, 2024 16:36
0ffc909
to
7221f0a
Compare
renovate
bot
changed the title
fix(deps): update dependency docxtemplater to v3.50.0
fix(deps): update dependency docxtemplater to v3.51.0
Oct 12, 2024
renovate
bot
force-pushed
the
renovate/docxtemplater-3.x
branch
from
October 19, 2024 18:23
7221f0a
to
3b1239b
Compare
renovate
bot
changed the title
fix(deps): update dependency docxtemplater to v3.51.0
fix(deps): update dependency docxtemplater to v3.51.1
Oct 19, 2024
renovate
bot
force-pushed
the
renovate/docxtemplater-3.x
branch
from
October 24, 2024 19:36
3b1239b
to
ff54026
Compare
renovate
bot
changed the title
fix(deps): update dependency docxtemplater to v3.51.1
fix(deps): update dependency docxtemplater to v3.51.2
Oct 24, 2024
renovate
bot
force-pushed
the
renovate/docxtemplater-3.x
branch
from
November 9, 2024 16:41
ff54026
to
d619c9d
Compare
renovate
bot
changed the title
fix(deps): update dependency docxtemplater to v3.51.2
fix(deps): update dependency docxtemplater to v3.52.0
Nov 9, 2024
renovate
bot
force-pushed
the
renovate/docxtemplater-3.x
branch
from
November 16, 2024 10:00
d619c9d
to
d4aac8b
Compare
renovate
bot
changed the title
fix(deps): update dependency docxtemplater to v3.52.0
fix(deps): update dependency docxtemplater to v3.53.0
Nov 16, 2024
renovate
bot
force-pushed
the
renovate/docxtemplater-3.x
branch
from
November 20, 2024 17:17
d4aac8b
to
ab1ab25
Compare
renovate
bot
changed the title
fix(deps): update dependency docxtemplater to v3.53.0
fix(deps): update dependency docxtemplater to v3.54.0
Nov 20, 2024
Dependency update (patch)
renovate
bot
force-pushed
the
renovate/docxtemplater-3.x
branch
from
November 30, 2024 16:00
ab1ab25
to
a9723e0
Compare
renovate
bot
changed the title
fix(deps): update dependency docxtemplater to v3.54.0
fix(deps): update dependency docxtemplater to v3.54.1
Nov 30, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.17.9
->3.54.1
Release Notes
open-xml-templating/docxtemplater (docxtemplater)
v3.54.1
Compare Source
Bugfix so that "errorChecker" is called when resolveTags fails (and not later in render).
This fixes a bug when using the xlsx + error location module in async mode, so that errors are correctly shown.
v3.54.0
Compare Source
Add console.warn messages when using deprecated methods :
compile, attachModule, setData, resolveData, loadZip
Read more about the migration here
v3.53.0
Compare Source
Add support for replacing placeholders such as
{name}
in Smart art shapes.v3.52.0
Compare Source
Add
syntax.allowUnclosedTag
option.This allows to write :
Hello {user
and not have an error in your template.v3.51.2
Compare Source
Improve typescript typings :
DXT.Part
getFileType?(opts: any): string | void;
targets
to Docxtemplater instancev3.51.1
Compare Source
Update to be able to write
{#loop}{. | filter}{/}
so that the variable passedto filter is not of type Proxy.
Previously, the variable passed to the filter would be of type Proxy.
This requires
[email protected]
v3.51.0
Compare Source
Add support for
module.preZip
function, which is useful for the subtemplate and the meta module.After upgrading to 3.51.0, if you use any of the paid modules, please also run the upgrade for all your modules with this command :
Update moduleApiVersion to 3.41.0.
v3.50.0
Compare Source
In the continuity of the "evaluateIdentifier" feature added in 3.49.0, we added the
setIdentifier
option for the expressions.js file :This is useful if you want to do assignments in your template, like this :
You can then write :
In this case, all of your assignments to variable that start with "$$" will be assigned to the "globalData" object.
Also tags that contain one assignment and then a statement will now return the statement.
So for example, you can write :
Hello { $$admin=user; $$admin }
In this case, it will render "Hello John" (if the data is
{user: "John"}
)v3.49.2
Compare Source
Bugfix corruption that could appear when using the vertical loop module.
Previously, the vertical loop module could sometimes produce empty tables that would not be cleaned.
For example, with following template :
v3.49.1
Compare Source
Add
doc.keepStyles
anddoc.includeSections
to Typescript definition.v3.49.0
Compare Source
Add possibility, when using the angular parser, to use "magic" keys to return some specific values. (This feature cannot be implemented if you use the
"docxtemplater/expressions-ie11.js"
package).In your template, if you write :
This will retrieve the "val" value from the scope that is above the current scope (it retrieves the value of "val" in the scope outside of the loop).
v3.48.0
Compare Source
Allow to configure the behavior of the "change delimiter syntax".
As documented here :
https://docxtemplater.com/docs/tag-types/#set-delimiter
You can for example use :
It is possible to change the special behavior that will catch tags that start with a "=".
It is either possible to set the
syntax.changeDelimiterPrefix
to null so that it won't be possible to change the delimiters inside the template, or you can change the char that is used.For example :
or
v3.47.4
Compare Source
Add correct typescript typings for
isIdentifierStart
andisIdentifierContinue
.v3.47.3
Compare Source
Improve getStructuredTags and getTags of the inspectModule to allow to get tags present in image attributes.
(This is to work together with the image-module 3.28.0)
v3.47.2
Compare Source
Bugfix internal api mechanism :
It internally allows to have multiple traits.expandToOne().
Fixes bugs with the subtemplate and subsection module.
Update moduleApiVersion to 3.40.0.
v3.47.1
Compare Source
If zip file is not a docx file, show the following error message now :
The filetype for this file could not be identified, is this file corrupted ? Zip file contains : world.txt,xxx.log
In previous versions, the following message was shown :
The filetype for this file could not be identified, is this file corrupted ?
v3.47.0
Compare Source
Make it possible to dynamically allow to use a given tag for a module.
For example, you can write :
This code means that if you write : {raw} in your document (without the "@" prefix), that tag will be used as a rawxml tag.
v3.46.2
Compare Source
Add "synced-zip" event that is run right after the zip is prepared.
Update moduleApiVersion to version 3.39.0, which is used by the latest subtemplate module.
v3.46.1
Compare Source
Fix typescript issue with TxtTemplater
v3.46.0
Compare Source
When using a loop inside a powerpoint table, if the result is an empty table, correctly drop the table from the presentation.
v3.45.1
Compare Source
Add getObjectIdentifiers to expressionParser, which can be used like this :
v3.45.0
Compare Source
Bugfix for proofstate module : Following error was thrown when using this module :
Unnamed module
Now the module should work correctly
v3.44.0
Compare Source
Make it possible to configure the angular parser for just one docxtemplater instance.
(This needs angular-expressions version 1.2.0)
Use following code :
v3.43.1
Compare Source
Improve Typescript support to use the NodeNext moduleResolution setting.
See the explanation here.
Fixed in this pull request thanks to @benasher44.
v3.43.0
Compare Source
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
.v3.42.7
Compare Source
Throw specific error if two modules with the same name are attached.
Bugfix issue on TxtTemplater when using
{paragraphLoop: true}
.v3.42.6
Compare Source
Bugfix of internal API change, which was published in v3.42.5
v3.42.5
Compare Source
Bugfix for TxtTemplating :
The following template :
Would be rendered as :
Also, errors such as unclosed loops, like in :
would produce an internal stacktrace.
Now, a MultiError is thrown which contains the list of all errors inside
error.properties.errors
v3.42.4
Compare Source
Avoid issue
Cannot read properties of undefined (reading 'length')
when usingrenderAsync
.Now, the correct error message should be shown.
v3.42.3
Compare Source
Bugfix to avoid following error when runnig
iModule.getStructuredTags()
:Now, the tags are correctly returned.
v3.42.2
Compare Source
Bugfix to add clone method to the assertion module and to the inspect module
v3.42.1
Compare Source
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 :
In order to apply the fix, you have to update the following modules (if you use them) :
v3.42.0
Compare Source
[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 :
v3.41.0
Compare Source
Correctly show error in a multi error if the scope parser execution fails inside the render function
Previously, following error was thrown :
with following template :
(when sortBy is not imported correctly).
Now, the error will show a multierror with the list of errors that are happening + the tags that are causing the error.
Add support for angularExpressions.compile(), angularExpressions.Parser, and angularParser.Lexer
v3.40.3
Compare Source
Fix issue when having {tag} inside title in pptx (or docx) and using the linebreak option.
v3.40.2
Compare Source
Bugfix to not add "w:sdt" inside "w:sdtContent".
Fixes a corruption on a particular type of document.
v3.40.1
Compare Source
Bugfix when using docxtemplater asynchronously, and having some module inside a loop.
The "contentType" and some other properties were not transfered correctly to the elements inside the loop.
This specifically caused an issue in the HTML module to return the correct pageHeight inside the
getSize
andgetImage
function.This could also lead to some other bugs that were happening only when having some specific tag present in the loop.
v3.40.0
Compare Source
In previous versions the following code will throw an error:
The syntax can now be made more lenient to permit closing tags even when there are no corresponding opening tags. In your code, write :
For now, the only available property for
syntax
object isallowUnopenedTag
(it makes it possible to use the end delimiter tag as a text and not to parse it as a closing tag and cause syntax error). Fixes https://github.com/open-xml-templating/docxtemplater/issues/726.The default behavior for the parser without setting the syntax option is the same as in 3.39.2, meaning without the
syntax.allowUnopenedTag: true
option, placeholders that are closed but not opened will throw an error.Internal: Refactor
getDelimiterErrors
function to be cleaner and more performantInternal: Add tests for new functionality
v3.39.2
Compare Source
v3.39.1
Compare Source
Always add {tag} in second argument to parser, like this :
v3.39.0
Compare Source
Add
preResolve
API for modules that allows to run some code before the calls to resolve.Update moduleApiVersion to version 3.37.0
v3.38.0
Compare Source
Add support for templating content which is in comments.
v3.37.14
Compare Source
Bugfix following error, when calling
setOptions
and thengetFullText
:v3.37.13
Compare Source
In powerpoint, the inspect module will now return correctly for the
getAllTags
andgetStructuredTags
methods :For this to work, you need to install version 3.4.10 of slides module or above.
For following template with the slides module attached :
The output of
inspectModule.getAllTags()
will now be :v3.37.12
Compare Source
For the following template
This did not work correctly with following data with expressions parser :
It rendered :
(which is incorrect)
This is because the
docxtemplater/expressions.js
parser was returning an object instead of the array in this case.v3.37.11
Compare Source
Update handling of "." in angular parser.
Docxtemplater now supports the following expression :
This is the same as :
Also, the following will also work now to access the "user-name" property of the root object (synonym of
this["user-name"]
:v3.37.10
Compare Source
Important bugfix for modules, if you are still using the legacy constructor (eg if you still have
attachModule
somewhere in your code.For example, one issue that could happen is with the HTML module, you could have following stacktrace :
This would happen when adding lists, and only if you're using one of following methods :
attachModule
,setOptions
, orloadZip
.v3.37.9
Compare Source
Update to render parts of the documents in the most natural order :
First all header parts, than the main document body, than the footer part.
v3.37.8
Compare Source
When using the following code :
This would always fail (when the scope was not set), but this should be allowed.
This will now work correctly.
v3.37.7
Compare Source
Correctly calculate the endLindex for loop module.
This fixes a bug of the Segmentmodule (part of the subtemplate module) where the segment would show wrongly an error of "Unclosed loop" when using the segment module with following template :
This fix also needs the latest subtemplate module : version 3.12.3
v3.37.6
Compare Source
Template docProps/app.xml before word/document.xml.
This way, users can write assignments in the word/settings.xml, and
use the exposed variables in the word/document.xml
With 3.37.5, require("docxtemplater/text") would throw the following error :
This is now fixed in version 3.37.6
v3.37.5
Compare Source
The TxtTemplater feature is now available using
require("docxtemplater/text")
Previously this was only available at "docxtemplater/js/text.js", but now both are supported.
v3.37.4
Compare Source
Add typings definitions for
docxtemplater/js/text.js
(Fixes #715)v3.37.3
Compare Source
Add better typings to expressions.js (including typings for filters).
v3.37.2
Compare Source
Add support to get identifiers when using the
docxtemplater/expressions.js
package :v3.37.1
Compare Source
Bugfix following error, when calling
setOptions
and thengetFullText
:v3.37.0
Compare Source
Improve the way {$index} is handled with the expressions parser.
Previously, if you wrote the following :
The
$index
value would always be equal to0
.This was because the
$index
would use the closest condition or loop.Now, the library will look whether the
{#important}
is using an array or a boolean. Only for arrays will it calculate the{$index}
, it will ignore any section that is a condition.This means that the output of the following will correctly be :
Previously, the same template would show just 0 for the index.
v3.36.1
Compare Source
Bugfix when using following in the template :
With following file :
This was incorrectly rendering undefined.
The bug was present since version 3.32.0
Version 3.31.6 and before were not affected by this bug.
Now, the code will correctly render : "John" in this case
v3.36.0
Compare Source
Bugfix issue #707 : Correctly handle usage of {#.}{.}{/} with angular parser
v3.35.1
Compare Source
v3.35.0
Compare Source
Update moduleApiVersion to version 3.36.0
Now the modules that define their
supportedFileTypes
will correctly be removed if the filetype does'nt match even when using theattachModule
API.Bugfix in FixDocPRCorruptionModule : when using the following code :
The issue was that if you attached the same module to multiple docxtemplater instances in parallel, because of badly handled state, the state for the fixDocPrCorruption was overwritten
Now, the fixDocPrCorruption can be used on multiple docxtemplater instances without causing any issue.
v3.34.3
Compare Source
Fix typescript definition for constructor / zip instance.
Allows to correctly autocomplete after doing
doc.getZip().generate()
Thanks to @oleksandr-danylchenko https://github.com/open-xml-templating/docxtemplater/pull/704
v3.34.2
Compare Source
Fix typescript definition for
getAllStructuredTags
: remove file argument.Fixed in #702 thanks to @oleksandr-danylchenko
v3.34.1
Compare Source
Bugfix in
require("docxtemplater/expressions.js")
:Avoid error const expressionParser = require("docxtemplater/expressions.js");
This will no more happen now, in the case where for example you wanted to set a property to any falsy value, like this :
{x=0}
v3.34.0
Compare Source
Add support to reorder modules automatically using module.priority.
Fetch data from
_rels/.rels
and pass it to each module function using therelType
attribute.Fixes issue in HTML module for some particular input that contains some
tp/document-orig.xml
file.v3.33.0
Compare Source
Add support for templating text files (or simple strings).
Usage is like this :
This also works with loops and options can be set (parser for angular expressions)
v3.32.6
Compare Source
Automatically template footnotes
v3.32.5
Compare Source
When having a comment inside a placeholder, the document could get corrupt.
This is now fixed.
v3.32.4
Compare Source
Update resolveOffset algorithm to improve slides module compatibility.
Internal update of moduleApiVersion to 3.34.0
v3.32.3
Compare Source
Bugfix of version 3.32.2, 3.32.1, 3.32.0
When using this document :
if the data is
{ name: "" }
with the "docxtemplater/expresssions.js" option, the tag will render the following :In version 3.32.2, this would have rendered
Hello undefined!
which is incorrect.v3.32.2
Compare Source
Bugfix of version 3.32.1 and 3.32.0.
Correctly expose
require("docxtemplater/expressions.js")
.v3.32.1
Compare Source
Add support to accented characters in tags when using the "docxtemplater/expressions.js" parser.
Tags such as {être} will not throw an error.
v3.32.0
Compare Source
Expose "docxtemplater/expressions.js" to simplify the parser option for angular parser.
You now can replace your angularParser code with the following :
For IE11 or other runtimes that do not support "Proxy", you can use instead :
Both examples require the
angular-expressions
package which is an external dependency :v3.31.6
Compare Source
Add
replaceFirstSection
andreplaceLastSection
booleans types for typescript and the subsection module.v3.31.5
Compare Source
Bugfix for pptx files not keeping correct font properties (font-size) when using
{linebreak: true}
option.v3.31.4
Compare Source
Bugfix to correctly handle empty loops.
Fixes https://github.com/open-xml-templating/docxtemplater/issues/680
Previously the following stack trace would be shown :
Now the template is rendered correctly.
v3.31.3
Compare Source
Bugfix for table module : merge-cells-col did not work correctly when placed inside a loop.
Fixes : https://github.com/open-xml-templating/docxtemplater/issues/671
v3.31.2
Compare Source
Bugfix to avoid throwing following error :
When the template contains an equal sign right after a closing tag.
For example, the following template would throw that error in previous versions :
Now, no error is thrown.
v3.31.1
Compare Source
Correctly handle case when having a manual section break of type "nextPage", that is within a loop.
Add "cp:contentStatus" to templated tags
v3.31.0
Compare Source
When having a table, that after the generation, has no table rows (<w:tr> elements), the whole
<w:tbl>
element is dropped.This automatically fixes a corruption that would happen when using a loop within table rows.
If you are using the subtemplate module, you have to update to subtemplate module 3.11.3
v3.30.3
Compare Source
Throw an error when calling
doc.render()
twice on the same instance.v3.30.2
Compare Source
Bugfix in fix-doc-pr-corruption module to work with xmlDocuments too.
v3.30.1
Compare Source
Bugfix to correctly add
xml:space="preserve"
for each type of placeholder, not just for the loop module.This fixes spacing issues that happened rarely in many modules that have an "inline mode" (word-run, image, html, styling, paragraph-placeholder).
v3.30.0
Compare Source
Make it possible to have a tag that contains multiple lines, like this :
And remove the paragraphs correctly.
Internal update of moduleApiVersion to 3.33.0
After upgrading this, you will need to upgrade :
v3.29.5
Compare Source
Bugfix to make loop module work well even on dotx files.
Internal update of moduleApiVersion to 3.32.0
v3.29.4
Compare Source
Improve corruption handling of adding
<w:p/>
after some tables, even when the table is added inside a loop.v3.29.3
Compare Source
Avoid corruption when having a table without a
<w:p/>
. This corruption only happens on very rare cases, for example when having a table containing a table that has no paragraph after it.v3.29.2
Compare Source
With the paragraphLoop option turned on, when using a loop that was containing a selfclosing paragraph :
<w:p/>
, the generated output could become corrupt.Now the output is valid.
v3.29.1
Compare Source
Handle following input when using loops with array :
v3.29.0
Compare Source
Log errors on multiple lines instead of on one line.
Previously, error messages were shown in one line only, making the output hard to read.
Now, error messages are shown on multiple lines, using normal JSON indentation.
You can use the previous behavior (one big JSON line) by writing the following :
v3.28.6
Compare Source
Template document properties that are set inside
<vt:lpwstr>
in docProps/custom.xmlv3.28.5
Compare Source
Add slideLayout files to list of templated files
Internal update of moduleApiVersion to 3.31.0
v3.28.4
Compare Source
Bugfix issue introduced in 3.28.3 when using expandOne trait
v3.28.3
Compare Source
Update expandOne trait to work even when having nested
<w:p>
and<w:txbxContent>
tagsFixes issue in the styling module in particular.
This release might slow down documents having many rawxml tags
v3.28.2
Compare Source
Throw specific error when using rawxml tag and the type of the output is not a string.
For example, if you do the following :
This will throw the following error :
Non string values are not allowed for rawXML tags
v3.28.1
Compare Source
Typing files : make them Typescript 3.x compatible (a change in 3.28.0 of docxtemplater made the typings only work with typescript 4+)
Add type for "errorLogging" parameter
v3.28.0
Compare Source
Internal update of moduleApiVersion to 3.30.0
Add
matchers
API for modules, to replace the internalparse
function.This internal change fixes bugs that can be triggered between for example the SlidesModule and the TableGridPptxModule.
When two modules have two prefixes that contain each other, for example the SlidesModule has a prefix of
:
as in{:users}
, and the TableGridPptxModule is:#
as in{:#​1}
.In versions before this version, the tag
{:#​1}
would be Interpreted as a SlidesModule tag depending on the order of the modules.Since this version, the
matchers
API makes it possible for docxtemplater to intelligently decide that the tag belongs to the TableGridPptxModule.The algorithm used is to use a "priority" integer if present, or to use the tag that has the longest prefix.
This change requires updates in following modules :
v3.27.2
Compare Source
Internal bugfix that would show a stacktrace instead of the real underlying RenderingError.
The stacktrace was "Cannot read property indexOf of undefined" in the
isStarting
functionTag names containing "non-breaking-spaces" (Ascii code 160) will be converted to normal spaces.
v3.27.1
Compare Source
Bugfix issue introduced in 3.27.0
When using the option
{linebreaks: true}
, documents could be made corrupt on version 3.27.0This version fixes the corruption
v3.27.0
Compare Source
Internal update of moduleApiVersion to 3.29.0
Add support to output docx files that are bigger than 500MB.
Please make sure to update the following modules if you use them :
Previously, after a certain limit (usually about 500MB), the error "Invalid String Length" would be thrown by Node, because that is the max string length allowed.
Fixes issue reported here : https://stackoverflow.com/questions/68578216/docxtemplater-rangeerror-invalid-string-length
A test has been created, which you can run with
npm run memorytest
if you clone this repository. It will create a file of about 550MB. This test need more memory than the default tests, and takes about 75 seconds on my computer.v3.26.4
Compare Source
Bugfix to template header and footers created by Office365.
Previously, only files matching header\d.xml would be templated.
Now, also header.xml (without any digit) will be templated.
v3.26.3
Compare Source
Bugfix issue when having tab character in the document, that would, after rendering, appear as " " in the document.
When updating to this version, you also need to update
Internal update of moduleApiVersion to 3.28.0
v3.26.2
Compare Source
Bugfix issue "Cannot read property 'tag' of undefined" when having an empty condition, like :
Altough there is not really a good reason to create such an empty condition, it is better to not fail with an obscure error message.
v3.26.1
Compare Source
Add code for fix-doc-pr-corruption accessible by doing :
v3.26.0
Compare Source
Add automatic error logging using console.log to make code samples easier.
You can replace the following code :
to this :
To disable this automatic errorLogging, use :
v3.25.5
Compare Source
Add specific error message when using a module without instantiating it.
When doing :
The error message shown will now be :
If you get this error, you should simply write :
v3.25.4
Compare Source
Bugfix when having loop containing hebrew, the text would be escaped once for each iteration
The regression was introd
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.