Comparing version
12
lru.d.ts
@@ -1,7 +0,1 @@ | ||
// An entry holds the key and value, and pointers to any older and newer entries. | ||
interface Entry<K,V> { | ||
key :K; | ||
value :V; | ||
} | ||
export class LRUMap<K,V> { | ||
@@ -84,1 +78,7 @@ // Construct a new cache object which will hold up to limit entries. | ||
} | ||
// An entry holds the key and value, and pointers to any older and newer entries. | ||
interface Entry<K,V> { | ||
key :K; | ||
value :V; | ||
} |
{ | ||
"name": "lru_map", | ||
"version": "0.3.3", | ||
"version": "0.4.0", | ||
"description": "Finite key-value map using the Least Recently Used (LRU) algorithm where the most recently used objects are keept in the map while less recently used items are evicted to make room for new ones.", | ||
"main": "lru.js", | ||
"main": "dist/lru.js", | ||
"types": "lru.d.ts", | ||
"typings": "lru.d.ts", | ||
"scripts": { | ||
"test": "node test.js && echo 'Verifying TypeScript definition...' && tsc --noEmit", | ||
"test": "npm run build && node test.js && echo 'Verifying TypeScript definition...' && tsc --noEmit", | ||
"build": "esbuild --minify --sourcemap --outfile=dist/lru.js lru.js", | ||
"prepublish": "npm test", | ||
@@ -16,2 +18,9 @@ "benchmark": "node --expose-gc benchmark.js" | ||
}, | ||
"files": [ | ||
"README.md", | ||
"lru.d.ts", | ||
"dist/lru.js", | ||
"dist/lru.js.map", | ||
".gitignore" | ||
], | ||
"keywords": [ | ||
@@ -30,4 +39,5 @@ "cache", | ||
"devDependencies": { | ||
"typescript": "^2.0.10" | ||
"esbuild": "^0.5.25", | ||
"typescript": "^3.9.6" | ||
} | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
27959
-28.59%2
100%6
-50%75
-90.3%1
Infinity%