mirror of
https://github.com/conventional-commits/conventionalcommits.org.git
synced 2026-03-22 12:44:37 -05:00
How to resolve ambiguity between feat/fix types? #162
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @brupelo on GitHub (Dec 16, 2022).
Originally assigned to: @bcoe on GitHub.
Hi guys,
We're trying to follow the v1.0.0 specs, specially the part that talks about semver.
There is one case which it's very tricky to know whether we should use feat or fix. Let me put you a trivial example:
Let's say you've created a simple react package that's exposing some reusable components to the client:
widget_foo.jsx
and you exposing this widget on the public api of your bundle... obviously, in this case you'd create a
feattype commit, so far so goodFor the sake of simplicity, let's say the old behaviour wasn't following the existing requirements therefore we could catalogue this one
as a
fixcommit (not so obvious choice)Which type of commit should this one become?
stylein the specs... but that type won't modify semver. Even though, these sort of changes are relevant to the clients and they need to be aware of new package versions when these sort of "improvements"/"enhacements" of existing features happen.Shouldn't the specs resolve this sort of ambiguity somehow? Is this a feat or a fix? Is it maybe other type that should also modify semver? At the end of the day semver should be driven mostly by public API pinned to customers/clients. But visual modifications, visual enhacements or feature updates will have obviously impact on customers so it should be clear which type to use and how that'd should affect semver.
At the end of the day new versions means some existing customers will spend money updating their products against your libraries, so deciding if they want to spend the time on a patch or a minor update definitely it's a big deal.
Thanks in advance!