5.2.0
⚠️ 5.2.0
is deprecated on npm
⚠️
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
import memoizeOne from 'memoize-one';
New feature: Added a named import #37
DEPRECATED Please continue to use default import
This resulted in a
minor
bump for the library
You can now import memoize-one
using a named import if you want
import { memoizeOne } from 'memoize-one';
Alternatively, you can continue to use the default import
import memoizeOne from 'memoize-one';
Fix: Correctly handling NaN
#101
Our default equality checking function does a ===
equality check for all arguments. This was problematic when providing special "not a number" number
→ NaN
as NaN
!== NaN
. Our default equality function now handles NaN
values correctly
Thank 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
of memoize-one
to be their latest versions. A reminder that memoize-one
has no dependencies
🎉