ITADN

`peers` data missing timestamps when restored from cache with --cooldown

#1722Openonemen 创建于 2026-05-07
O
onemencommented
### Description The recent enhancements to `--format time` (introduced in PR #1693) implemented consistent caching and human-readable timestamps. However, the `peers` data type was omitted during the update. Currently, when peer dependency information is restored from the cache, it lacks the associated timestamp, leading to inconsistent output compared to standard dependencies. ### Steps to Reproduce 1. Run `ncu --cache --cooldown 5 --peer --format time` on a project with peer dependencies to prime the cache. 2. Run the command again to trigger a cache restore. 3. Observe that while standard dependencies display human-readable timestamps, the peer dependencies do not. ### Expected Behavior Peer dependency data should include a `time` metadata field when cached and restored, matching the implementation for regular dependencies and devDependencies. @raineorshine When we are using `cooldown` we skip cache for `cacher.get` but not for `cacher.getPeers`
1 条评论