Skip to content

Mention changing definitons of functions or values as Breaking change #30

Closed

Description

@phadej

I propose changing

Breaking change. If any entity was removed, or the types of any entities or the definitions of datatypes or classes were changed, or orphan instances were added or any instances were removed, then ...

into (addition emphasised)

Breaking change. If any entity was removed, or the types of any entities or the definitions of datatypes, classes, functions or values were changed, or orphan instances were added or any instances were removed, then ...

Activity

  1. phadej commented on Dec 24, 2019

    @phadej
    CollaboratorAuthor

    I think this is consistent change, but definitions of functions or values aren't mentioned anywhere. Non-breaking change talks only about addition of things (good), for example.

  2. llelf commented on Dec 24, 2019

    @llelf
    Member

    This doesn’t make much sense to me.
    Every simple refactoring (changing definitions of ⟨…⟩ functions or values), among many other things, would be a breaking change then.

  3. phadej commented on Dec 24, 2019

    @phadej
    CollaboratorAuthor
  4. hvr commented on Dec 31, 2019

    @hvr
    Member

    @phadej I'd suggest to clarify the kind of changes by adding a couple more words:

    Breaking change. If any entity was removed, or the types of any entities or the definitions of datatypes, classes, functions or values were changed in a semantically observable way, or orphan instances were added or any instances were removed, then ...

  5. hasufell commented on Jan 8, 2020

    @hasufell
    Member

    @hvr that introduces some ambiguity. Changing a datatype should always be a breaking change, no matter if semantics are preserved or not. I can't figure out if the current wording means that or not, so I propose:

    Breaking change. If any entity was removed, or the types of any entities or the definitions of datatypes, classes were changed, or orphan instances were added or any instances were removed, or the definitions of functions or values were changed in a semantically observable way, then ...

  6. frasertweedale commented on Sep 29, 2020

    @frasertweedale

    So, what about I fix a little bug in the function. The type does not change, but the behaviour does change in a semantically observable way. As a library maintainer, requiring a major version bump for this does not feel right. OTOH, a major change to semantics or intended behaviour does warrant a major version bump (though perhaps a better way would be a new symbol, and deprecation of the old, otherwise users will get caught by surprise).

    I support an explicit mention of this scenario in the PVP, because it is a common and important scenario that maintainers deal with. But the current proposal is too strong. I would ignore it and rely on my own judgement about whether a behavioural change requires a major version bump or not. It is better that the PVP would set a minor version bump as the minimum requirement, with an accompanying admonition to consider whether the change warrants a major version bump, and perhaps some examples.

  7. phadej commented on Sep 29, 2020

    @phadej
    CollaboratorAuthor

    I don't remember which particular issue triggered opening this. I don't find changing of error formatting convincing enough anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions