Commit fa7d006
committed
Prepare for the release of the CLJC deep-diff2
Move namespaces to use a "2" suffix, we have breaking changes and we don't want
to break existing consumers. We will bundle both namespaces with and without the
suffix in the released artifact.
Move the printer and diff namespaces to printer-impl and diff-impl, for two
reasons. This way we can keep the same top level API at
least (lambdaisland.deep-diff2/printer, lambdaisland.deep-diff2/diff), since in
ClojureScript names of functions and namespaces are not allowed to overlap.
The second reason is that the -impl suffix signals that these are internal and
basically have to be treated as private. This allows us to make the functions in
there to be public, which makes it possible to unit test them. Before we used
alter-meta! to make them public at the start of the test, but this only works in
Clojure.
Inline Puget, we've made extensive changes to make this work, which we don't
expect to go upstream, so we should not release these under puget.* namespaces.
Make Puget dispatch based on value rather than type for both Clojure and
ClojureScript. Clean up and further unify the print handlers for
platform-specific types.
Contains a fix to the round-trip generative test, since ##NaN (on js/cljs) can
not be compared for equality it leads to false negatives.1 parent 6ddbc50 commit fa7d006
File tree
12 files changed
+1292
-262
lines changed- src/lambdaisland
- deep_diff2
- puget
- color
- deep_diff
- test/lambdaisland/deep_diff2
12 files changed
+1292
-262
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
9 | 5 | | |
10 | | - | |
11 | | - | |
| 6 | + | |
12 | 7 | | |
13 | 8 | | |
14 | 9 | | |
| |||
This file was deleted.
Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
| 42 | + | |
| 43 | + | |
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
138 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
139 | 143 | | |
140 | 144 | | |
141 | 145 | | |
| |||
0 commit comments