Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: rename toJson to toJSON #15

Merged
merged 1 commit into from
Feb 3, 2022
Merged

Conversation

raymondfeng
Copy link
Contributor

This PR is to make CAIP objects compatiable with JSON.stringify that honors toJSON.
See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#description

Signed-off-by: Raymond Feng [email protected]

This PR is to make CAIP objects compatiable with JSON.stringify that honors `toJSON`.
See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#description

Signed-off-by: Raymond Feng <[email protected]>
@pedrouid
Copy link
Member

pedrouid commented Feb 3, 2022

This would be a breaking API change... it would need some consideration from existing consumers

@ukstv
Copy link
Contributor

ukstv commented Feb 3, 2022

Apparently, Ceramic does not use toJson, so we should not be affected by this change.

@pedrouid
Copy link
Member

pedrouid commented Feb 3, 2022

Great! In that case I will publish a beta release (1.1.0-beta.1) with this change as well

@pedrouid pedrouid merged commit be95666 into ChainAgnostic:master Feb 3, 2022
@pedrouid pedrouid mentioned this pull request Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants