mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-27 10:30:58 -04:00
fix: remove misleading maxAge argument to pMemoize (#10620)
This commit is contained in:
5
.changeset/deep-eggs-cry.md
Normal file
5
.changeset/deep-eggs-cry.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@pnpm/npm-resolver": patch
|
||||
---
|
||||
|
||||
An internal refactor was performed to remove a misleading usage of `pMemoize`. Previously the `maxAge` argument was passed, but this field is ignored by the `p-memoize` NPM package.
|
||||
@@ -173,7 +173,6 @@ export function createNpmResolver (
|
||||
}
|
||||
const fetch = pMemoize(fetchMetadataFromFromRegistry.bind(null, fetchOpts), {
|
||||
cacheKey: (...args) => JSON.stringify(args),
|
||||
maxAge: 1000 * 20, // 20 seconds
|
||||
})
|
||||
const metaCache = new LRUCache<string, PackageMeta>({
|
||||
max: 10000,
|
||||
|
||||
Reference in New Issue
Block a user