We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 720d2ac commit 8fd2100Copy full SHA for 8fd2100
1 file changed
app/pages/[...package].vue
@@ -135,11 +135,9 @@ const deprecationNotice = computed(() => {
135
if (!displayVersion.value?.deprecated) return null
136
137
const isLatestDeprecated = !!latestVersion.value?.deprecated
138
- const isViewingLatest =
139
- !requestedVersion.value || displayVersion.value?.version === latestVersion.value?.version
140
141
- // Show "package deprecated" if viewing latest OR if the whole package (latest) is deprecated
142
- if (isViewingLatest || isLatestDeprecated) {
+ // If latest is deprecated, show "package deprecated"
+ if (isLatestDeprecated) {
143
return { type: 'package' as const, message: displayVersion.value.deprecated }
144
}
145
0 commit comments