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

Editor: Semantic versioning smarts for pubspec editing #19389

Closed
DartBot opened this issue Jun 12, 2014 · 8 comments
Closed

Editor: Semantic versioning smarts for pubspec editing #19389

DartBot opened this issue Jun 12, 2014 · 8 comments
Assignees
Labels
closed-not-planned Closed as we don't intend to take action on the reported issue type-enhancement A request for a change that isn't a bug
Milestone

Comments

@DartBot
Copy link

DartBot commented Jun 12, 2014

This issue was originally filed by @seaneagan


The editor already has a GUI for pubspec editing with a button to add a new dependency. It currently defaults the version constraint to "any". It would awesome if instead it looked at the latest version, and suggested a version range that guarantees I won't be subject to any breaking changes, so long as the dependency's author adheres to semantic versioning. Some examples:

0.0.5 -> '>=0.0.5 < 0.1.0'
0.4.1 -> '>=0.4.1 < 0.5.0'
1.2.3 -> '>=1.2.3 < 2.0.0'

Whenever you pub publish with any constraints from the editor, it already warns and makes such suggestions, so whatever code is used there could be reused.

It might also be nice to have a button to update either a single dependency or all dependencies to the latest version, which would use similar version constraints as above.

@DartBot
Copy link
Author

DartBot commented Jun 12, 2014

This comment was originally written by @seaneagan


and issue #18555 is about publishing pub's semver code for this

@kasperl
Copy link

kasperl commented Jun 12, 2014

Added Area-Editor, Triaged labels.

@clayberg
Copy link

Set owner to @keertip.
Added this to the 1.6 milestone.
Removed Priority-Unassigned label.
Added Priority-Medium label.

@DartBot
Copy link
Author

DartBot commented Jun 16, 2014

This comment was originally written by @seaneagan


Ideally, this functionality would be built-in to pub (issue #18911), and the editor would just call pub when the various buttons are clicked.

But adding it to the editor might be quicker than adding it to pub, so that'd be nice to have in the meantime, and might drive some feedback to use in issue #18911.

@kasperl
Copy link

kasperl commented Jul 10, 2014

Removed this from the 1.6 milestone.
Added Oldschool-Milestone-1.6 label.

@kasperl
Copy link

kasperl commented Aug 4, 2014

Removed Oldschool-Milestone-1.6 label.

@sethladd
Copy link
Contributor

Agreed, something like this might be better for an external utility.


Added NotPlanned label.

@clayberg
Copy link

Added this to the 1.6 milestone.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-not-planned Closed as we don't intend to take action on the reported issue type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

6 participants