micro-memoize
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -748,3 +748,3 @@ // external dependencies | ||
const calc = memoize( | ||
(object: { [key: string]: any }, metadata: { c: number }) => | ||
(object: { [key: string]: any }, metadata: { c: number }): PlainObject => | ||
Object.keys(object).reduce((totals: { [key: string]: number }, key) => { | ||
@@ -751,0 +751,0 @@ if (Array.isArray(object[key])) { |
# micro-memoize CHANGELOG | ||
## 3.0.1 | ||
- Fix types declaration for `Options` to allow custom keys / indices | ||
## 3.0.0 | ||
@@ -4,0 +8,0 @@ |
@@ -33,2 +33,4 @@ declare namespace MicroMemoize { | ||
export type Options = { | ||
[key: string]: any; | ||
[index: number]: any; | ||
isEqual?: EqualityComparator; | ||
@@ -35,0 +37,0 @@ isMatchingKey?: MatchingKeyComparator; |
@@ -18,4 +18,4 @@ { | ||
"@types/bluebird": "^3.5.25", | ||
"@types/jest": "^24.0.0", | ||
"@types/react": "^16.7.20", | ||
"@types/jest": "^24.0.5", | ||
"@types/react": "^16.8.3", | ||
"benchee": "^1.0.0", | ||
@@ -39,3 +39,3 @@ "benchmark": "^2.1.4", | ||
"ramda": "^0.26.1", | ||
"react": "^16.7.0", | ||
"react": "^16.8.2", | ||
"rollup": "^1.1.2", | ||
@@ -53,3 +53,3 @@ "rollup-plugin-typescript": "^1.0.0", | ||
"underscore": "^1.9.1", | ||
"webpack": "^4.20.2", | ||
"webpack": "^4.29.4", | ||
"webpack-cli": "^3.1.2", | ||
@@ -95,2 +95,3 @@ "webpack-dev-server": "^3.1.9" | ||
"prepublish:compile": "npm run lint && npm run test:coverage && npm run dist", | ||
"release": "release-it", | ||
"start": "npm run dev", | ||
@@ -103,3 +104,3 @@ "test": "NODE_PATH=. jest", | ||
"types": "./index.d.ts", | ||
"version": "3.0.0" | ||
"version": "3.0.1" | ||
} |
@@ -405,3 +405,3 @@ # micro-memoize | ||
**HOTE**: `moize` offers a variety of convenience methods for this manual `cache` manipulation, and while `micro-memoize` allows all the same capabilities by exposing the `cache`, it does not provide any convenience methods. | ||
**NOTE**: `moize` offers a variety of convenience methods for this manual `cache` manipulation, and while `micro-memoize` allows all the same capabilities by exposing the `cache`, it does not provide any convenience methods. | ||
@@ -430,3 +430,3 @@ #### cacheSnapshot | ||
Benchmarks was performed on an i7 8-core Arch Linux laptop with 16GB of memory using NodeJS version `8.9.4`. The default configuration of each library was tested with a fibonacci calculation based on the following parameters: | ||
Benchmarks was performed on an i7 8-core Arch Linux laptop with 16GB of memory using NodeJS version `10.15.0`. The default configuration of each library was tested with a fibonacci calculation based on the following parameters: | ||
@@ -433,0 +433,0 @@ - Single primitive = `35` |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
442158
28
2672