Skip to content

Releases: dolanmiu/docx

5.0.0-rc6

29 Sep 03:46
Compare
Choose a tag to compare

Declarative table

#407

Other fixes

#391
#376
#375

5.0.0-rc5

08 Aug 01:01
Compare
Choose a tag to compare

#373
#371
#336
#337
#340
#341

Major breaking changes

Declaritive API

It was a tough decision, but a lot of thought was put into it. Now the Paragraph API is more declaritive. Method chaining is now slowly being deprecated.

You can read more of why method chaining is bad here:
https://stackoverflow.com/questions/1103985/method-chaining-why-is-it-a-good-practice-or-not
https://softwareengineering.stackexchange.com/a/266585/249600

From this:

image

To this:

image

The reason for this is that, the code will not give a compile error if you do:

new Paragraph(text).heading1().heading2()

...but instead, it will break the Word document itself. This is clearly a design flaw and allows for potential bugs and issues.

Sections

Now at least one section is required per document. Check the demo folder for examples, and here for the documentation: https://docx.js.org/#/usage/sections

Static Packer

Packer is now static: #373

5.0.0-rc4

28 Jun 01:02
Compare
Choose a tag to compare

5.0.0-rc3

12 Jun 00:13
Compare
Choose a tag to compare

5.0.0-rc2

12 Jun 00:10
Compare
Choose a tag to compare

5.0.0-rc1

30 Mar 15:51
Compare
Choose a tag to compare

Breaking changes:

Tables are more intuative to use and well documented:

#228

Rename some methods:

#207

Swap arguments around:

#206

Add .dotx support:

#179

Floating tables + margains:

#288

Non-breaking changes:

#217
#205
#201
#197
#195
#220
#229
#202
Outline level: #248
e2e Testing! #246
Google docs left right margain support #276
Add cantSplit and tableHeaderRow properties into tables #275
#279
Add bold and italics to character style + customize hyperlink #278
Column merging #274
% missing from pct #282
Shading for table cell #292

Thanks you all for the contributions! Keep 'em coming!

4.7.1

26 Feb 21:59
Compare
Choose a tag to compare

4.7.0

16 Jan 00:17
Compare
Choose a tag to compare

4.6.0

10 Jan 02:41
Compare
Choose a tag to compare

Adding image wrapping and margin support

Add createFirstPageFooter and createEvenPageFooter

#237

4.5.0

09 Jan 01:57
Compare
Choose a tag to compare

Introduces floating images

and createEvenHeaderWrapper

#235