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
chore(bitrot): add checking of instrumentations not supporting the 'latest' release of a package (#3167)
The bitrot script compares the 'Supported Versions' range from the README to
the 'latest' version published to npm. The value from the README is used
because that was easiest -- gleaning the package and version range from
the instrumentation code is not straightforward.
warn(`could not determine supported versions from "packages/instrumentation-${instrName}/README.md`);
197
+
continue;
198
+
}
199
+
constpkgName=match[1];
200
+
constsupVerRange=match[2];
201
+
202
+
constnpmInfo=getNpmInfo(pkgName);
203
+
constlatestVer=npmInfo['dist-tags'].latest;
204
+
if(!satisfies(latestVer,supVerRange)){
205
+
problem(`packages/instrumentation-${instrName}/README.md: the "latest" version of \`${pkgName}\` (${latestVer}) is not supported: the supported range is \`${supVerRange}\``);
0 commit comments