fix(smartupdate): improve update check caching, validation, and error handling

This commit is contained in:
2026-05-10 15:05:00 +00:00
parent d049d1a1e9
commit 3d1a73cf9e
12 changed files with 376 additions and 114 deletions
+11 -1
View File
@@ -1,5 +1,15 @@
# Changelog
## Pending
### Fixes
- improve update check caching, validation, and error handling (smartupdate)
- cache both update-available and up-to-date results with package version and registry context to avoid stale or incorrect cache reuse
- return cached CLI update results correctly for time-based checks and handle changelog opening failures without unhandled rejections
- validate package names and versions before registry access, preserve specific error types, and add deterministic cache-focused tests
- add configurable cache store options and remove the unused smarttime dependency
## 2026-05-01 - 2.0.7 - fix(build)
modernize build configuration and tighten TypeScript typings
@@ -89,4 +99,4 @@ Delivered multiple early improvements across versions 1.0.1 to 1.0.10.
- Improved update information output
- Fixed a bug that reset the timer
- Updated dependencies
- Included compile and maintenance-related updates
- Included compile and maintenance-related updates