-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for the toJSON() method when encoding (#113)
Example with BigInt values: ```js BigInt.prototype.toJSON = function () { return String(this); }; emitter.emit("foo", 42n); ``` Important note! There is a non backward-compatible change regarding Date objects, which means that the adapter may not be able to properly decode them. Reference: https://github.com/darrachequesne/notepack/releases/tag/3.0.0 Diff: darrachequesne/notepack@2.3.0...3.0.1
- Loading branch information
1 parent
d62af2c
commit 3a6d94d
Showing
3 changed files
with
37 additions
and
9 deletions.
There are no files selected for viewing
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