unstale

npm / docx

docx

What changed in docx 9, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-17.

5 breaking43 new APIs and options8 behavior and defaults1 tooling29 fixes and other

docx 986 changes

Breaking changes 5

  • Throws when a drawing is too large for Word to open.

    9.9.0release notes

  • Removes the empty WORKAROUND2 export, which was only needed by awesome-typescript-loader.

    9.8.1release notes

  • Removes the empty WORKAROUND3 export, which was only needed by awesome-typescript-loader.

    9.8.1release notes

  • Removes the empty WORKAROUND4 export, which was only needed by awesome-typescript-loader.

    9.8.1release notes

  • External styles are now merged with default styles, affecting generated document styling.

    9.5.3release notes

New APIs and options 43

  • Can receive note content directly instead of an identifier, adding the note to the document automatically.

    9.11.0release notes

  • Can receive note content directly instead of an identifier, adding the note to the document automatically.

    9.11.0release notes

  • Returns paragraphs and tables from HTML for use in sections and multiple document content locations.

    9.11.0release notes

  • Converts HTML into a paragraph's content for use in paragraphs and paragraph patches.

    9.11.0release notes

  • A paragraph numbering reference can now provide its own definition, which is added when the paragraph is written.

    9.11.0release notes

  • Accepts a numbering option so numbered and bulleted paragraphs in patches work correctly.

    9.11.0release notes

  • Adds document layout calculation matching Word, including page numbers, references, fields, and page contents.

    9.9.0release notes

  • Adds support for footnotes and endnotes in document patching.

    9.9.0release notes

  • Repeats template table rows for each row of supplied data.

    9.9.0release notes

  • Adds footnote and endnote properties to section options.

    9.9.0release notes

  • Adds a locked option to SimpleField.

    9.9.0release notes

  • Converts LaTeX math into editable Word equations, including common commands and environments, and returns components for mixing with hand-built math.

    9.8.1release notes

  • Adds fraction type selection for stacked, skewed, linear or barless fractions.

    9.8.1release notes

  • Adds control over whether integral limits are used.

    9.8.1release notes

  • Adds a component for constructing large mathematical operators used by LaTeX conversion and hand-built equations.

    9.8.1release notes

  • Adds literal handling to MathRun for representing literal mathematical content.

    9.8.1release notes

  • Adds script support to MathRun for constructing scripted mathematical text.

    9.8.1release notes

  • Adds style support to MathRun for controlling the presentation of mathematical text.

    9.8.1release notes

  • Adds control over whether summation limits are used.

    9.8.1release notes

  • Adds new data to charts created and styled in Word while preserving their appearance.

    9.8.0release notes

  • Adds a chart run that can be inserted where a document placeholder is located.

    9.8.0release notes

  • Adds native Word charts with many chart types, including combo, radar, bubble, stock, pie-of-pie, and bar-of-pie charts.

    9.8.0release notes

  • Adds matrices, cases, numbered aligned equations, and brackets made from arbitrary characters while preserving existing math imports.

    9.8.0release notes

  • Adds preset and custom SVG-path shapes, including diagrams, connectors, canvases, automatic layout, and richer text and fill options.

    9.8.0release notes

  • Adds text or picture watermarks behind every page, recognized by Word's Design > Watermark menu.

    9.8.0release notes

  • Images can now be cropped when generating documents.

    9.8.0release notes

  • ImageRun now supports run properties.

    9.8.0release notes

  • Adds drawing canvases with connectors and automatic layout for flowcharts, org charts, and swimlane diagrams.

    9.8.0release notes

  • Adds grouped shapes for composing multiple shapes as a unit.

    9.8.0release notes

  • Adds runs for inserting shapes into documents.

    9.8.0release notes

  • Documents now have a theme, configurable through the theme option for colors and fonts used across document elements.

    9.8.0release notes

  • Generated documents now emit word/commentsIds.xml with durable comment IDs using w16cid.

    9.7.2release notes

  • Comments now support replies.

    9.7.0release notes

  • Paragraph indentation now supports firstLineChars.

    9.7.0release notes

  • Numbering levels can now associate with a paragraph style.

    9.7.0release notes

  • Comments now support a resolved state.

    9.7.0release notes

  • Images now support tracked changes in generated documents.

    9.7.0release notes

  • Table look support was added for conditional table formatting.

    9.6.0release notes

  • The docx library now supports creating endnotes.

    9.6.0release notes

  • Track changes support has been extended with additional functionality.

    9.6.0release notes

  • Support was added for WPS text boxes.

    9.6.0release notes

  • Content Controls are now supported, enabling developers to use them in generated DOCX documents.

    9.5.2release notes

  • Paragraphs now support between borders, allowing developers to configure this border style.

    9.5.2release notes

