Skip to content

9.16.2

Latest

Choose a tag to compare

@dolanmiu dolanmiu released this 28 Nov 16:27
8fed97e

9.16.2 makes a document's ids the same however many documents were made before it in the same process, so packing the same document twice gives the same XML. Drawing ids, and the ids of the shapes, pictures and groups inside them, are now numbered from 1 within each document, and docx/shapes names a shape after its place in its drawing, such as "Rectangle 1", rather than after its id (#3944). Bookmark ids are numbered from 1 in document order, and a table of contents names the bookmarks on its headings _Toc1, _Toc2 and so on, skipping any name a bookmark of your own already has. The ids of runs fitted to a width on their own (w:fitText) are numbered per document too. In patchDocument, inserted drawings and bookmarks get the ids after the template's highest, and inserted fitted runs get ids below the template's lowest, so a patched document no longer depends on what was made before it either.

What's Changed

  • build(deps-dev): bump eslint-plugin-jsdoc from 65.5.3 to 65.5.4 by @dependabot[bot] in #3945
  • fix: number drawing ids within each document when it is packed by @dolanmiu in #3946
  • chore: make eslint --fix safe to run by @dolanmiu in #3948
  • fix: number bookmark and fitText ids per document, and patched ids after the template's by @dolanmiu in #3947
  • chore: remove the deprecated functional/prefer-readonly-type rule by @dolanmiu in #3949
  • chore: Version bump to 9.16.2 by @dolanmiu in #3950

Full Changelog: 9.16.1...9.16.2