docx breaking changes
Updated December 4, 2026
On this page
Latest version 9.16.2, released November 28, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 8.0.0 to 9.16.0: 171 breaking changes in 13 versions.
- From 7.0.0 to 9.16.0: 247 breaking changes in 14 versions.
docx 9.16.0 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 - 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
docx 9.15.1 breaking changes
- Signature changed
Media.constructor
Was constructor(); now constructor(takePath?: MediaPathTaker). npmjs.com - Signature changed
patchDetector
Was const patchDetector: ({data, trimPlaceholders}: PatchDetectorOptions) => Promise<readonly string[]>; now const patchDetector: ({data, placeholderDelimiters, trimPlaceholders}: PatchDetectorOptions) => Promise<readonly string[]>. npmjs.com
docx 9.15.0 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 - 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 - Signature changed
DocPropertiesOptions.name
Was readonly name: string; now readonly name?: string. npmjs.com - 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 - 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 - Signature changed
patchDetector
Was const patchDetector: ({data}: PatchDetectorOptions) => Promise<readonly string[]>; now const patchDetector: ({data, trimPlaceholders}: PatchDetectorOptions) => Promise<readonly string[]>. npmjs.com - Signature changed
patchDocument
Was const patchDocument: <T extends PatchDocumentOutputType = PatchDocumentOutputType>({outputType, data, patches, keepOriginalStyles, placeholderDelimiters, recursive, footnotes, endnotes, numbering, pageNumbers, properties}... npmjs.com - 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
docx 9.14.0 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 - 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 - 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 - 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 - 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 - Signature changed
PackagePart
Was class PackagePart; now class PackagePart<Relationship extends PackagePartRelationshipType = RelationshipType>. npmjs.com - Signature changed
PackagePart.constructor
Was constructor(options: PackagePartOptions); now constructor(options: PackagePartOptions<Relationship>). npmjs.com - Signature changed
PackagePart.options
Was readonly options: PackagePartOptions; now readonly options: PackagePartOptions<Relationship>. npmjs.com - 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 - Signature changed
PackagePartOptions.relationshipType
Was readonly relationshipType: RelationshipType; now readonly relationshipType: Relationship. npmjs.com
And 4 more in this version. Sign up to see every change
docx 9.13.0 breaking changes
- Signature changed
convertToXmlComponent
Was const convertToXmlComponent: (element: Element_2) => ImportedXmlComponent | string | undefined; now const convertToXmlComponent: (element: XmlElement) => ImportedXmlComponent | string | undefined. npmjs.com - 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 - 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 - 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 - 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 - Signature changed
IParagraphPropertiesConfig
Was type IParagraphPropertiesConfig = {readonly implicitListParagraphStyle?: boolean;}; now type IParagraphPropertiesConfig = {readonly implicitListParagraphStyle?: boolean; readonly inListOrder?: boolean;}. npmjs.com - 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 - 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 - Signature changed
IParagraphStylePropertiesOptions
Was type IParagraphStylePropertiesOptions = {readonly border?: IBordersOptions; readonly shading?: IShadingAttributesProperties; readonly numbering?: {readonly reference: string | NumberingDefinition; readonly level: number; readonly... npmjs.com - 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
And 17 more in this version. Sign up to see every change
docx 9.12.0 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 - Behavior changed
A table that sets a style now gets its borders from that style, so existing documents may show different borders. github.com - Signature changed
ITableRowOptions
Was type ITableRowOptions = {readonly children: readonly TableCell[];} & ITableRowPropertiesOptions; now type ITableRowOptions = {readonly children: readonly TableCell[]; readonly keepNext?: boolean;} & ITableRowPropertiesOptions. npmjs.com - Signature changed
TableBorders
Was class TableBorders extends XmlComponent; now class TableBorders extends IgnoreIfEmptyXmlComponent. npmjs.com - Signature changed
TableBorders.constructor
Was constructor(options: ITableBordersOptions); now constructor(options: ITableBordersOptions, {fillMissingSides}?: ITableBordersWriteOptions). npmjs.com
Older versions
9 older versions, each with its first changes. Sign up to see every change
Show 9 older versions
docx 9.11.0 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 - Signature changed
EndnoteReferenceRun.constructor
Was constructor(id: number); now constructor(endnote: number | NoteContent). npmjs.com
And 12 more in this version.
docx 9.10.0 breaking changes
- 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
docx 9.9.0 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 - 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
And 17 more in this version.
docx 9.8.1 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 - 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
And 5 more in this version.
docx 9.8.0 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 - Signature changed
createTableFloatProperties
Was const createTableFloatProperties: ({horizontalAnchor, verticalAnchor, absoluteHorizontalPosition, relativeHorizontalPosition, absoluteVerticalPosition, relativeVerticalPosition, bottomFromText, topFromText, leftFromText, rightFromText... npmjs.com
And 51 more in this version.
docx 9.7.2 breaking changes
- 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
docx 9.0.0 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 - Signature changed
Body
Was class Body extends XmlComponent; now class Body_2 extends XmlComponent. npmjs.com
And 16 more in this version.
docx 8.0.0 breaking changes
- Removed
ColumnAttributes
ColumnAttributes was removed in docx 8.0.0 npmjs.com - Removed
ColumnsAttributes
ColumnsAttributes was removed in docx 8.0.0 npmjs.com
And 74 more in this version.
docx 7.0.0 breaking changes
- Removed
BaseUnderline
BaseUnderline was removed in docx 7.0.0 npmjs.com - Removed
BaseXmlComponent.deleted
BaseXmlComponent.deleted was removed in docx 7.0.0 npmjs.com
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, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.