Check a package version's age
check_packageCheck when a package version was published and whether it meets a minimum age, or retrieve the newest version old enough to add or upgrade a dependency.
Instructions
Say when a package version was published and whether it is old enough under the project's minimum age. Leave version out to list recent releases and get the newest version that is old enough: use that version when adding or upgrading a dependency. A version that is too new comes with the newest older version that passes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The package name, exactly as the registry knows it, like left-pad, @types/node or requests. | |
| min_age | No | Override the minimum age, like 72h, 3d or 1w. Leave out to use the project's policy. | |
| version | No | The exact version. Leave out to list recent releases. | |
| ecosystem | Yes | The registry: npm (also pnpm, yarn, bun), pypi, cargo, go, composer, rubygems, nuget, maven (group:artifact), jsr, pub (Dart and Flutter), cocoapods, swift (owner/repo on GitHub), terraform (namespace/provider), conan (C and C++ from ConanCenter), cran (R packages on CRAN), hex (Elixir and Erlang), nix (owner/repo and a commit), bazel, vcpkg (microsoft/vcpkg and a baseline commit), actions (owner/repo). |