Skip to content

Cooldown does not upgrade to a newer version that is not latest #1556

@k3nsei

Description

@k3nsei

Steps to Reproduce

Running npx -y -- npm-check-updates --dep=dev,optional,peer,prod,packageManager --cooldown=2 does not update Svelte Kit to a newer version that is not the latest, as latest is not 2 days old.

The issue is with the --cooldown option: it currently only allows updating to the latest version, but only if the package hasn’t been updated in the last 2 days. It does not update to a version that is newer than the current one but older than the latest.

Dependencies:

{
  "devDependencies": {
    "@sveltejs/kit": "2.22.5"
  },
  "packageManager": "pnpm@10.17.1",
  "volta": {
    "node": "24.8.0",
    "pnpm": "10.17.1"
  }
}

Steps:

Run npx -y -- npm-check-updates --dep=dev,optional,peer,prod,packageManager --cooldown=2 -u

Current Behavior

Svelte Kit isn't updating to version older than latest but newer that the one specified in package.json.

Expected Behavior

Svelte Kit should be updated to 2.43.2 if latest is 2.43.4 and not older than 2 days.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions