mimic-fn v3.0.0 Release Notes
Release Date: 2019-06-13 // almost 7 years ago-
๐ฅ Breaking changes
- Copy inherited properties of the original function. (#30)
- Do not copy the
lengthproperty. (#23) - โฌ๏ธ Drop support for Node 6. (#25)
- โ Remove
module.exports.default. (#26) If you used to dorequire('mimic-fn').default, you should now userequire('mimic-fn')directly.
๐ Features
String(wrapper)now mimicsString(originalFunction). A comment is prepended to indicate the original function has been wrapped. (#32)- โ Add boolean option
ignoreNonConfigurableto ignore the wrapper function's non-configurable properties instead of throwing an error. This defaults tofalse. (#33, #34, #35) - ๐ Allow functions with different
prototypesuch as classes, constructor functions and arrow functions. (#31, #36)
Design
- โ Add a logo. (#37)
Maintainers
- โ Add @ehmicky as an additional maintainer.