TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Dependency Time Machine – Update Helper for Legacy JavaScript Projects

3 点作者 __natty__超过 1 年前
tl;dr dependency-time-machine is a tiny helper to update package.json dependencies one by one in chronological order with an optional auto-runner.<p>Hey all, this is my first Show HN so glad to meet you :)<p>In recent months in my work, I&#x27;ve been responsible for updating the dependencies of many years-old project.<p>With dozens of dependencies, it was painful to do it by hand and think in which order should I update. Even more, some dependencies were not using semversion, had phantom dependencies, certain versions were broken, were cross-incompatible or didn&#x27;t have changelogs.<p>So I wrote this simple tool to check versions for every package listed in package.json directly from the npm registry and sort them chronologically in groups based on dependency name. Thanks to this I was able to update like it was done regularly because packages always depend on other packages from past time. In the traditional way and not from the future like it eventually can be done in the traditional way.<p>I&#x27;m sharing this because maybe you will find it useful. You can check the next suggested dependency to update, generate a timeline in JSON or try autorunner. It&#x27;s open-sourced, has only one direct dependency for shell interactions and runs on your hardware.

暂无评论

暂无评论