Feature Idea: Configure minimum age for dependencies #5160
Replies: 1 comment 1 reply
-
|
I asked Jonatan Männchen of the EEF for his perspective on this as a domain expert, here's what he had to say:
I think these are very good insights. It's not clear to me this is the right feature to implement as-is in Gleam. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Due to recent supply chain attacks in the npm package ecosystem, Bun.js introduced a minimum release age for dependencies: https://bun.com/docs/pm/cli/install#minimum-release-age
I was also inspired by this article on the same concept, but they call it "dependency cooldown": https://blog.yossarian.net/2025/11/21/We-should-all-be-using-dependency-cooldowns
How this would behave in a concrete example:
wibblehasv1.1andv1.2available. The latest has been released 2 days ago.gleam add wibbleand it will installv1.1.gleam update2 days later, it will not update and stay onv1.1, since it has been 4 days sincev1.2was released.gleam update3 days later, it will now update tov1.2.As for the implementation this could be configurable in
gleam.toml. Alternatively we could show the time since a new package version has been out when running the newgleam deps outdatedcommand.Beta Was this translation helpful? Give feedback.
All reactions