4471 Commits
Author SHA1 Message Date
Dolan 8fed97ef52 chore: Version bump to 9.16.2 (#3950) 9.16.2 2026-11-29 00:27:01 +08:00
Dolan d15c565e4a chore: remove the deprecated functional/prefer-readonly-type rule (#3949) 2026-11-28 16:47:12 +08:00
Dolan 7871008a0b fix: number bookmark and fitText ids per document, and patched ids after the template's (#3947) 2026-11-28 16:46:51 +08:00
Dolan 802c01d3ea chore: make eslint --fix safe to run (#3948) 2026-11-28 09:59:24 +08:00
Dolan be69da3f1a fix: number drawing ids within each document when it is packed (#3946) 2026-11-28 09:35:11 +08:00
dependabot[bot] d71ee53e44 build(deps-dev): bump eslint-plugin-jsdoc from 65.5.3 to 65.5.4 (#3945)
Bumps [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc) from 65.5.3 to 65.5.4.
- [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases)
- [Commits](https://github.com/gajus/eslint-plugin-jsdoc/compare/v65.5.3...v65.5.4)

---
updated-dependencies:
- dependency-name: eslint-plugin-jsdoc
  dependency-version: 65.5.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-28 08:06:33 +08:00
DolanandClaude Opus 5.5 c693e08796 chore: Version bump to 9.16.1 (#3943)
Claude-Session: https://claude.ai/code/session_01QzDw6XmyL15QG62FS8rSGv

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
9.16.1
2026-11-26 22:18:33 +08:00
dependabot[bot] 201d98aa00 build(deps-dev): bump inquirer from 14.3.0 to 14.3.1 (#3942)
Bumps [inquirer](https://github.com/SBoudrias/Inquirer.js) from 14.3.0 to 14.3.1.
- [Release notes](https://github.com/SBoudrias/Inquirer.js/releases)
- [Commits](https://github.com/SBoudrias/Inquirer.js/compare/inquirer@14.3.0...inquirer@14.3.1)

---
updated-dependencies:
- dependency-name: inquirer
  dependency-version: 14.3.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-26 20:45:08 +08:00
dependabot[bot] 924cf439b5 build(deps-dev): bump eslint-plugin-jsdoc from 65.5.2 to 65.5.3 (#3941)
Bumps [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc) from 65.5.2 to 65.5.3.
- [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases)
- [Commits](https://github.com/gajus/eslint-plugin-jsdoc/compare/v65.5.2...v65.5.3)

---
updated-dependencies:
- dependency-name: eslint-plugin-jsdoc
  dependency-version: 65.5.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-26 20:44:56 +08:00
DolanandClaude Opus 5.5 2243d74c22 fix: write one w:pStyle for a paragraph with both heading and style (#3940)
A paragraph with both `heading` and `style` wrote a w:pStyle for each, and
CT_PPrBase has one, so the Open XML SDK validator rejected the document.
Word applies the last of the two, `style`, so `style` now takes the place
of `heading`, and Word shows the paragraph as it did. The layout module and
the table of contents' heading entries read the first w:pStyle, the
heading, and now read the style Word shows.

The ListParagraph that a bullet or numbered paragraph gets without a style
of its own goes in the same if/else.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 17:36:05 +08:00
48eca6f39a docs: explain that wordWrap lets lines break inside words (#3936)
* docs: explain that wordWrap lets lines break inside words

The option writes <w:wordWrap w:val="0"/>, Word's "Allow Latin text to
wrap in the middle of a word", so Word also breaks Korean words when it
is set. Say so in the option's JSDoc and the demo comment, as
docs/usage/layout.md already does.

* docs: note that an unset wordWrap keeps the style's setting

* docs: limit the wordWrap default note to space-separated text

* docs: say that wordWrap breaks only the words of East Asian runs

w:wordWrap w:val="0" lets Word break inside the words of runs in an East
Asian font or language, as docs/usage/layout.md and docx/layout's
isEastAsianRun have it. Words in other runs, such as English in Calibri,
still break at their spaces. The demo's comment says so too, and that an
unset wordWrap keeps words whole only when the paragraph's style doesn't
set it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Dolan Miu <dolan_miu@hotmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 16:59:07 +08:00
688588a362 fix: leave ListParagraph off a bullet paragraph that has its own style (#3926)
* fix: leave ListParagraph off a bullet paragraph that has its own style

* docs: say when a bullet paragraph is given ListParagraph

The bullet option's JSDoc didn't say that a bullet paragraph takes Word's
ListParagraph style, nor that one with a style or heading of its own keeps
that, as a numbered paragraph does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Dolan Miu <dolan_miu@hotmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 16:58:54 +08:00
yschoi9733andClaude Opus 5.5 893ca85c8b fix: write one w:pBdr for a paragraph with both border and thematicBreak (#3935)
A paragraph with both options got a w:pBdr from each, and CT_PPrBase has
one, so the Open XML SDK validator rejects the document. The same went for
paragraph styles, and for htmlToContent with an <hr> in a <div> with a
border.

The thematic break's line is now written in the w:pBdr of border, in place
of its bottom, as Word reads the two elements: ThematicBreak extends Border
and takes the paragraph's other borders. The layout module, which read only
the first w:pBdr, now gives the line its room, as Word does.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 16:58:40 +08:00
yschoi9733andClaude Opus 5.5 882c5aedef fix: stop writing a paragraph revision's run inside w:pPrChange (#3928)
A paragraph's revision takes the paragraph's options, run included, and run
was written as w:rPr in the w:pPr of w:pPrChange. That w:pPr is a CT_PPrBase,
which has no rPr, so the Open XML SDK validator rejects the document.

run is kept in IParagraphPropertiesChangeOptions, deprecated, and has no
effect. The earlier formatting of the paragraph mark goes in revision of the
paragraph's own run, which writes w:rPrChange. The change tracking docs now
show that, and the JSDoc of the paragraph's run says it formats the paragraph
mark rather than the paragraph's runs.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 16:58:26 +08:00
00abfed626 fix: write a paragraph mark's w:ins and w:del before its formatting (#3934)
* fix: write a paragraph mark's w:ins and w:del before its formatting

A paragraph's run options format the paragraph mark, and their insertion and
deletion mark the paragraph mark as inserted or deleted. ParagraphRunProperties
added w:ins and w:del after everything RunProperties writes, so with any
formatting, or a revision, they came after it. CT_ParaRPr puts them first,
before the formatting and w:rPrChange, so the Open XML SDK validator rejects
such a document for every version of Office. Word opens it either way.

They now come first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs: describe a paragraph mark's insertion and deletion options

insertion and deletion on IParagraphRunPropertiesOptions had no JSDoc. On
a paragraph mark they mean a paragraph break typed with track changes on,
and one whose deletion joins the paragraph to the next when accepted. The
JSDoc says so, and where each is written in the mark's w:rPr.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Dolan Miu <dolan_miu@hotmail.com>
2026-11-26 16:58:12 +08:00
Gal Be 484e177807 perf: generate XML with fewer allocations (#3927)
* perf: write XML in one pass without an intermediate tree

* perf: prepare children in one loop without flatMap and filter

* perf: build attribute objects in place

* fix: keep an attribute with the key __proto__
2026-11-26 16:57:57 +08:00
DolanandClaude Opus 5.5 4da55df933 build(deps-dev): bump typescript-eslint packages from 8.72.2 to 8.74.0 (#3939)
* build(deps-dev): bump typescript-eslint packages from 8.72.2 to 8.74.0

Bumps typescript-eslint, @typescript-eslint/parser and
@typescript-eslint/eslint-plugin together. Each release peers on the other
two at the same version, so the separate Dependabot PRs (#3923, #3924,
#3925) each failed npm ci.

* build: resolve typescript-eslint's optional @typescript/native peer to our own

typescript-eslint 8.73 and later have an optional peer on
@typescript/native >=7.1.0-dev, which our TypeScript 7.0.2 alias doesn't
satisfy. npm 11 lets that through, but npm 10 (Node 20 and 22, and the
ubuntu-24.04 runner of the shape demos job) wants that day's 7.1 dev build
and fails npm ci as the lockfile doesn't have it. The override points the
peer at the @typescript/native we already install, which typescript-eslint
doesn't use while TypeScript 6 is "typescript".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 16:07:57 +08:00
dependabot[bot]andClaude Opus 5.5 8a10b95f07 build(deps-dev): bump eslint-plugin-unicorn from 79.0.0 to 80.0.0 (#3921)
* build(deps-dev): bump eslint-plugin-unicorn from 79.0.0 to 80.0.0

Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 79.0.0 to 80.0.0.
- [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases)
- [Commits](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v79.0.0...v80.0.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-unicorn
  dependency-version: 80.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* style: write CheckBoxSymbolElement's attributes with a ternary for unicorn 80

eslint-plugin-unicorn 80 reports the if/else as unicorn/prefer-ternary.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 16:07:53 +08:00
dependabot[bot] 15f0d6c86c build(deps-dev): bump @vitest/coverage-v8 from 5.1.0 to 5.1.1 (#3929)
Bumps [@vitest/coverage-v8](https://github.com/vitest-dev/vitest/tree/HEAD/packages/coverage-v8) from 5.1.0 to 5.1.1.
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v5.1.1/packages/coverage-v8)

---
updated-dependencies:
- dependency-name: "@vitest/coverage-v8"
  dependency-version: 5.1.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-26 15:27:22 +08:00
dependabot[bot] 69e7ea19f4 build(deps-dev): bump @vitest/ui from 5.1.0 to 5.1.1 (#3932)
Bumps [@vitest/ui](https://github.com/vitest-dev/vitest/tree/HEAD/packages/ui) from 5.1.0 to 5.1.1.
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v5.1.1/packages/ui)

---
updated-dependencies:
- dependency-name: "@vitest/ui"
  dependency-version: 5.1.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-26 15:27:10 +08:00
dependabot[bot] 54ac5f6b86 build(deps-dev): bump vitest from 5.1.0 to 5.1.1 (#3931)
Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 5.1.0 to 5.1.1.
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v5.1.1/packages/vitest)

---
updated-dependencies:
- dependency-name: vitest
  dependency-version: 5.1.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-26 15:26:57 +08:00
dependabot[bot] 8d2b5f95fe build(deps-dev): bump cspell from 10.5.1 to 10.5.2 (#3930)
Bumps [cspell](https://github.com/streetsidesoftware/cspell/tree/HEAD/packages/cspell) from 10.5.1 to 10.5.2.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/packages/cspell/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/commits/v10.5.2/packages/cspell)

---
updated-dependencies:
- dependency-name: cspell
  dependency-version: 10.5.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-26 15:26:45 +08:00
dependabot[bot] cd14c00289 build(deps-dev): bump eslint-plugin-jsdoc from 65.4.7 to 65.5.2 (#3938)
Bumps [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc) from 65.4.7 to 65.5.2.
- [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases)
- [Commits](https://github.com/gajus/eslint-plugin-jsdoc/compare/v65.4.7...v65.5.2)

---
updated-dependencies:
- dependency-name: eslint-plugin-jsdoc
  dependency-version: 65.5.2
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-26 15:26:07 +08:00
Dolan f227ee1b1d chore: Version bump to 9.16.0 (#3919) 9.16.0 2026-11-19 04:18:10 +00:00
DolanandClaude Opus 5.5 5f626c02ba fix(layout): lay out rows that repeat their table's properties, split rows at multiple line spacing and overfull text boxes, as Word does (#3918)
* fix(layout): lay out rows that repeat their table's properties, split rows at multiple line spacing and overfull text boxes, as Word does

estimatePageNumbers stopped at three things report templates have (#3912):

- A row whose w:tblPrEx repeats the table's own w:tblW, w:tblLayout or
  w:tblInd. Properties that are the same as the table's change nothing,
  so only those that differ still stop the layout.
- A cell's line at multiple spacing at the foot of a row that breaks
  across pages, where it fits only without the space below its text.
  word-split-rows-and-boxes.docx shows Word moves it to the next page,
  unlike in the body: 69 probes, with and without borders and above a
  cell's bottom margin, all now on Word's pages.
- An inline VML text box of its own height whose text is taller than
  it. Word cuts the text off and keeps the box's height (OB1 in the same
  probe), so the box is laid out at its own height.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(layout): compare a row's table properties with the table's whatever order their attributes are in

XML gives attributes no order, so a row's w:tblPrEx written with
w:type before w:w is the same as the table's w:tblW written the other
way round. The comparison now sorts each element's attributes first,
as a text frame's are compared, rather than stopping the layout there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(layout): put the probe's text box shape type before whichever box ONLY leaves first

The shape type was added to OB1a's box, so a run with ONLY=OB1b wrote a
box referring to a shape type the document didn't declare. It now goes
before the first box in the document, whichever that is. A full run
writes the same document as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 04:14:34 +00:00
dependabot[bot] 660532044d build(deps-dev): bump cspell from 10.4.1 to 10.5.1 (#3917)
Bumps [cspell](https://github.com/streetsidesoftware/cspell/tree/HEAD/packages/cspell) from 10.4.1 to 10.5.1.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/packages/cspell/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/commits/v10.5.1/packages/cspell)

---
updated-dependencies:
- dependency-name: cspell
  dependency-version: 10.5.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-19 03:33:53 +00:00
dependabot[bot] 0cc789431c build(deps-dev): bump eslint from 10.14.0 to 10.15.0 (#3915)
Bumps [eslint](https://github.com/eslint/eslint) from 10.14.0 to 10.15.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Commits](https://github.com/eslint/eslint/compare/v10.14.0...v10.15.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-version: 10.15.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-19 03:33:45 +00:00
dependabot[bot] 9286c1ba07 build(deps-dev): bump eslint-plugin-jsdoc from 65.4.5 to 65.4.7 (#3913)
Bumps [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc) from 65.4.5 to 65.4.7.
- [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases)
- [Commits](https://github.com/gajus/eslint-plugin-jsdoc/compare/v65.4.5...v65.4.7)

---
updated-dependencies:
- dependency-name: eslint-plugin-jsdoc
  dependency-version: 65.4.7
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-19 03:33:37 +00:00
dependabot[bot] 8735ec5d76 build(deps-dev): bump prettier from 3.9.10 to 3.10.1 (#3911)
Bumps [prettier](https://github.com/prettier/prettier) from 3.9.10 to 3.10.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.9.10...3.10.1)

---
updated-dependencies:
- dependency-name: prettier
  dependency-version: 3.10.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-19 03:33:29 +00:00
dependabot[bot] 2f7ad1ab94 build(deps-dev): bump glob from 14.0.4 to 14.0.6 (#3910)
Bumps [glob](https://github.com/isaacs/node-glob) from 14.0.4 to 14.0.6.
- [Release notes](https://github.com/isaacs/node-glob/releases)
- [Changelog](https://github.com/isaacs/node-glob/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/node-glob/compare/v14.0.4...v14.0.6)

---
updated-dependencies:
- dependency-name: glob
  dependency-version: 14.0.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-19 03:33:21 +00:00
dependabot[bot] cc9ee4600a build(deps-dev): bump jsdom from 31.0.0 to 31.0.1 (#3909)
Bumps [jsdom](https://github.com/jsdom/jsdom) from 31.0.0 to 31.0.1.
- [Release notes](https://github.com/jsdom/jsdom/releases)
- [Commits](https://github.com/jsdom/jsdom/compare/v31.0.0...v31.0.1)

---
updated-dependencies:
- dependency-name: jsdom
  dependency-version: 31.0.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-19 03:33:13 +00:00
dependabot[bot] 89210677c2 build(deps-dev): bump inquirer from 14.2.5 to 14.3.0 (#3908)
Bumps [inquirer](https://github.com/SBoudrias/Inquirer.js) from 14.2.5 to 14.3.0.
- [Release notes](https://github.com/SBoudrias/Inquirer.js/releases)
- [Commits](https://github.com/SBoudrias/Inquirer.js/compare/inquirer@14.2.5...inquirer@14.3.0)

---
updated-dependencies:
- dependency-name: inquirer
  dependency-version: 14.3.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-19 03:33:06 +00:00
dependabot[bot] f5664cc55d build(deps-dev): bump vite from 8.3.7 to 8.3.8 (#3907)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 8.3.7 to 8.3.8.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v8.3.8/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 8.3.8
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-19 03:32:58 +00:00
yschoi9733andClaude Opus 5.5 bc5e98e1a3 feat: add autoSpaceLatinAndEastAsianText for the space beside Latin letters (#3916)
Word can put a small space between Chinese, Japanese or Korean text and
a Latin letter or a digit beside it. autoSpaceEastAsianText controls the
space beside digits (w:autoSpaceDN), and autoSpaceLatinAndEastAsianText
now does the same for Latin letters (w:autoSpaceDE).

Both can be set in paragraph styles, numbering levels and the document
defaults too, and are written after w:overflowPunct and before w:bidi,
the order CT_PPrBase gives them. To keep that order, w:suppressLineNumbers
moves to its place after w:numPr, and w:wordWrap and w:overflowPunct now
come after w:tabs. A test sets an option for each element
ParagraphProperties writes and checks their order against the schema.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 03:31:12 +00:00
f760d3281c docs: point the README's Node examples at demo/ instead of RunKit (#3906)
* docs: point the README's Node examples at demo/ instead of RunKit

runkit.com no longer serves the demos: its TLS certificate expired on
2026-01-18 and the site answers 503. Link the equivalent files in demo/
and say how to run them.

* docs: say the demos need a build, and where they write the document

The demos that import docx/shapes, docx/charts, docx/html, docx/layout and
the other subpath entries (51 of the 172) load them from dist/, so in a
fresh clone they stop with ERR_MODULE_NOT_FOUND until `npm run build` has
run. CI builds before it runs the demos too.

npm runs scripts from the package's folder, so the document is written to
the root of the repository, whichever folder the command is run from.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* docs: link the demos that the RunKit Margins and Advanced paragraphs links ran

RunKit's demo 6, "Margins", was demo/demo6.js, which sets the page's
margins to zero. It is demo/page-layout/page-borders.ts now, and still
does that, so the list keeps it.

RunKit's demo 2, "Advanced Paragraphs and text", was demo/demo2.js, with
its own heading and paragraph styles and numbering. It is
demo/styles/default-styles.ts now, so the list links that, in place of the
paragraph spacing demo.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: fstandhartinger <florian.standhartinger@gmail.com>
Co-authored-by: Dolan Miu <dolan_miu@hotmail.com>
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 03:05:30 +00:00
Dolan dc8bd21a0c chore: Version bump to 9.15.4 (#3905) 9.15.4 2026-11-14 02:18:56 +00:00
bcc7c976d0 build(deps-dev): bump eslint-plugin-import-x from 4.17.1 to 4.18.1 (#3902)
* build(deps-dev): bump eslint-plugin-import-x from 4.17.1 to 4.18.1

Bumps [eslint-plugin-import-x](https://github.com/un-ts/eslint-plugin-import-x) from 4.17.1 to 4.18.1.
- [Release notes](https://github.com/un-ts/eslint-plugin-import-x/releases)
- [Changelog](https://github.com/un-ts/eslint-plugin-import-x/blob/master/CHANGELOG.md)
- [Commits](https://github.com/un-ts/eslint-plugin-import-x/compare/v4.17.1...v4.18.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-import-x
  dependency-version: 4.18.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: sort sibling and parent imports for eslint-plugin-import-x 4.18

import-x 4.18 now enforces alphabetical order across the merged sibling/parent group, which 4.17 missed. Keep each Vite ?raw/?inline import's @ts-expect-error comment attached to it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dolan Miu <dolan_miu@hotmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 00:48:32 +00:00
dependabot[bot] 4c397c8bc9 build(deps-dev): bump glob from 14.0.3 to 14.0.4 (#3892)
Bumps [glob](https://github.com/isaacs/node-glob) from 14.0.3 to 14.0.4.
- [Changelog](https://github.com/isaacs/node-glob/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/node-glob/compare/v14.0.3...v14.0.4)

---
updated-dependencies:
- dependency-name: glob
  dependency-version: 14.0.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-14 00:31:17 +00:00
dependabot[bot] ea1ff9db46 build(deps-dev): bump jsdom from 30.1.3 to 31.0.0 (#3893)
Bumps [jsdom](https://github.com/jsdom/jsdom) from 30.1.3 to 31.0.0.
- [Release notes](https://github.com/jsdom/jsdom/releases)
- [Commits](https://github.com/jsdom/jsdom/compare/v30.1.3...v31.0.0)

---
updated-dependencies:
- dependency-name: jsdom
  dependency-version: 31.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-14 00:31:10 +00:00
dependabot[bot] 695c85f4c9 build(deps-dev): bump eslint-plugin-jsdoc from 65.4.2 to 65.4.5 (#3896)
Bumps [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc) from 65.4.2 to 65.4.5.
- [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases)
- [Commits](https://github.com/gajus/eslint-plugin-jsdoc/compare/v65.4.2...v65.4.5)

---
updated-dependencies:
- dependency-name: eslint-plugin-jsdoc
  dependency-version: 65.4.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-14 00:31:04 +00:00
dependabot[bot] f3972f4af8 build(deps-dev): bump cspell from 10.4.0 to 10.4.1 (#3897)
Bumps [cspell](https://github.com/streetsidesoftware/cspell/tree/HEAD/packages/cspell) from 10.4.0 to 10.4.1.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/packages/cspell/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/commits/v10.4.1/packages/cspell)

---
updated-dependencies:
- dependency-name: cspell
  dependency-version: 10.4.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-14 00:30:57 +00:00
dependabot[bot] b3050dbf99 build(deps-dev): bump parse5-htmlparser2-tree-adapter (#3899)
Bumps [parse5-htmlparser2-tree-adapter](https://github.com/inikulin/parse5) from 8.0.1 to 8.0.2.
- [Release notes](https://github.com/inikulin/parse5/releases)
- [Commits](https://github.com/inikulin/parse5/commits)

---
updated-dependencies:
- dependency-name: parse5-htmlparser2-tree-adapter
  dependency-version: 8.0.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-14 00:30:51 +00:00
dependabot[bot] d8311414b9 build(deps-dev): bump parse5 from 8.1.0 to 8.1.1 (#3900)
Bumps [parse5](https://github.com/inikulin/parse5) from 8.1.0 to 8.1.1.
- [Release notes](https://github.com/inikulin/parse5/releases)
- [Commits](https://github.com/inikulin/parse5/compare/v8.1.0...v8.1.1)

---
updated-dependencies:
- dependency-name: parse5
  dependency-version: 8.1.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-14 00:30:44 +00:00
dependabot[bot] a4ad4c7b59 build(deps-dev): bump vite from 8.3.5 to 8.3.7 (#3901)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 8.3.5 to 8.3.7.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v8.3.7/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 8.3.7
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-14 00:30:38 +00:00
dependabot[bot] f524668dfb build(deps-dev): bump typescript-eslint from 8.72.1 to 8.72.2 (#3904)
Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.72.1 to 8.72.2.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.72.2/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: typescript-eslint
  dependency-version: 8.72.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-14 00:30:31 +00:00
DolanandClaude Opus 5.5 ebd29699d5 chore: Version bump to 9.15.3 (#3891)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
9.15.3
2026-11-06 23:07:42 +00:00
dependabot[bot] d010a7a25b build(deps-dev): bump @vitest/coverage-v8 from 5.0.5 to 5.1.0 (#3888)
Bumps [@vitest/coverage-v8](https://github.com/vitest-dev/vitest/tree/HEAD/packages/coverage-v8) from 5.0.5 to 5.1.0.
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v5.1.0/packages/coverage-v8)

---
updated-dependencies:
- dependency-name: "@vitest/coverage-v8"
  dependency-version: 5.1.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-06 21:47:53 +00:00
dependabot[bot] 39d34b9d97 build(deps-dev): bump parse5 from 8.0.1 to 8.1.0 (#3885)
Bumps [parse5](https://github.com/inikulin/parse5) from 8.0.1 to 8.1.0.
- [Release notes](https://github.com/inikulin/parse5/releases)
- [Commits](https://github.com/inikulin/parse5/compare/v8.0.1...v8.1.0)

---
updated-dependencies:
- dependency-name: parse5
  dependency-version: 8.1.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-06 21:47:45 +00:00
dependabot[bot] 5f8293b1da build(deps-dev): bump globals from 17.13.0 to 17.14.0 (#3884)
Bumps [globals](https://github.com/sindresorhus/globals) from 17.13.0 to 17.14.0.
- [Release notes](https://github.com/sindresorhus/globals/releases)
- [Commits](https://github.com/sindresorhus/globals/compare/v17.13.0...v17.14.0)

---
updated-dependencies:
- dependency-name: globals
  dependency-version: 17.14.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-06 21:47:28 +00:00
dependabot[bot] 71ca3c7689 build(deps-dev): bump vitest from 5.0.5 to 5.1.0 (#3887)
Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 5.0.5 to 5.1.0.
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v5.1.0/packages/vitest)

---
updated-dependencies:
- dependency-name: vitest
  dependency-version: 5.1.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-06 21:47:18 +00:00