diff --git a/README.md b/README.md index 249470f..cc3195c 100644 --- a/README.md +++ b/README.md @@ -198,7 +198,7 @@ const entries = [...LRU.entries()]; Iterates over each key-value pair in the cache, from most recent to least recent. ```ts -LRU.forEach((key, value) => { +LRU.forEach((value, key) => { // do something }); ``` @@ -224,7 +224,7 @@ The benchmark is performed by comparing `1,000,000` runs through a maximum cache quick-lru: 401318.80µs ``` -- See detailed results and how the tests are run and compared in the [benchmark](https://github.com/wellwelwel/lru.min/tree/main/benchmark) directory. +- See detailed results and how the tests are run and compared in the [**benchmark**](https://github.com/wellwelwel/lru.min/tree/main/benchmark) directory. --- diff --git a/package-lock.json b/package-lock.json index c7581ab..d13685b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "lru.min", - "version": "0.3.1", + "version": "0.3.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "lru.min", - "version": "0.3.1", + "version": "0.3.2", "license": "MIT", "devDependencies": { "@biomejs/biome": "^1.8.3", diff --git a/package.json b/package.json index 9e6f3eb..9258f02 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lru.min", - "version": "0.3.1", + "version": "0.3.2", "description": "🔥 An extremely fast and efficient LRU cache for JavaScript (Browser compatible) — 6.7KB.", "main": "./lib/index.js", "module": "./lib/index.mjs",