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

Find a way to gracefully avoid one breaking change in #405 #416

Merged
merged 1 commit into from
Jan 19, 2022

Conversation

theckman
Copy link
Collaborator

@theckman theckman commented Jan 18, 2022

In #405 I opted to rename one of the types to be more consistent, and in the
moment totally forgot about type aliases. A type alias allows you to rename a
type in a non-breaking way, by converting the old name to be an alias to the new
one.

This change does that, and effectively removes one breaking change from v1.5.0.

I also do the sane thing to unify the Priority type into one.

@theckman theckman added this to the v1.5.0 milestone Jan 18, 2022
@theckman theckman requested a review from stmcallister January 18, 2022 03:01
@theckman
Copy link
Collaborator Author

#405 (comment)

In #405 I opted to rename one of the types to be more consistent, and in the
moment totally forgot about type aliases. A type alias allows you to rename a
type in a non-breaking way, by converting the old name to be an alias to the new
one.

This change does that, and effectively removes one breaking change from v1.5.0.

I also do the sane thing to unify the Priority type into one.
@theckman theckman force-pushed the maintain_api_compatibility branch from 1bd67db to 428048d Compare January 18, 2022 03:07
Copy link
Contributor

@stmcallister stmcallister left a comment

Choose a reason for hiding this comment

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

Nice! TIL about aliasing! I like this solution better! Thanks! 👍 🌮 🎉

@theckman theckman merged commit ca33620 into master Jan 19, 2022
@theckman theckman deleted the maintain_api_compatibility branch January 19, 2022 05:45
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