---
title: "docx 9.16.0 Breaking Changes on npm | Since.dev"
description: "What each docx release removed, renamed or changed: 431 breaking changes in 15 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/docx
last_updated: 2026-12-04
---

# docx breaking changes

docx 9.16.0 (November 19, 2026) is its newest release with breaking changes, 2 of them. The first: Signature changed ILevelParagraphStylePropertiesOptions. Every breaking API change we have recorded in docx on npm: 431 breaking changes in 15 versions. Below, its 15 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `9.16.2`, released November 28, 2026. [Source repository](https://github.com/dolanmiu/docx)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [8.0.0](#v-8-0-0) to [9.16.0](#v-9-16-0): 171 breaking changes in 13 versions.
- From [7.0.0](#v-7-0-0) to [9.16.0](#v-9-16-0): 247 breaking changes in 14 versions.

## docx 9.16.0 breaking changes

docx 9.16.0, released November 19, 2026: 2 breaking changes.

- **Signature changed** `ILevelParagraphStylePropertiesOptions`  

Was type ILevelParagraphStylePropertiesOptions = {readonly alignment?: (typeof AlignmentType)\[keyof typeof AlignmentType\]; readonly thematicBreak?: boolean; readonly contextualSpacing?: boolean; readonly rightTabStop?: number; readonly... [npmjs.com](https://www.npmjs.com/package/docx/v/9.16.0)
- **Signature changed** `IParagraphPropertiesOptionsBase`  

Was type IParagraphPropertiesOptionsBase = {readonly heading?: (typeof HeadingLevel)\[keyof typeof HeadingLevel\]; readonly bidirectional?: boolean; readonly pageBreakBefore?: boolean; readonly tabStops?: readonly TabStopDefinition\[\]... [npmjs.com](https://www.npmjs.com/package/docx/v/9.16.0)

## docx 9.15.1 breaking changes

docx 9.15.1, released October 31, 2026: 2 breaking changes.

- **Signature changed** `Media.constructor`  

Was constructor(); now constructor(takePath?: MediaPathTaker). [npmjs.com](https://www.npmjs.com/package/docx/v/9.15.1)
- **Signature changed** `patchDetector`  

Was const patchDetector: ({data, trimPlaceholders}: PatchDetectorOptions) => Promise\<readonly string\[\]>; now const patchDetector: ({data, placeholderDelimiters, trimPlaceholders}: PatchDetectorOptions) => Promise\<readonly string\[\]>. [npmjs.com](https://www.npmjs.com/package/docx/v/9.15.1)

## docx 9.15.0 breaking changes

docx 9.15.0, released October 27, 2026: 8 breaking changes.

- **Behavior changed** `relativeVerticalPosition`  

A table with relativeVerticalPosition set to INLINE is now written in line with the text, as Word does, instead of floating. Check tables that use this option if their layout matters. [github.com](https://github.com/dolanmiu/docx/releases/tag/9.15.0)
- **Signature changed** `DocPropertiesOptions`  

Was type DocPropertiesOptions = {readonly name: string; readonly description?: string; readonly title?: string; readonly id?: string;}; now type DocPropertiesOptions = {readonly name?: string; readonly description?: string; readonly... [npmjs.com](https://www.npmjs.com/package/docx/v/9.15.0)
- **Signature changed** `DocPropertiesOptions.name`  

Was readonly name: string; now readonly name?: string. [npmjs.com](https://www.npmjs.com/package/docx/v/9.15.0)
- **Signature changed** `InputDataType`  

Was type InputDataType = Buffer | string | number\[\] | Uint8Array | ArrayBuffer | Blob | NodeJS.ReadableStream | Stream | default_2; now type InputDataType = Buffer | string | number\[\] | Uint8Array | ArrayBuffer | Blob |... [npmjs.com](https://www.npmjs.com/package/docx/v/9.15.0)
- **Signature changed** `IThemeFontOptions`  

Was type IThemeFontOptions = {readonly latin?: string; readonly eastAsia?: string; readonly complexScript?: string;}; now type IThemeFontOptions = {readonly latin?: string; readonly eastAsia?: string; readonly complexScript?: string... [npmjs.com](https://www.npmjs.com/package/docx/v/9.15.0)
- **Signature changed** `patchDetector`  

Was const patchDetector: ({data}: PatchDetectorOptions) => Promise\<readonly string\[\]>; now const patchDetector: ({data, trimPlaceholders}: PatchDetectorOptions) => Promise\<readonly string\[\]>. [npmjs.com](https://www.npmjs.com/package/docx/v/9.15.0)
- **Signature changed** `patchDocument`  

Was const patchDocument: \<T extends PatchDocumentOutputType = PatchDocumentOutputType>({outputType, data, patches, keepOriginalStyles, placeholderDelimiters, recursive, footnotes, endnotes, numbering, pageNumbers, properties}... [npmjs.com](https://www.npmjs.com/package/docx/v/9.15.0)
- **Signature changed** `PatchDocumentOptions`  

Was type PatchDocumentOptions\<T extends PatchDocumentOutputType = PatchDocumentOutputType> = {readonly outputType: T; readonly data: InputDataType; readonly patches: Readonly\<Record\<string, IPatch | TableRowsPatch | DrawingPatch>>... [npmjs.com](https://www.npmjs.com/package/docx/v/9.15.0)

## docx 9.14.0 breaking changes

docx 9.14.0, released October 23, 2026: 14 breaking changes.

- **Behavior changed**  

Documents now get a half-inch default tab stop, so tabs and list text may sit at different positions than before. Check layouts that rely on the old default tab positions. [github.com](https://github.com/dolanmiu/docx/releases/tag/9.14.0)
- **Behavior changed** `Caption`  

Captions created with style "Caption" now use Word's Caption style instead of the previous formatting. Review captions in existing documents if their look matters. [github.com](https://github.com/dolanmiu/docx/releases/tag/9.14.0)
- **Signature changed** `IPropertiesOptions`  

Was type IPropertiesOptions = {readonly sections: readonly ISectionOptions\[\]; readonly title?: string; readonly subject?: string; readonly creator?: string; readonly keywords?: string; readonly description?: string; readonly... [npmjs.com](https://www.npmjs.com/package/docx/v/9.14.0)
- **Signature changed** `IRunStylePropertiesOptions`  

Was type IRunStylePropertiesOptions = {readonly noProof?: boolean; readonly bold?: boolean; readonly boldComplexScript?: boolean; readonly italics?: boolean; readonly italicsComplexScript?: boolean; readonly underline?: {readonly color?... [npmjs.com](https://www.npmjs.com/package/docx/v/9.14.0)
- **Signature changed** `ITableCellBorders`  

Was type ITableCellBorders = {readonly top?: IBorderOptions; readonly start?: IBorderOptions; readonly left?: IBorderOptions; readonly bottom?: IBorderOptions; readonly end?: IBorderOptions; readonly right?: IBorderOptions;}; now type... [npmjs.com](https://www.npmjs.com/package/docx/v/9.14.0)
- **Signature changed** `PackagePart`  

Was class PackagePart; now class PackagePart\<Relationship extends PackagePartRelationshipType = RelationshipType>. [npmjs.com](https://www.npmjs.com/package/docx/v/9.14.0)
- **Signature changed** `PackagePart.constructor`  

Was constructor(options: PackagePartOptions); now constructor(options: PackagePartOptions\<Relationship>). [npmjs.com](https://www.npmjs.com/package/docx/v/9.14.0)
- **Signature changed** `PackagePart.options`  

Was readonly options: PackagePartOptions; now readonly options: PackagePartOptions\<Relationship>. [npmjs.com](https://www.npmjs.com/package/docx/v/9.14.0)
- **Signature changed** `PackagePartOptions`  

Was type PackagePartOptions = {readonly folder: string; readonly name: string; readonly extension: string; readonly contentType: string; readonly relationshipType: RelationshipType; readonly content: XmlComponent | Uint8Array | {readonly... [npmjs.com](https://www.npmjs.com/package/docx/v/9.14.0)
- **Signature changed** `PackagePartOptions.relationshipType`  

Was readonly relationshipType: RelationshipType; now readonly relationshipType: Relationship. [npmjs.com](https://www.npmjs.com/package/docx/v/9.14.0)

And 4 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## docx 9.13.0 breaking changes

docx 9.13.0, released October 19, 2026: 27 breaking changes.

- **Signature changed** `convertToXmlComponent`  

Was const convertToXmlComponent: (element: Element_2) => ImportedXmlComponent | string | undefined; now const convertToXmlComponent: (element: XmlElement) => ImportedXmlComponent | string | undefined. [npmjs.com](https://www.npmjs.com/package/docx/v/9.13.0)
- **Signature changed** `IConcreteNumberingOptions`  

Was type IConcreteNumberingOptions = {readonly numId: number; readonly abstractNumId: number; readonly reference: string; readonly instance: number; readonly overrideLevels?: readonly IOverrideLevel\[\];}; now type IConcreteNumberingOptions... [npmjs.com](https://www.npmjs.com/package/docx/v/9.13.0)
- **Signature changed** `InputDataType`  

Was type InputDataType = Buffer | string | number\[\] | Uint8Array | ArrayBuffer | Blob | NodeJS.ReadableStream | default_2; now type InputDataType = Buffer | string | number\[\] | Uint8Array | ArrayBuffer | Blob | NodeJS.ReadableStream |... [npmjs.com](https://www.npmjs.com/package/docx/v/9.13.0)
- **Signature changed** `IParagraphOptions.numbering`  

Was readonly numbering?: {readonly reference: string | NumberingDefinition; readonly level: number; readonly instance?: number; readonly custom?: boolean;} | false; now readonly numbering?: {readonly reference: string |... [npmjs.com](https://www.npmjs.com/package/docx/v/9.13.0)
- **Signature changed** `IParagraphPropertiesChangeOptions.numbering`  

Was readonly numbering?: {readonly reference: string | NumberingDefinition; readonly level: number; readonly instance?: number; readonly custom?: boolean;} | false; now readonly numbering?: {readonly reference: string |... [npmjs.com](https://www.npmjs.com/package/docx/v/9.13.0)
- **Signature changed** `IParagraphPropertiesConfig`  

Was type IParagraphPropertiesConfig = {readonly implicitListParagraphStyle?: boolean;}; now type IParagraphPropertiesConfig = {readonly implicitListParagraphStyle?: boolean; readonly inListOrder?: boolean;}. [npmjs.com](https://www.npmjs.com/package/docx/v/9.13.0)
- **Signature changed** `IParagraphPropertiesOptions.numbering`  

Was readonly numbering?: {readonly reference: string | NumberingDefinition; readonly level: number; readonly instance?: number; readonly custom?: boolean;} | false; now readonly numbering?: {readonly reference: string |... [npmjs.com](https://www.npmjs.com/package/docx/v/9.13.0)
- **Signature changed** `IParagraphPropertiesOptionsBase.numbering`  

Was readonly numbering?: {readonly reference: string | NumberingDefinition; readonly level: number; readonly instance?: number; readonly custom?: boolean;} | false; now readonly numbering?: {readonly reference: string |... [npmjs.com](https://www.npmjs.com/package/docx/v/9.13.0)
- **Signature changed** `IParagraphStylePropertiesOptions`  

Was type IParagraphStylePropertiesOptions = {readonly border?: IBordersOptions; readonly shading?: IShadingAttributesProperties; readonly numbering?: {readonly reference: string | NumberingDefinition; readonly level: number; readonly... [npmjs.com](https://www.npmjs.com/package/docx/v/9.13.0)
- **Signature changed** `IParagraphStylePropertiesOptions.numbering`  

Was readonly numbering?: {readonly reference: string | NumberingDefinition; readonly level: number; readonly instance?: number; readonly custom?: boolean;} | false; now readonly numbering?: {readonly reference: string |... [npmjs.com](https://www.npmjs.com/package/docx/v/9.13.0)

And 17 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## docx 9.12.0 breaking changes

docx 9.12.0, released October 16, 2026: 5 breaking changes.

- **Behavior changed**  

A new instance of a list now restarts all levels, so numbering of nested levels in existing documents may change. [github.com](https://github.com/dolanmiu/docx/releases/tag/9.12.0)
- **Behavior changed**  

A table that sets a style now gets its borders from that style, so existing documents may show different borders. [github.com](https://github.com/dolanmiu/docx/releases/tag/9.12.0)
- **Signature changed** `ITableRowOptions`  

Was type ITableRowOptions = {readonly children: readonly TableCell\[\];} & ITableRowPropertiesOptions; now type ITableRowOptions = {readonly children: readonly TableCell\[\]; readonly keepNext?: boolean;} & ITableRowPropertiesOptions. [npmjs.com](https://www.npmjs.com/package/docx/v/9.12.0)
- **Signature changed** `TableBorders`  

Was class TableBorders extends XmlComponent; now class TableBorders extends IgnoreIfEmptyXmlComponent. [npmjs.com](https://www.npmjs.com/package/docx/v/9.12.0)
- **Signature changed** `TableBorders.constructor`  

Was constructor(options: ITableBordersOptions); now constructor(options: ITableBordersOptions, {fillMissingSides}?: ITableBordersWriteOptions). [npmjs.com](https://www.npmjs.com/package/docx/v/9.12.0)

## Older versions

9 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### docx 9.11.0 breaking changes

docx 9.11.0, released October 13, 2026: 14 breaking changes.

- **Behavior changed** `specVanish`  

specVanish is now written from its own option rather than from vanish. Code that set only vanish and relied on specVanish output should set specVanish explicitly. [github.com](https://github.com/dolanmiu/docx/releases/tag/9.11.0)
- **Signature changed** `EndnoteReferenceRun.constructor`  

Was constructor(id: number); now constructor(endnote: number | NoteContent). [npmjs.com](https://www.npmjs.com/package/docx/v/9.11.0)

And 12 more in this version.

### docx 9.10.0 breaking changes

docx 9.10.0, released October 10, 2026: 1 breaking change.

- **Signature changed** `ConcreteHyperlink.constructor`  

Was constructor(children: readonly ParagraphChild\[\], relationshipId: string, anchor?: string); now constructor(children: readonly ParagraphChild\[\], relationshipId: string, anchor?: string, externalLink?: string). [npmjs.com](https://www.npmjs.com/package/docx/v/9.10.0)

### docx 9.9.0 breaking changes

docx 9.9.0, released October 7, 2026: 19 breaking changes.

- **Behavior changed**  

A drawing too large for Word to open now throws instead of being written. Shrink oversized drawings to avoid the error. [github.com](https://github.com/dolanmiu/docx/releases/tag/9.9.0)
- **Behavior changed** `columnWidths`  

Cell widths are now written from columnWidths and Word's default cell margins, so existing tables may lay out differently. Check table layouts after upgrading. [github.com](https://github.com/dolanmiu/docx/releases/tag/9.9.0)

And 17 more in this version.

### docx 9.8.1 breaking changes

docx 9.8.1, released September 28, 2026: 7 breaking changes.

- **Removed** `WORKAROUND2`  

The empty WORKAROUND2, WORKAROUND3 and WORKAROUND4 exports were removed. They only existed for awesome-typescript-loader, so code importing them must drop those imports. [npmjs.com](https://www.npmjs.com/package/docx/v/9.8.1)
- **Removed** `WORKAROUND3`  

The empty WORKAROUND2, WORKAROUND3 and WORKAROUND4 exports were removed. They only existed for awesome-typescript-loader, so code importing them must drop those imports. [npmjs.com](https://www.npmjs.com/package/docx/v/9.8.1)

And 5 more in this version.

### docx 9.8.0 breaking changes

docx 9.8.0, released September 27, 2026: 53 breaking changes.

- **Signature changed** `createRunFonts`  

Was const createRunFonts: (nameOrAttrs: string | IFontAttributesProperties, hint?: string) => XmlComponent; now const createRunFonts: (nameOrAttrs: string | IFontAttributesProperties | IThemeFontReference, hint?: string) => XmlComponent. [npmjs.com](https://www.npmjs.com/package/docx/v/9.8.0)
- **Signature changed** `createTableFloatProperties`  

Was const createTableFloatProperties: ({horizontalAnchor, verticalAnchor, absoluteHorizontalPosition, relativeHorizontalPosition, absoluteVerticalPosition, relativeVerticalPosition, bottomFromText, topFromText, leftFromText, rightFromText... [npmjs.com](https://www.npmjs.com/package/docx/v/9.8.0)

And 51 more in this version.

### docx 9.7.2 breaking changes

docx 9.7.2, released September 23, 2026: 1 breaking change.

- **Signature changed** `ICommentOptions`  

Was type ICommentOptions = {readonly id: number; readonly children: readonly FileChild\[\]; readonly initials?: string; readonly author?: string; readonly date?: Date; readonly parentId?: number; readonly resolved?: boolean;}; now type... [npmjs.com](https://www.npmjs.com/package/docx/v/9.7.2)

### docx 9.0.0 breaking changes

docx 9.0.0, released October 10, 2024: 18 breaking changes.

- **Behavior changed**  

Only a restricted set of highlight colors is now supported. Code that uses other highlight colors may need to change to one of the supported values. [github.com](https://github.com/dolanmiu/docx/releases/tag/9.0.0)
- **Signature changed** `Body`  

Was class Body extends XmlComponent; now class Body_2 extends XmlComponent. [npmjs.com](https://www.npmjs.com/package/docx/v/9.0.0)

And 16 more in this version.

### docx 8.0.0 breaking changes

docx 8.0.0, released March 19, 2023: 76 breaking changes.

- **Removed** `ColumnAttributes`  

ColumnAttributes was removed in docx 8.0.0 [npmjs.com](https://www.npmjs.com/package/docx/v/8.0.0)
- **Removed** `ColumnsAttributes`  

ColumnsAttributes was removed in docx 8.0.0 [npmjs.com](https://www.npmjs.com/package/docx/v/8.0.0)

And 74 more in this version.

### docx 7.0.0 breaking changes

docx 7.0.0, released September 27, 2021: 184 breaking changes.

- **Removed** `BaseUnderline`  

BaseUnderline was removed in docx 7.0.0 [npmjs.com](https://www.npmjs.com/package/docx/v/7.0.0)
- **Removed** `BaseXmlComponent.deleted`  

BaseXmlComponent.deleted was removed in docx 7.0.0 [npmjs.com](https://www.npmjs.com/package/docx/v/7.0.0)

And 182 more in this version.

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
