Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: isaacs/node-lru-cache
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v11.0.0
Choose a base ref
...
head repository: isaacs/node-lru-cache
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v11.0.1
Choose a head ref
  • 3 commits
  • 3 files changed
  • 1 contributor

Commits on Aug 13, 2024

  1. update tap to fix CI problem

    isaacs committed Aug 13, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    8f51d75 View commit details

Commits on Sep 6, 2024

  1. drop 'implements Map' from the LRUCache type

    Fix: #352
    isaacs committed Sep 6, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    5ed947d View commit details
  2. 11.0.1

    isaacs committed Sep 6, 2024
    Copy the full SHA
    cbdd1d0 View commit details
Showing with 919 additions and 890 deletions.
  1. +913 −881 package-lock.json
  2. +5 −6 package.json
  3. +1 −3 src/index.ts
1,794 changes: 913 additions & 881 deletions package-lock.json

Large diffs are not rendered by default.

11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "lru-cache",
"description": "A cache object that deletes the least-recently-used items.",
"version": "11.0.0",
"version": "11.0.1",
"author": "Isaac Z. Schlueter <i@izs.me>",
"keywords": [
"mru",
@@ -49,19 +49,18 @@
"url": "git://github.com/isaacs/node-lru-cache.git"
},
"devDependencies": {
"@types/node": "^20.2.5",
"@types/node": "^22.5.4",
"@types/tap": "^15.0.6",
"benchmark": "^2.1.4",
"esbuild": "^0.17.11",
"eslint-config-prettier": "^8.5.0",
"marked": "^4.2.12",
"mkdirp": "^2.1.5",
"prettier": "^2.6.2",
"tap": "^20.0.3",
"tshy": "^2.0.0",
"tap": "^21.0.1",
"tshy": "^3.0.2",
"tslib": "^2.4.0",
"typedoc": "^0.25.3",
"typescript": "^5.2.2"
"typedoc": "^0.26.6"
},
"license": "ISC",
"files": [
4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1114,9 +1114,7 @@ export namespace LRUCache {
*
* Changing any of these will alter the defaults for subsequent method calls.
*/
export class LRUCache<K extends {}, V extends {}, FC = unknown>
implements Map<K, V>
{
export class LRUCache<K extends {}, V extends {}, FC = unknown> {
// options that cannot be changed without disaster
readonly #max: LRUCache.Count
readonly #maxSize: LRUCache.Size