Skip to content

Commit d29a7ff

Browse files
committed
Promote global cooldown support
1 parent c87528a commit d29a7ff

4 files changed

Lines changed: 59 additions & 56 deletions

File tree

docs/benchmark.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ but [there might be a greater need for such tools](usecase.md) out there. Here i
2626
| Non-interactive |||| | ||
2727
| Dry-run |||| | | |
2828
| Sudo elevation |||| | | |
29+
| Supply-chain cooldown || | | | | |
2930
| Desktop notifications | || | | | |
3031
| Bash auto-completion || | | | | |
3132
| Zsh auto-completion || | | | | |

docs/cooldown.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# {octicon}`shield-check` Release-age cooldown
1+
# {octicon}`shield-check` Cooldown
22

33
`mpm` can refuse to install or upgrade any package version younger than a chosen release age. This is a supply-chain safeguard: malicious releases (compromised credentials, dependency confusion, account takeover) are typically detected and pulled from registries within days of publication, so a short waiting period keeps the most recent and most likely compromised versions off the system.
44

docs/docs_update.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def operation_matrix() -> tuple[str, str]:
8484
headers = [
8585
"Package manager",
8686
"Version",
87+
"Cooldown",
8788
]
8889

8990
# Footnotes are used to details the OSes covered by each platform group.
@@ -115,6 +116,7 @@ def operation_matrix() -> tuple[str, str]:
115116
f"[`{mid}`]({m.homepage_url})"
116117
+ ("" if not m.deprecated else f" [⚠️]({m.deprecation_url})"),
117118
(m.requirement or "").replace("<", r"\<"),
119+
"✓" if m.supports_cooldown else "",
118120
]
119121
line.extend(
120122
p_obj.icon if m.platforms.issuperset(extract_members(p_obj)) else ""
@@ -124,7 +126,7 @@ def operation_matrix() -> tuple[str, str]:
124126
table.append(line)
125127

126128
# Set each column alignment.
127-
alignments = ["left", "left"]
129+
alignments = ["left", "left", "center"]
128130
alignments.extend(["center"] * len(MAIN_PLATFORMS))
129131
alignments.extend(["center"] * len(Operations))
130132

0 commit comments

Comments
 (0)