You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return`This can be replaced with ${replacement.replacement}, available since Node ${replacement.nodeVersion}. Read more here: ${getMdnUrl(replacement.mdnPath)}`
18
+
return{
19
+
message: `This can be replaced with ${replacement.replacement}, available since Node ${replacement.nodeVersion}.`,
20
+
link: getMdnUrl(replacement.mdnPath),
21
+
}
19
22
case'simple':
20
-
return`The community has flagged this package as redundant, with the advice: ${replacement.replacement}.`
23
+
return{
24
+
message: `The community has flagged this package as redundant, with the advice:\n${replacement.replacement}.`,
25
+
}
21
26
case'documented':
22
-
return`The community has flagged this package as having more performant alternatives. Read more here: ${getReplacementsDocUrl(replacement.docPath)}`
27
+
return{
28
+
message: 'The community has flagged this package as having more performant alternatives.',
29
+
link: getReplacementsDocUrl(replacement.docPath),
30
+
}
23
31
case'none':
24
-
return'This package has been flagged as no longer needed, and its functionality is likely available natively in all engines.'
32
+
return{
33
+
message: 'This package has been flagged as no longer needed, and its functionality is likely available natively in all engines.',
0 commit comments