Skip to content

Commit

Permalink
structure: Update lru-cache to v7 to minimize project:copy issues (#8805
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Tobbe authored Jul 1, 2023
1 parent 75bcabd commit f9912af
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion packages/structure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"line-column": "1.0.2",
"lodash": "4.17.21",
"lodash-decorators": "6.0.1",
"lru-cache": "6.0.0",
"lru-cache": "7.18.3",
"proxyquire": "2.1.3",
"ts-morph": "15.1.0",
"vscode-languageserver": "6.1.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/structure/src/x/ts-morph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function createTSMSourceFile(a1: string, a2?: string): tsm.SourceFile {
}).createSourceFile(filePath, src)
}

const getCache = memoize(() => new LRU<string, tsm.SourceFile>(200))
const getCache = memoize(() => new LRU<string, tsm.SourceFile>({ max: 200 }))

/**
* warning: do NOT modify this file. treat it as immutable
Expand Down
22 changes: 11 additions & 11 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7943,7 +7943,7 @@ __metadata:
line-column: 1.0.2
lodash: 4.17.21
lodash-decorators: 6.0.1
lru-cache: 6.0.0
lru-cache: 7.18.3
proxyquire: 2.1.3
ts-morph: 15.1.0
typescript: 5.1.3
Expand Down Expand Up @@ -22597,12 +22597,10 @@ __metadata:
languageName: node
linkType: hard

"lru-cache@npm:6.0.0, lru-cache@npm:^6.0.0":
version: 6.0.0
resolution: "lru-cache@npm:6.0.0"
dependencies:
yallist: ^4.0.0
checksum: cb53e582785c48187d7a188d3379c181b5ca2a9c78d2bce3e7dee36f32761d1c42983da3fe12b55cb74e1779fa94cdc2e5367c028a9b35317184ede0c07a30a9
"lru-cache@npm:7.18.3, lru-cache@npm:^7.10.1, lru-cache@npm:^7.14.1, lru-cache@npm:^7.4.4, lru-cache@npm:^7.5.1, lru-cache@npm:^7.7.1":
version: 7.18.3
resolution: "lru-cache@npm:7.18.3"
checksum: b3a452b491433db885beed95041eb104c157ef7794b9c9b4d647be503be91769d11206bb573849a16b4cc0d03cbd15ffd22df7960997788b74c1d399ac7a4fed
languageName: node
linkType: hard

Expand All @@ -22622,10 +22620,12 @@ __metadata:
languageName: node
linkType: hard

"lru-cache@npm:^7.10.1, lru-cache@npm:^7.14.1, lru-cache@npm:^7.4.4, lru-cache@npm:^7.5.1, lru-cache@npm:^7.7.1":
version: 7.18.3
resolution: "lru-cache@npm:7.18.3"
checksum: b3a452b491433db885beed95041eb104c157ef7794b9c9b4d647be503be91769d11206bb573849a16b4cc0d03cbd15ffd22df7960997788b74c1d399ac7a4fed
"lru-cache@npm:^6.0.0":
version: 6.0.0
resolution: "lru-cache@npm:6.0.0"
dependencies:
yallist: ^4.0.0
checksum: cb53e582785c48187d7a188d3379c181b5ca2a9c78d2bce3e7dee36f32761d1c42983da3fe12b55cb74e1779fa94cdc2e5367c028a9b35317184ede0c07a30a9
languageName: node
linkType: hard

Expand Down

0 comments on commit f9912af

Please sign in to comment.