json-diff-ts 4.0.3-preview → 4.1.0

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/README.md +2 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -61,7 +61,7 @@ const newData = {
61
61
  weapons: ['Lightsaber', 'Blaster', 'Bowcaster']
62
62
  };
63
63
 
64
- const diffs = diff(oldData, newData, { characters: 'id' });
64
+ const diffs = diff(oldData, newData, { embeddedObjKeys: { characters: 'id' } });
65
65
 
66
66
  const expectedDiffs = [
67
67
  {
@@ -273,6 +273,7 @@ Reach out to the maintainer via LinkedIn or Twitter:
273
273
  Discover more about the company behind this project: [hololux](https://hololux.com)
274
274
 
275
275
  ## Release Notes
276
+
276
277
  - **v4.0.0:** Change naming of flattenChangest and unflattenChanges to atomizeChangeset and unatomizeChangeset; option to set treatTypeChangeAsReplace
277
278
  - **v3.0.1:** Fix issue with unflattenChanges when a key has periods
278
279
  - **v3.0.0:** Supports CommonJS and ECMAScript Modules. Dependency to lodash-es was replaced with lodash to support both ECMAScript and CommonJS.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "json-diff-ts",
3
- "version": "4.0.3-preview",
3
+ "version": "4.1.0",
4
4
  "description": "A JSON diff tool for JavaScript written in TypeScript.",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",