Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

micro-memoize

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

micro-memoize - npm Package Compare versions

Comparing version 4.0.13 to 4.0.14

8

CHANGELOG.md
# micro-memoize CHANGELOG
## 4.0.14
- Republish of [#87](https://github.com/planttheidea/micro-memoize/pull/87)
## 4.0.13 (Bad version - do not use)
- [#87](https://github.com/planttheidea/micro-memoize/pull/87) - Default generic values for exposed types, to avoid unintentional breaking changes from [#85](https://github.com/planttheidea/micro-memoize/pull/85)
## 4.0.12

@@ -4,0 +12,0 @@

13

index.d.ts

@@ -14,3 +14,3 @@ type Dictionary<Type> = {

export type Cache<Fn extends AnyFn> = import('./src/Cache').Cache<Fn>;
export type Cache<Fn extends AnyFn = AnyFn> = import('./src/Cache').Cache<Fn>;

@@ -21,3 +21,3 @@ export type EqualityComparator = (object1: any, object2: any) => boolean;

export type CacheModifiedHandler<Fn extends AnyFn> = (
export type CacheModifiedHandler<Fn extends AnyFn = AnyFn> = (
cache: Cache<Fn>,

@@ -32,3 +32,3 @@ options: NormalizedOptions<Fn>,

export type StandardOptions<Fn extends AnyFn> = {
export type StandardOptions<Fn extends AnyFn = AnyFn> = {
isEqual?: EqualityComparator;

@@ -44,4 +44,5 @@ isMatchingKey?: MatchingKeyComparator;

export type Options<Fn extends AnyFn> = StandardOptions<Fn> & Dictionary<any>;
export type NormalizedOptions<Fn extends AnyFn> = Options<Fn> & {
export type Options<Fn extends AnyFn = AnyFn> = StandardOptions<Fn> &
Dictionary<any>;
export type NormalizedOptions<Fn extends AnyFn = AnyFn> = Options<Fn> & {
isEqual: EqualityComparator;

@@ -52,3 +53,3 @@ isPromise: boolean;

export type Memoized<Fn extends AnyFn> = Fn &
export type Memoized<Fn extends AnyFn = AnyFn> = Fn &
Dictionary<any> & {

@@ -55,0 +56,0 @@ cache: Cache<Fn>;

@@ -104,3 +104,3 @@ {

"types": "./index.d.ts",
"version": "4.0.13"
"version": "4.0.14"
}
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc