Typescript: Can typescript please follow semver? So we can know when an upgrade is minor/major/patch ?

Created on 26 Jun 2020  路  2Comments  路  Source: microsoft/TypeScript

Search Terms

semver, breaking changes, semantic versioning

Suggestion

I realized 4.0.0 isn't a breaking change. Typescript versions aren't like other node package versions. Now sure how they increment and who decides version numbers.

Could we adopt semver ? It makes it super easy to know whether a version upgrade is a breaking change, a new additional feature or just a small bug fix.

As a package consumer, knowing the answers to those questions is important and since TS doesn't follow semver it means as an author, I have to manually fiddle through release notes to figure things out.

https://docs.npmjs.com/about-semantic-versioning

By default npm installs with '^x.y.z', which means latest package with same major version, so minor releases are allowed.

By releasing with semver, it plays well with rest of npm ecosystem.

Use Cases

Have a sane dev life.

My suggestion meets these guidelines:

  • [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
  • [x] This feature would agree with the rest of TypeScript's Design Goals.
Duplicate

Most helpful comment

@kitsonk @RyanCavanaugh #14116 is now locked, which means that we can't provide +1's, which means Microsoft is unable to measure community feedback on this issue.

How would you suggest that we proceed without opening duplicate issues, if we wish to demonstrate that this issue is impacting us?

All 2 comments

Duplicate of #14116

Please don't open duplicate issues.

@kitsonk @RyanCavanaugh #14116 is now locked, which means that we can't provide +1's, which means Microsoft is unable to measure community feedback on this issue.

How would you suggest that we proceed without opening duplicate issues, if we wish to demonstrate that this issue is impacting us?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RyanCavanaugh picture RyanCavanaugh  路  205Comments

OliverJAsh picture OliverJAsh  路  242Comments

Gaelan picture Gaelan  路  231Comments

kimamula picture kimamula  路  147Comments

fdecampredon picture fdecampredon  路  358Comments