@planjs/utils
Version:
🔧 Common tools collection
558 lines (260 loc) • 18.3 kB
Markdown
# 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.
### 1.18.4 (2023-07-06)
### Bug Fixes
* **delay:** resolve value ([2af4076](https://github.com/planjs/utils/commit/2af4076eaf8acf5cb2832b3d4f2b350238185182))
### 1.18.3 (2023-07-05)
### 1.18.2 (2023-06-08)
### Bug Fixes
* async-pool isPriority semantic problem ([85c8586](https://github.com/planjs/utils/commit/85c8586b8448d9d4256ca82e00ffbbf12e670041))
### 1.18.1 (2023-01-17)
### Bug Fixes
* **hexColorToRgba:** opacity support string number ([be29e01](https://github.com/planjs/utils/commit/be29e01d2885cc60218e65db8dad025e43f5aaca))
## 1.18.0 (2022-10-19)
### Features
* **strip-html-tags:** add deleted param ([7045a07](https://github.com/planjs/utils/commit/7045a077b15a8ab04a77c30e7d9da7daaaf6ea16))
### 1.17.1 (2022-10-11)
## 1.17.0 (2022-09-01)
### Features
* add string utils ([0555b23](https://github.com/planjs/utils/commit/0555b23ece559513e6a6374db7cc56e96426abf6))
## 1.16.0 (2022-08-22)
### Features
* add utils ([6a40ded](https://github.com/planjs/utils/commit/6a40ded210a6827fb2224179bf1e7c6b6bce816b))
### 1.15.15 (2022-08-12)
### Bug Fixes
* compose types ([819e6b0](https://github.com/planjs/utils/commit/819e6b09994bba513f80cba97556e66bc4de9299))
### 1.15.14 (2022-08-12)
### 1.15.13 (2022-08-05)
### 1.15.12 (2022-07-26)
### Bug Fixes
* debug error ([864b3e1](https://github.com/planjs/utils/commit/864b3e1f6258c2efadd7044680b3cc8fa223d5a8))
### 1.15.11 (2022-07-10)
### Bug Fixes
* global iife ([c7c4558](https://github.com/planjs/utils/commit/c7c455888dcfe173a1d944131c71357b59bc3f8f))
### 1.15.10 (2022-07-10)
### Bug Fixes
* next-tick iife ([218cc8c](https://github.com/planjs/utils/commit/218cc8c9af49bab1bfbd73d6dae1e791b4f81787))
### 1.15.9 (2022-07-04)
### Bug Fixes
* ssr queueMicrotask error ([076a628](https://github.com/planjs/utils/commit/076a628a1e6183176e6634c54b545d67b3711724))
### 1.15.8 (2022-07-04)
### 1.15.7 (2022-06-26)
### 1.15.6 (2022-04-02)
### 1.15.5 (2022-03-21)
### 1.15.4 (2022-03-19)
### Bug Fixes
* **memoize:** add jest ([30a4810](https://github.com/planjs/utils/commit/30a4810a93ed04b2b0112efd98d8b4ad89a141a8))
### 1.15.3 (2022-03-17)
### Bug Fixes
* **memoize:** 主动清理过期数据 ([67438fe](https://github.com/planjs/utils/commit/67438fe9b5c5488f7f12c3d8d34df0b555c5a6ec))
### 1.15.2 (2022-03-10)
### 1.15.1 (2022-03-10)
## 1.15.0 (2022-02-26)
### Features
* add fn ([3220c29](https://github.com/planjs/utils/commit/3220c292457f5e63a2224d2d3d03fcc5ea6fc57a))
## 1.14.0 (2022-02-14)
### Features
* **timeout-map:** cleanup priority ([8d1221f](https://github.com/planjs/utils/commit/8d1221fcbb8f107e2af85c92b018978c3b53b9bc))
### 1.13.2 (2022-01-23)
### Bug Fixes
* typings ([9e1902e](https://github.com/planjs/utils/commit/9e1902e83ffa961fb70b59c0891c61a34cdbf9c0))
### 1.13.1 (2021-12-28)
## 1.13.0 (2021-10-23)
### Features
* add equal ([61ca0b3](https://github.com/planjs/utils/commit/61ca0b33e602fe75d0f9d542e8a82424bce02b1c))
## 1.12.0 (2021-10-07)
### Features
* add structural-clone ([36ff566](https://github.com/planjs/utils/commit/36ff5665b4836b0c1750d6f73e5467641760cc1b))
### 1.11.7 (2021-09-26)
### 1.11.6 (2021-09-26)
### Bug Fixes
* publish github ([bd5ed69](https://github.com/planjs/utils/commit/bd5ed69e13bf9a71a5c5d72b136f3015782c614e))
### 1.11.5 (2021-09-17)
### 1.11.4 (2021-09-12)
### Bug Fixes
* deps audit ([b75243a](https://github.com/planjs/utils/commit/b75243a0113787d431f98a4e85cdc9f98ef46424))
### 1.11.3 (2021-09-07)
### 1.11.2 (2021-09-07)
### 1.11.1 (2021-09-07)
## 1.11.0 (2021-09-06)
### Features
* **object:** toObjectArray add cbfn ([b77d790](https://github.com/planjs/utils/commit/b77d790ff81b413b342cc82b21589577c268dcea))
## 1.10.0 (2021-09-04)
### Features
* add object utils ([7da6d2a](https://github.com/planjs/utils/commit/7da6d2a2e76f3db4cfb3da6ec2e908cf3080a176))
### 1.9.3 (2021-08-17)
### Bug Fixes
* **eventcenter:** add global var ([8207916](https://github.com/planjs/utils/commit/820791610f6b26360aaf56d46d53c76e0ac48d44))
### 1.9.2 (2021-08-04)
### Bug Fixes
* **bom:** setCookie date input ([fe1a8ff](https://github.com/planjs/utils/commit/fe1a8ff78ce1a4e43ab2f78fecf8cbd408398fab))
### 1.9.1 (2021-08-02)
## 1.9.0 (2021-07-27)
### Features
* **string:** add format export ([4469ad4](https://github.com/planjs/utils/commit/4469ad4d36d1e79af8faa110d227960a5516d0a1))
### 1.8.4 (2021-07-05)
### Bug Fixes
* **retry:** error ([aca7c75](https://github.com/planjs/utils/commit/aca7c75fac6ea1894737f11780b5db8213de3f7f))
### 1.8.3 (2021-06-25)
### 1.8.2 (2021-06-25)
## [1.8.0](https://github.com/planjs/utils/compare/stable-1.7.3...stable-1.8.0) (2021-06-22)
### Features
* add fn ([0221232](https://github.com/planjs/utils/commit/0221232d0b36a8840387197aea74e83e9f441f78))
* done ([e44aaea](https://github.com/planjs/utils/commit/e44aaea7a9a76d081fb1f4432fdb19fb462a899b))
### [1.7.3](https://github.com/planjs/utils/compare/stable-1.7.2...stable-1.7.3) (2021-06-17)
### [1.7.2](https://github.com/planjs/utils/compare/stable-1.7.1...stable-1.7.2) (2021-06-16)
### Bug Fixes
* **memoize:** return type ([3dc53b9](https://github.com/planjs/utils/commit/3dc53b950730b140524f5e483bf0791102422a77))
* **pref-setinterval:** cancel interval ([7620db6](https://github.com/planjs/utils/commit/7620db6b087ed633cb677c2d726a7a4dfd296272))
### [1.7.1](https://github.com/planjs/utils/compare/stable-1.7.0...stable-1.7.1) (2021-06-15)
### Bug Fixes
* **pref-setinterval:** clearPrefSetInterval ([10df8ca](https://github.com/planjs/utils/commit/10df8caa99259c2d8c35658ec959cb42cb1e31ff))
## [1.7.0](https://github.com/planjs/utils/compare/stable-1.6.1...stable-1.7.0) (2021-06-14)
### Features
* add debounce throttle ([9bf0135](https://github.com/planjs/utils/commit/9bf0135461cd83245fee21a968bbed3612a0f5be))
* add url reg ([02f0e0a](https://github.com/planjs/utils/commit/02f0e0ae7a7839a458ea158805c2ac3d05c16837))
* adjest debug ([940833d](https://github.com/planjs/utils/commit/940833def88d3fdff004a33fa3748e3d56b9f2c7))
* timeoutmap pref ([fa19fff](https://github.com/planjs/utils/commit/fa19fff3a220f00480e7c26ef7a9d47cd7b845c7))
* to-date ([f16b9fd](https://github.com/planjs/utils/commit/f16b9fda441e5436312b61310b77547a0265d31e))
### Bug Fixes
* **pref-settimeout:** cancel error ([2f136bb](https://github.com/planjs/utils/commit/2f136bbe58568f3752aff5b633e16d99b3dd9bc6))
### [1.6.1](https://github.com/planjs/utils/compare/stable-1.6.0...stable-1.6.1) (2021-06-07)
## [1.6.0](https://github.com/planjs/utils/compare/stable-1.5.1...stable-1.6.0) (2021-06-07)
### Features
* add some fn ([505d9cc](https://github.com/planjs/utils/commit/505d9ccd145c076611690a4d5c536e8eb1b94ca2))
### [1.5.1](https://github.com/planjs/utils/compare/stable-1.5.0...stable-1.5.1) (2021-05-15)
### Bug Fixes
* global ([6af4754](https://github.com/planjs/utils/commit/6af4754a882daafbf367b5b74529548a63dd6ea0))
## [1.5.0](https://github.com/planjs/utils/compare/stable-1.4.0...stable-1.5.0) (2021-05-15)
### Features
* add func ([0575387](https://github.com/planjs/utils/commit/0575387ca42473945dae202907495062a1d8a4bd))
* add p-try ([562b040](https://github.com/planjs/utils/commit/562b0408c4d998d6f30f5271a5eeacfd252c141b))
## [1.4.0](https://github.com/planjs/utils/compare/stable-1.3.5...stable-1.4.0) (2021-04-24)
### Features
* enhance ([75459f2](https://github.com/planjs/utils/commit/75459f2b4f87f69c32e454021d5924928adb0dd5))
* enhance some functions ([62a7d0e](https://github.com/planjs/utils/commit/62a7d0ea10724cca0a6be74f1b45da4220cbafad))
### [1.3.5](https://github.com/planjs/utils/compare/stable-1.3.4...stable-1.3.5) (2021-03-29)
### Bug Fixes
* ua judgment ([2793aae](https://github.com/planjs/utils/commit/2793aae85f77e614f6a8887f484fe89ef1adc4af))
### [1.3.4](https://github.com/planjs/utils/compare/stable-1.3.3...stable-1.3.4) (2021-03-23)
### Bug Fixes
* ts error ([8b47add](https://github.com/planjs/utils/commit/8b47addff6d2ee0ce05b8a307e3665a2e09d8a5d))
### [1.3.3](https://github.com/planjs/utils/compare/stable-1.3.2...stable-1.3.3) (2021-03-23)
### Bug Fixes
* timeoutmap warn ([8341679](https://github.com/planjs/utils/commit/834167917a641898aad67604ece1df8ff4f547b6))
### [1.3.2](https://github.com/planjs/utils/compare/stable-1.3.1...stable-1.3.2) (2021-03-23)
### Bug Fixes
* single-lock ([97faa65](https://github.com/planjs/utils/commit/97faa65ddb0b7c184b866b19adf7b703cde7ef81))
### [1.3.1](https://github.com/planjs/utils/compare/stable-1.3.0...stable-1.3.1) (2021-03-23)
## [1.3.0](https://github.com/planjs/utils/compare/stable-1.1.2...stable-1.3.0) (2021-03-23)
### Features
* **async-pool:** add length ([b3d206c](https://github.com/planjs/utils/commit/b3d206cf43126614677eb4f914d58cbae9ef9806))
* **timeoutmap:** add maxLeng ([ca7859d](https://github.com/planjs/utils/commit/ca7859d43792ceed2ac50450ecfb75230c24a4ae))
### Bug Fixes
* **timeoutmap:** some optimization ([7b50d3f](https://github.com/planjs/utils/commit/7b50d3f65e2c4f081b04ae200f02aa3c435e43dc))
## [1.2.0](https://github.com/planjs/utils/compare/stable-1.0.39...stable-1.2.0) (2021-03-22)
### Features
* **async-pool:** add length ([b3d206c](https://github.com/planjs/utils/commit/b3d206cf43126614677eb4f914d58cbae9ef9806))
* **timeoutmap:** add maxLeng ([ca7859d](https://github.com/planjs/utils/commit/ca7859d43792ceed2ac50450ecfb75230c24a4ae))
* add timeoutmap ([3b3b452](https://github.com/planjs/utils/commit/3b3b452d35b9d4f5b2a21a46ecb33337ede46593))
### Bug Fixes
* **timeoutmap:** expirationTime ([fe59c17](https://github.com/planjs/utils/commit/fe59c17d3e6964ab37ba2c6c0c171b1e5eded945))
* **timeoutmap:** performance optimization ([e5b67db](https://github.com/planjs/utils/commit/e5b67dbb39e00e028b053cd5ac3a8e683f52ee21))
### [1.1.2](https://github.com/planjs/utils/compare/stable-1.1.1...stable-1.1.2) (2021-03-17)
### Bug Fixes
* **timeoutmap:** expirationTime ([fe59c17](https://github.com/planjs/utils/commit/fe59c17d3e6964ab37ba2c6c0c171b1e5eded945))
### [1.1.1](https://github.com/planjs/utils/compare/stable-1.1.0...stable-1.1.1) (2021-03-16)
### Bug Fixes
* **timeoutmap:** performance optimization ([e5b67db](https://github.com/planjs/utils/commit/e5b67dbb39e00e028b053cd5ac3a8e683f52ee21))
## [1.1.0](https://github.com/planjs/utils/compare/stable-1.0.40...stable-1.1.0) (2021-03-10)
### Features
* add timeoutmap ([3b3b452](https://github.com/planjs/utils/commit/3b3b452d35b9d4f5b2a21a46ecb33337ede46593))
### [1.0.40](https://github.com/planjs/utils/compare/stable-1.0.37...stable-1.0.40) (2021-02-22)
### Bug Fixes
* xhr-upload ([b07db09](https://github.com/planjs/utils/commit/b07db09b6c5fcd689b08431db5f112b1073cf114))
### [1.0.39](https://github.com/planjs/utils/compare/stable-1.0.38...stable-1.0.39) (2021-02-18)
### Bug Fixes
* xhr-upload ([b07db09](https://github.com/planjs/utils/commit/b07db09b6c5fcd689b08431db5f112b1073cf114))
### [1.0.38](https://github.com/planjs/utils/compare/stable-1.0.22...stable-1.0.38) (2021-01-27)
### Bug Fixes
* add function ([2b063bd](https://github.com/planjs/utils/commit/2b063bdd94b8151398adcd53e799774c0ea31683))
* is-Number ([02e6bd7](https://github.com/planjs/utils/commit/02e6bd779f65b725902144186d4abcf132a9f213))
* is-Number & is-String ([b9d83b8](https://github.com/planjs/utils/commit/b9d83b807bfa9fa6d63727fe01b0f8ce19366a0b))
* is-Object typings ([15a99da](https://github.com/planjs/utils/commit/15a99da2363b64d40dc27fb3ec5e59ceaf736759))
* isDef remark ([f66a397](https://github.com/planjs/utils/commit/f66a397bf4704cb1101dabe83fae32b6e9780c0b))
* promise ([58d37c3](https://github.com/planjs/utils/commit/58d37c321e2f672ab2ff1893d8c87e665265ac74))
* typings ([a10466b](https://github.com/planjs/utils/commit/a10466b38664e423389809b777521b764aa28542))
* **bom:** xhr upload ([a7b2f74](https://github.com/planjs/utils/commit/a7b2f7443d004c39e690682ae9d1c58405e13623))
* **is:** number & string lowerCase ([1093fe5](https://github.com/planjs/utils/commit/1093fe5d0caf84e303ed1099ce7c0e4a1bf5bc1f))
* **xhr-uploader:** add abort event ([353702b](https://github.com/planjs/utils/commit/353702b8b8be6775fa87656212ed3c8b90a8aefe))
* **xhr-uploader:** rename abort event ([f894582](https://github.com/planjs/utils/commit/f894582d6f63fd90bd6f4b6f98c4751c4b65d30a))
### [1.0.37](https://github.com/planjs/utils/compare/stable-1.0.36...stable-1.0.37) (2021-01-18)
### Bug Fixes
* typings ([a10466b](https://github.com/planjs/utils/commit/a10466b38664e423389809b777521b764aa28542))
### [1.0.36](https://github.com/planjs/utils/compare/stable-1.0.35...stable-1.0.36) (2021-01-18)
### [1.0.35](https://github.com/planjs/utils/compare/stable-1.0.34...stable-1.0.35) (2021-01-13)
### Bug Fixes
* promise ([58d37c3](https://github.com/planjs/utils/commit/58d37c321e2f672ab2ff1893d8c87e665265ac74))
### [1.0.34](https://github.com/planjs/utils/compare/stable-1.0.33...stable-1.0.34) (2021-01-13)
### Bug Fixes
* isDef remark ([f66a397](https://github.com/planjs/utils/commit/f66a397bf4704cb1101dabe83fae32b6e9780c0b))
### [1.0.33](https://github.com/planjs/utils/compare/stable-1.0.32...stable-1.0.33) (2021-01-13)
### [1.0.32](https://github.com/planjs/utils/compare/stable-1.0.31...stable-1.0.32) (2021-01-12)
### Bug Fixes
* add function ([2b063bd](https://github.com/planjs/utils/commit/2b063bdd94b8151398adcd53e799774c0ea31683))
### [1.0.31](https://github.com/planjs/utils/compare/stable-1.0.30...stable-1.0.31) (2021-01-09)
### [1.0.30](https://github.com/planjs/utils/compare/stable-1.0.29...stable-1.0.30) (2021-01-06)
### Bug Fixes
* is-Number & is-String ([b9d83b8](https://github.com/planjs/utils/commit/b9d83b807bfa9fa6d63727fe01b0f8ce19366a0b))
* **is:** number & string lowerCase ([1093fe5](https://github.com/planjs/utils/commit/1093fe5d0caf84e303ed1099ce7c0e4a1bf5bc1f))
### [1.0.29](https://github.com/planjs/utils/compare/stable-1.0.28...stable-1.0.29) (2021-01-05)
### Bug Fixes
* **xhr-uploader:** add abort event ([353702b](https://github.com/planjs/utils/commit/353702b8b8be6775fa87656212ed3c8b90a8aefe))
* **xhr-uploader:** rename abort event ([f894582](https://github.com/planjs/utils/commit/f894582d6f63fd90bd6f4b6f98c4751c4b65d30a))
### [1.0.28](https://github.com/planjs/utils/compare/stable-1.0.27...stable-1.0.28) (2021-01-04)
### [1.0.27](https://github.com/planjs/utils/compare/stable-1.0.26...stable-1.0.27) (2021-01-04)
### Bug Fixes
* **bom:** xhr upload ([a7b2f74](https://github.com/planjs/utils/commit/a7b2f7443d004c39e690682ae9d1c58405e13623))
### [1.0.26](https://github.com/planjs/utils/compare/stable-1.0.25...stable-1.0.26) (2020-12-29)
### Bug Fixes
* is-Number ([02e6bd7](https://github.com/planjs/utils/commit/02e6bd779f65b725902144186d4abcf132a9f213))
### [1.0.25](https://github.com/planjs/utils/compare/stable-1.0.24...stable-1.0.25) (2020-12-28)
### Bug Fixes
* is-Object typings ([15a99da](https://github.com/planjs/utils/commit/15a99da2363b64d40dc27fb3ec5e59ceaf736759))
### [1.0.24](https://github.com/planjs/utils/compare/stable-1.0.23...stable-1.0.24) (2020-12-28)
### [1.0.23](https://github.com/planjs/utils/compare/stable-1.0.20...stable-1.0.23) (2020-12-28)
### [1.0.22](https://github.com/planjs/utils/compare/stable-1.0.21...stable-1.0.22) (2020-12-27)
### [1.0.21](https://github.com/planjs/utils/compare/stable-1.0.20...stable-1.0.21) (2020-12-27)
### [1.0.20](https://github.com/planjs/utils/compare/stable-1.0.19...stable-1.0.20) (2020-12-27)
### [1.0.19](https://github.com/planjs/utils/compare/stable-1.0.18...stable-1.0.19) (2020-12-10)
### [1.0.18](https://github.com/planjs/utils/compare/stable-1.0.11...stable-1.0.18) (2020-12-10)
### [1.0.17](https://github.com/planjs/utils/compare/stable-1.0.16...stable-1.0.17) (2020-12-09)
### [1.0.16](https://github.com/planjs/utils/compare/stable-1.0.15...stable-1.0.16) (2020-12-09)
### [1.0.15](https://github.com/planjs/utils/compare/stable-1.0.14...stable-1.0.15) (2020-12-09)
### [1.0.14](https://github.com/planjs/utils/compare/stable-1.0.13...stable-1.0.14) (2020-12-09)
### [1.0.13](https://github.com/planjs/utils/compare/stable-1.0.12...stable-1.0.13) (2020-12-09)
### [1.0.12](https://github.com/planjs/utils/compare/stable-1.0.10...stable-1.0.12) (2020-12-09)
### [1.0.11](https://github.com/planjs/utils/compare/stable-1.0.8...stable-1.0.11) (2020-12-08)
### [1.0.10](https://github.com/planjs/utils/compare/stable-1.0.9...stable-1.0.10) (2020-12-08)
### [1.0.9](https://github.com/planjs/utils/compare/stable-1.0.7...stable-1.0.9) (2020-12-08)
### Bug Fixes
* slash export ([12d8746](https://github.com/planjs/utils/commit/12d874607cfb3a54f9a253900645f37de0edf2fb))
### [1.0.8](https://github.com/planjs/utils/compare/stable-1.0.6...stable-1.0.8) (2020-10-11)
### Bug Fixes
* circular dependency ([26575fb](https://github.com/planjs/utils/commit/26575fb17c9aa7221b91de2d164c484e5aae48c8))
* slash export ([12d8746](https://github.com/planjs/utils/commit/12d874607cfb3a54f9a253900645f37de0edf2fb))
### [1.0.7](https://github.com/planjs/utils/compare/stable-1.0.4...stable-1.0.7) (2020-10-07)
### Bug Fixes
* circular dependency ([26575fb](https://github.com/planjs/utils/commit/26575fb17c9aa7221b91de2d164c484e5aae48c8))
* **async-pool:** count error ([cc1a80c](https://github.com/planjs/utils/commit/cc1a80c0a233b54f81730ef1b7bb802c15ddb2d4))
### [1.0.6](https://github.com/planjs/utils/compare/stable-1.0.5...stable-1.0.6) (2020-10-06)
### Bug Fixes
* **async-pool:** count error ([cc1a80c](https://github.com/planjs/utils/commit/cc1a80c0a233b54f81730ef1b7bb802c15ddb2d4))
### [1.0.5](https://github.com/planjs/utils/compare/stable-1.0.3...stable-1.0.5) (2020-10-06)
### Bug Fixes
* eslint error ([73a4845](https://github.com/planjs/utils/commit/73a48450c111bd9410f6dca3ee1f9b7f37328f72))
### [1.0.4](https://github.com/planjs/utils/compare/stable-1.0.3...stable-1.0.4) (2020-09-21)
### Bug Fixes
* eslint error ([73a4845](https://github.com/planjs/utils/commit/73a48450c111bd9410f6dca3ee1f9b7f37328f72))
### 1.0.3 (2020-09-18)
### 1.0.2 (2020-09-18)