fix(build): enable noImplicitAny and add explicit typing for cache entry deletion

This commit is contained in:
2026-04-30 09:52:22 +00:00
parent 10182c0007
commit 0134354658
6 changed files with 683 additions and 646 deletions
+7
View File
@@ -1,5 +1,12 @@
# Changelog
## 2026-04-30 - 3.2.2 - fix(build)
enable noImplicitAny and add explicit typing for cache entry deletion
- remove the build flag that allowed implicit any and configure the compiler to enforce noImplicitAny
- add an explicit string parameter and void return type to deleteCacheEntryByKey to satisfy stricter TypeScript checks
- refresh dependency versions and update the pnpm package manager version
## 2026-04-07 - 3.2.1 - fix(build)
migrate project tooling and filesystem integration to current smartfs-based stack
+9 -8
View File
@@ -10,7 +10,7 @@
"license": "MIT",
"scripts": {
"test": "(tstest test/ --verbose --logfile --timeout 60)",
"build": "(tsbuild tsfolders --allowimplicitany)",
"build": "(tsbuild tsfolders)",
"buildDocs": "tsdoc",
"localPublish": "gitzone commit && pnpm run build && pnpm publish && pnpm publish --access public --registry=\"https://registry.npmjs.org\""
},
@@ -18,16 +18,16 @@
"@git.zone/tsbuild": "^4.4.0",
"@git.zone/tsrun": "^2.0.2",
"@git.zone/tstest": "^3.6.3",
"@types/node": "^25.5.2"
"@types/node": "^25.6.0"
},
"dependencies": {
"@push.rocks/lik": "^6.4.0",
"@push.rocks/smartbucket": "^4.6.0",
"@push.rocks/smartfs": "^1.5.0",
"@push.rocks/smartjson": "^6.0.0",
"@push.rocks/lik": "^6.4.1",
"@push.rocks/smartbucket": "^4.6.1",
"@push.rocks/smartfs": "^1.5.1",
"@push.rocks/smartjson": "^6.0.1",
"@push.rocks/smartpath": "^6.0.0",
"@push.rocks/smartpromise": "^4.2.3",
"@tsclass/tsclass": "^9.5.0"
"@tsclass/tsclass": "^9.5.1"
},
"files": [
"ts/**/*",
@@ -39,6 +39,7 @@
"assets/**/*",
"cli.js",
".smartconfig.json",
"license",
"readme.md"
],
"browserslist": [
@@ -63,7 +64,7 @@
"type": "git",
"url": "https://code.foss.global/push.rocks/levelcache.git"
},
"packageManager": "pnpm@10.14.0+sha512.ad27a79641b49c3e481a16a805baa71817a04bbe06a38d17e60e2eaee83f6a146c6a688125f5792e48dd5ba30e7da52a5cda4c3992b9ccf333f9ce223af84748",
"packageManager": "pnpm@10.28.2",
"bugs": {
"url": "https://code.foss.global/push.rocks/levelcache/issues"
}
+663 -635
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/levelcache',
version: '3.2.1',
version: '3.2.2',
description: 'A versatile caching solution offering multi-level storage utilizing memory, disk, and Amazon S3 for efficient data management and backup.'
}
+1 -1
View File
@@ -104,7 +104,7 @@ export class LevelCache extends AbstractCache {
]);
}
public async deleteCacheEntryByKey(keyArg) {
public async deleteCacheEntryByKey(keyArg: string): Promise<void> {
await Promise.all([
this.cacheMemoryManager.deleteCacheEntryByKey(keyArg),
this.cacheDiskManager.deleteCacheEntryByKey(keyArg),
+2 -1
View File
@@ -3,9 +3,10 @@
"target": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"strict": false,
"noImplicitAny": true,
"esModuleInterop": true,
"verbatimModuleSyntax": true,
"strict": false,
"types": ["node"]
},
"exclude": ["dist_*/**/*.d.ts"]