bun-docx 0.20.2 → 0.20.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -226,9 +226,10 @@ size="…in" margins="…in" text-width="…in" -->` note when the page deviates
226
226
  so the importer drops it (it can't re-inject into the body); full entries are in
227
227
  `read --ast` under `headers`/`footers` (`Marginal[]`). Set with `docx
228
228
  headers`/`docx footers`.
229
- - **Track-changes state** rides a head `<!-- docx:track-changes on -->` line when the
230
- document's tracking toggle is enabled (deviation-only off emits nothing), so an
231
- agent sees that subsequent edits will be redlined without inspecting `settings.xml`.
229
+ - **Track-changes state** always rides a head `<!-- docx:track-changes on|off -->`
230
+ line — it's the one read hint that states its default too (an agent shouldn't have
231
+ to infer "off" from a missing line), so you can see whether subsequent edits will be
232
+ redlined without inspecting `settings.xml`.
232
233
  Toggle it with `docx track-changes FILE on|off`; the three tracked-change read views
233
234
  (`--accepted`/`--current`/`--baseline`) are covered under the review loop below.
234
235
 
package/dist/index.js CHANGED
@@ -91707,7 +91707,7 @@ function renderMarkdown2(doc, options = {}) {
91707
91707
  return "";
91708
91708
  const baseNote = formatBaseNote(noteBaseline);
91709
91709
  const pageNote = formatPageNote(documentGeometry(blocks));
91710
- const trackNote = options.trackChangesOn ? formatNote("track-changes", [], ["on"]) : "";
91710
+ const trackNote = formatNote("track-changes", [], [options.trackChangesOn ? "on" : "off"]);
91711
91711
  const wrapSummary = formatWrappingTabSummary(ctx.wrappingTabLines);
91712
91712
  const headLines = [
91713
91713
  baseNote,
@@ -98015,7 +98015,7 @@ Examples:
98015
98015
  // package.json
98016
98016
  var package_default = {
98017
98017
  name: "bun-docx",
98018
- version: "0.20.2",
98018
+ version: "0.20.3",
98019
98019
  description: "Read, edit, redline, and comment on Microsoft Word .docx files from the command line \u2014 built for AI agents.",
98020
98020
  keywords: [
98021
98021
  "docx",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bun-docx",
3
- "version": "0.20.2",
3
+ "version": "0.20.3",
4
4
  "description": "Read, edit, redline, and comment on Microsoft Word .docx files from the command line — built for AI agents.",
5
5
  "keywords": [
6
6
  "docx",