You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-8Lines changed: 7 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,14 @@
2
2
3
3
Compare changes between two datasets.
4
4
5
-
## Packages
5
+
####Packages
6
6
7
-
This repository is a monorepo managed with [Lerna](https://github.com/lerna/lerna). We actually publish [several packages](https://github.com/gilbarbara/tree-changes/blob/master/packages) to npm from the same codebase, including:
|[tree-changes](packages/tree-changes)|[](https://www.npmjs.com/package/tree-changes)| Compare changes between two datasets |
12
-
|[tree-changes-hook](packages/tree-changes-hook)|[](https://www.npmjs.com/package/tree-changes-hook)| React hook for tree-changes |
|[tree-changes](packages/tree-changes)|[](https://www.npmjs.com/package/tree-changes)| Compare changes between two datasets |
10
+
|[tree-changes-hook](packages/tree-changes-hook)|[](https://www.npmjs.com/package/tree-changes-hook)| React hook for tree-changes |
13
11
14
12
## Changes
15
13
16
-
Detailed release notes for a given version can be found in the [releases page](https://github.com/gilbarbara/tree-changes/releases).
14
+
Detailed release notes for a given version can be found on the [releases page](https://github.com/gilbarbara/tree-changes/releases).
Copy file name to clipboardExpand all lines: packages/tree-changes/README.md
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,6 @@
4
4
5
5
Compare changes between two datasets.
6
6
7
-
> The React hook introduced in v0.6 now has its own package: [tree-changes-hook](https://github.com/gilbarbara/tree-changes/tree/master/packages/tree-changes-hook).
8
-
9
7
## Setup
10
8
11
9
```bash
@@ -14,7 +12,7 @@ npm install tree-changes
14
12
15
13
## Usage
16
14
17
-
```typescript
15
+
```ts
18
16
importtreeChangesfrom'tree-changes';
19
17
20
18
const previousData = {
@@ -64,7 +62,7 @@ changed(1); // true
64
62
changed('1.id', 4); // true
65
63
```
66
64
67
-
> It uses [@gilbarbara/deep-equal](https://github.com/gilbarbara/deep-equal) to compare properties.
65
+
> This library uses [@gilbarbara/deep-equal](https://github.com/gilbarbara/deep-equal) to compare properties.
0 commit comments