Skip to content

Commit 27202e5

Browse files
committed
docs(readme): readme
readme
1 parent dd43791 commit 27202e5

File tree

7 files changed

+66
-12
lines changed

7 files changed

+66
-12
lines changed

Readme.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@
4040
<version>${version}</version>
4141
</dependency>
4242
```
43-
[版本查看](https://central.sonatype.com/artifact/cn.xiaoandcai/json-diff/3.0.0-RC1-RELEASE/versions)
44-
2022-04-19 最新版本:3.1.1-RC1-RELEASE
43+
[版本查看](./VersionHistory.md)
44+
2022-04-19 最新版本:3.1.2-RC1-RELEASE
45+
4546

4647
```java
4748
/**
@@ -94,7 +95,6 @@ public class UseExample {
9495
| mapping | Map<String, String> | 将真实字段映射到期望字段,key是真实字段name,value是期望的字段name |
9596
| ignorePath | Set\<String\> | 当对比的路径完全匹配时会被跳过。遇到数组使用 `[]` 即可。无需填入下标 |
9697
| ignoreKey | Set\<String\> | 对比object时。或忽略该key。对整个json生效 |
97-
| customComparator | Map<String, Class\<JsonNeat\>> | 用户自定义比较器。具体说明见下文 |
9898

9999
> `2.0.1-RC1-RELEASE` 之后版本中移除了 `keyFunction` 配置参数。可以使用 `ignorePath` 来代替达到同样的效果。
100100
@@ -184,7 +184,9 @@ ignoreKey.add("high");
184184
它配置的key是一个 travelPath 。具体格式参照 ignorePath 。value 则是一个自定义比较器。对于自定义比较器需要继承对应的抽象类。并且实现具体的抽象接口。具体如下:
185185

186186
> 从 3.1.1-RC1-RELEASE 版本开始,自定义比较器的设置移至 JsonDiffOption.getJsonNeatFactory()
187-
> 不再在原先的Option中设置
187+
> 不再在原先的Option中设置。如果需要使用自定义比较器。请使用 JsonDiffOption.getJsonNeatFactory().addCustomComparator() 进行设置。
188+
189+
```java
188190

189191
对象比较:
190192

VersionHistory.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# 版本列表 📃
2+
3+
## 3.X 🌟
4+
5+
- **3.1.2-RC1-RELEASE**
6+
- 修复数组比较数组越界问题
7+
8+
9+
- **3.1.1-RC1-RELEASE**
10+
- 支持自定义比较器添加附加数据
11+
- 支持替换默认比较器
12+
- 更改自定义比较器设置入口为 JsonDiffOption.getJsonNeatFactory()
13+
14+
15+
- **3.0.3-RC1-RELEASE**
16+
- 修复自定义比较器接口范围
17+
- 修复数组对比过程不支持比较长度不相等数组
18+
- 修复mapping映射
19+
- 丰富测试用例
20+
21+
22+
- **3.0.0-RC1-RELEASE**
23+
- 支持自定义比较器
24+
- 支持全局配置
25+
26+
27+
## 2.X 🌟
28+
29+
- **2.0.3-RC1-RELEASE**
30+
- 解决ignorePath无效
31+
- 解决配置清理问题
32+
- 解决大数类型数据
33+
- 支持更详细的路径展示
34+
- 修复对象无法发现多个差异
35+
36+
37+
- **2.0.2-RC1-RELEASE**
38+
- 摒弃1.x 版本代码,将代码完全重构
39+
- 返回信息描述添加统一清洗
40+
- fastjson版本更新到 2.0.7
41+
42+
43+
## 1.X 🌟
44+
45+
- **1.2.0**
46+
- 补充单测
47+
- 代码优化
48+
- 支持不同数组元素是不同类型的比较
49+
50+
51+
- **1.0.0**
52+
- 基本功能支持

json-diff-common/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
<parent>
66
<artifactId>json-diff-parent</artifactId>
77
<groupId>cn.xiaoandcai</groupId>
8-
<version>3.1.1-RC1-RELEASE</version>
8+
<version>3.1.2-RC1-RELEASE</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

1212
<artifactId>json-diff-common</artifactId>
13-
<version>3.1.1-RC1-RELEASE</version>
13+
<version>3.1.2-RC1-RELEASE</version>
1414

1515
<properties>
1616
<maven.compiler.source>8</maven.compiler.source>

json-diff-core/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
<parent>
66
<artifactId>json-diff-parent</artifactId>
77
<groupId>cn.xiaoandcai</groupId>
8-
<version>3.1.1-RC1-RELEASE</version>
8+
<version>3.1.2-RC1-RELEASE</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

1212
<artifactId>json-diff-core</artifactId>
13-
<version>3.1.1-RC1-RELEASE</version>
13+
<version>3.1.2-RC1-RELEASE</version>
1414

1515
<dependencies>
1616
<dependency>

json-diff-test/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
<parent>
66
<artifactId>json-diff-parent</artifactId>
77
<groupId>cn.xiaoandcai</groupId>
8-
<version>3.1.1-RC1-RELEASE</version>
8+
<version>3.1.2-RC1-RELEASE</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

1212
<artifactId>json-diff-test</artifactId>
13-
<version>3.1.1-RC1-RELEASE</version>
13+
<version>3.1.2-RC1-RELEASE</version>
1414

1515
<properties>
1616
<maven.compiler.source>8</maven.compiler.source>

json-diff/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>json-diff-parent</artifactId>
77
<groupId>cn.xiaoandcai</groupId>
8-
<version>3.1.1-RC1-RELEASE</version>
8+
<version>3.1.2-RC1-RELEASE</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<groupId>cn.xiaoandcai</groupId>
88
<artifactId>json-diff-parent</artifactId>
99
<!-- mvn clean deploy - -settings /Users/weidian/.m2/settings-out.xml -->
10-
<version>3.1.1-RC1-RELEASE</version>
10+
<version>3.1.2-RC1-RELEASE</version>
1111
<name>JsonDiff</name>
1212
<url>https://gitee.com/local-li/json-diff</url>
1313
<description>一款高性能的Json差异发现工具</description>

0 commit comments

Comments
 (0)