@teambit/workspace 1.0.161 → 1.0.163

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.
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@1.0.161/dist/workspace.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@1.0.161/dist/workspace.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@1.0.163/dist/workspace.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@1.0.163/dist/workspace.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
package/dist/workspace.js CHANGED
@@ -541,8 +541,7 @@ class Workspace {
541
541
  */
542
542
  async list(filter, loadOpts) {
543
543
  const loadOptsWithDefaults = Object.assign(loadOpts || {});
544
- const legacyIds = this.consumer.bitMap.getAllIdsAvailableOnLane();
545
- const ids = await this.resolveMultipleComponentIds(legacyIds);
544
+ const ids = this.consumer.bitMap.getAllIdsAvailableOnLane();
546
545
  const idsToGet = filter && filter.limit ? (0, _lodash().slice)(ids, filter.offset, filter.offset + filter.limit) : ids;
547
546
  return this.getMany(idsToGet, loadOptsWithDefaults);
548
547
  }
@@ -556,8 +555,7 @@ class Workspace {
556
555
  * (see the invalid criteria in ConsumerComponent.isComponentInvalidByErrorType())
557
556
  */
558
557
  async listInvalid() {
559
- const legacyIds = this.consumer.bitMap.getAllIdsAvailableOnLane();
560
- const ids = await this.resolveMultipleComponentIds(legacyIds);
558
+ const ids = this.consumer.bitMap.getAllIdsAvailableOnLane();
561
559
  return this.componentLoader.getInvalid(ids);
562
560
  }
563
561
 
@@ -644,8 +642,7 @@ class Workspace {
644
642
  return allIds.filter(id => !id.hasVersion());
645
643
  }
646
644
  async locallyDeletedIds() {
647
- const locallyDeleted = await this.componentList.listLocallySoftRemoved();
648
- return this.resolveMultipleComponentIds(locallyDeleted);
645
+ return this.componentList.listLocallySoftRemoved();
649
646
  }
650
647
  async duringMergeIds() {
651
648
  const duringMerge = this.componentList.listDuringMergeStateComponents();
@@ -657,8 +654,7 @@ class Workspace {
657
654
  * get all workspace component-ids
658
655
  */
659
656
  getAllComponentIds() {
660
- const bitIds = this.consumer.bitMap.getAllBitIds();
661
- return this.resolveMultipleComponentIds(bitIds);
657
+ return this.listIds();
662
658
  }
663
659
  async listTagPendingIds() {
664
660
  const newComponents = await this.newComponentIds();
@@ -714,7 +710,7 @@ class Workspace {
714
710
  const modelComp = await this.scope.legacyScope.getModelComponentIfExist(id);
715
711
  if (modelComp && modelComp.head) compsWithHead.push(id);
716
712
  }));
717
- return this.resolveMultipleComponentIds(compsWithHead);
713
+ return compsWithHead;
718
714
  }
719
715
  async getSavedGraphOfComponentIfExist(component) {
720
716
  let versionObj;
@@ -969,7 +965,7 @@ it's possible that the version ${component.id.version} belong to ${idStr.split('
969
965
  async triggerOnWorkspaceConfigChange() {
970
966
  this.logger.debug('triggerOnWorkspaceConfigChange, reloading workspace config');
971
967
  const config = this.harmony.get('teambit.harmony/config');
972
- await config.reloadWorkspaceConfig();
968
+ await config.reloadWorkspaceConfig(this.path);
973
969
  const workspaceConfig = config.workspaceConfig;
974
970
  if (!workspaceConfig) throw new Error('workspace config is missing from Config aspect');
975
971
  const configOfWorkspaceAspect = workspaceConfig.extensions.findExtension(_workspace().WorkspaceAspect.id);