@pacote/memoize
Advanced tools
Comparing version
@@ -6,12 +6,18 @@ # Change Log | ||
## [1.1.8](https://github.com/PacoteJS/pacote/compare/@pacote/memoize@1.1.7...@pacote/memoize@1.1.8) (2022-09-02) | ||
# [2.0.0](https://github.com/PacoteJS/pacote/compare/@pacote/memoize@1.1.8...@pacote/memoize@2.0.0) (2023-04-13) | ||
### chore | ||
### Bug Fixes | ||
- ๐ค CommonJS packages now build with ES5 compatibility ([c0147ae](https://github.com/PacoteJS/pacote/commit/c0147aeffb81322ea59174a3961b10cfb3bf81e5)) | ||
* ๐ Fix typing issue ([7b433f5](https://github.com/PacoteJS/pacote/commit/7b433f5a50bc9462f13db945e7a458af76eeadd2)) | ||
### BREAKING CHANGES | ||
- ๐งจ CommonJS packages now build with ES5 compatibility as a minimum. ES3 is | ||
no longer supported. | ||
## [1.1.8](https://github.com/PacoteJS/pacote/compare/@pacote/memoize@1.1.7...@pacote/memoize@1.1.8) (2022-09-02) | ||
### Bug Fixes | ||
- ๐ Fix typing issue ([7b433f5](https://github.com/PacoteJS/pacote/commit/7b433f5a50bc9462f13db945e7a458af76eeadd2)) | ||
@@ -22,6 +28,2 @@ ## [1.1.7](https://github.com/PacoteJS/pacote/compare/@pacote/memoize@1.1.6...@pacote/memoize@1.1.7) (2022-09-02) | ||
## [1.1.6](https://github.com/PacoteJS/pacote/compare/@pacote/memoize@1.1.5...@pacote/memoize@1.1.6) (2021-08-13) | ||
@@ -31,6 +33,2 @@ | ||
## [1.1.5](https://github.com/PacoteJS/pacote/compare/@pacote/memoize@1.1.4...@pacote/memoize@1.1.5) (2020-11-27) | ||
@@ -37,0 +35,0 @@ |
@@ -1,3 +0,3 @@ | ||
declare type Fn<A extends any[], R> = (...args: A) => R; | ||
type Fn<A extends any[], R> = (...args: A) => R; | ||
export declare function memoize<A extends any[], R>(cacheKeyFn: Fn<A, string>, fn: Fn<A, R>): Fn<A, R>; | ||
export {}; |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.memoize = void 0; | ||
@@ -11,3 +11,3 @@ function createCache() { | ||
cache[key] = value; | ||
} | ||
}, | ||
}; | ||
@@ -30,1 +30,2 @@ } | ||
exports.memoize = memoize; | ||
//# sourceMappingURL=index.js.map |
@@ -1,3 +0,3 @@ | ||
declare type Fn<A extends any[], R> = (...args: A) => R; | ||
type Fn<A extends any[], R> = (...args: A) => R; | ||
export declare function memoize<A extends any[], R>(cacheKeyFn: Fn<A, string>, fn: Fn<A, R>): Fn<A, R>; | ||
export {}; |
@@ -21,1 +21,2 @@ function createCache() { | ||
} | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@pacote/memoize", | ||
"description": "Memoization function.", | ||
"version": "1.1.8", | ||
"version": "2.0.0", | ||
"sideEffects": false, | ||
@@ -37,3 +37,7 @@ "license": "MIT", | ||
}, | ||
"gitHead": "4c1eff81ae7d3439b2bfa44a826ee9882ebf1e03" | ||
"typedoc": { | ||
"entryPoint": "./src/index.ts", | ||
"tsconfig": "tsconfig.esm.json" | ||
}, | ||
"gitHead": "1e6186bfa34800585a8906415608c25d1850e30e" | ||
} |
9552
29.62%12
20%