Skip to content

Bump docx from 9.7.1 to 9.8.1 - #41

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/docx-9.8.1
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/docx-9.8.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 7, 2026

Copy link
Copy Markdown
Contributor

Bumps docx from 9.7.1 to 9.8.1.

Release notes

Sourced from docx's releases.

9.8.1 adds math from LaTeX to docx/math, and makes every example in the docs live.

latexToMath turns LaTeX math into equations that Word shows and edits as its own. It reads the math that LaTeX, MathJax and KaTeX write, including fractions, roots, scripts, sums and integrals, \left … \right, accents, braces, fonts, \text, and environments such as matrix, cases and align, where \tag numbers a row. It returns components, so you can mix LaTeX with math you build by hand. Anything it can't read throws an error that says what and where. See Math from LaTeX.

LaTeX needed six new components, and you can use them by hand too: MathLargeOperator, MathAccent, MathBar, MathBrace, MathBox and MathPhantom. MathRun gains style, script and literal. MathFraction gains type (stacked, skewed, linear or no bar), and MathSum and MathIntegral gain limits.

The docs' examples now run in the page with this version of docx and draw the document next to the code. You can edit the code, with completions and type errors, and download the .docx. Running all 443 examples found docs that were wrong, and they're fixed: landscape pages, custom properties, comments, and APIs that no longer exist. The sidebar also stops listing every chart page, and shows a page's child pages only once you open it.

The empty WORKAROUND2, WORKAROUND3 and WORKAROUND4 exports are gone. They were only there for awesome-typescript-loader, which docx stopped using in 2021.

What's Changed

Full Changelog: dolanmiu/docx@9.8.0...9.8.1

9.8.0 is one of the biggest releases of docx yet. It adds charts, shapes and watermarks, and a lot more math. Each has its own entry point (docx/charts, docx/shapes, docx/watermarks and docx/math), so your bundle only includes the ones you import.

Charts are native Word charts, not pictures. Word draws them from their data in the document's theme, and Edit Data opens that data in Excel. You can make column, bar, line, area, pie, doughnut, pie of pie, bar of pie, radar, scatter, bubble, stock and combo charts, with trendlines, error bars, categories in groups and more. Charts also work in templates. patchDocument can put a new ChartRun where a placeholder is, and ChartDataPatch gives new data to a chart made and styled in Word while keeping its look.

Shapes cover Word's preset shapes (rectangles, ellipses, arrows, callouts, flowchart symbols and the rest), plus custom shapes drawn from SVG paths. You can group shapes with ShapeGroupRun, or join them with connectors on a ShapeCanvasRun and let automatic layout place them, which is how you'd build flowcharts, org charts and swimlane diagrams. Math gains matrices, cases, equations lined up with numbers, and brackets made of any characters. Math you already import from docx keeps working there. Watermarks are text or pictures behind every page, and Word recognises them in its own Design > Watermark menu.

Every document now has a theme, and you can set its colours and fonts with the theme option. Text, underlines, borders, shading, shapes and the page background can use theme colours, and text can use the theme's heading or body font, so they all change when the theme is changed in Word. patchDocument works out theme colours from the template's own theme.

Every demo's document is now checked with the Open XML SDK validator in CI, and this release fixes everything it found. Thank you to everyone who contributed, and welcome to our five new contributors: @​slmnsh added image cropping, @​theunal watermarks, @​holm run properties on ImageRun, and @​omartuhintvs and @​fushanbobfan fixes to tables and the patcher.

What's Changed

... (truncated)

Commits
  • 0e8ff7a chore: Version bump to 9.8.1 (#3572)
  • 71b11d6 chore: remove the awesome-typescript-loader WORKAROUND exports (#3571)
  • eb20651 feat: math from LaTeX in docx/math, with accents, bars, braces, boxes, phanto...
  • 5213b31 chore: Add evaluate PR skill
  • 1044859 build(deps-dev): bump typescript-eslint from 8.70.0 to 8.70.1 (#3565)
  • d152b80 chore: remove @​types/inquirer, since inquirer ships its own types (#3569)
  • 70bca29 build(deps-dev): bump jsdom from 30.1.0 to 30.1.1 (#3564)
  • 42caf4a build(deps-dev): bump @​typescript-eslint/parser from 8.70.0 to 8.70.1 (#3567)
  • 98d404c build(deps-dev): bump cspell from 10.0.0 to 10.3.4 (#3568)
  • a56f383 build(deps-dev): bump eslint-plugin-functional from 9.0.5 to 10.0.1 (#3562)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [docx](https://github.com/dolanmiu/docx) from 9.7.1 to 9.8.1.
- [Release notes](https://github.com/dolanmiu/docx/releases)
- [Commits](dolanmiu/docx@9.7.1...9.8.1)

---
updated-dependencies:
- dependency-name: docx
  dependency-version: 9.8.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Oct 7, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants