GroupDocs.Comparison for Node.js via Java 26.10 Release Notes
This release moves the package to the GroupDocs.Comparison for Java 26.10 engine and includes all changes of the Java 26.9 and 26.10 releases. External resources referenced by documents are no longer loaded by default, and a number of PDF comparison issues are fixed.
Full list of changes in this release
| Key | Category | Summary |
|---|---|---|
| COMPARISONNODEJS | Update | Java engine updated to GroupDocs.Comparison for Java 26.10 |
| COMPARISONNET-4866, COMPARISONNET-4881 | Feature | External resources referenced by a document are no longer loaded by default; new LoadOptions settings control it |
| COMPARISONJAVA-1756 | Fix | PDF comparison no longer fails on documents that use a blend mode |
| COMPARISONJAVA | Fix | Failures while opening a PDF are no longer reported as Incorrect password. |
| COMPARISONJAVA | Fix | IllegalArgumentException: <class> is not an enum type no longer thrown for internal enums |
| COMPARISONJAVA-1667 | Fix | Applying changes to a .html file writes the HTML report again |
| COMPARISONJAVA-1674 | Fix | A temp directory that is a symbolic link (/tmp on macOS) no longer fails with FileAlreadyExistsException |
| COMPARISONNET-4892, COMPARISONNET-4893 | Fix | Faster PDF result rendering; duplicated and interleaved characters in the PDF result fixed |
| COMPARISONNET-2370 | Fix | PDF table cells keep their own line breaks, and text added by the comparison stays inside the cell |
| COMPARISONNET-4911 | Fix | Side-by-side PDF comparison no longer reports content pushed onto the next page as deleted and re-inserted |
| COMPARISONNET-4896 | Fix | Inline PDF comparison no longer draws moved lines on top of other lines |
| COMPARISONNET-4883, COMPARISONNET-4887 | Fix | Presentation and Word comparison no longer fails on a picture that has no image data |
| COMPARISONNET-4773 | Update | RevisionHandler closes the stream it opened and takes a leaveOpen flag for a stream passed by the caller |
| COMPARISONJAVA | Update | WordCompareOptions.isWordTrackChanges() follows the display mode |
| COMPARISONNET-4878 | Update | File type detection no longer labels a stream as EPUB just because it can be opened as one |
Behavior changes to check before upgrading
- External resources are not loaded unless
LoadOptions.setSkipExternalResources(false)is set. - A
RevisionHandlercreated for a stream now closes the stream when the handler is closed. PassleaveOpen = trueto keep it open. WordCompareOptions.isWordTrackChanges()returnstruefor a new instance, following the default display modeREVISIONS.
Major features
Control over loading external resources
A document can reference resources outside itself, for example an image given by a remote URL. Opening such a document used to make the comparison fetch that address. External resources are now skipped by default, and two LoadOptions settings control the behavior:
setSkipExternalResources(boolean)-trueby default; setfalseto load external resources.setWhitelistedResources(List<String>)- URL fragments that are still loaded while other resources are skipped.
'use strict';
const java = require('java');
const groupdocs = require('@groupdocs/groupdocs.comparison');
const whitelist = java.newInstanceSync('java.util.ArrayList');
whitelist.add('includepicture-field.png');
const loadOptions = new groupdocs.LoadOptions();
loadOptions.setSkipExternalResources(true);
loadOptions.setWhitelistedResources(whitelist);
const comparer = new groupdocs.Comparer('source.docx', loadOptions);
comparer.add('target.docx', loadOptions);
comparer.compare('result.docx');
The settings apply to HTML, Word and presentation documents. Scripts, links and form targets of HTML documents are never loaded during comparison.
PDF comparison fixes
- Documents that use a blend mode no longer fail to compare.
- Errors raised while opening a PDF are no longer reported as an incorrect password.
- The PDF result is rendered faster, and characters are no longer duplicated or interleaved (
self self--explanatoryexplanatoryis nowself-explanatory self-explanatory). - Table cells keep their own line breaks, and text added by the comparison stays inside the cell.
- Side-by-side comparison no longer reports content that moved to the next page as deleted and re-inserted.
- Inline comparison no longer draws lines that moved to another position on top of other lines.
Package
The package is available on npm: @groupdocs/groupdocs.comparison.
npm install @groupdocs/groupdocs.comparison@26.10.0
Public API and backward incompatible changes
The public API matches GroupDocs.Comparison for Java 26.10. New methods: LoadOptions.setSkipExternalResources(), LoadOptions.setWhitelistedResources() and a RevisionHandler constructor with the leaveOpen flag. See Behavior changes to check before upgrading.
Feedback
We value your feedback! If you have any questions, issues, or suggestions, feel free to reach out to us through our Free Support Forum. Our team will be happy to assist you and answer any questions you may have.