Skip to content

Commit cc1d14e

Browse files
committed
fix: update proxyequal, recondider memoization pureness
1 parent dabcc99 commit cc1d14e

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

_tests/smoke.spec.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -578,11 +578,7 @@ describe('memoize-proxy', () => {
578578
const test3 = shouldBePure(fun3, {isolatedCheck: true});
579579
test3(A);
580580
test3(A);
581-
expect(test3.isPure).to.be.true;
582-
test3([1, 2, 3]);
583-
expect(test3.isPure).to.be.true;
584-
test3([1, 2, 4]);
585-
expect(test3.isPure).to.be.true;
581+
expect(test3.isPure).to.be.false;
586582
});
587583

588584
it('pure memoization', () => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@
5555
"homepage": "https://github.com/theKashey/memoize-state#readme",
5656
"dependencies": {
5757
"function-double": "^1.0.4",
58-
"proxyequal": "^2.0.4"
58+
"proxyequal": "^2.0.6"
5959
}
6060
}

yarn.lock

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5632,6 +5632,15 @@ proxyequal@^2.0.4:
56325632
crc-32 "^1.2.0"
56335633
search-trie "^1.1.0"
56345634

5635+
proxyequal@^2.0.6:
5636+
version "2.0.6"
5637+
resolved "https://registry.yarnpkg.com/proxyequal/-/proxyequal-2.0.6.tgz#5d49c1bb165c93c41e4414e587ad0414e8a26cf3"
5638+
integrity sha512-4GkhdV+ZsR/X/4tVpC8g10wGRmc6eafaPkAEbnBKtmjF5EhwHE6MvkJHQWdtQ6NhX3dayc5f7xPG69kRouJLuw==
5639+
dependencies:
5640+
crc-32 "^1.2.0"
5641+
proxyequal "^2.0.4"
5642+
search-trie "^1.1.0"
5643+
56355644
prr@~1.0.1:
56365645
version "1.0.1"
56375646
resolved "https://registry.yarnpkg.com/prr/-/prr-1.0.1.tgz#d3fc114ba06995a45ec6893f484ceb1d78f5f476"

0 commit comments

Comments
 (0)