Skip to content

v1.6.2 is not backwards compatible with v1.6.1 projects #182

Closed
@bajtos

Description

@bajtos

Steps to reproduce:

  1. Create the following package.json file:

    {
      "dependencies": {
        "loopback-datasource-juggler": "~1.2.13",
        "loopback": "~1.6.0"
      }
    }
  2. Run npm install.

    [cut]
    npm ERR! peerinvalid
      The package loopback-datasource-juggler 
      does not satisfy its siblings' peerDependencies requirements!
    npm ERR! peerinvalid
      Peer loopback@1.6.2 wants loopback-datasource-juggler@~1.3.0
    

The problem is IMO caused by loopback v1.6.2 breaking semver rules.

How to fix the immediate problem:

  • release loopback v1.6.2 as v1.7.0
  • npm unpublish loopback@1.6.2
  • update loopback-workspace to depend on loopback >=1.7, publish a new patch version

/to @raymondfeng @ritch Any objections to taking the two actions above?

Longterm:

When we bump up the version of loopback-datasource-juggler required by loopback to a different major/minor version, we must release this change as a minor version of loopback.

Possibly related: the comment in #85.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions