async function didPackageChange(tags, packageData) {
    // In this case, we assume that it's the first release, and every package
    // is implicitly considered to have "changed".
    if (tags.size === 0) {
        return true;
    }
    const { manifest: { name: packageName, version: currentVersion }, } = packageData;
    const tagOfCurrentVersion = versionToTag(currentVersion);
    if (!tags.has(tagOfCurrentVersion)) {
        throw new Error(`Package "${packageName}" has version "${currentVersion}" in its manifest, but no corresponding tag "${tagOfCurrentVersion}" exists.`);
    }
    return hasDiff(packageData, tagOfCurrentVersion);
}
/**
 * ATTN: Only execute serially. Not safely parallelizable.
 *
 * Using git, checks whether the package changed since it was last released.
 *
 * Unless it's the first release of the package, assumes that:
 *
 * - The "version" field of the package's manifest corresponds to its latest
 * released version.
 * - The release commit of the package's most recent version is tagged with
 * "v<VERSION>", where <VERSION> is equal to the manifest's "version" field.
 *
 * @param tags - All tags for the release's base git branch.
 * @param packageData - The metadata of the package to diff.
 * @returns Whether the package changed since its last release. `true` is
 * returned if there are no releases in the repository's history.
 */
Only execute serially. Not safely parallelizable.
Using git, checks whether the package changed since it was last released.

Unless it's the first release of the package, assumes that.

- The "version" field of the package's manifest corresponds to its latest
released version.
- The release commit of the package's most recent version is tagged with
"v", where  is equal to the manifest's "version" field.

@param tags - All tags for the release's base git branch.
@param packageData - The metadata of the package to diff.
@returns Whether the package changed since its last release. `true` is
returned if there are no releases in the repository's history.
Only execute serially . Not safely parallelizable . Using git checks whether the package changed since it was last released . Unless it ' s the first release of the package assumes that . - The " version " field of the package ' s manifest corresponds to its latest released version . - The release commit of the package ' s most recent version is tagged with " v " where is equal to the manifest ' s " version " field . @param tags - All tags for the release ' s base git branch . @param packageData - The metadata of the package to diff . @returns Whether the package changed since its last release . ` true ` is returned if there are no releases in the repository ' s history .
async function didPackageChange(tags, packageData) {
    if (tags.size === 0) {
        return true;
    }
    const { manifest: { name: packageName, version: currentVersion }, } = packageData;
    const tagOfCurrentVersion = versionToTag(currentVersion);
    if (!tags.has(tagOfCurrentVersion)) {
        throw new Error(`Package "${packageName}" has version "${currentVersion}" in its manifest, but no corresponding tag "${tagOfCurrentVersion}" exists.`);
    }
    return hasDiff(packageData, tagOfCurrentVersion);
}
async function didPackageChange ( tags , packageData ) { if ( tags . size === 0 ) { return true ; } const { manifest : { name : packageName , version : currentVersion } , } = packageData ; const tagOfCurrentVersion = versionToTag ( currentVersion ) ; if ( ! tags . has ( tagOfCurrentVersion ) ) { throw new Error ( ` ${ packageName } ${ currentVersion } ${ tagOfCurrentVersion } ` ) ; } return hasDiff ( packageData , tagOfCurrentVersion ) ; }
ATTN: Only execute serially.
ATTN : Only execute serially .
// In this case, we assume that it's the first release, and every package // is implicitly considered to have "changed".