Skip to content

Unexpected peerdependent bump to 1.0.0 in pre mode #960

@hmans

Description

@hmans

Problem

I have a branch in pre mode, and I don't understand why Changesets is planning on bumping this peerdependent to 1.0.0, even if the dependency's new version perfectly satisfies the specified range (0.11 is >= 0.9, right?)

image

I would have expected the specified peer dependency range to remain intact, and the dependent's version not to be bumped to 1.0.0.

To clarify, bumping the peer dependency range would be acceptable (even if I did not expect it), but the bump to 1.0.0 is not.

My config.json:

{
  "$schema": "https://unpkg.com/@changesets/config@2.0.0/schema.json",
  "changelog": "@changesets/cli/changelog",
  "commit": false,
  "fixed": [],
  "linked": [],
  "access": "public",
  "baseBranch": "main",
  "updateInternalDependencies": "minor",
  "ignore": [],
  "___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
    "onlyUpdatePeerDependentsWhenOutOfRange": true
  }
}

Version of changesets in use is 2.24.4.

Link to PR and repository: https://github.com/hmans/miniplex/pull/126/files

Thanks!

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