From cc1d14e4719817ffd9bb7724f24f00f2f455d9b5 Mon Sep 17 00:00:00 2001 From: Anton Korzunov Date: Sat, 13 Apr 2019 21:34:15 +1000 Subject: [PATCH] fix: update proxyequal, recondider memoization pureness --- _tests/smoke.spec.js | 6 +----- package.json | 2 +- yarn.lock | 9 +++++++++ 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/_tests/smoke.spec.js b/_tests/smoke.spec.js index c139606..aa8d083 100644 --- a/_tests/smoke.spec.js +++ b/_tests/smoke.spec.js @@ -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', () => { diff --git a/package.json b/package.json index be5336b..bbb7ad3 100644 --- a/package.json +++ b/package.json @@ -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" } } diff --git a/yarn.lock b/yarn.lock index dd47ff3..c6e9e20 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"