Skip to content

Commit d3717b0

Browse files
committed
chore: update CHANGELOG
1 parent 9b5cfdf commit d3717b0

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
## v0.0.45
2+
3+
[compare changes](https://github.com/iceywu/utils/compare/v0.0.44...v0.0.45)
4+
5+
### 🚀 Enhancements
6+
7+
- [destr] 增加destr方法用于解析JSON ([fc088bd](https://github.com/iceywu/utils/commit/fc088bd))
8+
9+
### 🩹 Fixes
10+
11+
- [toPro] 内部逻辑重构 ([7c0fe9e](https://github.com/iceywu/utils/commit/7c0fe9e))
12+
13+
### 🏡 Chore
14+
15+
- Update deps ([155b6e4](https://github.com/iceywu/utils/commit/155b6e4))
16+
17+
### ❤️ Contributors
18+
19+
- IceyWu ([@Life-Palette](http://github.com/Life-Palette))
20+
121
## v0.0.44
222

323
[compare changes](https://github.com/iceywu/utils/compare/v0.0.43...v0.0.44)

play/src/App.vue

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<button btn @click="download">文件下载</button>
1212
<button btn @click="removeEmptyValuesFunc">空值移除</button>
1313
<button btn @click="testTopro">toPro</button>
14+
<button btn @click="testFuncTT">test</button>
1415
</div>
1516
</div>
1617
</template>
@@ -22,7 +23,19 @@ import {
2223
toPro,
2324
to,
2425
downloadFile,
26+
destr,
27+
safeDestr,
28+
customDestr,
2529
} from "../../src";
30+
const testFuncTT = () => {
31+
const testVal = "[foo";
32+
console.log(
33+
"🐳-------------destr----------------->",
34+
customDestr(testVal, { customVal: "default" })
35+
// customDestr(testVal)
36+
);
37+
console.log("🐳-------------destr----------------->", JSON.parse(testVal));
38+
};
2639
2740
onMounted(() => {
2841
consolePlus.log("warning", "test");

0 commit comments

Comments
 (0)