Skip to content

Do not emit Infinity / -Infinity / NaN values from canonicaljson.#32

Merged
clokep merged 3 commits into
masterfrom
clokep/no-invalid-values
Aug 24, 2020
Merged

Do not emit Infinity / -Infinity / NaN values from canonicaljson.#32
clokep merged 3 commits into
masterfrom
clokep/no-invalid-values

Conversation

@clokep
Copy link
Copy Markdown
Member

@clokep clokep commented Aug 18, 2020

Per matrix-org/synapse#8106, we shouldn't be serializing these values to JSON since they're not standard JSON.

Comment thread test_canonicaljson.py Outdated
Co-authored-by: David Vo <auscompgeek@users.noreply.github.com>
@clokep clokep requested a review from a team August 18, 2020 14:51
Copy link
Copy Markdown
Member

@erikjohnston erikjohnston left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to scream from the rooftops about this change in a changelog?

@clokep
Copy link
Copy Markdown
Member Author

clokep commented Aug 19, 2020

Do we need to scream from the rooftops about this change in a changelog?

I don't think so, but maybe. Do you think this is worthy of a release?

I guess it is backwards incompatible which definitely means some light screaming. 👍

@clokep
Copy link
Copy Markdown
Member Author

clokep commented Aug 20, 2020

I've added a note to the changelog.

@clokep clokep merged commit 51a36ca into master Aug 24, 2020
@clokep clokep deleted the clokep/no-invalid-values branch August 24, 2020 13:16
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