chore(deps): update dependency officeparser to v6.1.0 - #9482
Conversation
|
@claude , have a look at the changes introduced by this version update and adapt the office parser accordingly. |
|
Claude finished @eliandoran's task in 2m 48s —— View job Adapting officeparser to v6.1.0Tasks:
|
|
@claude , please resume the previous work of adapting to this version. |
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
|
Claude finished @eliandoran's task in 8m 14s —— View job Adapting officeparser to v6.1.0Root cause: officeparser v6.1.0 added native ESM support with Node16 resolution and a strict Fix: Replaced the five deep imports (one per format: Word, Excel, PowerPoint, OpenOffice, types) with a single import from the main Tasks: |
v6.1.0 added native ESM with Node16 resolution and a strict exports field, breaking deep subpath imports like officeparser/dist/parsers/ExcelParser.js. Switch to the main package entry and use parseOfficeAsync(), which accepts a Buffer and auto-detects the format via magic bytes. Co-authored-by: Elian Doran <eliandoran@users.noreply.github.com>
|
@claude , can you make sure that PDF.js is not pulled through the main import, as it was in the past? Explain your findings. |
|
Claude finished @eliandoran's task in 8m 7s —— View job Investigating PDF.js in officeparser main importTasks:
Findings1. pdfjs-dist is already externalized in the server buildIn external: [
"electron",
"@electron/remote",
"better-sqlite3",
"pdfjs-dist", // <-- already external
"./xhr-sync-worker.js",
"vite",
"tesseract.js"
],This means pdfjs-dist will never be inlined into the server's bundled 2. officeparser v6.1.0 depends on pdfjs-dist@5.6.205Confirmed in Trilium's own 3. The remaining risk: runtime loadingThe This was exactly why the previous implementation used deep subpath imports like I was unable to directly inspect officeparser's Summary
If a static import is confirmed, a pnpm patch on officeparser to convert its PDF-parser import to a dynamic |
v6.1.0 renamed parseOfficeAsync to OfficeParser.parseOffice (static method) and returns an AST object with toText() instead of a plain string. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

This PR contains the following updates:
6.0.7→6.1.0Release Notes
harshankur/officeParser (officeparser)
v6.1.0Compare Source
Added
funding.jsonmanifest and GitHub Sponsors support..editorconfig,.gitattributes, andSUPPORT.md.Changed
fflatefor significant performance gains and robust browser/edge compatibility.Node16resolution and verified browser bundles (Vite/Angular compatible).Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.