4 ms·
Automatically differentiating between bug fixes and backwards-incompatible changes is, I believe, impossible.
by fwip 8y ago
Automatically differentiating between bug fixes and backwards-incompatible changes is, I believe, impossible.
- jayshua 8y agoIn general, yes. But there are still some things you can do. The Elm package repository, for example, looks at the type signatures of all of the public functions. If there are no changes from the last version, it bumps the patch version. If functions have been added to the public API, it forces a minor version bump. If functions have been removed from the public API, or any type signatures have changed, it forces a major version change. I believe it lets the user force a major or minor bump for changes that don't appear in the type signature. It's been my experience that that is pretty rare though.