Skip to content

no SemVer warning #738

@zewa666

Description

@zewa666

Issue

Since this package does not follow SemVer, build systems, running unit tests automatically, break hard without ever understanding what happened. I'm pretty sure tons of users out there lost some valuable hours today fixing the issue just because SemVer isn't followed and there are no mechanisms in place to warn users about potential breaking changes, or like happened today A FULL REWRITE

Expected behavior

Since it seems the repo owners have their reasons for ditching SemVer, which in all honesty should be revisited to prevent disasters since pretty much the whole NPM community agreed upon that standard, I'd like to see at least any indicator upon installing a new version that breaking changes might result.

Example solution

  • Add a postinstall task
  • Require the version, check for the new one introducing breaking changes and console.error a help
const package = require('./package.json')

if (package.version === "MY NEW VERSION INTRODUCING A BREAKING CHANGE AND NOT BEING SEMVER COMPATIBLE") {
  console.error('Hey there ... we created a breaking change ... might wanna read more here ...[link]');
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions