From 7c01da170ac409558a227fba715a9adf6e8f501e Mon Sep 17 00:00:00 2001 From: Jacob Alford Date: Mon, 9 Sep 2024 11:03:16 -0600 Subject: [PATCH] fix: attempt lru-cache declaration type fix --- package.json | 7 ++++++- patches/lru-cache@10.4.3.patch | 13 +++++++++++++ pnpm-lock.yaml | 11 ++++++++--- 3 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 patches/lru-cache@10.4.3.patch diff --git a/package.json b/package.json index 4cfa3d4..4603d43 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "husky": "^8.0.3", "jest": "^29.7.0", "lint-staged": "^15.1.0", - "prettier": "~3.1.0", + "prettier": "~3.1.1", "prettier-plugin-jsdoc": "^1.1.1", "tsc-files": "^1.1.4", "tsup": "^8.0.0", @@ -88,5 +88,10 @@ "eslint --fix-type layout --fix --cache", "pnpm run prerelease" ] + }, + "pnpm": { + "patchedDependencies": { + "lru-cache@10.4.3": "patches/lru-cache@10.4.3.patch" + } } } diff --git a/patches/lru-cache@10.4.3.patch b/patches/lru-cache@10.4.3.patch new file mode 100644 index 0000000..3a58a86 --- /dev/null +++ b/patches/lru-cache@10.4.3.patch @@ -0,0 +1,13 @@ +diff --git a/dist/commonjs/index.d.ts b/dist/commonjs/index.d.ts +index f59de7602a528afde714e56dcf8c25ee496e39fb..804042b5ff381b8594307296de29d31d1b564c92 100644 +--- a/dist/commonjs/index.d.ts ++++ b/dist/commonjs/index.d.ts +@@ -837,7 +837,7 @@ export declare namespace LRUCache { + * + * Changing any of these will alter the defaults for subsequent method calls. + */ +-export declare class LRUCache implements Map { ++export declare class LRUCache { + #private; + /** + * {@link LRUCache.OptionsBase.ttl} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c17742e..2176c4e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,6 +4,11 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false +patchedDependencies: + lru-cache@10.4.3: + hash: hawnkdxmi6fjojy7ubkjvqg3r4 + path: patches/lru-cache@10.4.3.patch + importers: .: @@ -91,7 +96,7 @@ importers: specifier: ^15.1.0 version: 15.1.0 prettier: - specifier: ~3.1.0 + specifier: ~3.1.1 version: 3.1.1 prettier-plugin-jsdoc: specifier: ^1.1.1 @@ -5710,7 +5715,7 @@ snapshots: strip-ansi: 7.1.0 wrap-ansi: 8.1.0 - lru-cache@10.4.3: {} + lru-cache@10.4.3(patch_hash=hawnkdxmi6fjojy7ubkjvqg3r4): {} lru-cache@5.1.1: dependencies: @@ -6097,7 +6102,7 @@ snapshots: path-scurry@1.11.1: dependencies: - lru-cache: 10.4.3 + lru-cache: 10.4.3(patch_hash=hawnkdxmi6fjojy7ubkjvqg3r4) minipass: 7.1.2 path-type@4.0.0: {}