Skip to content

Commit

Permalink
Merge pull request #205 from RobinTail/fix-lru-cache-dep
Browse files Browse the repository at this point in the history
Using `lru-cache: ^10.4.3`
  • Loading branch information
andrewbranch authored Sep 9, 2024
2 parents 8632156 + 1f419ac commit 556dbc8
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 15 deletions.
5 changes: 5 additions & 0 deletions .changeset/beige-gorillas-cross.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@arethetypeswrong/core": patch
---

Changed version of lru-cache dependency to ^10.4.3 in order to fix compatibility with Node.js 18.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
},
"pnpm": {
"patchedDependencies": {
"[email protected]": "patches/[email protected]"
"[email protected]": "patches/[email protected]",
"[email protected]": "patches/[email protected]"
}
}
}
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"@andrewbranch/untar.js": "^1.0.3",
"cjs-module-lexer": "^1.2.3",
"fflate": "^0.8.2",
"lru-cache": "^11.0.1",
"lru-cache": "^10.4.3",
"semver": "^7.5.4",
"typescript": "5.6.1-rc",
"validate-npm-package-name": "^5.0.0"
Expand Down
26 changes: 26 additions & 0 deletions patches/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
diff --git a/dist/commonjs/index.d.ts b/dist/commonjs/index.d.ts
index f59de7602a528afde714e56dcf8c25ee496e39fb..0692e188a017d277fe843efb420b1f2c3cd28157 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<K extends {}, V extends {}, FC = unknown> implements Map<K, V> {
+export declare class LRUCache<K extends {}, V extends {}, FC = unknown> {
#private;
/**
* {@link LRUCache.OptionsBase.ttl}
diff --git a/dist/esm/index.d.ts b/dist/esm/index.d.ts
index f59de7602a528afde714e56dcf8c25ee496e39fb..0692e188a017d277fe843efb420b1f2c3cd28157 100644
--- a/dist/esm/index.d.ts
+++ b/dist/esm/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<K extends {}, V extends {}, FC = unknown> implements Map<K, V> {
+export declare class LRUCache<K extends {}, V extends {}, FC = unknown> {
#private;
/**
* {@link LRUCache.OptionsBase.ttl}
22 changes: 9 additions & 13 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 556dbc8

Please sign in to comment.