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
- Run
ncu --cache --cooldown 5 --peer --format time on a project with peer dependencies to prime the cache.
- Run the command again to trigger a cache restore.
- 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
Description
The recent enhancements to
--format time(introduced in PR #1693) implemented consistent caching and human-readable timestamps. However, thepeersdata 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
ncu --cache --cooldown 5 --peer --format timeon a project with peer dependencies to prime the cache.Expected Behavior
Peer dependency data should include a
timemetadata field when cached and restored, matching the implementation for regular dependencies and devDependencies.@raineorshine
When we are using
cooldownwe skip cache forcacher.getbut not forcacher.getPeers