Skip to content

Commit a11bf4c

Browse files
committed
fix(nuxt): use fork of lru-cache
Until nuxt/nuxt#22077 is fixed, having a forked package allows to ensure the version without having the user to install it. Fix #1390
1 parent a3b72a5 commit a11bf4c

File tree

3 files changed

+107
-336
lines changed

3 files changed

+107
-336
lines changed

packages/nuxt/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
},
3838
"dependencies": {
3939
"@nuxt/kit": "^3.6.2",
40-
"lru-cache": "^10.0.0",
40+
"@posva/lru-cache": "^10.0.1",
4141
"strip-json-comments": "^5.0.1"
4242
},
4343
"peerDependencies": {

packages/nuxt/src/runtime/app/lru-cache.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { deleteApp, type FirebaseApp } from 'firebase/app'
2-
import { LRUCache } from 'lru-cache'
2+
import { LRUCache } from '@posva/lru-cache'
33
import { logger } from '../logging'
44

55
// TODO: allow customizing

0 commit comments

Comments
 (0)