If a package exposes variants of a type that did not expose its variants in a previous version, it will be marked as a major change, even though it doesn't remove but only add API → minor change.
SSCCE
module Data exposing (Data)
{-| -}
{-| -}
type Data
= Data
changed to
module Data exposing (Data(..))
{-| -}
{-| -}
type Data
= Data
then
elm diff
prints out
This is a MAJOR change.
---- N - MAJOR ----
Changed:
- type Data
+ type Data = Data
If a package exposes variants of a
type
that did not expose its variants in a previous version, it will be marked as a major change, even though it doesn't remove but only add API → minor change.SSCCE
changed to
then
prints out
docs json output
previous version
new version