@teambit/workspace 0.0.706 → 0.0.709

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.
@@ -11,7 +11,6 @@ import { IsolatorMain } from '@teambit/isolator';
11
11
  import { Logger } from '@teambit/logger';
12
12
  import type { ScopeMain } from '@teambit/scope';
13
13
  import { RequireableComponent } from '@teambit/harmony.modules.requireable-component';
14
- import { ResolvedComponent } from '@teambit/harmony.modules.resolved-component';
15
14
  import type { VariantsMain } from '@teambit/variants';
16
15
  import LegacyGraph from '@teambit/legacy/dist/scope/graph/graph';
17
16
  import { BitIds } from '@teambit/legacy/dist/bit-id';
@@ -243,12 +242,6 @@ export declare class Workspace implements ComponentFactory {
243
242
  * given component ids, find their dependents in the workspace
244
243
  */
245
244
  getDependentsIds(ids: ComponentID[]): Promise<ComponentID[]>;
246
- loadCapsules(bitIds: string[]): Promise<import("@teambit/isolator").Capsule[]>;
247
- /**
248
- * fully load components, including dependency resolution and prepare them for runtime.
249
- * @todo: remove the string option, use only BitId
250
- */
251
- load(ids: Array<BitId | string>): Promise<ResolvedComponent[]>;
252
245
  createAspectList(extensionDataList: ExtensionDataList): Promise<AspectList>;
253
246
  private extensionDataEntryToAspectEntry;
254
247
  /**
package/dist/workspace.js CHANGED
@@ -181,16 +181,6 @@ function _harmonyModules() {
181
181
  return data;
182
182
  }
183
183
 
184
- function _harmonyModules2() {
185
- const data = require("@teambit/harmony.modules.resolved-component");
186
-
187
- _harmonyModules2 = function () {
188
- return data;
189
- };
190
-
191
- return data;
192
- }
193
-
194
184
  function _consumer() {
195
185
  const data = require("@teambit/legacy/dist/api/consumer");
196
186
 
@@ -829,31 +819,6 @@ class Workspace {
829
819
  return dependentsIds;
830
820
  }
831
821
 
832
- async loadCapsules(bitIds) {
833
- // throw new Error("Method not implemented.");
834
- const components = await this.load(bitIds);
835
- return components.map(comp => comp.capsule);
836
- }
837
- /**
838
- * fully load components, including dependency resolution and prepare them for runtime.
839
- * @todo: remove the string option, use only BitId
840
- */
841
-
842
-
843
- async load(ids) {
844
- const componentIds = await this.resolveMultipleComponentIds(ids);
845
- const components = await this.getMany(componentIds);
846
- const network = await this.isolator.isolateComponents(components.map(c => c.id), {
847
- packageManagerConfigRootDir: this.path
848
- });
849
- const resolvedComponents = components.map(component => {
850
- const capsule = network.graphCapsules.getCapsule(component.id);
851
- if (!capsule) throw new Error(`unable to find capsule for ${component.id.toString()}`);
852
- return new (_harmonyModules2().ResolvedComponent)(component, capsule);
853
- });
854
- return resolvedComponents;
855
- }
856
-
857
822
  async createAspectList(extensionDataList) {
858
823
  const entiresP = extensionDataList.map(entry => this.extensionDataEntryToAspectEntry(entry));
859
824
  const entries = await Promise.all(entiresP);