2.1.1 • Published 1 year ago

rotten-deps v2.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
1 year ago

Rotten Deps

Node.js CI

What is Rotten Deps?

Rotten Deps builds upon tools like yarn outdated and npm outdated to provide more than just a pass or fail state to outdated dependencies. You can configure a global or per dependency compliance period which will trigger a warn instead of a fail. This provides more breathing room for updating without blocking your builds.

Why and when should I use this?

Ignoring dependencies

Sometimes cases arise where due to some tech debt or other concern you're unable to update a specific dependency. If you have npm outdated or yarn outdated in your CI flow this job will constantly fail either blocking your builds or getting the team into the habit of ignoring the output.

Dependency specific compliance periods

Assuming you've decided that 14 days is an acceptable compliance periods for updates but you have one critical dependency that you like to keep patched. The inverse scenario also applies where maybe you're not that worried about a specific dev dependency falling out of date.

Global compliance period

This is good for setting organization base rules if you are working in an organization that has patching compliance windows.

How is days outdated determined?

We use your current version of a dependency as it is installed in your node_modules. Then based off a list of versions we determine the next semver version which is not a pre-release and use that as our comparison point. Days outdated is then calculated as the delta between the UTC seconds now versus the UTC seconds of next version's publish date. The delta is then converted and rounded to days and used in the report.

There is a special case where if you forget to install your project first using yarn install or npm install you won't have a node_modules/ so the wanted version is used instead which is determined based on how you pinned a version in your package.json.

How do I use this?

Prerequisites

  1. NodeJS
    • Must be v14.x or newer
    • Test strategy currently covers v14, v16, and v18 LTS versions

Installation

npm i -g rotten-deps or yarn global add rotten-deps to install this utility globally

  • OR -

npm i --save-dev rotten-deps or yarn add --dev rotten-deps to install it locally in your project.

Usage

You can find more in-depth documentation hosted on our GitHub pages.

CLI

To see details on command usage and options use rotten-deps --help, or if you installed it locally node ./node_modules/.bin/rotten-deps --help.

API

At this time the API isn't officially supported but you can probably figure it out based on the reference docs hosted on our GitHub Pages

Exit codes and meanings

  • 0 indicates that no dependencies are stale or outdated
  • 1 indicates that you have outdated dependencies
  • 2 indicates that you have stale dependencies but no outdated

Contributing

For instructions on contributing to this project please see CONTRIBUTING.md.

2.1.1

1 year ago

2.1.0

2 years ago

2.0.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

1.0.0-beta.26

2 years ago

1.0.0-beta.25

2 years ago

1.0.0-beta.24

3 years ago

1.0.0-beta.23

3 years ago

1.0.0-beta.22

3 years ago

1.0.0-beta.21

3 years ago

1.0.0-beta.20

3 years ago

1.0.0-beta.19

4 years ago

1.0.0-beta.17

4 years ago

1.0.0-beta.18

4 years ago

1.0.0-beta.16

4 years ago

1.0.0-beta.15

4 years ago

1.0.0-beta.14

4 years ago

1.0.0-beta.13

4 years ago