UNPKG

@dtinsight/dt-utils

Version:

袋鼠云前端常用工具库

224 lines (119 loc) 12.8 kB
# Changelog All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. ## [2.0.0](https://github.com/DTStack/dt-utils/compare/v1.5.0...v2.0.0) (2026-01-29) ### Features * **dt-utils:** refactor the dt-utils ([#105](https://github.com/DTStack/dt-utils/issues/105)) ([c96bb7c](https://github.com/DTStack/dt-utils/commit/c96bb7c62a4b4effadfad0ba9d6cb113e083a88d)) * update cache actions/checkout's version ([cdac32a](https://github.com/DTStack/dt-utils/commit/cdac32a61744aabfb169a7741e236c40e475f5f0)) ### Bug Fixes * [#100](https://github.com/DTStack/dt-utils/issues/100) await IndexedDB open ([b1c6fc6](https://github.com/DTStack/dt-utils/commit/b1c6fc6d4a8bf9036d2033505868ae87ef895ffa)) ## [1.5.0](https://github.com/DTStack/dt-utils/compare/v1.4.0...v1.5.0) (2023-11-20) ### Features * **downloaddata:** add headers for fetch in downLoadData ([#98](https://github.com/DTStack/dt-utils/issues/98)) ([81a7f67](https://github.com/DTStack/dt-utils/commit/81a7f6781685ef4106c88d06630851071d48ff8b)), closes [#97](https://github.com/DTStack/dt-utils/issues/97) ### Bug Fixes * **downloaddata:** add headers for fetch in downLoadData ([#98](https://github.com/DTStack/dt-utils/issues/98)) ([416cfe6](https://github.com/DTStack/dt-utils/commit/416cfe606a07e328a9d4e7a26f01c04bd61b4ac1)), closes [#97](https://github.com/DTStack/dt-utils/issues/97) ## [1.4.0](https://github.com/DTStack/dt-utils/compare/v1.3.0...v1.4.0) (2023-11-16) ### Features * **utils:** add getUrlPathname and getUrlQueryParams for router ([#88](https://github.com/DTStack/dt-utils/issues/88)) ([78b243d](https://github.com/DTStack/dt-utils/commit/78b243d7cc22c0dac5af6e9105a0a1470ff5db55)) ### Bug Fixes * [#90](https://github.com/DTStack/dt-utils/issues/90) optimize getParameterByName's return ([#91](https://github.com/DTStack/dt-utils/issues/91)) ([1158b6b](https://github.com/DTStack/dt-utils/commit/1158b6b66075772bc60ef619ab989db6e7799ca7)) * [#92](https://github.com/DTStack/dt-utils/issues/92) optimize getQueryParameters's return ([#93](https://github.com/DTStack/dt-utils/issues/93)) ([fb6b482](https://github.com/DTStack/dt-utils/commit/fb6b482223a2f54c3274d907aee8cba24945878e)) * [#95](https://github.com/DTStack/dt-utils/issues/95) sideEffects should be boolean false ([#96](https://github.com/DTStack/dt-utils/issues/96)) ([b87e664](https://github.com/DTStack/dt-utils/commit/b87e6643e974d2cda74372fc66e70b831896e1ba)) * add DOM.Iterable lib in tsconfig ([#94](https://github.com/DTStack/dt-utils/issues/94)) ([ea98f18](https://github.com/DTStack/dt-utils/commit/ea98f189187b4111ee43c795ed39fcbbab32b7b9)) ## [1.3.0](https://github.com/DTStack/dt-utils/compare/v1.2.0...v1.3.0) (2023-09-15) ### Features * allow cookiesStr params for getCookie ([#86](https://github.com/DTStack/dt-utils/issues/86)) ([7b3e6ae](https://github.com/DTStack/dt-utils/commit/7b3e6aea4494e8f257a162679d18ba3165573c0c)) ## [1.2.0](https://github.com/DTStack/dt-utils/compare/v1.1.0...v1.2.0) (2023-08-24) ### Features * [#64](https://github.com/DTStack/dt-utils/issues/64) localDB add remove function ([d4c80bb](https://github.com/DTStack/dt-utils/commit/d4c80bb06a32569b84554e852018a4b178ff2526)) * getThousandth get '' return '0' ([bde6994](https://github.com/DTStack/dt-utils/commit/bde69946b4a0181b07e9204d197df98b45117175)) ### Bug Fixes * [#82](https://github.com/DTStack/dt-utils/issues/82) optimize localStorage's get and set function ([53d8978](https://github.com/DTStack/dt-utils/commit/53d8978d136f5ae80366f998c7922c546747caa9)) * **#80:** example Change the edge matching rule of the browser to edg ([5808bc0](https://github.com/DTStack/dt-utils/commit/5808bc05f948da9a18291346dcd8e92d01186844)), closes [#80](https://github.com/DTStack/dt-utils/issues/80) * cookie ts type completion ([09c0196](https://github.com/DTStack/dt-utils/commit/09c019668c8bfec2a58d142c06aeb3f829924987)) * fix cant download json ([a4fb84e](https://github.com/DTStack/dt-utils/commit/a4fb84e34690c02c09080b251888787ede4f6d5e)) ### [1.1.2](https://github.com/DTStack/dt-utils/compare/v1.1.0...v1.1.2) (2022-08-16) ### Features * [#64](https://github.com/DTStack/dt-utils/issues/64) localDB add remove function ([d4c80bb](https://github.com/DTStack/dt-utils/commit/d4c80bb06a32569b84554e852018a4b178ff2526)) * getThousandth get '' return '0' ([bde6994](https://github.com/DTStack/dt-utils/commit/bde69946b4a0181b07e9204d197df98b45117175)) ### Bug Fixes * fix cant download json ([a4fb84e](https://github.com/DTStack/dt-utils/commit/a4fb84e34690c02c09080b251888787ede4f6d5e)) ### [1.1.1](https://github.com/DTStack/dt-utils/compare/v1.1.0...v1.1.1) (2022-02-22) ### Bug Fixes * fix cant download json ([a4fb84e](https://github.com/DTStack/dt-utils/commit/a4fb84e34690c02c09080b251888787ede4f6d5e)) ## [1.1.0](https://github.com/DTStack/dt-utils/compare/v1.0.9...v1.1.0) (2021-12-09) ### Features * add three Base64 related methods ([afbe638](https://github.com/DTStack/dt-utils/commit/afbe6386f701a39ef388044c758a929e3f3559af)) ### Bug Fixes * return '0' when num is null or undefined ([421aaf1](https://github.com/DTStack/dt-utils/commit/421aaf12a27be7f8160019beb35edf60530cffa9)) ### [1.0.9](https://github.com/DTStack/dt-utils/compare/v1.0.8...v1.0.9) (2021-11-25) ### Features * add getThousandth to utils ([a79e797](https://github.com/DTStack/dt-utils/commit/a79e79755f944e5df7d0d7b61ac64803cd169725)) ### [1.0.8](https://github.com/DTStack/dt-utils/compare/v1.0.7...v1.0.8) (2021-10-26) ### Features * add getAllCookies ([889e1ec](https://github.com/DTStack/dt-utils/commit/889e1ec9272d206c046f9dd58ef7ee46bb5e3289)) ### [1.0.7](https://github.com/DTStack/dt-utils/compare/v1.0.6...v1.0.7) (2021-10-25) ### Features * add download data ([c376a00](https://github.com/DTStack/dt-utils/commit/c376a00eb571006fc3949b47f09d237ab39c08b1)) * add judge status ([228c3ec](https://github.com/DTStack/dt-utils/commit/228c3ec4d371b42849218d6796b7701668b34995)) * add return ([29f3c2a](https://github.com/DTStack/dt-utils/commit/29f3c2a55e8c8452bc4ba5428ac0518e779dfb15)) * update info and ts ([75efdfc](https://github.com/DTStack/dt-utils/commit/75efdfcc4dcca74e13aa5562d78f6f76ec8b8009)) * update let to const ([854d1f0](https://github.com/DTStack/dt-utils/commit/854d1f080213b489769077b36617567499197b7f)) * update lint ([3f9dcc5](https://github.com/DTStack/dt-utils/commit/3f9dcc5d64bccb360882b8ed306498e3e632873a)) ### [1.0.6](https://github.com/DTStack/dt-utils/compare/v1.0.5...v1.0.6) (2021-09-27) ### Features * change log and contribution guide ([b42740d](https://github.com/DTStack/dt-utils/commit/b42740d48db1460356debba41348f05cb79095b5)) * remove path root changelog ([65ce7ac](https://github.com/DTStack/dt-utils/commit/65ce7ac69831cc73bad40279ef2a45f98d8e5be4)) ## [1.0.5](https://github.com/DTStack/dt-utils/compare/v1.0.4...v1.0.5) (2021-09-18) ### Bug Fixes * eslint ([6a78ddd](https://github.com/DTStack/dt-utils/commit/6a78ddd4ecbe4704596844e02de803187f2e5ee4)) * replace this ([a99d283](https://github.com/DTStack/dt-utils/commit/a99d283433e1030853d62f1ed1061d2b5f99d32c)) * test lint config ([5cd30ca](https://github.com/DTStack/dt-utils/commit/5cd30ca4c031d0b1417ffad701a262b79ec30ea8)) ### Features * add mergeObj fn ([af13b81](https://github.com/DTStack/dt-utils/commit/af13b8190173a12059bb384faa3c60aebc224612)) * change trim, delete trimlr, add trimAll ([6792dd3](https://github.com/DTStack/dt-utils/commit/6792dd39f98d9e6c61d87b0461c83dcb8677cfeb)) * delete removeAllSpaces, please use trimAll ([bcbfdf8](https://github.com/DTStack/dt-utils/commit/bcbfdf8059046f258b390e1bcc3331f3741c8e85)) ## [1.0.4](https://github.com/DTStack/dt-utils/compare/v1.0.3...v1.0.4) (2021-09-10) ### Bug Fixes * export CopyUtils and sort export by document ([95f684b](https://github.com/DTStack/dt-utils/commit/95f684b9ee07597d56eafc11a157ff353461c9b9)) ### Features * add a time formatting method file ([65c2356](https://github.com/DTStack/dt-utils/commit/65c2356789ed70991d2c295b685c2967f59752e1)) * add formatSecond method ([eab731c](https://github.com/DTStack/dt-utils/commit/eab731c6a499c1ad54b2e75d99fc7b4a17129a0e)) * add isEmpty methods ([2baed54](https://github.com/DTStack/dt-utils/commit/2baed54ddf5e992e183f6bf828e7e389b9cebb19)) * add isObj methods ([02dc937](https://github.com/DTStack/dt-utils/commit/02dc9379e7437418f18a41637c6798ce067163d8)) * add removeEmpty doc ([7bcf98f](https://github.com/DTStack/dt-utils/commit/7bcf98f53f181b7f3a1d03b92b519650a4750cdf)) * add removeEmpty methods ([8c0c56f](https://github.com/DTStack/dt-utils/commit/8c0c56f9ab4a4924a287fc947f871197c4c8a604)) * add removeEmpty unit test ([1b8f1cc](https://github.com/DTStack/dt-utils/commit/1b8f1ccb0b7f0d01042af3d8a5ca01e9380aa498)) * add transformArray methods ([25d616b](https://github.com/DTStack/dt-utils/commit/25d616b96e4e77b6f03f3ba8467e6b761c585a4f)) * add transformArray ts ([808f574](https://github.com/DTStack/dt-utils/commit/808f5745c96096472afd439cb094ccb5525c7d87)) * release sh ([af1a323](https://github.com/DTStack/dt-utils/commit/af1a3238c3dc50b5ed3fb7ee2a0c570d9317d958)) * transformArray define generic parameters ([3a8641c](https://github.com/DTStack/dt-utils/commit/3a8641c8647d8bcdf6f69834b73f513b98ce5723)) * update cookie methods ([062d17c](https://github.com/DTStack/dt-utils/commit/062d17c2d14d77e8af38067c7d7c34a372960310)) ## [1.0.3](https://github.com/DTStack/dt-utils/compare/v1.0.2...v1.0.3) (2021-04-06) ### Features * **utils:** add utils and modify docs ([7b951b2](https://github.com/DTStack/dt-utils/commit/7b951b2c87f7e4a2edac7c0da3ddd0ec46bdc0c6)) * **utils:** modify the document directory ([494c2e8](https://github.com/DTStack/dt-utils/commit/494c2e876cfd5dcd16e31dff4147a736213ea054)) ## [1.0.2](https://github.com/DTStack/dt-utils/compare/v1.0.1...v1.0.2) (2021-04-01) ## [1.0.1](https://github.com/DTStack/dt-utils/compare/v1.0.0...v1.0.1) (2021-01-20) ### Features * **docs:** 补充介绍文档 ([3b2ba81](https://github.com/DTStack/dt-utils/commit/3b2ba81ec99969fcc3fa9062d2efebdc1a087a14)) * **package:** update package dev dependencies ([3cf5655](https://github.com/DTStack/dt-utils/commit/3cf56550b07b69a84ee4409b55a225f1ba9b724f)) * **publish:** update name ([a12a55e](https://github.com/DTStack/dt-utils/commit/a12a55ebba599e8d3f6c7d7c308e4d3ed9e5d518)) * **test:** add test for utils ([931244c](https://github.com/DTStack/dt-utils/commit/931244cb458134d9e0aa843c06a1ceb29fb87686)) # [1.0.0](https://github.com/DTStack/dt-utils/compare/c243c4577b82636456478c63941477fcb693041b...v1.0.0) (2020-07-20) ### Features * add to complete ([1b438f8](https://github.com/DTStack/dt-utils/commit/1b438f8d7d7c8366ac1572dc63d4401bf14d8d8e)) * **change:** 更新同步changelog ([a88614c](https://github.com/DTStack/dt-utils/commit/a88614c6a20d52dd1750fc0599d1c33aa1ed40a3)) * **clip:** 组合发布包 ([bed32df](https://github.com/DTStack/dt-utils/commit/bed32df4f308b5c7d0eced97c5f5903c3ca2aaf5)) * **commit:** 优化commit规范 ([c243c45](https://github.com/DTStack/dt-utils/commit/c243c4577b82636456478c63941477fcb693041b)) * **docs:** 修改docs changelog ([b51c2ea](https://github.com/DTStack/dt-utils/commit/b51c2ea538edea15388d9b23147b123dc2d2d258)) * **docs:** 测试文件名修改 ([becdb58](https://github.com/DTStack/dt-utils/commit/becdb58820f30b937c20c9a7a339ae2a2a673005)) * **docs:** 添加提交校验 ([1f1aeac](https://github.com/DTStack/dt-utils/commit/1f1aeac4ea325c0f9ad814f75e697dc1489c156b)) * **docs:** 补充utils文档说明 ([68fed39](https://github.com/DTStack/dt-utils/commit/68fed39ea2897398503023f3b4d3bd21c18dd127)) * **docs:** 调整文档目录结构 ([f53f5d2](https://github.com/DTStack/dt-utils/commit/f53f5d2d24491acba58ef6af977dae31a4866f26)) * **doc:** 调整目录 ([1017768](https://github.com/DTStack/dt-utils/commit/1017768c860b61e44945d4c87e98f4fb3fc13df9)) * **layout:** update layout api and docs ([bc07cfc](https://github.com/DTStack/dt-utils/commit/bc07cfcd3704443cbd6d1564f1dabefe0627b8b8)) * modify the document ([1118f2e](https://github.com/DTStack/dt-utils/commit/1118f2ee7f5c70bf7f2fd49594711be7b93bc709)) * **package:** update package.json for init ([6e95646](https://github.com/DTStack/dt-utils/commit/6e9564697e6617bc67c1132cc70415a10df8c173)) * **test:** add test utils for jest ([e950d12](https://github.com/DTStack/dt-utils/commit/e950d127330cb3b2ce6a00154b05324558e23b70)) * **优化:** 优化文档目录调整结构 ([548f338](https://github.com/DTStack/dt-utils/commit/548f338e80e910aa249de0e9b3a18d35096a3db2)) * **补充文档:** 添加工具函数文档说明 ([10c95ef](https://github.com/DTStack/dt-utils/commit/10c95efb2a73bed3d83b28312d69ca9aa6b77bbd))