Skip to content
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
merged 1 commit into from
Mar 10, 2020

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 21, 2019

This PR contains the following updates:

Package Type Update Change
docxtemplater dependencies minor 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:

const zip = new PizZip(buffer)
const options = {
    modules: [new SlidesModule()],
}
try {
   const doc = new Docxtemplater(zip, options);
}
catch (e) {
    console.log(e);
    // error handler
}
  • Update moduleApiVersion to 3.22.0.

v3.17.0

Compare Source

  • Add a constructor method that accepts zip and optionally modules and other options. This constructor will be the official constructor in docxtemplater v4 and the methods: loadZip, attachModule, setOptions and compile will no more be available.

You can migrate the following code:

const doc = new Docxtemplater();
doc.loadZip(zip)
doc.setOptions({
    delimiters: {
      start: "<",
      end: ">",
    },
});
doc.attachModule(new ImageModule())
doc.attachModule(new Htmlmodule())
doc.attachModule(new Pptxmodule())
try {
    doc.compile();
}
catch (e) {
     // error handler
}

to

const options = {
    modules: [new ImageModule(), new Htmlmodule(), new Pptxmodule()],
    delimiters: {
      start: "<",
      end: ">",
    },
}
try {
   const doc = new Docxtemplater(zip, options);
}
catch (e) {
     // error handler
}
  • This change is backward compatible, meaning that you can continue to use the constructor with no arguments for the time being.

v3.16.11

Compare Source

  • Add specific error (Duplicate open tag and Duplicate close tag) when using {{foobar}} in a template when the delimiters are just one single { and }
  • Avoid error TypeError: Cannot set property 'file' of undefined that hides the real error

v3.16.10

Compare Source

  • Properly decode &amp;gt; into &gt; in templates, in previous versions, the value was decoded to >

v3.16.9

Compare Source

  • Pass in {match, getValue, getValues} functions to second argument of module.parse
  • Allow to have a promise at the root level in resolveData
  • Update moduleApiVersion to 3.21.0

v3.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 false

v3.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

  • Add options.lIndex and other information about the current token in the module.parse method.
  • Update moduleApiVersion to 3.20.0

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

  • Add specific error (Duplicate open tag and Duplicate close tag) when using {{foobar}} in a template when the delimiters are just one single { and }
  • Avoid error TypeError: Cannot set property 'file' of undefined that hides the real error

v3.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 {@&#8203;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 :

{#foobar|badfilter1}test{/}
{#foobar|badfilter2}test{/}
{@&#8203;rawvalue|badfilter3}

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 calling doc.resolveData and then doc.render)

v3.15.5

Compare Source

  • Add scopePathLength to scopemanager to be able to write "\$isLast".
  • Update moduleApiVersion to 3.19.0

v3.15.4

Compare Source

Add offset property to following errors :

"No w:p was found at the left"
"No w:p was found at the right"

v3.15.3

Compare Source

Bugfix when having dashloop inside normal loop, like this :

{#foo}test {-w:p loop}loop{/}{/}

we now throw a multi error instead of just the first error encountered.

v3.15.2

Compare Source

  • Update moduleApiVersion to 3.18.0
  • (internal) Use array of string for shouldContain to fix corruptions
  • Do not add <w:p> in <w:sdtContent> if it contains a <w:r>

v3.15.1

Compare Source

  • If you use the xlsx module, please update the xlsx module to 3.1.1 or you will get a stacktrace Cannot set property 'parse' of undefined
  • Update moduleApiVersion to 3.17.0
  • Add options.parse function in parse(placeholder, options) to allow "recursive" parsing
  • Fill empty <w:sdtContent> with <w:p> to avoid corruption

v3.15.0

Compare Source

  • Update moduleApiVersion to 3.16.0
  • Disallow to call attachModule twice on a given module
  • Add options to parse and postparse such as filePath

v3.14.10

Compare Source

Use {} (empty object) instead of "false" for the fs shim in the browser.

v3.14.9

Compare Source

  • Bugfix for joinUncorrupt method, which produced a corrupt document when having a paragraphLoop containing a table containing a {-w:tr loop} loop.

v3.14.8

Compare Source

  • Update moduleApiVersion to 3.15.0

  • Add joinUncorrupt to options in module.render to be able to fix corruptions

  • Fixes corruption when using {#loops} that contain tables with {@&#8203;rawXML} evaluating to empty.

v3.14.7

Compare Source

  • Add p:txBody to pptx-lexed to handle corruption on pptx

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 the part.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 the fs 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 file

  • Add 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

  • Bugfix issue with conditions in async mode conflicting sometimes

For example with the template :

{#loop}
	{#cond2}
		{label}
	{/cond2}
	{#cond3}
		{label}
	{/cond3}
{/loop}

and the data :

{
	label: "outer",
	loop: [
		{
			cond2: true,
			label: "inner",
		},
	],
}

The label would render as outer even though it should render as inner.

v3.11.1

Compare Source

  • Bugfix speed issue introduced in 3.10.0 for rawXmlModule

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 before getRight


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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by WhiteSource Renovate. View repository job log here.

@coveralls
Copy link

coveralls commented May 21, 2019

Coverage Status

Coverage remained the same at 100.0% when pulling f3d7455 on renovate/docxtemplater-3.x into 0b21674 on master.

@renovate renovate bot force-pushed the renovate/docxtemplater-3.x branch from 246aac9 to 52d3a1b Compare May 21, 2019 10:08
@renovate renovate bot changed the title fix(deps): update dependency docxtemplater to v3.11.0 fix(deps): update dependency docxtemplater to v3.11.1 May 21, 2019
@renovate renovate bot force-pushed the renovate/docxtemplater-3.x branch from 52d3a1b to 3764d82 Compare June 5, 2019 11:07
@renovate renovate bot changed the title fix(deps): update dependency docxtemplater to v3.11.1 fix(deps): update dependency docxtemplater to v3.11.2 Jun 5, 2019
@renovate renovate bot force-pushed the renovate/docxtemplater-3.x branch from 3764d82 to 909a6bf Compare June 12, 2019 06:05
@renovate renovate bot changed the title fix(deps): update dependency docxtemplater to v3.11.2 fix(deps): update dependency docxtemplater to v3.11.3 Jun 12, 2019
@renovate renovate bot force-pushed the renovate/docxtemplater-3.x branch from 909a6bf to 0a87587 Compare June 18, 2019 10:06
@renovate renovate bot changed the title fix(deps): update dependency docxtemplater to v3.11.3 fix(deps): update dependency docxtemplater to v3.11.4 Jun 18, 2019
@renovate renovate bot force-pushed the renovate/docxtemplater-3.x branch from 0a87587 to 618a6d3 Compare June 28, 2019 13:39
@renovate renovate bot changed the title fix(deps): update dependency docxtemplater to v3.11.4 fix(deps): update dependency docxtemplater to v3.12.0 Jun 28, 2019
@renovate renovate bot force-pushed the renovate/docxtemplater-3.x branch from 618a6d3 to 339e66e Compare July 4, 2019 21:33
@renovate renovate bot changed the title fix(deps): update dependency docxtemplater to v3.12.0 fix(deps): update dependency docxtemplater to v3.13.0 Jul 4, 2019
@renovate renovate bot force-pushed the renovate/docxtemplater-3.x branch from 339e66e to 7f86ba4 Compare July 5, 2019 07:55
@renovate renovate bot changed the title fix(deps): update dependency docxtemplater to v3.13.0 fix(deps): update dependency docxtemplater to v3.13.1 Jul 5, 2019
@renovate renovate bot force-pushed the renovate/docxtemplater-3.x branch from 7f86ba4 to 30481e8 Compare July 5, 2019 21:10
@renovate renovate bot changed the title fix(deps): update dependency docxtemplater to v3.13.1 fix(deps): update dependency docxtemplater to v3.13.2 Jul 5, 2019
@renovate renovate bot force-pushed the renovate/docxtemplater-3.x branch from 30481e8 to e64217a Compare July 9, 2019 13:29
@renovate renovate bot changed the title fix(deps): update dependency docxtemplater to v3.13.2 fix(deps): update dependency docxtemplater to v3.13.3 Jul 9, 2019
@renovate renovate bot force-pushed the renovate/docxtemplater-3.x branch from e64217a to 7e512d0 Compare July 10, 2019 14:11
@renovate renovate bot changed the title fix(deps): update dependency docxtemplater to v3.13.3 fix(deps): update dependency docxtemplater to v3.13.4 Jul 10, 2019
@renovate renovate bot force-pushed the renovate/docxtemplater-3.x branch from 7e512d0 to d8bc9d0 Compare July 11, 2019 19:17
@renovate renovate bot changed the title fix(deps): update dependency docxtemplater to v3.13.4 fix(deps): update dependency docxtemplater to v3.13.5 Jul 11, 2019
@renovate renovate bot force-pushed the renovate/docxtemplater-3.x branch from d8bc9d0 to bd545c4 Compare July 12, 2019 09:36
@renovate renovate bot changed the title fix(deps): update dependency docxtemplater to v3.13.5 fix(deps): update dependency docxtemplater to v3.13.6 Jul 12, 2019
@renovate renovate bot force-pushed the renovate/docxtemplater-3.x branch from bd545c4 to 0264a4f Compare July 21, 2019 12:27
@renovate renovate bot changed the title fix(deps): update dependency docxtemplater to v3.13.6 fix(deps): update dependency docxtemplater to v3.14.0 Jul 21, 2019
@renovate renovate bot force-pushed the renovate/docxtemplater-3.x branch from 0264a4f to e3c0f4d Compare August 7, 2019 20:11
@renovate renovate bot changed the title fix(deps): update dependency docxtemplater to v3.15.5 fix(deps): update dependency docxtemplater to v3.16.0 Jan 9, 2020
@renovate renovate bot force-pushed the renovate/docxtemplater-3.x branch from 68d248d to 8f2feb5 Compare January 12, 2020 22:09
@renovate renovate bot changed the title fix(deps): update dependency docxtemplater to v3.16.0 fix(deps): update dependency docxtemplater to v3.16.1 Jan 12, 2020
@renovate renovate bot force-pushed the renovate/docxtemplater-3.x branch from 8f2feb5 to adc666c Compare January 13, 2020 07:09
@renovate renovate bot changed the title fix(deps): update dependency docxtemplater to v3.16.1 fix(deps): update dependency docxtemplater to v3.16.2 Jan 13, 2020
@renovate renovate bot force-pushed the renovate/docxtemplater-3.x branch from adc666c to 832008b Compare January 13, 2020 16:58
@renovate renovate bot changed the title fix(deps): update dependency docxtemplater to v3.16.2 fix(deps): update dependency docxtemplater to v3.16.3 Jan 13, 2020
@renovate renovate bot force-pushed the renovate/docxtemplater-3.x branch from 832008b to 645dcbc Compare January 14, 2020 22:45
@renovate renovate bot changed the title fix(deps): update dependency docxtemplater to v3.16.3 fix(deps): update dependency docxtemplater to v3.16.4 Jan 14, 2020
@renovate renovate bot force-pushed the renovate/docxtemplater-3.x branch from 645dcbc to 3b49ca1 Compare January 16, 2020 22:19
@renovate renovate bot changed the title fix(deps): update dependency docxtemplater to v3.16.4 fix(deps): update dependency docxtemplater to v3.16.5 Jan 16, 2020
@renovate renovate bot force-pushed the renovate/docxtemplater-3.x branch from 3b49ca1 to 32ea0a6 Compare January 17, 2020 11:40
@renovate renovate bot changed the title fix(deps): update dependency docxtemplater to v3.16.5 fix(deps): update dependency docxtemplater to v3.16.6 Jan 17, 2020
@renovate renovate bot force-pushed the renovate/docxtemplater-3.x branch from 32ea0a6 to f3d7455 Compare January 17, 2020 13:45
@renovate renovate bot changed the title fix(deps): update dependency docxtemplater to v3.16.6 fix(deps): update dependency docxtemplater to v3.16.7 Jan 17, 2020
@renovate renovate bot force-pushed the renovate/docxtemplater-3.x branch from f3d7455 to 92ae3e4 Compare January 25, 2020 15:17
@renovate renovate bot changed the title fix(deps): update dependency docxtemplater to v3.16.7 fix(deps): update dependency docxtemplater to v3.16.8 Jan 25, 2020
@renovate renovate bot force-pushed the renovate/docxtemplater-3.x branch from 92ae3e4 to b7059ab Compare February 5, 2020 08:43
@renovate renovate bot changed the title fix(deps): update dependency docxtemplater to v3.16.8 fix(deps): update dependency docxtemplater to v3.16.9 Feb 5, 2020
@renovate renovate bot force-pushed the renovate/docxtemplater-3.x branch from b7059ab to 3408b90 Compare February 18, 2020 07:03
@renovate renovate bot changed the title fix(deps): update dependency docxtemplater to v3.16.9 fix(deps): update dependency docxtemplater to v3.16.10 Feb 18, 2020
@renovate renovate bot force-pushed the renovate/docxtemplater-3.x branch from 3408b90 to 71cd3fe Compare February 20, 2020 22:10
@renovate renovate bot changed the title fix(deps): update dependency docxtemplater to v3.16.10 fix(deps): update dependency docxtemplater to v3.16.11 Feb 20, 2020
@renovate renovate bot force-pushed the renovate/docxtemplater-3.x branch from 71cd3fe to accd86d Compare March 4, 2020 20:05
@renovate renovate bot changed the title fix(deps): update dependency docxtemplater to v3.16.11 fix(deps): update dependency docxtemplater to v3.17.0 Mar 4, 2020
@renovate renovate bot force-pushed the renovate/docxtemplater-3.x branch from accd86d to 18748c4 Compare March 9, 2020 21:18
@renovate renovate bot changed the title fix(deps): update dependency docxtemplater to v3.17.0 fix(deps): update dependency docxtemplater to v3.17.1 Mar 9, 2020
@zrrrzzt zrrrzzt merged commit 96efb34 into master Mar 10, 2020
@renovate renovate bot deleted the renovate/docxtemplater-3.x branch March 10, 2020 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants