Remix.run Logo
andix 5 days ago

Are there any package managers that have something like a min-age setting. To ignore all packages that were published less than 24 or 36 hours ago?

I’ve run into similar issues before, some package update that broke everything, only to get pulled/patched a few hours later.

ZeWaka 5 days ago | parent | next [-]

GitHub dependabot just got this very recently: https://github.blog/changelog/2025-07-01-dependabot-supports...

VPenkov 5 days ago | parent | prev | next [-]

Not a package manager, but Renovate bot has a setting like that (minimumReleaseAge). Dependabot does not (Edit: does now).

So while your package manager will install whatever is newest, there are free solutions to keep your dependencies up to date in a reasonable manner.

Also, the javascript ecosystem seems to slowly be going in the direction of consolidation, and supply chain attacks are (again, slowly) getting tools to get addressed.

Additionally, current versions of all major package managers (NPM, PNPM, Bun, I don't know about Yarn) don't automatically run postinstall scripts - although you are likely to run them anyway because they will be suggested to you - and ultimately you're running someone else's code, postinstall scripts or not.

ZeWaka 5 days ago | parent [-]

Dependabot got it last month, actually. https://github.blog/changelog/2025-07-01-dependabot-supports...

VPenkov 5 days ago | parent [-]

Oh, happy days!

ebb_earl_co 5 days ago | parent | prev | next [-]

Not for an operating system, but Astral’s `uv` tool has this for Python packages.

bapak 5 days ago | parent | prev | next [-]

npm install actually has a flag to install dependencies as they appeared on a specific point in time. This flag is applied to the entire tree.

What this means is that you can run "npm instal --before (date for 2 days ago)" and it will skip any dependencies newer than that.

jefozabuss 5 days ago | parent | prev [-]

I just use .npmrc with save-exact=true + lockfile + manual updates, you can't be too careful and you don't need to update packages that often tbh.

Especially after the fakerjs (and other) things.

andix 5 days ago | parent [-]

But you're still updating at some point. Usually to the latest version. If you're unlucky, you are the first victim, a few seconds after the package was published. (Edit: on a popular package there will always be a first victim somewhere in the first few minutes)

Many of those supply chain attacks are detected within the first few hours, I guess nowadays there are even some companies out there, that run automated analysis on every new version of major packages. Also contributors/maintainers might notice something like that quickly, if they didn't plan that release and it suddenly appears.