diffx-js 0.4.0 → 0.4.1

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.
Files changed (2) hide show
  1. package/lib.js +6 -6
  2. package/package.json +1 -1
package/lib.js CHANGED
@@ -26,12 +26,12 @@ const { tmpdir } = require('os');
26
26
  * @property {string} [ignoreKeysRegex] - Ignore keys matching regex
27
27
  * @property {number} [epsilon] - Tolerance for float comparisons
28
28
  * @property {string} [arrayIdKey] - Key to use for array element identification
29
- * @property {boolean} [optimize=false] - Enable memory optimization
30
29
  * @property {number} [context] - Number of context lines in unified output
31
30
  * @property {boolean} [ignoreWhitespace=false] - Ignore whitespace differences
32
31
  * @property {boolean} [ignoreCase=false] - Ignore case differences
33
32
  * @property {boolean} [quiet=false] - Suppress output (exit code only)
34
33
  * @property {boolean} [brief=false] - Show only filenames
34
+ * @property {boolean} [debug=false] - Show optimization information
35
35
  */
36
36
 
37
37
  /**
@@ -194,11 +194,6 @@ async function diff(input1, input2, options = {}) {
194
194
  args.push('--array-id-key', options.arrayIdKey);
195
195
  }
196
196
 
197
- // Add optimize option
198
- if (options.optimize) {
199
- args.push('--optimize');
200
- }
201
-
202
197
  // Add context option
203
198
  if (options.context !== undefined) {
204
199
  args.push('--context', options.context.toString());
@@ -224,6 +219,11 @@ async function diff(input1, input2, options = {}) {
224
219
  args.push('--brief');
225
220
  }
226
221
 
222
+ // Add debug option
223
+ if (options.debug) {
224
+ args.push('--debug');
225
+ }
226
+
227
227
  const { stdout, stderr } = await executeDiffx(args);
228
228
 
229
229
  // If output format is JSON, parse the result
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "diffx-js",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "A Node.js wrapper for the diffx CLI tool - semantic diffing of JSON, YAML, TOML, XML, INI, and CSV files. Focuses on structural meaning rather than formatting.",
5
5
  "keywords": [
6
6
  "diff",