Skip to content

v14: Make state field optional and disallow null for state.open #91

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

Merged
merged 2 commits into from
May 1, 2021

Conversation

rnestler
Copy link
Member

@rnestler rnestler commented Apr 29, 2021

In v0.13 state and but state.open must be present, but state.open may be
null. This doesn't provide any benefit, so v14 removed these
restrictions.

We can't provide full backwards compatiblity, since state.open == null
is not supported in v14.

To still have a json which is compatible with both v0.13 and v14
state.open must be set to either true or false.

Checklist

  • Tests added if applicable
  • [na] README updated if applicable
  • CHANGELOG updated if applicable
  • If a commit includes a breaking change, include the string [breaking-change] somewhere in the commit message

@rnestler rnestler mentioned this pull request Apr 29, 2021
19 tasks
@rnestler rnestler force-pushed the v14-make-state-optional branch from 012bd43 to 0ec9dd1 Compare April 29, 2021 21:16
@rnestler rnestler requested review from dbrgn and a team April 29, 2021 21:16
[breaking-change]:
In v0.13 state and but state.open must be present, but state.open may be
null. This doesn't provide any benefit, so v14 removed these
restrictions.

We can't provide full backwards compatiblity, since state.open == null
is not supported in v14.

To still have a json which is compatible with both v0.13 and v14
state.open must be set to either true or false.
@rnestler rnestler force-pushed the v14-make-state-optional branch from 2c207c8 to 62a5154 Compare April 29, 2021 21:19
@rnestler
Copy link
Member Author

@dbrgn I think I'll do a 0.8 release after this one, since the most important bits of the v14 support are in place now.

@dbrgn
Copy link
Collaborator

dbrgn commented Apr 30, 2021

@rnestler yeah, makes sense.

@rnestler rnestler merged commit c39f205 into master May 1, 2021
@rnestler rnestler deleted the v14-make-state-optional branch May 1, 2021 13:44
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.

2 participants