Skip to content

fix(docx): resolve 9.14 in lockfile and cover new default styles - #3255

Merged
nperez0111 merged 1 commit into
mainfrom
fix/fresh-deps-40072483607-review
Oct 24, 2026
Merged

nperez0111 merged 1 commit into
mainfrom
fix/fresh-deps-40072483607-review

Conversation

@nperez0111

@nperez0111 nperez0111 commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Resolve docx to 9.14.0 in the repository lockfile only; keep every manifest's existing ^9.9.0 range and optional peer ranges unchanged.
  • Fix the Fresh Install Tests failure: docx 9.14 adds Bibliography, TOC1–9, and LineNumber defaults, breaking three full XML styles snapshots.
  • Preserve the complete 9.9 snapshots and add reviewed complete 9.14 baselines. Select the default set using an independent plain public Document, not the exporter output; no stripping of styles or weakening of comparisons.
  • Explicitly assert locale removal and fr-FR application. No production exporter code changes.

Regression proof

  • Before fix, fresh resolution reproduces exactly three failures / eleven passing tests.
  • Reviewed each new XML baseline: exactly eleven added styles, existing styles and all other XML unchanged. Reviewed TOC spacing and indentation.
  • Removing TOC1 from exported XML still fails all three comparisons with the new selector; mutation removed before final validation.
  • Original patch validated against both locked docx 9.9.0 and freshly resolved 9.14.0: each recursive build 43/43 tasks, full unit run 17/17 tasks, targeted DOCX + math/diagram integrations 23/23 tests. See follow-up validation below for final dependency bump.

Final lockfile update validation

  • Frozen-lockfile installation passed; all manifest ranges remain unchanged.
  • Recursive build passed (43/43 tasks); targeted type-aware lint and staged check passed.
  • Full uncached unit rerun is in progress. The preceding run encountered an unrelated document is not defined editor-timer teardown error in commentedContent.test.ts; the DOCX tests passed.
  • Merge is conditional on all GitHub Actions checks passing.

Context

Preserves the full XML comparison approach from #3225 and no-locale behavior from #2651. Fixes the material failure in Fresh Install Tests run 40072483607.

Local Node 22.23.3 differs from the repository-requested 24.15.0; GitHub CI uses the requested version. No browser suite was run natively.

Summary by CodeRabbit

  • Tests
    • Expanded DOCX export checks to verify that generated documents include the selected locale and omit locale metadata when no locale is set.
    • Updated style snapshot checks to accommodate differences in default styles across supported document library versions. These changes strengthen regression coverage; they do not alter the exported document behavior.

@vercel

vercel Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
blocknote Ready Ready Preview Oct 24, 2026 7:48am UTC
blocknote-website Ready Ready Preview Oct 24, 2026 7:48am UTC

Request Review

@nperez0111

Copy link
Copy Markdown
Contributor Author

Final lockfile-only validation completed: frozen-lockfile install passed and the full uncached unit suite passed all 17/17 tasks. Recursive build passed 43/43 tasks, targeted type-aware lint and staged checks passed. All package manifests remain unchanged at their existing ranges; only docx lockfile resolution is upgraded to 9.14.0. The earlier timer-teardown error did not recur. Waiting for all GitHub Actions checks before merging.

@coderabbitai

coderabbitai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 97ba19ae-9128-4ec1-a97c-ee65c7fb2604
Commits

Reviewing files that changed from the base of the PR and between 2fb6b30 and 21647ac.

Files ignored due to path filters: 4
  • packages/xl-docx-exporter/src/docx/__snapshots__/basic/styles-docx-9.14.xml is excluded by !**/__snapshots__/**
  • packages/xl-docx-exporter/src/docx/__snapshots__/noLocale/styles-docx-9.14.xml is excluded by !**/__snapshots__/**
  • packages/xl-docx-exporter/src/docx/__snapshots__/withLocale/styles-docx-9.14.xml is excluded by !**/__snapshots__/**
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing: 1
  • packages/xl-docx-exporter/src/docx/docxExporter.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

Walkthrough

The DOCX tests now select styles snapshots based on the default styles generated by the installed docx version. The no-locale and fr-FR tests also check for the expected <w:lang> content.

Changes: DOCX styles snapshots

Layer / File(s) Summary
Version-aware style snapshots
packages/xl-docx-exporter/src/docx/docxExporter.test.ts
A helper checks generated default styles and selects the matching snapshot path. The tests use that path and verify that locale tags are absent without a locale and present for fr-FR.

Priority: Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Suggested reviewers: stephanmeijer

Merge Risk: Minimal · up to 21647

The change is limited to compatible DOCX test snapshots and locale assertions; no merge-blocking issue is established.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly identifies the lockfile resolution and the new default styles coverage, which are the main changes in the pull request.
Description check Passed The description is detailed and directly addresses the change, rationale, testing, regression proof, validation status, and known environment limits. It does not use every template heading or include …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description is detailed and directly addresses the change, rationale, testing, regression proof, validation status, and known environment limits. It does not use every template heading or include the checklist, but it provides the required context and is mostly complete.

Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

A rabbit checks the styles with care,
Then picks the snapshot matching there.
No locale tag when none is set,
French adds its language tag, you bet.
The tests hop on, their checks complete.

Comment @coderabbitai help to get the list of available commands.

@pkg-pr-new

pkg-pr-new Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@blocknote/ariakit

npm i https://pkg.pr.new/@blocknote/ariakit@3255

@blocknote/code-block

npm i https://pkg.pr.new/@blocknote/code-block@3255

@blocknote/core

npm i https://pkg.pr.new/@blocknote/core@3255

@blocknote/diagram-block

npm i https://pkg.pr.new/@blocknote/diagram-block@3255

@blocknote/mantine

npm i https://pkg.pr.new/@blocknote/mantine@3255

@blocknote/math-block

npm i https://pkg.pr.new/@blocknote/math-block@3255

@blocknote/react

npm i https://pkg.pr.new/@blocknote/react@3255

@blocknote/server-util

npm i https://pkg.pr.new/@blocknote/server-util@3255

@blocknote/shadcn

npm i https://pkg.pr.new/@blocknote/shadcn@3255

@blocknote/xl-ai

npm i https://pkg.pr.new/@blocknote/xl-ai@3255

@blocknote/xl-docx-exporter

npm i https://pkg.pr.new/@blocknote/xl-docx-exporter@3255

@blocknote/xl-email-exporter

npm i https://pkg.pr.new/@blocknote/xl-email-exporter@3255

@blocknote/xl-multi-column

npm i https://pkg.pr.new/@blocknote/xl-multi-column@3255

@blocknote/xl-odt-exporter

npm i https://pkg.pr.new/@blocknote/xl-odt-exporter@3255

@blocknote/xl-pdf-exporter

npm i https://pkg.pr.new/@blocknote/xl-pdf-exporter@3255

@blocknote/xl-typst-exporter

npm i https://pkg.pr.new/@blocknote/xl-typst-exporter@3255

commit: 21647ac

@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-10-24 07:57 UTC

@nperez0111
nperez0111 merged commit d65e92f into main Oct 24, 2026
37 checks passed
@nperez0111
nperez0111 deleted the fix/fresh-deps-40072483607-review branch October 24, 2026 07:57

This branch was successfully deployed

2 active deployments
Preview – blocknote-website — 21647ac5 Deployed Oct 24, 2026 by vercel[bot]
Preview – blocknote — 21647ac5 Deployed Oct 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant