Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: JSv4/Docxodus
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.4.1
Choose a base ref
...
head repository: JSv4/Docxodus
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5.4.2
Choose a head ref
  • 3 commits
  • 6 files changed
  • 2 contributors

Commits on Jan 26, 2026

  1. feat(comparer): add ComparisonLog infrastructure for graceful error h…

    …andling
    
    Add optional logging infrastructure to the document comparison engine that:
    - Captures warnings about document issues without failing the comparison
    - Handles orphaned footnote/endnote references gracefully when logging is enabled
    - Provides detailed log entries with codes, messages, and document locations
    
    New classes:
    - ComparisonLog: Collects log entries during comparison
    - ComparisonLogEntry: Individual entry with level, code, message, details, location
    - ComparisonLogCodes: Well-known codes like ORPHANED_FOOTNOTE_REFERENCE
    
    API changes:
    - WmlComparerSettings.Log: Optional log collector (null = throw on errors, set = log and continue)
    - CompareDocumentsWithLog: Returns document + log in JSON response
    - CompareDocumentsToHtmlWithLog: Returns HTML + log in JSON response
    
    TypeScript bindings:
    - ComparisonLogEntry, CompareResultWithLog, CompareToHtmlResultWithLog types
    - ComparisonLogLevel enum and ComparisonLogCodes constants
    - compareDocumentsWithLog() and compareDocumentsToHtmlWithLog() functions
    
    Also fixes CompareDocumentsToHtmlFull to properly pass detailThreshold and
    caseInsensitive options (previously only used in DOCX output).
    JSv4 committed Jan 26, 2026
    Configuration menu
    Copy the full SHA
    a83a8c3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    53c5ecb View commit details
    Browse the repository at this point in the history
  3. Merge pull request #99 from JSv4/feature/comparison-log-infrastructure

    feat(comparer): add ComparisonLog infrastructure for graceful error handling
    JSv4 authored Jan 26, 2026
    Configuration menu
    Copy the full SHA
    0a0b8c6 View commit details
    Browse the repository at this point in the history
Loading