@teambit/dependencies 1.0.226 → 1.0.228

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,98 +0,0 @@
1
- import { CLIMain } from '@teambit/cli';
2
- import { ComponentID } from '@teambit/component-id';
3
- import { DependencyResolverMain } from '@teambit/dependency-resolver';
4
- import { Workspace } from '@teambit/workspace';
5
- import ConsumerComponent from '@teambit/legacy/dist/consumer/component';
6
- import { DependencyLoaderOpts } from '@teambit/legacy/dist/consumer/component/component-loader';
7
- import { DevFilesMain } from '@teambit/dev-files';
8
- import { ComponentIdGraph, GraphMain } from '@teambit/graph';
9
- import { AspectLoaderMain } from '@teambit/aspect-loader';
10
- import { ScopeMain } from '@teambit/scope';
11
- import { DependenciesData, OverridesDependenciesData } from './dependencies-loader/dependencies-data';
12
- import { RemoveDependenciesFlags, SetDependenciesFlags } from './dependencies-cmd';
13
- import { DebugDependencies } from './dependencies-loader/auto-detect-deps';
14
- export type RemoveDependencyResult = {
15
- id: ComponentID;
16
- removedPackages: string[];
17
- };
18
- export type SetDependenciesResult = {
19
- changedComps: string[];
20
- addedPackages: Record<string, string>;
21
- };
22
- export type DependenciesResultsDebug = DebugDependencies & OverridesDependenciesData & {
23
- coreAspects: string[];
24
- sources: {
25
- id: string;
26
- source: string;
27
- }[];
28
- };
29
- export type DependenciesResults = {
30
- graph: ComponentIdGraph;
31
- id: ComponentID;
32
- };
33
- export type BlameResult = {
34
- snap: string;
35
- tag?: string;
36
- author: string;
37
- date: string;
38
- message: string;
39
- version: string;
40
- };
41
- export declare class DependenciesMain {
42
- private workspace;
43
- private scope;
44
- private dependencyResolver;
45
- private devFiles;
46
- private aspectLoader;
47
- private graph;
48
- constructor(workspace: Workspace, scope: ScopeMain, dependencyResolver: DependencyResolverMain, devFiles: DevFilesMain, aspectLoader: AspectLoaderMain, graph: GraphMain);
49
- setPeer(componentId: string, range?: string): Promise<void>;
50
- setDependency(componentPattern: string, packages: string[], options?: SetDependenciesFlags): Promise<SetDependenciesResult>;
51
- removeDependency(componentPattern: string, packages: string[], options?: RemoveDependenciesFlags, removeOnlyIfExists?: boolean): Promise<RemoveDependencyResult[]>;
52
- reset(componentPattern: string): Promise<ComponentID[]>;
53
- eject(componentPattern: string): Promise<ComponentID[]>;
54
- getDependencies(id: string, scope?: boolean): Promise<DependenciesResults>;
55
- loadDependencies(component: ConsumerComponent, opts: DependencyLoaderOpts): Promise<{
56
- dependenciesData: DependenciesData;
57
- overridesDependencies: import("./dependencies-loader/overrides-dependencies").default;
58
- debugDependenciesData: DebugDependencies;
59
- }>;
60
- /**
61
- * load dependencies without the need for the workspace.
62
- * the "auto-detect" are passed here as "dependenciesData". the "overrides", such as dependencies from the env,
63
- * are calculated here.
64
- * eventually all these dependencies are added to the ConsumerComponent object.
65
- */
66
- loadDependenciesFromScope(component: ConsumerComponent, dependenciesData: Partial<DependenciesData>): Promise<void>;
67
- debugDependencies(id: string): Promise<DependenciesResultsDebug>;
68
- /**
69
- * helps determine what snap/tag changed a specific dependency.
70
- * the results are sorted from the oldest to newest.
71
- */
72
- blame(compName: string, depName: string): Promise<BlameResult[]>;
73
- usageDeep(depName: string, opts?: {
74
- depth?: number;
75
- }): Promise<string | undefined>;
76
- /**
77
- * @param depName either component-id-string or package-name (of the component or not component)
78
- * @returns a map of component-id-string to the version of the dependency
79
- */
80
- usage(depName: string): Promise<{
81
- [compIdStr: string]: string;
82
- }>;
83
- private getPackageNameAndVerResolved;
84
- private splitPkgToNameAndVer;
85
- static slots: never[];
86
- static dependencies: import("@teambit/harmony").Aspect[];
87
- static runtime: import("@teambit/harmony").RuntimeDefinition;
88
- static provider([cli, workspace, depsResolver, devFiles, aspectLoader, scope, graph]: [
89
- CLIMain,
90
- Workspace,
91
- DependencyResolverMain,
92
- DevFilesMain,
93
- AspectLoaderMain,
94
- ScopeMain,
95
- GraphMain
96
- ]): Promise<DependenciesMain>;
97
- }
98
- export default DependenciesMain;
@@ -1 +0,0 @@
1
- export {};
package/dist/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- import { DependenciesAspect } from './dependencies.aspect';
2
- export type { DependenciesMain } from './dependencies.main.runtime';
3
- export default DependenciesAspect;
4
- export { DependenciesAspect };