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

Create and publish a package with a shared LanguageVersion type #1210

Open
parlough opened this issue Dec 10, 2024 · 0 comments
Open

Create and publish a package with a shared LanguageVersion type #1210

parlough opened this issue Dec 10, 2024 · 0 comments

Comments

@parlough
Copy link
Member

parlough commented Dec 10, 2024

More and more Dart tools are relying on the Dart language version of a project or file, but there's no standard way to communicate about a language version. Some tools have used Version from package:pub_semver, but it's not meant for language versions and is a bit heavy weight. While others have created their own types to represent the information.

package:package_config does have a public LanguageVersion class, but it hasn't consistently been used. Perhaps because package developers think it's only for package config functionality or because it includes

A focused package with a LanguageVersion interface (or shared concrete implementation) would enable a small, stable dependency that different tools and packages can use to share Dart language versions. Related types, such as Version in package:pub_semver could add extension methods to convert both directions as well.


A few users of language version and their solution.

@parlough parlough changed the title Create and publish a minimal package with a shared LanguageVersion type Create and publish a package with a shared LanguageVersion type Dec 10, 2024
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

No branches or pull requests

2 participants