Behavior and default changes 8

  • Bold and italic faces of a font are now embedded in generated documents.

    9.10.0release notes

  • Writes cell widths from columnWidths and applies Word's default cell margins for matching layout.

    9.9.0release notes

  • Can insert ChartRun instances into placeholders and resolve theme colors from a template's own theme.

    9.8.0release notes

  • Text can use the theme's heading or body font, allowing typography to change when the Word theme changes.

    9.8.0release notes

  • Table of Contents creation now supports cached data.

    9.6.0release notes

  • Footnotes now support lists and images.

    9.6.0release notes

  • Table of Contents creation has been extended with additional capabilities.

    9.6.0release notes

  • The system now returns which token has not been found, making missing-token errors more actionable.

    9.5.3release notes

Tooling 1

  • Documentation examples now run with this version, render documents beside editable code, provide completions and type errors, and allow .docx downloads.

    9.8.1release notes

Fixes and other changes 29

  • Assigns unique drawing identifiers to inserted images so patched documents remain readable by Word.

    9.11.0release notes

  • Adds or reuses heading styles in templates so patched headings retain their intended formatting.

    9.11.0release notes

  • Writes specVanish from its own option instead of incorrectly deriving it from vanish.

    9.11.0release notes

  • External hyperlink fragments are now preserved in Word documents.

    9.10.0release notes

  • Supports writing a bookmark inside another bookmark.

    9.9.0release notes

  • Preserves embedded fonts when saving a document again.

    9.9.0release notes

  • Writes images and lists contained in endnotes.

    9.9.0release notes

  • Preserves paragraph and character styles supplied through externalStyles.

    9.9.0release notes

  • Makes frame width and height optional.

    9.9.0release notes

  • Calls super() once so ImageRun works under Turbopack.

    9.9.0release notes

  • Packing a document again now writes the same document.

    9.9.0release notes

  • Adds the separate field character to page references.

    9.9.0release notes

  • Inserts an inline bookmark with an identifier unused by the template.

    9.9.0release notes

  • Formats patched link text like its placeholder and adds relationships only where used.

    9.9.0release notes

  • Writes table-of-contents entries from document headings.

    9.9.0release notes

  • Bookmark numeric IDs are now allocated per document.

    9.8.0release notes

  • A comments part is written only when the document contains comments.

    9.8.0release notes

  • Style definitions no longer emit an implicit ListParagraph paragraph style.

    9.8.0release notes

  • Normal is now written as the default paragraph style so Pages draws math at its intended size.

    9.8.0release notes

  • Repeated document placeholders are now patched in reverse order.

    9.8.0release notes

  • Theme colors can be used for text, underlines, borders, shading, shapes, and page backgrounds.

    9.8.0release notes

  • Fixed an issue with bundling types, which may affect TypeScript consumers.

    9.7.1release notes

  • Embedded fonts now use sequential filenames.

    9.7.0release notes

  • Page size now correctly sets its code.

    9.7.0release notes

  • Passes the characterSet parameter to createRegularFont when generating font tables.

    9.6.1release notes

  • First-level numbering now allows zero as the starting number.

    9.6.0release notes

  • Multiple splits within a single run are now handled correctly.

    9.6.0release notes

  • XML is pre-encoded as UTF-8 to prevent surrogate pair corruption in JSZip.

    9.6.0release notes

  • Numbered item references are now exported, making that reference available to developers.

    9.5.2release notes