@teambit/snapping 1.0.468 → 1.0.470

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1330,6 +1330,7 @@ another option, in case this dependency is not in main yet is to remove all refe
1330
1330
  }
1331
1331
  const tagPendingComponentsIds = await this.getTagPendingComponentsIds(includeUnmodified);
1332
1332
  const snappedComponentsIds = (await this.workspace.filter.bySnappedOnMain()).map(id => id.changeVersion(undefined));
1333
+ const tagPendingBitIdsIncludeSnapped = _componentId().ComponentIdList.fromArray([...tagPendingComponentsIds, ...snappedComponentsIds]);
1333
1334
  if (snappedComponentsIds.length) {
1334
1335
  const localOnlyIds = this.workspace.filter.byLocalOnly(snappedComponentsIds);
1335
1336
  const localOnlyListIds = _componentId().ComponentIdList.fromArray(localOnlyIds);
@@ -1345,13 +1346,12 @@ another option, in case this dependency is not in main yet is to remove all refe
1345
1346
  const [idWithoutVer, version] = id.split('@');
1346
1347
  const idIsPattern = this.workspace.isPattern(id);
1347
1348
  if (idIsPattern) {
1348
- const allIds = await this.workspace.filterIdsFromPoolIdsByPattern(idWithoutVer, tagPendingComponentsIds);
1349
+ const allIds = await this.workspace.filterIdsFromPoolIdsByPattern(idWithoutVer, tagPendingBitIdsIncludeSnapped);
1349
1350
  return allIds.map(componentId => componentId.changeVersion(version));
1350
1351
  }
1351
1352
  const componentId = await this.workspace.resolveComponentId(idWithoutVer);
1352
1353
  if (!includeUnmodified) {
1353
- const componentStatus = await this.workspace.getComponentStatusById(componentId);
1354
- if (componentStatus.modified === false) return null;
1354
+ if (!tagPendingBitIdsIncludeSnapped.hasWithoutVersion(componentId)) return null;
1355
1355
  }
1356
1356
  return componentId.changeVersion(version);
1357
1357
  });
@@ -1372,7 +1372,6 @@ another option, in case this dependency is not in main yet is to remove all refe
1372
1372
  warnings
1373
1373
  };
1374
1374
  }
1375
- const tagPendingBitIdsIncludeSnapped = [...tagPendingComponentsIds, ...snappedComponentsIds];
1376
1375
  if (includeUnmodified && exactVersion) {
1377
1376
  const tagPendingComponentsLatest = await this.workspace.scope.legacyScope.latestVersions(tagPendingComponentsIds, false);
1378
1377
  tagPendingComponentsLatest.forEach(componentId => {