Skip to content

Js.Null.to_opt removed without prior warning in 2.2.0 #2515

@glennsl

Description

@glennsl

This is a breaking change in a release that according to semantic versioning should be backwards-compatible, without any prior deprecation, and without even a note in the change log. Meanwhile, Elm's publishing tool enforces semantic versioning for even the most trivial third-party package. This does not compare favorably.

In the short term I suggest adding Js.Null.to_opt back as deprecated, noting it in the change log and making a patch release. In the long term I suggest we create a tool that compares the API against the previous release to ensure it doesn't break semantic versioning again.

Metadata

Metadata

Assignees

No one assigned

    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