Skip to content

Commit

Permalink
fix: update proxyequal, recondider memoization pureness
Browse files Browse the repository at this point in the history
  • Loading branch information
theKashey committed Apr 13, 2019
1 parent dabcc99 commit cc1d14e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
6 changes: 1 addition & 5 deletions _tests/smoke.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -578,11 +578,7 @@ describe('memoize-proxy', () => {
const test3 = shouldBePure(fun3, {isolatedCheck: true});
test3(A);
test3(A);
expect(test3.isPure).to.be.true;
test3([1, 2, 3]);
expect(test3.isPure).to.be.true;
test3([1, 2, 4]);
expect(test3.isPure).to.be.true;
expect(test3.isPure).to.be.false;
});

it('pure memoization', () => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@
"homepage": "https://github.com/theKashey/memoize-state#readme",
"dependencies": {
"function-double": "^1.0.4",
"proxyequal": "^2.0.4"
"proxyequal": "^2.0.6"
}
}
9 changes: 9 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5632,6 +5632,15 @@ proxyequal@^2.0.4:
crc-32 "^1.2.0"
search-trie "^1.1.0"

proxyequal@^2.0.6:
version "2.0.6"
resolved "https://registry.yarnpkg.com/proxyequal/-/proxyequal-2.0.6.tgz#5d49c1bb165c93c41e4414e587ad0414e8a26cf3"
integrity sha512-4GkhdV+ZsR/X/4tVpC8g10wGRmc6eafaPkAEbnBKtmjF5EhwHE6MvkJHQWdtQ6NhX3dayc5f7xPG69kRouJLuw==
dependencies:
crc-32 "^1.2.0"
proxyequal "^2.0.4"
search-trie "^1.1.0"

prr@~1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/prr/-/prr-1.0.1.tgz#d3fc114ba06995a45ec6893f484ceb1d78f5f476"
Expand Down

0 comments on commit cc1d14e

Please sign in to comment.