-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes bug which dropped non-enumerable fields from 'data' argument (#22)
This commit removes the use of `_.cloneDeep` on additional context passed to a `log` call (third positional argument). Cloning `data` introduced a breaking change for individuals passing objects with non-enumerable properties as the `data` argument. **Note:** This reversion re-introduces the risk of mutation when paired with plug-ins. It also restores the built-in mutation that will append a `._label` attribute to any `data` argument. The README was updated to reflect those risks and explain how they can be managed through careful usage.
- Loading branch information
1 parent
b1826b7
commit 3e951ba
Showing
5 changed files
with
29 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters