Skip to content

Commit 6433d08

Browse files
committed
feat(network): remove IndexedDB cache utility function
The `getIndexedDBCache` function has been removed from the network module. This includes updates to documentation, API references, and exports. Added test coverage badge in guide documentation.
1 parent f87dab4 commit 6433d08

File tree

6 files changed

+6
-98
lines changed

6 files changed

+6
-98
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Below are the module categories available in the utility library:
8080
| [Common](https://utils.ryanuo.cc/api/common/) | [dateFormat()](https://utils.ryanuo.cc/api/common/functions/dateFormat.html);[dayjs()](https://utils.ryanuo.cc/api/common/variables/dayjs.html);[curry()](https://utils.ryanuo.cc/api/common/functions/curry.html);[debounce()](https://utils.ryanuo.cc/api/common/functions/debounce.html);[getUuid()](https://utils.ryanuo.cc/api/common/functions/getUuid.html);[safeJSONParse()](https://utils.ryanuo.cc/api/common/functions/safeJSONParse.html);[throttle()](https://utils.ryanuo.cc/api/common/functions/throttle.html);[compress()](https://utils.ryanuo.cc/api/common/functions/compress.html);[decompress()](https://utils.ryanuo.cc/api/common/functions/decompress.html);[decrypt()](https://utils.ryanuo.cc/api/common/functions/decrypt.html);[encrypt()](https://utils.ryanuo.cc/api/common/functions/encrypt.html);[xor()](https://utils.ryanuo.cc/api/common/functions/xor.html);[isBoolean()](https://utils.ryanuo.cc/api/common/functions/isBoolean.html);[isBrowser()](https://utils.ryanuo.cc/api/common/functions/isBrowser.html);[isDate()](https://utils.ryanuo.cc/api/common/functions/isDate.html);[isEmptyObject()](https://utils.ryanuo.cc/api/common/functions/isEmptyObject.html);[isFunction()](https://utils.ryanuo.cc/api/common/functions/isFunction.html);[isNull()](https://utils.ryanuo.cc/api/common/functions/isNull.html);[isNumber()](https://utils.ryanuo.cc/api/common/functions/isNumber.html);[isObject()](https://utils.ryanuo.cc/api/common/functions/isObject.html);[isRegExp()](https://utils.ryanuo.cc/api/common/functions/isRegExp.html);[isString()](https://utils.ryanuo.cc/api/common/functions/isString.html);[isUndefined()](https://utils.ryanuo.cc/api/common/functions/isUndefined.html);[deepClone()](https://utils.ryanuo.cc/api/common/functions/deepClone.html);[getTypeName()](https://utils.ryanuo.cc/api/common/functions/getTypeName.html);[numberToFixed()](https://utils.ryanuo.cc/api/common/functions/numberToFixed.html);[toString()](https://utils.ryanuo.cc/api/common/functions/toString.html) |
8181
| [Finance](https://utils.ryanuo.cc/api/finance/) | [formatCurrency()](https://utils.ryanuo.cc/api/finance/functions/formatCurrency.html)[calculatePercentage()](https://utils.ryanuo.cc/api/finance/functions/calculatePercentage.html)[compare()](https://utils.ryanuo.cc/api/finance/functions/compare.html)[preciseAdd()](https://utils.ryanuo.cc/api/finance/functions/preciseAdd.html)[preciseDiv()](https://utils.ryanuo.cc/api/finance/functions/preciseDiv.html)[preciseMul()](https://utils.ryanuo.cc/api/finance/functions/preciseMul.html)[preciseSub()](https://utils.ryanuo.cc/api/finance/functions/preciseSub.html)[roundTo()](https://utils.ryanuo.cc/api/finance/functions/roundTo.html)[decimal()](https://utils.ryanuo.cc/api/finance/variables/decimal.html) |
8282
| [Graphics](https://utils.ryanuo.cc/api/graphics/) | [hexToRgba()](https://utils.ryanuo.cc/api/graphics/functions/hexToRgba.html)[lerpColor()](https://utils.ryanuo.cc/api/graphics/functions/lerpColor.html)[rgbaToHex()](https://utils.ryanuo.cc/api/graphics/functions/rgbaToHex.html) |
83-
| [Network](https://utils.ryanuo.cc/api/network/) | [checkNetworkStatus()](https://utils.ryanuo.cc/api/network/functions/checkNetworkStatus.html)[fetchWithTimeout()](https://utils.ryanuo.cc/api/network/functions/fetchWithTimeout.html)[getClientIP()](https://utils.ryanuo.cc/api/network/functions/getClientIP.html)[getIndexedDBCache()](https://utils.ryanuo.cc/api/network/functions/getIndexedDBCache.html)[parallelRequests()](https://utils.ryanuo.cc/api/network/functions/parallelRequests.html)[request()](https://utils.ryanuo.cc/api/network/functions/request.html) |
83+
| [Network](https://utils.ryanuo.cc/api/network/) | [checkNetworkStatus()](https://utils.ryanuo.cc/api/network/functions/checkNetworkStatus.html)[fetchWithTimeout()](https://utils.ryanuo.cc/api/network/functions/fetchWithTimeout.html)[getClientIP()](https://utils.ryanuo.cc/api/network/functions/getClientIP.html)[parallelRequests()](https://utils.ryanuo.cc/api/network/functions/parallelRequests.html)[request()](https://utils.ryanuo.cc/api/network/functions/request.html) |
8484
| [Node](https://utils.ryanuo.cc/api/node/) | [logger()](https://utils.ryanuo.cc/api/node/variables/logger.html)[projectRoot()](https://utils.ryanuo.cc/api/node/variables/projectRoot.html)[mkdirp()](https://utils.ryanuo.cc/api/node/functions/mkdirp.html)[resolvePath()](https://utils.ryanuo.cc/api/node/functions/resolvePath.html)[rmrf()](https://utils.ryanuo.cc/api/node/functions/rmrf.html) |
8585
<!-- auto utils end -->
8686

docs/api/network/functions/getIndexedDBCache.md

Lines changed: 0 additions & 45 deletions
This file was deleted.

docs/api/network/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,5 @@
1111
| [checkNetworkStatus](functions/checkNetworkStatus.md) | 检测网络连接状态 |
1212
| [fetchWithTimeout](functions/fetchWithTimeout.md) | 带超时的 fetch 请求 |
1313
| [getClientIP](functions/getClientIP.md) | 获取客户端的 IP 地址 |
14-
| [getIndexedDBCache](functions/getIndexedDBCache.md) | 获取 IndexedDB 缓存 |
1514
| [parallelRequests](functions/parallelRequests.md) | 控制并发数的请求队列 |
1615
| [request](functions/request.md) | 封装 GET/POST 请求(自动处理 JSON) |

docs/api/typedoc-sidebar.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[{ "text": "ai", "link": "/api/ai/", "collapsed": true, "items": [{ "text": "MachineLearning", "collapsed": true, "items": [{ "text": "linearRegression", "link": "/api/ai/functions/linearRegression.md" }, { "text": "normalizeData", "link": "/api/ai/functions/normalizeData.md" }, { "text": "normalizeMinMax", "link": "/api/ai/functions/normalizeMinMax.md" }] }] }, { "text": "algorithm", "link": "/api/algorithm/", "collapsed": true, "items": [{ "text": "Algorithm", "collapsed": true, "items": [{ "text": "binarySearch", "link": "/api/algorithm/functions/binarySearch.md" }, { "text": "bubbleSort", "link": "/api/algorithm/functions/bubbleSort.md" }, { "text": "fibonacciDP", "link": "/api/algorithm/functions/fibonacciDP.md" }, { "text": "fibonacciRecursive", "link": "/api/algorithm/functions/fibonacciRecursive.md" }, { "text": "isPrime", "link": "/api/algorithm/functions/isPrime.md" }, { "text": "quickSort", "link": "/api/algorithm/functions/quickSort.md" }] }] }, { "text": "browser", "link": "/api/browser/", "collapsed": true, "items": [{ "text": "DOM", "collapsed": true, "items": [{ "text": "copyToClipboard", "link": "/api/browser/functions/copyToClipboard.md" }, { "text": "enterFullScreen", "link": "/api/browser/functions/enterFullScreen.md" }, { "text": "isMobile", "link": "/api/browser/functions/isMobile.md" }, { "text": "manageClasses", "link": "/api/browser/functions/manageClasses.md" }, { "text": "onceEventListener", "link": "/api/browser/functions/onceEventListener.md" }] }, { "text": "Download", "collapsed": true, "items": [{ "text": "downloadFile", "link": "/api/browser/functions/downloadFile.md" }] }, { "text": "SafeStorage", "collapsed": true, "items": [{ "text": "SafeStorage", "link": "/api/browser/interfaces/SafeStorage.md" }, { "text": "StorageOptions", "link": "/api/browser/interfaces/StorageOptions.md" }, { "text": "safeStorage", "link": "/api/browser/variables/safeStorage.md" }] }, { "text": "URL", "collapsed": true, "items": [{ "text": "getUrlParams", "link": "/api/browser/functions/getUrlParams.md" }, { "text": "getUrlParamsString", "link": "/api/browser/functions/getUrlParamsString.md" }] }] }, { "text": "common", "link": "/api/common/", "collapsed": true, "items": [{ "text": "Date", "collapsed": true, "items": [{ "text": "dateFormat", "link": "/api/common/functions/dateFormat.md" }] }, { "text": "Other", "collapsed": true, "items": [{ "text": "dayjs", "link": "/api/common/variables/dayjs.md" }, { "text": "curry", "link": "/api/common/functions/curry.md" }, { "text": "debounce", "link": "/api/common/functions/debounce.md" }, { "text": "getUuid", "link": "/api/common/functions/getUuid.md" }, { "text": "safeJSONParse", "link": "/api/common/functions/safeJSONParse.md" }, { "text": "throttle", "link": "/api/common/functions/throttle.md" }] }, { "text": "compress", "collapsed": true, "items": [{ "text": "compress", "link": "/api/common/functions/compress.md" }, { "text": "decompress", "link": "/api/common/functions/decompress.md" }] }, { "text": "crypto", "collapsed": true, "items": [{ "text": "decrypt", "link": "/api/common/functions/decrypt.md" }, { "text": "encrypt", "link": "/api/common/functions/encrypt.md" }, { "text": "xor", "link": "/api/common/functions/xor.md" }] }, { "text": "is", "collapsed": true, "items": [{ "text": "isBoolean", "link": "/api/common/functions/isBoolean.md" }, { "text": "isBrowser", "link": "/api/common/functions/isBrowser.md" }, { "text": "isDate", "link": "/api/common/functions/isDate.md" }, { "text": "isEmptyObject", "link": "/api/common/functions/isEmptyObject.md" }, { "text": "isFunction", "link": "/api/common/functions/isFunction.md" }, { "text": "isNull", "link": "/api/common/functions/isNull.md" }, { "text": "isNumber", "link": "/api/common/functions/isNumber.md" }, { "text": "isObject", "link": "/api/common/functions/isObject.md" }, { "text": "isRegExp", "link": "/api/common/functions/isRegExp.md" }, { "text": "isString", "link": "/api/common/functions/isString.md" }, { "text": "isUndefined", "link": "/api/common/functions/isUndefined.md" }] }, { "text": "type", "collapsed": true, "items": [{ "text": "deepClone", "link": "/api/common/functions/deepClone.md" }, { "text": "getTypeName", "link": "/api/common/functions/getTypeName.md" }, { "text": "numberToFixed", "link": "/api/common/functions/numberToFixed.md" }, { "text": "toString", "link": "/api/common/functions/toString.md" }] }] }, { "text": "finance", "link": "/api/finance/", "collapsed": true, "items": [{ "text": "Amount", "collapsed": true, "items": [{ "text": "formatCurrency", "link": "/api/finance/functions/formatCurrency.md" }] }, { "text": "Calculator", "collapsed": true, "items": [{ "text": "CalculatorChain", "link": "/api/finance/classes/CalculatorChain.md" }, { "text": "calculatePercentage", "link": "/api/finance/functions/calculatePercentage.md" }, { "text": "compare", "link": "/api/finance/functions/compare.md" }, { "text": "preciseAdd", "link": "/api/finance/functions/preciseAdd.md" }, { "text": "preciseDiv", "link": "/api/finance/functions/preciseDiv.md" }, { "text": "preciseMul", "link": "/api/finance/functions/preciseMul.md" }, { "text": "preciseSub", "link": "/api/finance/functions/preciseSub.md" }, { "text": "roundTo", "link": "/api/finance/functions/roundTo.md" }] }, { "text": "Other", "collapsed": true, "items": [{ "text": "decimal", "link": "/api/finance/variables/decimal.md" }] }] }, { "text": "graphics", "link": "/api/graphics/", "collapsed": true, "items": [{ "text": "Color", "collapsed": true, "items": [{ "text": "hexToRgba", "link": "/api/graphics/functions/hexToRgba.md" }, { "text": "lerpColor", "link": "/api/graphics/functions/lerpColor.md" }, { "text": "rgbaToHex", "link": "/api/graphics/functions/rgbaToHex.md" }] }] }, { "text": "network", "link": "/api/network/", "collapsed": true, "items": [{ "text": "Http", "collapsed": true, "items": [{ "text": "checkNetworkStatus", "link": "/api/network/functions/checkNetworkStatus.md" }, { "text": "fetchWithTimeout", "link": "/api/network/functions/fetchWithTimeout.md" }, { "text": "getClientIP", "link": "/api/network/functions/getClientIP.md" }, { "text": "getIndexedDBCache", "link": "/api/network/functions/getIndexedDBCache.md" }, { "text": "parallelRequests", "link": "/api/network/functions/parallelRequests.md" }, { "text": "request", "link": "/api/network/functions/request.md" }] }] }, { "text": "node", "link": "/api/node/", "collapsed": true, "items": [{ "text": "Other", "collapsed": true, "items": [{ "text": "logger", "link": "/api/node/variables/logger.md" }] }, { "text": "Path", "collapsed": true, "items": [{ "text": "projectRoot", "link": "/api/node/variables/projectRoot.md" }, { "text": "mkdirp", "link": "/api/node/functions/mkdirp.md" }, { "text": "resolvePath", "link": "/api/node/functions/resolvePath.md" }, { "text": "rmrf", "link": "/api/node/functions/rmrf.md" }] }] }]
1+
[{ "text": "ai", "link": "/api/ai/", "collapsed": true, "items": [{ "text": "MachineLearning", "collapsed": true, "items": [{ "text": "linearRegression", "link": "/api/ai/functions/linearRegression.md" }, { "text": "normalizeData", "link": "/api/ai/functions/normalizeData.md" }, { "text": "normalizeMinMax", "link": "/api/ai/functions/normalizeMinMax.md" }] }] }, { "text": "algorithm", "link": "/api/algorithm/", "collapsed": true, "items": [{ "text": "Algorithm", "collapsed": true, "items": [{ "text": "binarySearch", "link": "/api/algorithm/functions/binarySearch.md" }, { "text": "bubbleSort", "link": "/api/algorithm/functions/bubbleSort.md" }, { "text": "fibonacciDP", "link": "/api/algorithm/functions/fibonacciDP.md" }, { "text": "fibonacciRecursive", "link": "/api/algorithm/functions/fibonacciRecursive.md" }, { "text": "isPrime", "link": "/api/algorithm/functions/isPrime.md" }, { "text": "quickSort", "link": "/api/algorithm/functions/quickSort.md" }] }] }, { "text": "browser", "link": "/api/browser/", "collapsed": true, "items": [{ "text": "DOM", "collapsed": true, "items": [{ "text": "copyToClipboard", "link": "/api/browser/functions/copyToClipboard.md" }, { "text": "enterFullScreen", "link": "/api/browser/functions/enterFullScreen.md" }, { "text": "isMobile", "link": "/api/browser/functions/isMobile.md" }, { "text": "manageClasses", "link": "/api/browser/functions/manageClasses.md" }, { "text": "onceEventListener", "link": "/api/browser/functions/onceEventListener.md" }] }, { "text": "Download", "collapsed": true, "items": [{ "text": "downloadFile", "link": "/api/browser/functions/downloadFile.md" }] }, { "text": "SafeStorage", "collapsed": true, "items": [{ "text": "SafeStorage", "link": "/api/browser/interfaces/SafeStorage.md" }, { "text": "StorageOptions", "link": "/api/browser/interfaces/StorageOptions.md" }, { "text": "safeStorage", "link": "/api/browser/variables/safeStorage.md" }] }, { "text": "URL", "collapsed": true, "items": [{ "text": "getUrlParams", "link": "/api/browser/functions/getUrlParams.md" }, { "text": "getUrlParamsString", "link": "/api/browser/functions/getUrlParamsString.md" }] }] }, { "text": "common", "link": "/api/common/", "collapsed": true, "items": [{ "text": "Date", "collapsed": true, "items": [{ "text": "dateFormat", "link": "/api/common/functions/dateFormat.md" }] }, { "text": "Other", "collapsed": true, "items": [{ "text": "dayjs", "link": "/api/common/variables/dayjs.md" }, { "text": "curry", "link": "/api/common/functions/curry.md" }, { "text": "debounce", "link": "/api/common/functions/debounce.md" }, { "text": "getUuid", "link": "/api/common/functions/getUuid.md" }, { "text": "safeJSONParse", "link": "/api/common/functions/safeJSONParse.md" }, { "text": "throttle", "link": "/api/common/functions/throttle.md" }] }, { "text": "compress", "collapsed": true, "items": [{ "text": "compress", "link": "/api/common/functions/compress.md" }, { "text": "decompress", "link": "/api/common/functions/decompress.md" }] }, { "text": "crypto", "collapsed": true, "items": [{ "text": "decrypt", "link": "/api/common/functions/decrypt.md" }, { "text": "encrypt", "link": "/api/common/functions/encrypt.md" }, { "text": "xor", "link": "/api/common/functions/xor.md" }] }, { "text": "is", "collapsed": true, "items": [{ "text": "isBoolean", "link": "/api/common/functions/isBoolean.md" }, { "text": "isBrowser", "link": "/api/common/functions/isBrowser.md" }, { "text": "isDate", "link": "/api/common/functions/isDate.md" }, { "text": "isEmptyObject", "link": "/api/common/functions/isEmptyObject.md" }, { "text": "isFunction", "link": "/api/common/functions/isFunction.md" }, { "text": "isNull", "link": "/api/common/functions/isNull.md" }, { "text": "isNumber", "link": "/api/common/functions/isNumber.md" }, { "text": "isObject", "link": "/api/common/functions/isObject.md" }, { "text": "isRegExp", "link": "/api/common/functions/isRegExp.md" }, { "text": "isString", "link": "/api/common/functions/isString.md" }, { "text": "isUndefined", "link": "/api/common/functions/isUndefined.md" }] }, { "text": "type", "collapsed": true, "items": [{ "text": "deepClone", "link": "/api/common/functions/deepClone.md" }, { "text": "getTypeName", "link": "/api/common/functions/getTypeName.md" }, { "text": "numberToFixed", "link": "/api/common/functions/numberToFixed.md" }, { "text": "toString", "link": "/api/common/functions/toString.md" }] }] }, { "text": "finance", "link": "/api/finance/", "collapsed": true, "items": [{ "text": "Amount", "collapsed": true, "items": [{ "text": "formatCurrency", "link": "/api/finance/functions/formatCurrency.md" }] }, { "text": "Calculator", "collapsed": true, "items": [{ "text": "CalculatorChain", "link": "/api/finance/classes/CalculatorChain.md" }, { "text": "calculatePercentage", "link": "/api/finance/functions/calculatePercentage.md" }, { "text": "compare", "link": "/api/finance/functions/compare.md" }, { "text": "preciseAdd", "link": "/api/finance/functions/preciseAdd.md" }, { "text": "preciseDiv", "link": "/api/finance/functions/preciseDiv.md" }, { "text": "preciseMul", "link": "/api/finance/functions/preciseMul.md" }, { "text": "preciseSub", "link": "/api/finance/functions/preciseSub.md" }, { "text": "roundTo", "link": "/api/finance/functions/roundTo.md" }] }, { "text": "Other", "collapsed": true, "items": [{ "text": "decimal", "link": "/api/finance/variables/decimal.md" }] }] }, { "text": "graphics", "link": "/api/graphics/", "collapsed": true, "items": [{ "text": "Color", "collapsed": true, "items": [{ "text": "hexToRgba", "link": "/api/graphics/functions/hexToRgba.md" }, { "text": "lerpColor", "link": "/api/graphics/functions/lerpColor.md" }, { "text": "rgbaToHex", "link": "/api/graphics/functions/rgbaToHex.md" }] }] }, { "text": "network", "link": "/api/network/", "collapsed": true, "items": [{ "text": "Http", "collapsed": true, "items": [{ "text": "checkNetworkStatus", "link": "/api/network/functions/checkNetworkStatus.md" }, { "text": "fetchWithTimeout", "link": "/api/network/functions/fetchWithTimeout.md" }, { "text": "getClientIP", "link": "/api/network/functions/getClientIP.md" }, { "text": "parallelRequests", "link": "/api/network/functions/parallelRequests.md" }, { "text": "request", "link": "/api/network/functions/request.md" }] }] }, { "text": "node", "link": "/api/node/", "collapsed": true, "items": [{ "text": "Other", "collapsed": true, "items": [{ "text": "logger", "link": "/api/node/variables/logger.md" }] }, { "text": "Path", "collapsed": true, "items": [{ "text": "projectRoot", "link": "/api/node/variables/projectRoot.md" }, { "text": "mkdirp", "link": "/api/node/functions/mkdirp.md" }, { "text": "resolvePath", "link": "/api/node/functions/resolvePath.md" }, { "text": "rmrf", "link": "/api/node/functions/rmrf.md" }] }] }]

0 commit comments

Comments
 (0)