Socket
Socket
Sign inDemoInstall

quick-lru

Package Overview
Dependencies
0
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.1 to 5.0.0

2

index.d.ts

@@ -10,3 +10,3 @@ declare namespace QuickLRU {

declare class QuickLRU<KeyType extends unknown, ValueType extends unknown>
declare class QuickLRU<KeyType, ValueType>
implements Iterable<[KeyType, ValueType]> {

@@ -13,0 +13,0 @@ /**

@@ -111,3 +111,3 @@ 'use strict';

return this._size + oldCacheSize;
return Math.min(this._size + oldCacheSize, this.maxSize);
}

@@ -114,0 +114,0 @@ }

{
"name": "quick-lru",
"version": "4.0.1",
"description": "Simple \"Least Recently Used\" (LRU) cache",
"version": "5.0.0",
"description": "Simple “Least Recently Used” (LRU) cache",
"license": "MIT",
"repository": "sindresorhus/quick-lru",
"funding": "https://github.com/sponsors/sindresorhus",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
"url": "https://sindresorhus.com"
},
"engines": {
"node": ">=8"
"node": ">=10"
},

@@ -36,8 +37,8 @@ "scripts": {

"devDependencies": {
"ava": "^1.4.1",
"ava": "^2.0.0",
"coveralls": "^3.0.3",
"nyc": "^14.1.1",
"tsd": "^0.7.2",
"xo": "^0.24.0"
"nyc": "^15.0.0",
"tsd": "^0.11.0",
"xo": "^0.26.0"
}
}
# quick-lru [![Build Status](https://travis-ci.org/sindresorhus/quick-lru.svg?branch=master)](https://travis-ci.org/sindresorhus/quick-lru) [![Coverage Status](https://coveralls.io/repos/github/sindresorhus/quick-lru/badge.svg?branch=master)](https://coveralls.io/github/sindresorhus/quick-lru?branch=master)
> Simple ["Least Recently Used" (LRU) cache](https://en.m.wikipedia.org/wiki/Cache_replacement_policies#Least_Recently_Used_.28LRU.29)
> Simple [“Least Recently Used” (LRU) cache](https://en.m.wikipedia.org/wiki/Cache_replacement_policies#Least_Recently_Used_.28LRU.29)

@@ -9,3 +9,2 @@ Useful when you need to cache something and limit memory usage.

## Install

@@ -17,3 +16,2 @@

## Usage

@@ -35,3 +33,2 @@

## API

@@ -49,3 +46,3 @@

*Required*<br>
*Required*\
Type: `number`

@@ -98,1 +95,13 @@

The stored item count.
---
<div align="center">
<b>
<a href="https://tidelift.com/subscription/pkg/npm-quick-lru?utm_source=npm-quick-lru&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
</b>
<br>
<sub>
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
</sub>
</div>
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc