Skip to content

Releases: dolanmiu/docx

5.0.0

01 Jan 20:25
e9579d7
Compare
Choose a tag to compare

Happy new Year everyone!

#428 - Putting docx in a proper namespace rather than the global one

#447 - Declarative numbering

#448 - Fix hyperlink id

#454 - Table borders

#458 - Declarative tabs and page numbers

#459 - Alignment of tables

#460 - Overlap option for tables

#465 - "Right" alias to end

#466 - Declarative foot notes

#474 - Contextual spacing in paragraph styles

#476 - Fixes issue where there is an empty paragraph at start

#478 - Declarative Bookmarks

5.0.0-rc7

10 Oct 20:33
Compare
Choose a tag to compare

Declarative styles and allow multiple tab stops

#416 - Table of contents fix
#415 - Export RunFonts
#413 - Add SymbolRun
#419 - Revert "fix: try to remove unnecessary paragraph", which caused #418
#421 - Declarative styles

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