feat(updater): add allowDowngrades option (#2726)

* feat(updater): add allowDowngrades option

* Add change file for allow_downgrades feature

* Update .changes/add-allow-downgrades.md
This commit is contained in:
Brendan Osborne authored and GitHub committed 2025-06-02 11:22:06 +08:00
1 parent d40190721c
commit 87afa23cad
3 files changed
+16

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
---
"updater": minor
"updater-js": minor
---
Add allowDowngrades parameter to check command
Added a new optional `allowDowngrades` parameter to the JavaScript check command that allows the updater to consider versions that are lower than the current version as valid updates. When enabled, the version comparator will accept any version that is different from the current version, effectively allowing downgrades.