This repository has been archived by the owner on Aug 31, 2021. It is now read-only.
[Snyk] Upgrade memoize-one from 5.1.1 to 5.2.1 #6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade memoize-one from 5.1.1 to 5.2.1.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
Release notes
Package name: memoize-one
The addition of a named import for
memoize-one
in5.2.0
created an unintentional breaking change for our CommonJS bundle #116 (Thanks @ ehmicky for finding this)5.2.1
reverts the addition of the named import of5.2.0
.5.2.0
has also been deprecated onnpm
5.2.0
is deprecated onnpm
The addition of our named import created a breaking change for our CommonJS build #116 (Thanks @ ehmicky for finding this)
The named import feature has been reverted and you can continue to use the default import has you always have
New feature: Added a named import #37
You can now import
memoize-one
using a named import if you wantAlternatively, you can continue to use the default import
Fix: Correctly handling
NaN
#101Our default equality checking function does a
===
equality check for all arguments. This was problematic when providing special "not a number"number
→NaN
asNaN
!==NaN
. Our default equality function now handlesNaN
values correctlyThank you @ ohoho7 for raising this and @ Ayub-Begimkulov for diving it forward
Improvement: Documentation
I have added more detail to the readme which explains in greater detail how our default equality function works
Improvement: Bumping dev dependencies
I have upgraded all the
devDependencies
ofmemoize-one
to be their latest versions. A reminder thatmemoize-one
has nodependencies
🎉Looser
EqualityFn
typeFor
5.1.0
we shipped anEqualityFn
type that was not ideal. It was decided that the simplest path forward for consumers was to move to a looserEqualityFn
type. #73Thanks @ SanderDeWaal1992 for raising this issue
Commit messages
Package name: memoize-one
Compare
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs