You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@digitalbazaar/lru-memoize

Package Overview
Dependencies
Maintainers
4
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@digitalbazaar/lru-memoize - npm Package Versions

4.0.0

Diff
d
dlongley
published 4.0.0 •

Changelog

Source

4.0.0 - 2025-05-22

Changed

  • BREAKING: Use lru-cache@11. This replaces lru-cache@6 which has a number of breaking changes that impact any use of this library that previously accessed the underlying cache interface. The main interface of this module has only changed in that the options it accepts when creating the cache need to now conform to v11 of lru-cache instead of v6. The v6 maxAge option, if given, will result in an error being thrown.
  • BREAKING: The delete() method now returns true if the passed key was removed from the cache and false if not, matching the v11 delete() interface. Previously, undefined was returned in both cases.
d
dlongley
published 3.0.2 •

Changelog

Source

3.0.2 - 2023-08-27

Fixed

  • Only remove promise entries from cache after settling if the entry has not changed.
d
dlongley
published 3.0.1 •

Changelog

Source

3.0.1 - 2023-08-27

Fixed

  • Ensure same promise is returned from memoize that is cached.
d
davidlehn
published 3.0.0 •

Changelog

Source

3.0.0 - 2022-06-02

Changed

  • BREAKING: Convert to module (ESM).
  • BREAKING: Require Node.js >=14.
  • Update dependencies.
  • Lint module.
d
dlongley
published 2.2.0 •

Changelog

Source

2.2.0 - 2022-02-27

Added

  • Allow cache options to be passed to memoize. Only cache options that are supported by the underlying LRU instance will be used.
m
msporny
published 2.1.0 •

Changelog

Source

2.1.0 - 2021-06-30

Added

  • Add dispose on settle feature.
m
mattcollier
published 2.0.0 •

Changelog

Source

2.0.0 - 2021-03-02

Changed

  • BREAKING: Rename LruMemoize class to LruCache.
  • BREAKING: Use named export for LruCache.
m
mattcollier
published 1.1.0 •

Changelog

Source

1.1.0 - 2020-11-24

  • Implement delete API.
m
mattcollier
published 1.0.0 •

Changelog

Source

1.0.0 - 2020-11-23

  • See git history for details.
SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.