-
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.17.1 #130
Merged
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
246aac9
to
52d3a1b
Compare
52d3a1b
to
3764d82
Compare
3764d82
to
909a6bf
Compare
909a6bf
to
0a87587
Compare
0a87587
to
618a6d3
Compare
618a6d3
to
339e66e
Compare
339e66e
to
7f86ba4
Compare
7f86ba4
to
30481e8
Compare
30481e8
to
e64217a
Compare
e64217a
to
7e512d0
Compare
7e512d0
to
d8bc9d0
Compare
d8bc9d0
to
bd545c4
Compare
bd545c4
to
0264a4f
Compare
0264a4f
to
e3c0f4d
Compare
68d248d
to
8f2feb5
Compare
8f2feb5
to
adc666c
Compare
adc666c
to
832008b
Compare
832008b
to
645dcbc
Compare
645dcbc
to
3b49ca1
Compare
3b49ca1
to
32ea0a6
Compare
32ea0a6
to
f3d7455
Compare
f3d7455
to
92ae3e4
Compare
92ae3e4
to
b7059ab
Compare
b7059ab
to
3408b90
Compare
3408b90
to
71cd3fe
Compare
71cd3fe
to
accd86d
Compare
accd86d
to
18748c4
Compare
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.10.1
->3.17.1
Release Notes
open-xml-templating/docxtemplater
v3.17.1
Compare Source
Add support for automatically detaching modules that do not support the current filetype when using constructor v4. In previous versions, you would do the following:
let doc = new Docxtemplater();
const zip = new PizZip(buffer)
doc.loadZip(zip);
if (doc.fileType === "pptx") {
doc.attachModule(new SlidesModule());
}
Now it is possible to write the following, without needing the condition on filetype:
v3.17.0
Compare Source
loadZip
,attachModule
,setOptions
andcompile
will no more be available.You can migrate the following code:
to
v3.16.11
Compare Source
Duplicate open tag
andDuplicate close tag
) when using{{foobar}}
in a template when the delimiters are just one single{
and}
TypeError: Cannot set property 'file' of undefined
that hides the real errorv3.16.10
Compare Source
>
into>
in templates, in previous versions, the value was decoded to>
v3.16.9
Compare Source
{match, getValue, getValues}
functions to second argument of module.parsev3.16.8
Compare Source
(Internal, for modules) Pass whole part instead of just part.value to explanation function
v3.16.7
Compare Source
Bugfix with paragraphLoops containing pagebreaks + tables, the pagebreak got reordered
v3.16.6
Compare Source
Bugfix corrupt document when using dashloop :
{-a:p loop}
inside table cell which renders falsev3.16.5
Compare Source
Other bugfixes related to pagebreaks and loops
v3.16.4
Compare Source
Bugfix issue with paragraphLoop and pagebreaks.
In some situations, the pagebreak got removed if the start of the loop is at the top of the page (right after the
w:br
element).v3.16.3
Compare Source
module.parse
method.v3.16.2
Compare Source
Since this version, modules using the expandToOne trait will be able to throw a specific error instead of the one related to the raw-xml module, ("Raw tag not in paragraph")
v3.16.1
Compare Source
Duplicate open tag
andDuplicate close tag
) when using{{foobar}}
in a template when the delimiters are just one single{
and}
TypeError: Cannot set property 'file' of undefined
that hides the real errorv3.16.0
Compare Source
Bugfix for loop module and raw module : when having an "execution" error in the parser (eg on render, after the compilation of the template, for example with the angular parser when a filter is called with bad arguments), if one
{#looptag}
or{@​rawtag}
had an execution error, the code would immediately stop collecting other errors. Now docxtemplater will collect all errors, for simple tags, for loop tags, and for rawxml tags.This means that if your template was like this :
Before version 3.16.0, calling
render
on this template would throw an error with just the first tag erroring.Since version 3.16.0, a multi error is thrown with all three tags in error being in
.properties.errors
.This is fixed in sync mode (when calling
doc.render
directly) and also in async mode (when callingdoc.resolveData
and thendoc.render
)v3.15.5
Compare Source
v3.15.4
Compare Source
Add offset property to following errors :
v3.15.3
Compare Source
Bugfix when having dashloop inside normal loop, like this :
we now throw a multi error instead of just the first error encountered.
v3.15.2
Compare Source
<w:p>
in<w:sdtContent>
if it contains a<w:r>
v3.15.1
Compare Source
Cannot set property 'parse' of undefined
options.parse
function inparse(placeholder, options)
to allow "recursive" parsing<w:sdtContent>
with<w:p>
to avoid corruptionv3.15.0
Compare Source
parse
andpostparse
such as filePathv3.14.10
Compare Source
Use
{}
(empty object) instead of "false" for thefs
shim in the browser.v3.14.9
Compare Source
{-w:tr loop}
loop.v3.14.8
Compare Source
Update moduleApiVersion to 3.15.0
Add
joinUncorrupt
tooptions
inmodule.render
to be able to fix corruptionsFixes corruption when using
{#loops}
that contain tables with{@​rawXML}
evaluating to empty.v3.14.7
Compare Source
v3.14.6
Compare Source
Update moduleApiVersion to 3.14.0
Add
getNearestLeftIndex
,getNearestRightIndex
,getNearestLeftIndexWithCache
,getNearestRightIndexWithCache
to doc-utils.Add
preparse
method to modules to be able to retrieve info about document before the parsing of the whole document by other modules.Add
tagShouldContain
to the filetype API to be able to make the documents valid, which would make it possible to remove thepart.emptyValue
trick.v3.14.5
Compare Source
Bugfix when using paragraphLoop section with a pagebreak : at the end of the paragraphLoop, the pagebreak was removed by mistake. This is no longer the case since this version
v3.14.4
Compare Source
Bugfix speed issue when having many loop tags in the same paragraph (over 50 loop tags in one paragraph).
(internal) Update verify moduleAPI to 3.13.0 (addition of
getNearestLeftWithCache
,getNearestRightWithCache
,buildNearestCache
)v3.14.3
Compare Source
Throw Error with offsets when having loop start tag inside table and loop end tag outside table
v3.14.2
Compare Source
Update xmlprettify and test it
Update dependencies
v3.14.1
Compare Source
Use
{}
(empty object) instead of "false" for thefs
shim in the browser.v3.14.0
Compare Source
Document the usage of PizZip instead of JSZip
v3.13.6
Compare Source
Improved fix for 3.13.5, to still create a scope but that is the same as the parent scope (without deep copy)
v3.13.5
Compare Source
Bugfix condition when value is truthy, the subscope was incorrect
(This is a fix on top of 3.13.3, which fixed a bug for the value
true
but not for other truthy values such as integers, strings).v3.13.4
Compare Source
Fix support for Node 6 (also for Nashorn): Rebuild js after upgrade to latest babel version
v3.13.3
Compare Source
Bugfix condition when value is === true, the subscope was incorrect
v3.13.2
Compare Source
Auto verify moduleAPI version on attachModule
v3.13.1
Compare Source
Fix undefined is not a function evaluating 'object.getOwnPropertyDescriptors', by downgrading to babel 7.4
v3.13.0
Compare Source
Throw multi Error with offsets when having rendering error (makes it possible to use the error location module on rendering errors).
Avoid false positive error "The filetype for this file could not be identified" when the document uses
<Default>
in the[Content_Types].xml
fileAdd getFileType module API to add potential support for other filetypes
v3.12.0
Compare Source
Add support for setting the same delimiter on the start and beginning, for example :
%user%
, by doing doc.setOptions({delimiters: {start: "%", end: "%"}});Remove (internal) scopeManager.clone, which is no more used
v3.11.4
Compare Source
Add offset property to unopened/unclosed loop error
v3.11.3
Compare Source
Parse selfclosing tag correctly, such as in
<w:rPr><w:noProof/></w:rPr>
v3.11.2
Compare Source
For example with the template :
and the data :
The label would render as
outer
even though it should render asinner
.v3.11.1
Compare Source
v3.11.0
Compare Source
Bugfix corruption when using paragraphLoop with a template containing
<w:p>
as direct childs of other<w:p>
.Update getLeft, getRight, getNearestLeft, getNearestRight, getLeftOrNull, getRightOrNull to take into account the nesting of tags.
Ensure that the
f
functor is always called when using chunkBy (like the native.map
function)In expandOne trait, call
getLeft
beforegetRight
Renovate configuration
📅 Schedule: 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 has been generated by WhiteSource Renovate. View repository job log here.