@teambit/lanes 0.0.497 → 0.0.498
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.
- package/dist/lanes.main.runtime.d.ts +19 -3
- package/dist/lanes.main.runtime.js +53 -4
- package/dist/lanes.main.runtime.js.map +1 -1
- package/dist/lanes.spec.js +64 -3
- package/dist/lanes.spec.js.map +1 -1
- package/dist/{preview-1670334801479.js → preview-1670383551627.js} +2 -2
- package/package-tar/teambit-lanes-0.0.498.tgz +0 -0
- package/package.json +25 -24
- package/package-tar/teambit-lanes-0.0.497.tgz +0 -0
@@ -14,6 +14,7 @@ import { ImporterMain } from '@teambit/importer';
|
|
14
14
|
import { Component, ComponentID, ComponentMain } from '@teambit/component';
|
15
15
|
import { Lane } from '@teambit/legacy/dist/scope/models';
|
16
16
|
import { ExportMain } from '@teambit/export';
|
17
|
+
import { ComponentCompareMain } from '@teambit/component-compare';
|
17
18
|
import { SnapsDistance } from '@teambit/legacy/dist/scope/component-ops/snaps-distance';
|
18
19
|
import { MergingMain } from '@teambit/merging';
|
19
20
|
export { Lane };
|
@@ -33,6 +34,18 @@ export declare type SwitchLaneOptions = {
|
|
33
34
|
verbose?: boolean;
|
34
35
|
override?: boolean;
|
35
36
|
};
|
37
|
+
export declare enum ChangeType {
|
38
|
+
NONE = "NONE",
|
39
|
+
NEW = "NEW",
|
40
|
+
SOURCE_CODE = "SOURCE_CODE",
|
41
|
+
DEPENDENCY = "DEPENDENCY",
|
42
|
+
CONFIG = "CONFIG"
|
43
|
+
}
|
44
|
+
declare type LaneComponentDiff = {
|
45
|
+
componentId: ComponentID;
|
46
|
+
changeType: ChangeType;
|
47
|
+
upToDate: boolean;
|
48
|
+
};
|
36
49
|
export declare class LanesMain {
|
37
50
|
private workspace;
|
38
51
|
private scope;
|
@@ -41,7 +54,8 @@ export declare class LanesMain {
|
|
41
54
|
logger: Logger;
|
42
55
|
private importer;
|
43
56
|
private exporter;
|
44
|
-
|
57
|
+
private componentCompare;
|
58
|
+
constructor(workspace: Workspace | undefined, scope: ScopeMain, merging: MergingMain, componentAspect: ComponentMain, logger: Logger, importer: ImporterMain, exporter: ExportMain, componentCompare: ComponentCompareMain);
|
45
59
|
getLanes({ name, remote, merged, showDefaultLane, notMerged, }: {
|
46
60
|
name?: string;
|
47
61
|
remote?: string;
|
@@ -133,6 +147,7 @@ export declare class LanesMain {
|
|
133
147
|
result: boolean;
|
134
148
|
message?: string;
|
135
149
|
}>;
|
150
|
+
laneDiff(sourceLaneId: LaneId, targetLaneId?: LaneId): Promise<LaneComponentDiff[]>;
|
136
151
|
addLaneReadme(readmeComponentIdStr: string, laneName?: string): Promise<{
|
137
152
|
result: boolean;
|
138
153
|
message?: string;
|
@@ -143,7 +158,7 @@ export declare class LanesMain {
|
|
143
158
|
static slots: never[];
|
144
159
|
static dependencies: import("@teambit/harmony").Aspect[];
|
145
160
|
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
146
|
-
static provider([cli, scope, workspace, graphql, merging, component, loggerMain, importer, exporter, express]: [
|
161
|
+
static provider([cli, scope, workspace, graphql, merging, component, loggerMain, importer, exporter, express, componentCompare,]: [
|
147
162
|
CLIMain,
|
148
163
|
ScopeMain,
|
149
164
|
Workspace,
|
@@ -153,7 +168,8 @@ export declare class LanesMain {
|
|
153
168
|
LoggerMain,
|
154
169
|
ImporterMain,
|
155
170
|
ExportMain,
|
156
|
-
ExpressMain
|
171
|
+
ExpressMain,
|
172
|
+
ComponentCompareMain
|
157
173
|
]): Promise<LanesMain>;
|
158
174
|
}
|
159
175
|
export default LanesMain;
|
@@ -7,6 +7,7 @@ require("core-js/modules/es.regexp.exec.js");
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
8
8
|
value: true
|
9
9
|
});
|
10
|
+
exports.ChangeType = void 0;
|
10
11
|
Object.defineProperty(exports, "Lane", {
|
11
12
|
enumerable: true,
|
12
13
|
get: function () {
|
@@ -161,6 +162,13 @@ function _bitId() {
|
|
161
162
|
};
|
162
163
|
return data;
|
163
164
|
}
|
165
|
+
function _componentCompare() {
|
166
|
+
const data = require("@teambit/component-compare");
|
167
|
+
_componentCompare = function () {
|
168
|
+
return data;
|
169
|
+
};
|
170
|
+
return data;
|
171
|
+
}
|
164
172
|
function _objects() {
|
165
173
|
const data = require("@teambit/legacy/dist/scope/objects");
|
166
174
|
_objects = function () {
|
@@ -233,8 +241,17 @@ function _lanesDelete() {
|
|
233
241
|
}
|
234
242
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
235
243
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2().default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
244
|
+
let ChangeType;
|
245
|
+
exports.ChangeType = ChangeType;
|
246
|
+
(function (ChangeType) {
|
247
|
+
ChangeType["NONE"] = "NONE";
|
248
|
+
ChangeType["NEW"] = "NEW";
|
249
|
+
ChangeType["SOURCE_CODE"] = "SOURCE_CODE";
|
250
|
+
ChangeType["DEPENDENCY"] = "DEPENDENCY";
|
251
|
+
ChangeType["CONFIG"] = "CONFIG";
|
252
|
+
})(ChangeType || (exports.ChangeType = ChangeType = {}));
|
236
253
|
class LanesMain {
|
237
|
-
constructor(workspace, scope, merging, componentAspect, logger, importer, exporter) {
|
254
|
+
constructor(workspace, scope, merging, componentAspect, logger, importer, exporter, componentCompare) {
|
238
255
|
this.workspace = workspace;
|
239
256
|
this.scope = scope;
|
240
257
|
this.merging = merging;
|
@@ -242,6 +259,7 @@ class LanesMain {
|
|
242
259
|
this.logger = logger;
|
243
260
|
this.importer = importer;
|
244
261
|
this.exporter = exporter;
|
262
|
+
this.componentCompare = componentCompare;
|
245
263
|
}
|
246
264
|
async getLanes({
|
247
265
|
name,
|
@@ -733,6 +751,37 @@ class LanesMain {
|
|
733
751
|
result: true
|
734
752
|
};
|
735
753
|
}
|
754
|
+
async laneDiff(sourceLaneId, targetLaneId) {
|
755
|
+
const sourceLane = await this.loadLane(sourceLaneId);
|
756
|
+
if (!sourceLane) throw new Error(`unable to find ${sourceLaneId.toString()} in the scope`);
|
757
|
+
const targetLane = targetLaneId ? await this.loadLane(targetLaneId) : undefined;
|
758
|
+
const targetLaneIds = targetLane === null || targetLane === void 0 ? void 0 : targetLane.toBitIds();
|
759
|
+
const host = this.componentAspect.getHost();
|
760
|
+
const results = await Promise.all(sourceLane.components.map(async comp => {
|
761
|
+
var _targetLaneIds$search;
|
762
|
+
const componentId = await host.resolveComponentId(comp.id);
|
763
|
+
const headOnTargetLane = targetLaneIds ? (_targetLaneIds$search = targetLaneIds.searchWithoutVersion(comp.id)) === null || _targetLaneIds$search === void 0 ? void 0 : _targetLaneIds$search.version : await this.getHeadOnMain(componentId);
|
764
|
+
const snapsDistance = await this.getSnapsDistance(componentId, comp.head.toString(), headOnTargetLane);
|
765
|
+
const getChangeType = async () => {
|
766
|
+
if (!headOnTargetLane) return ChangeType.NEW;
|
767
|
+
const compare = await this.componentCompare.compare(comp.id.changeVersion(comp.head.toString()).toString(), comp.id.changeVersion(headOnTargetLane).toString());
|
768
|
+
if (compare.code.length && compare.code.some(f => f.status !== 'UNCHANGED')) {
|
769
|
+
return ChangeType.SOURCE_CODE;
|
770
|
+
}
|
771
|
+
if (!compare.fields.length) return ChangeType.NONE;
|
772
|
+
const depsFields = ['dependencies', 'devDependencies', 'extensionDependencies'];
|
773
|
+
if (compare.fields.some(field => depsFields.includes(field.fieldName))) return ChangeType.DEPENDENCY;
|
774
|
+
return ChangeType.CONFIG;
|
775
|
+
};
|
776
|
+
const changeType = await getChangeType();
|
777
|
+
return {
|
778
|
+
componentId,
|
779
|
+
changeType,
|
780
|
+
upToDate: snapsDistance.isUpToDate()
|
781
|
+
};
|
782
|
+
}));
|
783
|
+
return results;
|
784
|
+
}
|
736
785
|
async addLaneReadme(readmeComponentIdStr, laneName) {
|
737
786
|
if (!this.workspace) {
|
738
787
|
throw new (_bitError().BitError)(`unable to track a lane readme component outside of Bit workspace`);
|
@@ -798,9 +847,9 @@ class LanesMain {
|
|
798
847
|
get deleteRoutePath() {
|
799
848
|
return '/lanes/delete';
|
800
849
|
}
|
801
|
-
static async provider([cli, scope, workspace, graphql, merging, component, loggerMain, importer, exporter, express]) {
|
850
|
+
static async provider([cli, scope, workspace, graphql, merging, component, loggerMain, importer, exporter, express, componentCompare]) {
|
802
851
|
const logger = loggerMain.createLogger(_lanes().LanesAspect.id);
|
803
|
-
const lanesMain = new LanesMain(workspace, scope, merging, component, logger, importer, exporter);
|
852
|
+
const lanesMain = new LanesMain(workspace, scope, merging, component, logger, importer, exporter, componentCompare);
|
804
853
|
const switchCmd = new (_switch().SwitchCmd)(lanesMain);
|
805
854
|
const laneCmd = new (_lane().LaneCmd)(lanesMain, workspace, scope);
|
806
855
|
laneCmd.commands = [new (_lane().LaneListCmd)(lanesMain, workspace, scope), switchCmd, new (_lane().LaneShowCmd)(lanesMain, workspace, scope), new (_lane().LaneCreateCmd)(lanesMain), new (_lane().LaneRemoveCmd)(lanesMain), new (_lane().LaneChangeScopeCmd)(lanesMain), new (_lane().LaneAliasCmd)(lanesMain), new (_lane().LaneRenameCmd)(lanesMain), new (_lanesModules().LaneDiffCmd)(workspace, scope), new (_lane().LaneAddReadmeCmd)(lanesMain), new (_lane().LaneRemoveReadmeCmd)(lanesMain), new (_lane().LaneImportCmd)(switchCmd)];
|
@@ -812,7 +861,7 @@ class LanesMain {
|
|
812
861
|
}
|
813
862
|
exports.LanesMain = LanesMain;
|
814
863
|
(0, _defineProperty2().default)(LanesMain, "slots", []);
|
815
|
-
(0, _defineProperty2().default)(LanesMain, "dependencies", [_cli().CLIAspect, _scope().ScopeAspect, _workspace().WorkspaceAspect, _graphql().GraphqlAspect, _merging().MergingAspect, _component().default, _logger().LoggerAspect, _importer().ImporterAspect, _export().ExportAspect, _express().ExpressAspect]);
|
864
|
+
(0, _defineProperty2().default)(LanesMain, "dependencies", [_cli().CLIAspect, _scope().ScopeAspect, _workspace().WorkspaceAspect, _graphql().GraphqlAspect, _merging().MergingAspect, _component().default, _logger().LoggerAspect, _importer().ImporterAspect, _export().ExportAspect, _express().ExpressAspect, _componentCompare().ComponentCompareAspect]);
|
816
865
|
(0, _defineProperty2().default)(LanesMain, "runtime", _cli().MainRuntime);
|
817
866
|
_lanes().LanesAspect.addRuntime(LanesMain);
|
818
867
|
var _default = LanesMain;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["LanesMain","constructor","workspace","scope","merging","componentAspect","logger","importer","exporter","getLanes","name","remote","merged","showDefaultLane","notMerged","showMergeData","Boolean","consumer","remoteObj","getRemoteByName","lanes","listLanes","DEFAULT_LANE","defaultLane","getLaneDataOfDefaultLane","legacyScope","getLanesData","push","getCurrentLaneName","getCurrentLaneId","getCurrentLaneNameOrAlias","currentLaneId","trackingData","getLocalTrackedLaneByRemoteName","getCurrentLane","laneId","isDefault","loadLane","getDefaultLaneId","LaneId","from","setCurrentLane","alias","exported","createLane","remoteScope","newLane","createLaneInScope","localLane","remoteLane","throwForInvalidLaneName","defaultScope","trackLaneData","trackLane","scopeJson","setLaneAsNew","onDestroy","id","localName","remoteName","BitError","parseLaneIdFromString","lane","beforeTrackData","getRemoteTrackedDataByLocalLane","beforeTrackDataCloned","undefined","afterTrackData","aliasLane","laneName","includes","LANE_REMOTE_DELIMITER","trackData","laneNameWithoutScope","split","removeTrackLane","changeScope","remoteScopeBefore","newLaneId","saveLane","bitMap","rename","currentName","newName","existingAliasWithNewName","remoteIdStr","objects","remoteLanes","renameRefByNewLaneName","currentLaneName","isExported","isLaneExported","clonedLaneToExport","clone","components","exportErr","exportLane","err","error","toString","message","exportMany","laneObject","ids","BitIds","idsWithFutureScope","allVersions","importLaneObject","persistIfNotExists","scopeComponentImporter","ScopeComponentsImporter","getInstance","results","importLanes","LaneNotFound","exists","getSnapsDistance","componentId","sourceHead","targetHead","Error","modelComponent","getModelComponent","_legacy","getDivergeData","repo","Ref","head","getHeadOnMain","fetchLaneWithItsComponents","debug","importOptions","objectsOnly","verbose","writeConfig","override","installNpmPackages","laneIds","importedIds","importWithOptions","length","removeLanes","laneNames","opts","force","laneResults","switchLanes","merge","getAll","skipDependencyInstallation","mergeStrategy","mergeOptions","Object","keys","MergeOptions","join","switchProps","existingOnWorkspaceOnly","checkoutProps","skipNpmInstall","ignorePackageJson","ignoreDist","isLane","promptMergeOptions","reset","all","LaneSwitcher","switch","isLaneUpToDate","laneToCheck","checkAgainst","upToDateIds","notUpToDateIds","getHashOnAnotherLane","idOnLane","getComponent","modelComp","Promise","map","comp","refOnOtherLane","isEqual","divergeData","isTargetAhead","isDiverged","isSourceAhead","isUpToDate","getDiff","values","diffOptions","pattern","laneDiffGenerator","LaneDiffGenerator","generate","getLaneComponentModels","host","getHost","laneComponentIds","getLaneComponentIds","getMany","laneComponents","bitIdsFromBitmap","getAllBitIdsFromAllLanes","filteredComponentIds","filter","laneComponent","some","bitmapComponentId","isEqualWithoutVersion","legacyIdWithVersion","changeVersion","resolveComponentId","getLaneReadmeComponent","laneReadmeComponent","readmeComponent","laneReadmeComponentId","get","removeLaneReadme","result","readmeComponentId","existingLaneConfig","getSpecificComponentConfig","LanesAspect","remoteLaneIdStr","toLaneId","readme","removeSpecificComponentConfig","addSpecificComponentConfig","setReadmeComponent","write","addLaneReadme","readmeComponentIdStr","readmeComponentBitId","bitIds","scopeComponents","list","component","getIdsOfDefaultLane","bitId","version","isMerged","hash","createRoutePath","deleteRoutePath","provider","cli","graphql","loggerMain","express","createLogger","lanesMain","switchCmd","SwitchCmd","laneCmd","LaneCmd","commands","LaneListCmd","LaneShowCmd","LaneCreateCmd","LaneRemoveCmd","LaneChangeScopeCmd","LaneAliasCmd","LaneRenameCmd","LaneDiffCmd","LaneAddReadmeCmd","LaneRemoveReadmeCmd","LaneImportCmd","register","lanesSchema","LanesCreateRoute","LanesDeleteRoute","CLIAspect","ScopeAspect","WorkspaceAspect","GraphqlAspect","MergingAspect","ComponentAspect","LoggerAspect","ImporterAspect","ExportAspect","ExpressAspect","MainRuntime","addRuntime"],"sources":["lanes.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport { ScopeMain, ScopeAspect } from '@teambit/scope';\nimport { GraphqlAspect, GraphqlMain } from '@teambit/graphql';\nimport { ExpressAspect, ExpressMain } from '@teambit/express';\nimport { Workspace, WorkspaceAspect } from '@teambit/workspace';\nimport getRemoteByName from '@teambit/legacy/dist/remotes/get-remote-by-name';\nimport { LaneDiffCmd, LaneDiffGenerator, LaneDiffResults } from '@teambit/lanes.modules.diff';\nimport { LaneData } from '@teambit/legacy/dist/scope/lanes/lanes';\nimport { LaneId, DEFAULT_LANE, LANE_REMOTE_DELIMITER } from '@teambit/lane-id';\nimport { BitError } from '@teambit/bit-error';\nimport { Logger, LoggerAspect, LoggerMain } from '@teambit/logger';\nimport { DiffOptions } from '@teambit/legacy/dist/consumer/component-ops/components-diff';\nimport { MergeStrategy, MergeOptions } from '@teambit/legacy/dist/consumer/versions-ops/merge-version';\nimport { TrackLane } from '@teambit/legacy/dist/scope/scope-json';\nimport { ImporterAspect, ImporterMain, ImportOptions } from '@teambit/importer';\nimport ComponentAspect, { Component, ComponentID, ComponentMain } from '@teambit/component';\nimport removeLanes from '@teambit/legacy/dist/consumer/lanes/remove-lanes';\nimport { Lane } from '@teambit/legacy/dist/scope/models';\nimport { LaneNotFound } from '@teambit/legacy/dist/api/scope/lib/exceptions/lane-not-found';\nimport { getDivergeData } from '@teambit/legacy/dist/scope/component-ops/get-diverge-data';\nimport ScopeComponentsImporter from '@teambit/legacy/dist/scope/component-ops/scope-components-importer';\nimport { Scope as LegacyScope } from '@teambit/legacy/dist/scope';\nimport { BitId } from '@teambit/legacy-bit-id';\nimport { ExportAspect, ExportMain } from '@teambit/export';\nimport { BitIds } from '@teambit/legacy/dist/bit-id';\nimport { Ref } from '@teambit/legacy/dist/scope/objects';\nimport { SnapsDistance } from '@teambit/legacy/dist/scope/component-ops/snaps-distance';\nimport { MergingMain, MergingAspect } from '@teambit/merging';\nimport { LanesAspect } from './lanes.aspect';\nimport {\n LaneCmd,\n LaneCreateCmd,\n LaneImportCmd,\n LaneListCmd,\n LaneRemoveCmd,\n LaneShowCmd,\n LaneChangeScopeCmd,\n LaneAliasCmd,\n LaneRenameCmd,\n LaneAddReadmeCmd,\n LaneRemoveReadmeCmd,\n} from './lane.cmd';\nimport { lanesSchema } from './lanes.graphql';\nimport { SwitchCmd } from './switch.cmd';\nimport { LaneSwitcher } from './switch-lanes';\nimport { createLane, createLaneInScope, throwForInvalidLaneName } from './create-lane';\nimport { LanesCreateRoute } from './lanes.create.route';\nimport { LanesDeleteRoute } from './lanes.delete.route';\n\nexport { Lane };\n\nexport type LaneResults = {\n lanes: LaneData[];\n currentLane?: string | null;\n};\n\nexport type CreateLaneOptions = {\n remoteScope?: string; // default to the defaultScope in workspace.jsonc\n alias?: string; // default to the remote name\n};\n\nexport type SwitchLaneOptions = {\n alias?: string;\n merge?: MergeStrategy;\n getAll?: boolean;\n skipDependencyInstallation?: boolean;\n verbose?: boolean;\n override?: boolean;\n};\n\nexport class LanesMain {\n constructor(\n private workspace: Workspace | undefined,\n private scope: ScopeMain,\n private merging: MergingMain,\n private componentAspect: ComponentMain,\n public logger: Logger,\n private importer: ImporterMain,\n private exporter: ExportMain\n ) {}\n\n async getLanes({\n name,\n remote,\n merged,\n showDefaultLane,\n notMerged,\n }: {\n name?: string;\n remote?: string;\n merged?: boolean;\n showDefaultLane?: boolean;\n notMerged?: boolean;\n }): Promise<LaneData[]> {\n const showMergeData = Boolean(merged || notMerged);\n const consumer = this.workspace?.consumer;\n if (remote) {\n const remoteObj = await getRemoteByName(remote, consumer);\n const lanes = await remoteObj.listLanes(name, showMergeData);\n return lanes;\n }\n\n if (name === DEFAULT_LANE) {\n const defaultLane = await this.getLaneDataOfDefaultLane();\n return defaultLane ? [defaultLane] : [];\n }\n\n const lanes = await this.scope.legacyScope.lanes.getLanesData(this.scope.legacyScope, name, showMergeData);\n\n if (showDefaultLane) {\n const defaultLane = await this.getLaneDataOfDefaultLane();\n if (defaultLane) lanes.push(defaultLane);\n }\n\n return lanes;\n }\n\n getCurrentLaneName(): string | null {\n return this.getCurrentLaneId()?.name || null;\n }\n\n getCurrentLaneNameOrAlias(): string | null {\n const currentLaneId = this.getCurrentLaneId();\n if (!currentLaneId) return null;\n const trackingData = this.scope.legacyScope.lanes.getLocalTrackedLaneByRemoteName(\n currentLaneId.name,\n currentLaneId.scope\n );\n return trackingData || currentLaneId.name;\n }\n\n getCurrentLaneId(): LaneId | null {\n if (!this.workspace) return null;\n return this.workspace.consumer.getCurrentLaneId();\n }\n\n /**\n * get the currently checked out lane object, if on main - return null.\n */\n async getCurrentLane(): Promise<Lane | null> {\n const laneId = this.getCurrentLaneId();\n if (!laneId || laneId.isDefault()) return null;\n return this.loadLane(laneId);\n }\n\n getDefaultLaneId(): LaneId {\n return LaneId.from(DEFAULT_LANE, this.scope.name);\n }\n\n setCurrentLane(laneId: LaneId, alias?: string, exported?: boolean) {\n this.workspace?.consumer.setCurrentLane(laneId, exported);\n }\n\n async createLane(name: string, { remoteScope, alias }: CreateLaneOptions = {}): Promise<TrackLane> {\n if (!this.workspace) {\n const newLane = await createLaneInScope(name, this.scope);\n return {\n localLane: newLane.name,\n remoteLane: newLane.name,\n remoteScope: this.scope.name,\n };\n }\n if (alias) {\n throwForInvalidLaneName(alias);\n }\n const scope = remoteScope || this.workspace.defaultScope;\n await createLane(this.workspace.consumer, name, scope);\n const laneId = LaneId.from(name, scope);\n this.setCurrentLane(laneId, alias, false);\n const trackLaneData = {\n localLane: alias || name,\n remoteLane: name,\n remoteScope: scope,\n };\n this.scope.legacyScope.lanes.trackLane(trackLaneData);\n this.scope.legacyScope.scopeJson.setLaneAsNew(name);\n await this.workspace.consumer.onDestroy();\n\n return trackLaneData;\n }\n\n async loadLane(id: LaneId): Promise<Lane | null> {\n return this.scope.legacyScope.lanes.loadLane(id);\n }\n\n async trackLane(\n localName: string,\n remoteScope: string,\n remoteName?: string\n ): Promise<{ beforeTrackData?: TrackLane; afterTrackData: TrackLane }> {\n if (!this.workspace) {\n throw new BitError(`unable to track a lane outside of Bit workspace`);\n }\n const laneId = await this.scope.legacyScope.lanes.parseLaneIdFromString(localName);\n const lane = await this.loadLane(laneId);\n if (!lane) {\n throw new BitError(`unable to find a local lane \"${localName}\"`);\n }\n const beforeTrackData = this.scope.legacyScope.lanes.getRemoteTrackedDataByLocalLane(localName);\n const beforeTrackDataCloned = beforeTrackData ? { ...beforeTrackData } : undefined;\n const afterTrackData = {\n localLane: localName,\n remoteLane: remoteName || beforeTrackData?.remoteLane || localName,\n remoteScope,\n };\n this.scope.legacyScope.lanes.trackLane(afterTrackData);\n await this.workspace.consumer.onDestroy();\n\n return { beforeTrackData: beforeTrackDataCloned, afterTrackData };\n }\n\n async aliasLane(laneName: string, alias: string): Promise<{ laneId: LaneId }> {\n if (!this.workspace) {\n throw new BitError(`unable to alias a lane outside of Bit workspace`);\n }\n if (alias.includes(LANE_REMOTE_DELIMITER)) {\n throw new BitError(`an alias cannot include a delimiter \"${LANE_REMOTE_DELIMITER}\"`);\n }\n if (alias === laneName) {\n throw new BitError(`an alias cannot be the same as the lane name`);\n }\n const laneId = await this.scope.legacyScope.lanes.parseLaneIdFromString(laneName);\n const lane = await this.loadLane(laneId);\n if (!lane) {\n throw new BitError(`unable to find a local lane \"${laneName}\"`);\n }\n const trackData = {\n localLane: alias,\n remoteLane: laneId.name,\n remoteScope: laneId.scope,\n };\n const laneNameWithoutScope = laneName.includes(LANE_REMOTE_DELIMITER)\n ? laneName.split(LANE_REMOTE_DELIMITER)[1]\n : laneName;\n this.scope.legacyScope.lanes.removeTrackLane(laneNameWithoutScope);\n this.scope.legacyScope.lanes.trackLane(trackData);\n await this.workspace.consumer.onDestroy();\n\n return { laneId };\n }\n\n async changeScope(laneName: string, remoteScope: string): Promise<{ remoteScopeBefore: string }> {\n if (!this.workspace) {\n throw new BitError(`unable to change-scope of a lane outside of Bit workspace`);\n }\n const laneNameWithoutScope = laneName.includes(LANE_REMOTE_DELIMITER)\n ? laneName.split(LANE_REMOTE_DELIMITER)[1]\n : laneName;\n const laneId = await this.scope.legacyScope.lanes.parseLaneIdFromString(laneName);\n const lane = await this.loadLane(laneId);\n if (!lane) {\n throw new BitError(`unable to find a local lane \"${laneName}\"`);\n }\n const remoteScopeBefore = lane.scope;\n lane.scope = remoteScope;\n const newLaneId = LaneId.from(laneId.name, remoteScope);\n const trackData = {\n localLane: laneNameWithoutScope,\n remoteLane: laneId.name,\n remoteScope,\n };\n this.scope.legacyScope.lanes.trackLane(trackData);\n await this.scope.legacyScope.lanes.saveLane(lane);\n this.workspace.consumer.bitMap.setCurrentLane(newLaneId, false);\n await this.workspace.consumer.onDestroy();\n\n return { remoteScopeBefore };\n }\n\n /**\n * change a lane-name and if possible, export the lane to the remote\n */\n async rename(currentName: string, newName: string): Promise<{ exported: boolean; exportErr?: Error }> {\n if (!this.workspace) {\n throw new BitError(`unable to rename a lane outside of Bit workspace`);\n }\n throwForInvalidLaneName(newName);\n const existingAliasWithNewName = this.scope.legacyScope.lanes.getRemoteTrackedDataByLocalLane(newName);\n if (existingAliasWithNewName) {\n const remoteIdStr = `${existingAliasWithNewName.remoteLane}/${existingAliasWithNewName.remoteScope}`;\n throw new BitError(`unable to rename to ${newName}. this name is already used to track: ${remoteIdStr}`);\n }\n const laneNameWithoutScope = currentName.includes(LANE_REMOTE_DELIMITER)\n ? currentName.split(LANE_REMOTE_DELIMITER)[1]\n : currentName;\n const laneId = await this.scope.legacyScope.lanes.parseLaneIdFromString(currentName);\n const lane = await this.loadLane(laneId);\n if (!lane) {\n throw new BitError(`unable to find a local lane \"${currentName}\"`);\n }\n\n // rename the ref file\n await this.scope.legacyScope.objects.remoteLanes.renameRefByNewLaneName(laneNameWithoutScope, newName, lane.scope);\n\n // change tracking data\n const afterTrackData = {\n localLane: newName,\n remoteLane: newName,\n remoteScope: lane.scope,\n };\n this.scope.legacyScope.lanes.trackLane(afterTrackData);\n this.scope.legacyScope.lanes.removeTrackLane(laneNameWithoutScope);\n\n // change the lane object\n lane.name = newName;\n await this.scope.legacyScope.lanes.saveLane(lane);\n\n // change current-lane if needed\n const currentLaneName = this.getCurrentLaneName();\n if (currentLaneName === laneNameWithoutScope) {\n const newLaneId = LaneId.from(newName, lane.scope);\n const isExported = this.workspace.consumer.bitMap.isLaneExported;\n this.setCurrentLane(newLaneId, undefined, isExported);\n }\n\n // export the lane with only the name-change\n const clonedLaneToExport = lane.clone();\n clonedLaneToExport.components = []; // otherwise, it'll export the changes done on the components.\n let exported = false;\n let exportErr: Error | undefined;\n try {\n await this.exportLane(clonedLaneToExport);\n exported = true;\n } catch (err: any) {\n this.logger.error(`unable to export ${lane.id.toString()}: ${err.message}`);\n exportErr = err;\n }\n\n await this.workspace.consumer.onDestroy();\n\n return { exported, exportErr };\n }\n\n async exportLane(lane: Lane) {\n await this.exporter.exportMany({\n scope: this.scope.legacyScope,\n laneObject: lane,\n ids: new BitIds(),\n idsWithFutureScope: new BitIds(),\n allVersions: false,\n });\n }\n\n /**\n * get a Lane object from the remote.\n * `persistIfNotExists` saves the object in the local scope only if the lane is not there yet.\n * otherwise, it needs some merging mechanism, which is done differently whether it's export or import.\n * see `sources.mergeLane()` for export and `import-components._saveLaneDataIfNeeded()` for import.\n * in this case, because we only bring the lane object and not the components, it's not easy to do the merge.\n */\n async importLaneObject(laneId: LaneId, persistIfNotExists = true): Promise<Lane> {\n const legacyScope = this.scope.legacyScope;\n const scopeComponentImporter = ScopeComponentsImporter.getInstance(legacyScope);\n const results = await scopeComponentImporter.importLanes([laneId]);\n const laneObject = results[0];\n if (!laneObject) throw new LaneNotFound(laneId.scope, laneId.name);\n\n if (persistIfNotExists) {\n const exists = await legacyScope.loadLane(laneId);\n if (!exists) {\n await legacyScope.lanes.saveLane(laneObject);\n }\n }\n\n return laneObject;\n }\n\n /**\n * get the distance for a component between two lanes. for example, lane-b forked from lane-a and lane-b added some new snaps\n * @param componentId\n * @param sourceHead head on the source lane. leave empty if the source is main\n * @param targetHead head on the target lane. leave empty if the target is main\n * @returns\n */\n async getSnapsDistance(componentId: ComponentID, sourceHead?: string, targetHead?: string): Promise<SnapsDistance> {\n if (!sourceHead && !targetHead)\n throw new Error(`getDivergeData got sourceHead and targetHead empty. at least one of them should be populated`);\n const modelComponent = await this.scope.legacyScope.getModelComponent(componentId._legacy);\n return getDivergeData({\n modelComponent,\n repo: this.scope.legacyScope.objects,\n sourceHead: sourceHead ? Ref.from(sourceHead) : modelComponent.head || null,\n targetHead: targetHead ? Ref.from(targetHead) : modelComponent.head || null,\n });\n }\n\n /**\n * get the head hash (snap) of main. return undefined if the component exists only on a lane and was never merged to main\n */\n async getHeadOnMain(componentId: ComponentID): Promise<string | undefined> {\n const modelComponent = await this.scope.legacyScope.getModelComponent(componentId._legacy);\n return modelComponent.head?.toString();\n }\n\n /**\n * fetch the lane object and its components from the remote.\n * save the objects to the local scope.\n * this method doesn't change anything in the workspace.\n */\n async fetchLaneWithItsComponents(laneId: LaneId): Promise<Lane> {\n this.logger.debug(`fetching lane ${laneId.toString()}`);\n if (!this.workspace) {\n throw new BitError('unable to fetch lanes outside of Bit workspace');\n }\n const lane = await this.importLaneObject(laneId);\n if (!lane) throw new Error(`unable to import lane ${laneId.toString()} from the remote`);\n const importOptions: ImportOptions = {\n ids: [],\n objectsOnly: true,\n verbose: false,\n writeConfig: false,\n override: false,\n installNpmPackages: false,\n lanes: { laneIds: [laneId], lanes: [lane] },\n };\n const { importedIds } = await this.importer.importWithOptions(importOptions);\n this.logger.debug(`fetching lane ${laneId.toString()} done, fetched ${importedIds.length} components`);\n return lane;\n }\n\n async removeLanes(laneNames: string[], opts?: { remote: boolean; force: boolean }): Promise<string[]> {\n if (!this.workspace && !opts?.remote) {\n await this.scope.legacyScope.lanes.removeLanes(this.scope.legacyScope, laneNames, true);\n return laneNames;\n }\n const results = await removeLanes(this.workspace?.consumer, laneNames, !!opts?.remote, !!opts?.force);\n if (this.workspace) await this.workspace.consumer.onDestroy();\n\n return results.laneResults;\n }\n\n /**\n * switch to a different local or remote lane.\n * switching to a remote lane also imports and writes the components of that remote lane.\n * by default, only the components existing on the workspace will be imported from that lane, unless the \"getAll\"\n * flag is true.\n */\n async switchLanes(\n laneName: string,\n { alias, merge, getAll = false, skipDependencyInstallation = false }: SwitchLaneOptions\n ) {\n if (!this.workspace) {\n throw new BitError(`unable to switch lanes outside of Bit workspace`);\n }\n let mergeStrategy;\n if (merge && typeof merge === 'string') {\n const mergeOptions = Object.keys(MergeOptions);\n if (!mergeOptions.includes(merge)) {\n throw new BitError(`merge must be one of the following: ${mergeOptions.join(', ')}`);\n }\n mergeStrategy = merge;\n }\n if (alias) {\n throwForInvalidLaneName(alias);\n }\n\n const switchProps = {\n laneName,\n existingOnWorkspaceOnly: !getAll,\n alias,\n };\n const checkoutProps = {\n mergeStrategy,\n skipNpmInstall: skipDependencyInstallation,\n verbose: false, // not relevant in Harmony\n ignorePackageJson: true, // not relevant in Harmony\n ignoreDist: true, // not relevant in Harmony\n isLane: true,\n promptMergeOptions: false,\n writeConfig: false,\n reset: false,\n all: false,\n };\n return new LaneSwitcher(this.workspace, this.logger, switchProps, checkoutProps, this).switch();\n }\n\n /**\n * check whether the given lane is up-to-date against \"checkAgainst\", if this param is null, it checks it against main.\n */\n async isLaneUpToDate(laneToCheck: Lane, checkAgainst?: Lane): Promise<boolean> {\n const upToDateIds: BitId[] = [];\n const notUpToDateIds: BitId[] = [];\n const getHashOnAnotherLane = async (id: BitId): Promise<Ref | undefined> => {\n if (checkAgainst) {\n const idOnLane = checkAgainst.getComponent(id);\n return idOnLane?.head;\n }\n const modelComp = await this.scope.legacyScope.getModelComponent(id);\n return modelComp.head;\n };\n await Promise.all(\n laneToCheck.components.map(async (comp) => {\n const refOnOtherLane = await getHashOnAnotherLane(comp.id);\n if (!refOnOtherLane) {\n upToDateIds.push(comp.id);\n return;\n }\n if (comp.head.isEqual(refOnOtherLane)) {\n upToDateIds.push(comp.id);\n return;\n }\n const modelComponent = await this.scope.legacyScope.getModelComponent(comp.id);\n const divergeData = await getDivergeData({\n repo: this.scope.legacyScope.objects,\n modelComponent,\n sourceHead: comp.head,\n targetHead: refOnOtherLane,\n });\n if (divergeData.isTargetAhead() || divergeData.isDiverged()) {\n notUpToDateIds.push(comp.id);\n return;\n }\n if (!divergeData.isSourceAhead()) {\n throw new Error(\n `invalid state - component ${comp.id.toString()} is not diverged, not local-ahead and not-remote-ahead.`\n );\n }\n upToDateIds.push(comp.id);\n })\n );\n\n const isUpToDate = !notUpToDateIds.length;\n\n return isUpToDate;\n }\n\n /**\n * the values array may include zero to two values and will be processed as following:\n * [] => diff between the current lane and default lane. (only inside workspace).\n * [to] => diff between the current lane (or default-lane when in scope) and \"to\" lane.\n * [from, to] => diff between \"from\" lane and \"to\" lane.\n */\n public async getDiff(values: string[], diffOptions: DiffOptions = {}, pattern?: string): Promise<LaneDiffResults> {\n const laneDiffGenerator = new LaneDiffGenerator(this.workspace, this.scope);\n return laneDiffGenerator.generate(values, diffOptions, pattern);\n }\n\n async getLaneComponentModels(lane: LaneData): Promise<Component[]> {\n const host = this.componentAspect.getHost();\n const laneComponentIds = await this.getLaneComponentIds(lane);\n const components = await host.getMany(laneComponentIds);\n return components;\n }\n\n async getLaneComponentIds(lane: LaneData): Promise<ComponentID[]> {\n if (!lane) return [];\n\n const laneComponents = lane.components;\n const workspace = this.workspace;\n const bitIdsFromBitmap = workspace ? workspace.consumer.bitMap.getAllBitIdsFromAllLanes() : [];\n\n const filteredComponentIds = workspace\n ? laneComponents.filter((laneComponent) =>\n bitIdsFromBitmap.some((bitmapComponentId) => bitmapComponentId.isEqualWithoutVersion(laneComponent.id))\n )\n : laneComponents;\n\n const host = this.componentAspect.getHost();\n\n return Promise.all(\n filteredComponentIds.map((laneComponent) => {\n const legacyIdWithVersion = laneComponent.id.changeVersion(laneComponent.head);\n return host.resolveComponentId(legacyIdWithVersion);\n })\n );\n }\n\n async getLaneReadmeComponent(lane: LaneData): Promise<Component | undefined> {\n if (!lane) return undefined;\n const laneReadmeComponent = lane.readmeComponent;\n if (!laneReadmeComponent) return undefined;\n const host = this.componentAspect.getHost();\n const laneReadmeComponentId = await host.resolveComponentId(\n laneReadmeComponent.id.changeVersion(laneReadmeComponent.head)\n );\n const readmeComponent = await host.get(laneReadmeComponentId);\n return readmeComponent;\n }\n\n async removeLaneReadme(laneName?: string): Promise<{ result: boolean; message?: string }> {\n if (!this.workspace) {\n throw new BitError('unable to remove the lane readme component outside of Bit workspace');\n }\n const currentLaneName = this.getCurrentLaneName();\n\n if (!laneName && !currentLaneName) {\n return {\n result: false,\n message: 'unable to remove the lane readme component. Either pass a laneName or switch to a lane',\n };\n }\n\n const scope: LegacyScope = this.workspace.scope.legacyScope;\n const laneId: LaneId = laneName\n ? await scope.lanes.parseLaneIdFromString(laneName)\n : (this.getCurrentLaneId() as LaneId);\n const lane: Lane | null | undefined = await scope.loadLane(laneId);\n\n if (!lane?.readmeComponent) {\n throw new BitError(`there is no readme component added to the lane ${laneName || currentLaneName}`);\n }\n\n const readmeComponentId = await this.workspace.resolveComponentId(lane.readmeComponent.id);\n const existingLaneConfig =\n (await this.workspace.getSpecificComponentConfig(readmeComponentId, LanesAspect.id)) || {};\n\n const remoteLaneIdStr = lane.toLaneId().toString();\n\n if (existingLaneConfig.readme) {\n delete existingLaneConfig.readme[remoteLaneIdStr];\n await this.workspace.removeSpecificComponentConfig(readmeComponentId, LanesAspect.id, false);\n await this.workspace.addSpecificComponentConfig(readmeComponentId, LanesAspect.id, existingLaneConfig);\n }\n\n lane.setReadmeComponent(undefined);\n await scope.lanes.saveLane(lane);\n await this.workspace.bitMap.write();\n\n return { result: true };\n }\n\n async addLaneReadme(readmeComponentIdStr: string, laneName?: string): Promise<{ result: boolean; message?: string }> {\n if (!this.workspace) {\n throw new BitError(`unable to track a lane readme component outside of Bit workspace`);\n }\n const readmeComponentId = await this.workspace.resolveComponentId(readmeComponentIdStr);\n\n const readmeComponentBitId = readmeComponentId._legacy;\n const scope: LegacyScope = this.workspace.scope.legacyScope;\n const laneId: LaneId = laneName\n ? await scope.lanes.parseLaneIdFromString(laneName)\n : (this.getCurrentLaneId() as LaneId);\n\n const lane: Lane | null | undefined = await scope.loadLane(laneId);\n\n if (!lane) {\n return { result: false, message: `cannot find lane ${laneName}` };\n }\n\n lane.setReadmeComponent(readmeComponentBitId);\n await scope.lanes.saveLane(lane);\n\n const existingLaneConfig =\n (await this.workspace.getSpecificComponentConfig(readmeComponentId, LanesAspect.id)) || {};\n\n const remoteLaneIdStr = lane.toLaneId().toString();\n\n if (existingLaneConfig.readme) {\n await this.workspace.addSpecificComponentConfig(readmeComponentId, LanesAspect.id, {\n ...existingLaneConfig,\n readme: {\n ...existingLaneConfig.readme,\n [remoteLaneIdStr]: true,\n },\n });\n } else {\n await this.workspace.addSpecificComponentConfig(readmeComponentId, LanesAspect.id, {\n ...existingLaneConfig,\n readme: {\n [remoteLaneIdStr]: true,\n },\n });\n }\n await this.workspace.bitMap.write();\n return { result: true };\n }\n\n private async getLaneDataOfDefaultLane(): Promise<LaneData | null> {\n const consumer = this.workspace?.consumer;\n let bitIds: BitId[] = [];\n if (!consumer) {\n const scopeComponents = await this.scope.list();\n bitIds = scopeComponents.filter((component) => component.head).map((component) => component.id._legacy);\n } else {\n bitIds = await consumer.getIdsOfDefaultLane();\n }\n\n return {\n name: DEFAULT_LANE,\n remote: null,\n id: this.getDefaultLaneId(),\n components: bitIds.map((bitId) => ({ id: bitId, head: bitId.version as string })),\n isMerged: null,\n hash: '',\n };\n }\n\n get createRoutePath() {\n return '/lanes/create';\n }\n\n get deleteRoutePath() {\n return '/lanes/delete';\n }\n\n static slots = [];\n static dependencies = [\n CLIAspect,\n ScopeAspect,\n WorkspaceAspect,\n GraphqlAspect,\n MergingAspect,\n ComponentAspect,\n LoggerAspect,\n ImporterAspect,\n ExportAspect,\n ExpressAspect,\n ];\n static runtime = MainRuntime;\n static async provider([cli, scope, workspace, graphql, merging, component, loggerMain, importer, exporter, express]: [\n CLIMain,\n ScopeMain,\n Workspace,\n GraphqlMain,\n MergingMain,\n ComponentMain,\n LoggerMain,\n ImporterMain,\n ExportMain,\n ExpressMain\n ]) {\n const logger = loggerMain.createLogger(LanesAspect.id);\n const lanesMain = new LanesMain(workspace, scope, merging, component, logger, importer, exporter);\n const switchCmd = new SwitchCmd(lanesMain);\n const laneCmd = new LaneCmd(lanesMain, workspace, scope);\n laneCmd.commands = [\n new LaneListCmd(lanesMain, workspace, scope),\n switchCmd,\n new LaneShowCmd(lanesMain, workspace, scope),\n new LaneCreateCmd(lanesMain),\n new LaneRemoveCmd(lanesMain),\n new LaneChangeScopeCmd(lanesMain),\n new LaneAliasCmd(lanesMain),\n new LaneRenameCmd(lanesMain),\n new LaneDiffCmd(workspace, scope),\n new LaneAddReadmeCmd(lanesMain),\n new LaneRemoveReadmeCmd(lanesMain),\n new LaneImportCmd(switchCmd),\n ];\n cli.register(laneCmd, switchCmd);\n graphql.register(lanesSchema(lanesMain));\n express.register([new LanesCreateRoute(lanesMain, logger), new LanesDeleteRoute(lanesMain, logger)]);\n return lanesMain;\n }\n}\n\nLanesAspect.addRuntime(LanesMain);\n\nexport default LanesMain;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA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sB,QAAQ,CAACd,OAAO,EAAEF,SAAS,CAAC;IAChCL,OAAO,CAACqB,QAAQ,CAAC,IAAAC,qBAAW,EAAClB,SAAS,CAAC,CAAC;IACxCF,OAAO,CAACmB,QAAQ,CAAC,CAAC,KAAIE,+BAAgB,EAACnB,SAAS,EAAEpP,MAAM,CAAC,EAAE,KAAIwQ,+BAAgB,EAACpB,SAAS,EAAEpP,MAAM,CAAC,CAAC,CAAC;IACpG,OAAOoP,SAAS;EAClB;AACF;AAAC;AAAA,gCAlqBY1P,SAAS,WAinBL,EAAE;AAAA,gCAjnBNA,SAAS,kBAknBE,CACpB+Q,gBAAS,EACTC,oBAAW,EACXC,4BAAe,EACfC,wBAAa,EACbC,wBAAa,EACbC,oBAAe,EACfC,sBAAY,EACZC,0BAAc,EACdC,sBAAY,EACZC,wBAAa,CACd;AAAA,gCA7nBUxR,SAAS,aA8nBHyR,kBAAW;AAsC9B3D,oBAAW,CAAC4D,UAAU,CAAC1R,SAAS,CAAC;AAAC,eAEnBA,SAAS;AAAA"}
|
1
|
+
{"version":3,"names":["ChangeType","LanesMain","constructor","workspace","scope","merging","componentAspect","logger","importer","exporter","componentCompare","getLanes","name","remote","merged","showDefaultLane","notMerged","showMergeData","Boolean","consumer","remoteObj","getRemoteByName","lanes","listLanes","DEFAULT_LANE","defaultLane","getLaneDataOfDefaultLane","legacyScope","getLanesData","push","getCurrentLaneName","getCurrentLaneId","getCurrentLaneNameOrAlias","currentLaneId","trackingData","getLocalTrackedLaneByRemoteName","getCurrentLane","laneId","isDefault","loadLane","getDefaultLaneId","LaneId","from","setCurrentLane","alias","exported","createLane","remoteScope","newLane","createLaneInScope","localLane","remoteLane","throwForInvalidLaneName","defaultScope","trackLaneData","trackLane","scopeJson","setLaneAsNew","onDestroy","id","localName","remoteName","BitError","parseLaneIdFromString","lane","beforeTrackData","getRemoteTrackedDataByLocalLane","beforeTrackDataCloned","undefined","afterTrackData","aliasLane","laneName","includes","LANE_REMOTE_DELIMITER","trackData","laneNameWithoutScope","split","removeTrackLane","changeScope","remoteScopeBefore","newLaneId","saveLane","bitMap","rename","currentName","newName","existingAliasWithNewName","remoteIdStr","objects","remoteLanes","renameRefByNewLaneName","currentLaneName","isExported","isLaneExported","clonedLaneToExport","clone","components","exportErr","exportLane","err","error","toString","message","exportMany","laneObject","ids","BitIds","idsWithFutureScope","allVersions","importLaneObject","persistIfNotExists","scopeComponentImporter","ScopeComponentsImporter","getInstance","results","importLanes","LaneNotFound","exists","getSnapsDistance","componentId","sourceHead","targetHead","Error","modelComponent","getModelComponent","_legacy","getDivergeData","repo","Ref","head","getHeadOnMain","fetchLaneWithItsComponents","debug","importOptions","objectsOnly","verbose","writeConfig","override","installNpmPackages","laneIds","importedIds","importWithOptions","length","removeLanes","laneNames","opts","force","laneResults","switchLanes","merge","getAll","skipDependencyInstallation","mergeStrategy","mergeOptions","Object","keys","MergeOptions","join","switchProps","existingOnWorkspaceOnly","checkoutProps","skipNpmInstall","ignorePackageJson","ignoreDist","isLane","promptMergeOptions","reset","all","LaneSwitcher","switch","isLaneUpToDate","laneToCheck","checkAgainst","upToDateIds","notUpToDateIds","getHashOnAnotherLane","idOnLane","getComponent","modelComp","Promise","map","comp","refOnOtherLane","isEqual","divergeData","isTargetAhead","isDiverged","isSourceAhead","isUpToDate","getDiff","values","diffOptions","pattern","laneDiffGenerator","LaneDiffGenerator","generate","getLaneComponentModels","host","getHost","laneComponentIds","getLaneComponentIds","getMany","laneComponents","bitIdsFromBitmap","getAllBitIdsFromAllLanes","filteredComponentIds","filter","laneComponent","some","bitmapComponentId","isEqualWithoutVersion","legacyIdWithVersion","changeVersion","resolveComponentId","getLaneReadmeComponent","laneReadmeComponent","readmeComponent","laneReadmeComponentId","get","removeLaneReadme","result","readmeComponentId","existingLaneConfig","getSpecificComponentConfig","LanesAspect","remoteLaneIdStr","toLaneId","readme","removeSpecificComponentConfig","addSpecificComponentConfig","setReadmeComponent","write","laneDiff","sourceLaneId","targetLaneId","sourceLane","targetLane","targetLaneIds","toBitIds","headOnTargetLane","searchWithoutVersion","version","snapsDistance","getChangeType","NEW","compare","code","f","status","SOURCE_CODE","fields","NONE","depsFields","field","fieldName","DEPENDENCY","CONFIG","changeType","upToDate","addLaneReadme","readmeComponentIdStr","readmeComponentBitId","bitIds","scopeComponents","list","component","getIdsOfDefaultLane","bitId","isMerged","hash","createRoutePath","deleteRoutePath","provider","cli","graphql","loggerMain","express","createLogger","lanesMain","switchCmd","SwitchCmd","laneCmd","LaneCmd","commands","LaneListCmd","LaneShowCmd","LaneCreateCmd","LaneRemoveCmd","LaneChangeScopeCmd","LaneAliasCmd","LaneRenameCmd","LaneDiffCmd","LaneAddReadmeCmd","LaneRemoveReadmeCmd","LaneImportCmd","register","lanesSchema","LanesCreateRoute","LanesDeleteRoute","CLIAspect","ScopeAspect","WorkspaceAspect","GraphqlAspect","MergingAspect","ComponentAspect","LoggerAspect","ImporterAspect","ExportAspect","ExpressAspect","ComponentCompareAspect","MainRuntime","addRuntime"],"sources":["lanes.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport { ScopeMain, ScopeAspect } from '@teambit/scope';\nimport { GraphqlAspect, GraphqlMain } from '@teambit/graphql';\nimport { ExpressAspect, ExpressMain } from '@teambit/express';\nimport { Workspace, WorkspaceAspect } from '@teambit/workspace';\nimport getRemoteByName from '@teambit/legacy/dist/remotes/get-remote-by-name';\nimport { LaneDiffCmd, LaneDiffGenerator, LaneDiffResults } from '@teambit/lanes.modules.diff';\nimport { LaneData } from '@teambit/legacy/dist/scope/lanes/lanes';\nimport { LaneId, DEFAULT_LANE, LANE_REMOTE_DELIMITER } from '@teambit/lane-id';\nimport { BitError } from '@teambit/bit-error';\nimport { Logger, LoggerAspect, LoggerMain } from '@teambit/logger';\nimport { DiffOptions } from '@teambit/legacy/dist/consumer/component-ops/components-diff';\nimport { MergeStrategy, MergeOptions } from '@teambit/legacy/dist/consumer/versions-ops/merge-version';\nimport { TrackLane } from '@teambit/legacy/dist/scope/scope-json';\nimport { ImporterAspect, ImporterMain, ImportOptions } from '@teambit/importer';\nimport ComponentAspect, { Component, ComponentID, ComponentMain } from '@teambit/component';\nimport removeLanes from '@teambit/legacy/dist/consumer/lanes/remove-lanes';\nimport { Lane } from '@teambit/legacy/dist/scope/models';\nimport { LaneNotFound } from '@teambit/legacy/dist/api/scope/lib/exceptions/lane-not-found';\nimport { getDivergeData } from '@teambit/legacy/dist/scope/component-ops/get-diverge-data';\nimport ScopeComponentsImporter from '@teambit/legacy/dist/scope/component-ops/scope-components-importer';\nimport { Scope as LegacyScope } from '@teambit/legacy/dist/scope';\nimport { BitId } from '@teambit/legacy-bit-id';\nimport { ExportAspect, ExportMain } from '@teambit/export';\nimport { BitIds } from '@teambit/legacy/dist/bit-id';\nimport { ComponentCompareMain, ComponentCompareAspect } from '@teambit/component-compare';\nimport { Ref } from '@teambit/legacy/dist/scope/objects';\nimport { SnapsDistance } from '@teambit/legacy/dist/scope/component-ops/snaps-distance';\nimport { MergingMain, MergingAspect } from '@teambit/merging';\nimport { LanesAspect } from './lanes.aspect';\nimport {\n LaneCmd,\n LaneCreateCmd,\n LaneImportCmd,\n LaneListCmd,\n LaneRemoveCmd,\n LaneShowCmd,\n LaneChangeScopeCmd,\n LaneAliasCmd,\n LaneRenameCmd,\n LaneAddReadmeCmd,\n LaneRemoveReadmeCmd,\n} from './lane.cmd';\nimport { lanesSchema } from './lanes.graphql';\nimport { SwitchCmd } from './switch.cmd';\nimport { LaneSwitcher } from './switch-lanes';\nimport { createLane, createLaneInScope, throwForInvalidLaneName } from './create-lane';\nimport { LanesCreateRoute } from './lanes.create.route';\nimport { LanesDeleteRoute } from './lanes.delete.route';\n\nexport { Lane };\n\nexport type LaneResults = {\n lanes: LaneData[];\n currentLane?: string | null;\n};\n\nexport type CreateLaneOptions = {\n remoteScope?: string; // default to the defaultScope in workspace.jsonc\n alias?: string; // default to the remote name\n};\n\nexport type SwitchLaneOptions = {\n alias?: string;\n merge?: MergeStrategy;\n getAll?: boolean;\n skipDependencyInstallation?: boolean;\n verbose?: boolean;\n override?: boolean;\n};\n\nexport enum ChangeType {\n NONE = 'NONE',\n NEW = 'NEW',\n SOURCE_CODE = 'SOURCE_CODE',\n DEPENDENCY = 'DEPENDENCY',\n CONFIG = 'CONFIG',\n}\n\ntype LaneComponentDiff = {\n componentId: ComponentID;\n changeType: ChangeType;\n upToDate: boolean;\n};\n\nexport class LanesMain {\n constructor(\n private workspace: Workspace | undefined,\n private scope: ScopeMain,\n private merging: MergingMain,\n private componentAspect: ComponentMain,\n public logger: Logger,\n private importer: ImporterMain,\n private exporter: ExportMain,\n private componentCompare: ComponentCompareMain\n ) {}\n\n async getLanes({\n name,\n remote,\n merged,\n showDefaultLane,\n notMerged,\n }: {\n name?: string;\n remote?: string;\n merged?: boolean;\n showDefaultLane?: boolean;\n notMerged?: boolean;\n }): Promise<LaneData[]> {\n const showMergeData = Boolean(merged || notMerged);\n const consumer = this.workspace?.consumer;\n if (remote) {\n const remoteObj = await getRemoteByName(remote, consumer);\n const lanes = await remoteObj.listLanes(name, showMergeData);\n return lanes;\n }\n\n if (name === DEFAULT_LANE) {\n const defaultLane = await this.getLaneDataOfDefaultLane();\n return defaultLane ? [defaultLane] : [];\n }\n\n const lanes = await this.scope.legacyScope.lanes.getLanesData(this.scope.legacyScope, name, showMergeData);\n\n if (showDefaultLane) {\n const defaultLane = await this.getLaneDataOfDefaultLane();\n if (defaultLane) lanes.push(defaultLane);\n }\n\n return lanes;\n }\n\n getCurrentLaneName(): string | null {\n return this.getCurrentLaneId()?.name || null;\n }\n\n getCurrentLaneNameOrAlias(): string | null {\n const currentLaneId = this.getCurrentLaneId();\n if (!currentLaneId) return null;\n const trackingData = this.scope.legacyScope.lanes.getLocalTrackedLaneByRemoteName(\n currentLaneId.name,\n currentLaneId.scope\n );\n return trackingData || currentLaneId.name;\n }\n\n getCurrentLaneId(): LaneId | null {\n if (!this.workspace) return null;\n return this.workspace.consumer.getCurrentLaneId();\n }\n\n /**\n * get the currently checked out lane object, if on main - return null.\n */\n async getCurrentLane(): Promise<Lane | null> {\n const laneId = this.getCurrentLaneId();\n if (!laneId || laneId.isDefault()) return null;\n return this.loadLane(laneId);\n }\n\n getDefaultLaneId(): LaneId {\n return LaneId.from(DEFAULT_LANE, this.scope.name);\n }\n\n setCurrentLane(laneId: LaneId, alias?: string, exported?: boolean) {\n this.workspace?.consumer.setCurrentLane(laneId, exported);\n }\n\n async createLane(name: string, { remoteScope, alias }: CreateLaneOptions = {}): Promise<TrackLane> {\n if (!this.workspace) {\n const newLane = await createLaneInScope(name, this.scope);\n return {\n localLane: newLane.name,\n remoteLane: newLane.name,\n remoteScope: this.scope.name,\n };\n }\n if (alias) {\n throwForInvalidLaneName(alias);\n }\n const scope = remoteScope || this.workspace.defaultScope;\n await createLane(this.workspace.consumer, name, scope);\n const laneId = LaneId.from(name, scope);\n this.setCurrentLane(laneId, alias, false);\n const trackLaneData = {\n localLane: alias || name,\n remoteLane: name,\n remoteScope: scope,\n };\n this.scope.legacyScope.lanes.trackLane(trackLaneData);\n this.scope.legacyScope.scopeJson.setLaneAsNew(name);\n await this.workspace.consumer.onDestroy();\n\n return trackLaneData;\n }\n\n async loadLane(id: LaneId): Promise<Lane | null> {\n return this.scope.legacyScope.lanes.loadLane(id);\n }\n\n async trackLane(\n localName: string,\n remoteScope: string,\n remoteName?: string\n ): Promise<{ beforeTrackData?: TrackLane; afterTrackData: TrackLane }> {\n if (!this.workspace) {\n throw new BitError(`unable to track a lane outside of Bit workspace`);\n }\n const laneId = await this.scope.legacyScope.lanes.parseLaneIdFromString(localName);\n const lane = await this.loadLane(laneId);\n if (!lane) {\n throw new BitError(`unable to find a local lane \"${localName}\"`);\n }\n const beforeTrackData = this.scope.legacyScope.lanes.getRemoteTrackedDataByLocalLane(localName);\n const beforeTrackDataCloned = beforeTrackData ? { ...beforeTrackData } : undefined;\n const afterTrackData = {\n localLane: localName,\n remoteLane: remoteName || beforeTrackData?.remoteLane || localName,\n remoteScope,\n };\n this.scope.legacyScope.lanes.trackLane(afterTrackData);\n await this.workspace.consumer.onDestroy();\n\n return { beforeTrackData: beforeTrackDataCloned, afterTrackData };\n }\n\n async aliasLane(laneName: string, alias: string): Promise<{ laneId: LaneId }> {\n if (!this.workspace) {\n throw new BitError(`unable to alias a lane outside of Bit workspace`);\n }\n if (alias.includes(LANE_REMOTE_DELIMITER)) {\n throw new BitError(`an alias cannot include a delimiter \"${LANE_REMOTE_DELIMITER}\"`);\n }\n if (alias === laneName) {\n throw new BitError(`an alias cannot be the same as the lane name`);\n }\n const laneId = await this.scope.legacyScope.lanes.parseLaneIdFromString(laneName);\n const lane = await this.loadLane(laneId);\n if (!lane) {\n throw new BitError(`unable to find a local lane \"${laneName}\"`);\n }\n const trackData = {\n localLane: alias,\n remoteLane: laneId.name,\n remoteScope: laneId.scope,\n };\n const laneNameWithoutScope = laneName.includes(LANE_REMOTE_DELIMITER)\n ? laneName.split(LANE_REMOTE_DELIMITER)[1]\n : laneName;\n this.scope.legacyScope.lanes.removeTrackLane(laneNameWithoutScope);\n this.scope.legacyScope.lanes.trackLane(trackData);\n await this.workspace.consumer.onDestroy();\n\n return { laneId };\n }\n\n async changeScope(laneName: string, remoteScope: string): Promise<{ remoteScopeBefore: string }> {\n if (!this.workspace) {\n throw new BitError(`unable to change-scope of a lane outside of Bit workspace`);\n }\n const laneNameWithoutScope = laneName.includes(LANE_REMOTE_DELIMITER)\n ? laneName.split(LANE_REMOTE_DELIMITER)[1]\n : laneName;\n const laneId = await this.scope.legacyScope.lanes.parseLaneIdFromString(laneName);\n const lane = await this.loadLane(laneId);\n if (!lane) {\n throw new BitError(`unable to find a local lane \"${laneName}\"`);\n }\n const remoteScopeBefore = lane.scope;\n lane.scope = remoteScope;\n const newLaneId = LaneId.from(laneId.name, remoteScope);\n const trackData = {\n localLane: laneNameWithoutScope,\n remoteLane: laneId.name,\n remoteScope,\n };\n this.scope.legacyScope.lanes.trackLane(trackData);\n await this.scope.legacyScope.lanes.saveLane(lane);\n this.workspace.consumer.bitMap.setCurrentLane(newLaneId, false);\n await this.workspace.consumer.onDestroy();\n\n return { remoteScopeBefore };\n }\n\n /**\n * change a lane-name and if possible, export the lane to the remote\n */\n async rename(currentName: string, newName: string): Promise<{ exported: boolean; exportErr?: Error }> {\n if (!this.workspace) {\n throw new BitError(`unable to rename a lane outside of Bit workspace`);\n }\n throwForInvalidLaneName(newName);\n const existingAliasWithNewName = this.scope.legacyScope.lanes.getRemoteTrackedDataByLocalLane(newName);\n if (existingAliasWithNewName) {\n const remoteIdStr = `${existingAliasWithNewName.remoteLane}/${existingAliasWithNewName.remoteScope}`;\n throw new BitError(`unable to rename to ${newName}. this name is already used to track: ${remoteIdStr}`);\n }\n const laneNameWithoutScope = currentName.includes(LANE_REMOTE_DELIMITER)\n ? currentName.split(LANE_REMOTE_DELIMITER)[1]\n : currentName;\n const laneId = await this.scope.legacyScope.lanes.parseLaneIdFromString(currentName);\n const lane = await this.loadLane(laneId);\n if (!lane) {\n throw new BitError(`unable to find a local lane \"${currentName}\"`);\n }\n\n // rename the ref file\n await this.scope.legacyScope.objects.remoteLanes.renameRefByNewLaneName(laneNameWithoutScope, newName, lane.scope);\n\n // change tracking data\n const afterTrackData = {\n localLane: newName,\n remoteLane: newName,\n remoteScope: lane.scope,\n };\n this.scope.legacyScope.lanes.trackLane(afterTrackData);\n this.scope.legacyScope.lanes.removeTrackLane(laneNameWithoutScope);\n\n // change the lane object\n lane.name = newName;\n await this.scope.legacyScope.lanes.saveLane(lane);\n\n // change current-lane if needed\n const currentLaneName = this.getCurrentLaneName();\n if (currentLaneName === laneNameWithoutScope) {\n const newLaneId = LaneId.from(newName, lane.scope);\n const isExported = this.workspace.consumer.bitMap.isLaneExported;\n this.setCurrentLane(newLaneId, undefined, isExported);\n }\n\n // export the lane with only the name-change\n const clonedLaneToExport = lane.clone();\n clonedLaneToExport.components = []; // otherwise, it'll export the changes done on the components.\n let exported = false;\n let exportErr: Error | undefined;\n try {\n await this.exportLane(clonedLaneToExport);\n exported = true;\n } catch (err: any) {\n this.logger.error(`unable to export ${lane.id.toString()}: ${err.message}`);\n exportErr = err;\n }\n\n await this.workspace.consumer.onDestroy();\n\n return { exported, exportErr };\n }\n\n async exportLane(lane: Lane) {\n await this.exporter.exportMany({\n scope: this.scope.legacyScope,\n laneObject: lane,\n ids: new BitIds(),\n idsWithFutureScope: new BitIds(),\n allVersions: false,\n });\n }\n\n /**\n * get a Lane object from the remote.\n * `persistIfNotExists` saves the object in the local scope only if the lane is not there yet.\n * otherwise, it needs some merging mechanism, which is done differently whether it's export or import.\n * see `sources.mergeLane()` for export and `import-components._saveLaneDataIfNeeded()` for import.\n * in this case, because we only bring the lane object and not the components, it's not easy to do the merge.\n */\n async importLaneObject(laneId: LaneId, persistIfNotExists = true): Promise<Lane> {\n const legacyScope = this.scope.legacyScope;\n const scopeComponentImporter = ScopeComponentsImporter.getInstance(legacyScope);\n const results = await scopeComponentImporter.importLanes([laneId]);\n const laneObject = results[0];\n if (!laneObject) throw new LaneNotFound(laneId.scope, laneId.name);\n\n if (persistIfNotExists) {\n const exists = await legacyScope.loadLane(laneId);\n if (!exists) {\n await legacyScope.lanes.saveLane(laneObject);\n }\n }\n\n return laneObject;\n }\n\n /**\n * get the distance for a component between two lanes. for example, lane-b forked from lane-a and lane-b added some new snaps\n * @param componentId\n * @param sourceHead head on the source lane. leave empty if the source is main\n * @param targetHead head on the target lane. leave empty if the target is main\n * @returns\n */\n async getSnapsDistance(componentId: ComponentID, sourceHead?: string, targetHead?: string): Promise<SnapsDistance> {\n if (!sourceHead && !targetHead)\n throw new Error(`getDivergeData got sourceHead and targetHead empty. at least one of them should be populated`);\n const modelComponent = await this.scope.legacyScope.getModelComponent(componentId._legacy);\n return getDivergeData({\n modelComponent,\n repo: this.scope.legacyScope.objects,\n sourceHead: sourceHead ? Ref.from(sourceHead) : modelComponent.head || null,\n targetHead: targetHead ? Ref.from(targetHead) : modelComponent.head || null,\n });\n }\n\n /**\n * get the head hash (snap) of main. return undefined if the component exists only on a lane and was never merged to main\n */\n async getHeadOnMain(componentId: ComponentID): Promise<string | undefined> {\n const modelComponent = await this.scope.legacyScope.getModelComponent(componentId._legacy);\n return modelComponent.head?.toString();\n }\n\n /**\n * fetch the lane object and its components from the remote.\n * save the objects to the local scope.\n * this method doesn't change anything in the workspace.\n */\n async fetchLaneWithItsComponents(laneId: LaneId): Promise<Lane> {\n this.logger.debug(`fetching lane ${laneId.toString()}`);\n if (!this.workspace) {\n throw new BitError('unable to fetch lanes outside of Bit workspace');\n }\n const lane = await this.importLaneObject(laneId);\n if (!lane) throw new Error(`unable to import lane ${laneId.toString()} from the remote`);\n const importOptions: ImportOptions = {\n ids: [],\n objectsOnly: true,\n verbose: false,\n writeConfig: false,\n override: false,\n installNpmPackages: false,\n lanes: { laneIds: [laneId], lanes: [lane] },\n };\n const { importedIds } = await this.importer.importWithOptions(importOptions);\n this.logger.debug(`fetching lane ${laneId.toString()} done, fetched ${importedIds.length} components`);\n return lane;\n }\n\n async removeLanes(laneNames: string[], opts?: { remote: boolean; force: boolean }): Promise<string[]> {\n if (!this.workspace && !opts?.remote) {\n await this.scope.legacyScope.lanes.removeLanes(this.scope.legacyScope, laneNames, true);\n return laneNames;\n }\n const results = await removeLanes(this.workspace?.consumer, laneNames, !!opts?.remote, !!opts?.force);\n if (this.workspace) await this.workspace.consumer.onDestroy();\n\n return results.laneResults;\n }\n\n /**\n * switch to a different local or remote lane.\n * switching to a remote lane also imports and writes the components of that remote lane.\n * by default, only the components existing on the workspace will be imported from that lane, unless the \"getAll\"\n * flag is true.\n */\n async switchLanes(\n laneName: string,\n { alias, merge, getAll = false, skipDependencyInstallation = false }: SwitchLaneOptions\n ) {\n if (!this.workspace) {\n throw new BitError(`unable to switch lanes outside of Bit workspace`);\n }\n let mergeStrategy;\n if (merge && typeof merge === 'string') {\n const mergeOptions = Object.keys(MergeOptions);\n if (!mergeOptions.includes(merge)) {\n throw new BitError(`merge must be one of the following: ${mergeOptions.join(', ')}`);\n }\n mergeStrategy = merge;\n }\n if (alias) {\n throwForInvalidLaneName(alias);\n }\n\n const switchProps = {\n laneName,\n existingOnWorkspaceOnly: !getAll,\n alias,\n };\n const checkoutProps = {\n mergeStrategy,\n skipNpmInstall: skipDependencyInstallation,\n verbose: false, // not relevant in Harmony\n ignorePackageJson: true, // not relevant in Harmony\n ignoreDist: true, // not relevant in Harmony\n isLane: true,\n promptMergeOptions: false,\n writeConfig: false,\n reset: false,\n all: false,\n };\n return new LaneSwitcher(this.workspace, this.logger, switchProps, checkoutProps, this).switch();\n }\n\n /**\n * check whether the given lane is up-to-date against \"checkAgainst\", if this param is null, it checks it against main.\n */\n async isLaneUpToDate(laneToCheck: Lane, checkAgainst?: Lane): Promise<boolean> {\n const upToDateIds: BitId[] = [];\n const notUpToDateIds: BitId[] = [];\n const getHashOnAnotherLane = async (id: BitId): Promise<Ref | undefined> => {\n if (checkAgainst) {\n const idOnLane = checkAgainst.getComponent(id);\n return idOnLane?.head;\n }\n const modelComp = await this.scope.legacyScope.getModelComponent(id);\n return modelComp.head;\n };\n await Promise.all(\n laneToCheck.components.map(async (comp) => {\n const refOnOtherLane = await getHashOnAnotherLane(comp.id);\n if (!refOnOtherLane) {\n upToDateIds.push(comp.id);\n return;\n }\n if (comp.head.isEqual(refOnOtherLane)) {\n upToDateIds.push(comp.id);\n return;\n }\n const modelComponent = await this.scope.legacyScope.getModelComponent(comp.id);\n const divergeData = await getDivergeData({\n repo: this.scope.legacyScope.objects,\n modelComponent,\n sourceHead: comp.head,\n targetHead: refOnOtherLane,\n });\n if (divergeData.isTargetAhead() || divergeData.isDiverged()) {\n notUpToDateIds.push(comp.id);\n return;\n }\n if (!divergeData.isSourceAhead()) {\n throw new Error(\n `invalid state - component ${comp.id.toString()} is not diverged, not local-ahead and not-remote-ahead.`\n );\n }\n upToDateIds.push(comp.id);\n })\n );\n\n const isUpToDate = !notUpToDateIds.length;\n\n return isUpToDate;\n }\n\n /**\n * the values array may include zero to two values and will be processed as following:\n * [] => diff between the current lane and default lane. (only inside workspace).\n * [to] => diff between the current lane (or default-lane when in scope) and \"to\" lane.\n * [from, to] => diff between \"from\" lane and \"to\" lane.\n */\n public async getDiff(values: string[], diffOptions: DiffOptions = {}, pattern?: string): Promise<LaneDiffResults> {\n const laneDiffGenerator = new LaneDiffGenerator(this.workspace, this.scope);\n return laneDiffGenerator.generate(values, diffOptions, pattern);\n }\n\n async getLaneComponentModels(lane: LaneData): Promise<Component[]> {\n const host = this.componentAspect.getHost();\n const laneComponentIds = await this.getLaneComponentIds(lane);\n const components = await host.getMany(laneComponentIds);\n return components;\n }\n\n async getLaneComponentIds(lane: LaneData): Promise<ComponentID[]> {\n if (!lane) return [];\n\n const laneComponents = lane.components;\n const workspace = this.workspace;\n const bitIdsFromBitmap = workspace ? workspace.consumer.bitMap.getAllBitIdsFromAllLanes() : [];\n\n const filteredComponentIds = workspace\n ? laneComponents.filter((laneComponent) =>\n bitIdsFromBitmap.some((bitmapComponentId) => bitmapComponentId.isEqualWithoutVersion(laneComponent.id))\n )\n : laneComponents;\n\n const host = this.componentAspect.getHost();\n\n return Promise.all(\n filteredComponentIds.map((laneComponent) => {\n const legacyIdWithVersion = laneComponent.id.changeVersion(laneComponent.head);\n return host.resolveComponentId(legacyIdWithVersion);\n })\n );\n }\n\n async getLaneReadmeComponent(lane: LaneData): Promise<Component | undefined> {\n if (!lane) return undefined;\n const laneReadmeComponent = lane.readmeComponent;\n if (!laneReadmeComponent) return undefined;\n const host = this.componentAspect.getHost();\n const laneReadmeComponentId = await host.resolveComponentId(\n laneReadmeComponent.id.changeVersion(laneReadmeComponent.head)\n );\n const readmeComponent = await host.get(laneReadmeComponentId);\n return readmeComponent;\n }\n\n async removeLaneReadme(laneName?: string): Promise<{ result: boolean; message?: string }> {\n if (!this.workspace) {\n throw new BitError('unable to remove the lane readme component outside of Bit workspace');\n }\n const currentLaneName = this.getCurrentLaneName();\n\n if (!laneName && !currentLaneName) {\n return {\n result: false,\n message: 'unable to remove the lane readme component. Either pass a laneName or switch to a lane',\n };\n }\n\n const scope: LegacyScope = this.workspace.scope.legacyScope;\n const laneId: LaneId = laneName\n ? await scope.lanes.parseLaneIdFromString(laneName)\n : (this.getCurrentLaneId() as LaneId);\n const lane: Lane | null | undefined = await scope.loadLane(laneId);\n\n if (!lane?.readmeComponent) {\n throw new BitError(`there is no readme component added to the lane ${laneName || currentLaneName}`);\n }\n\n const readmeComponentId = await this.workspace.resolveComponentId(lane.readmeComponent.id);\n const existingLaneConfig =\n (await this.workspace.getSpecificComponentConfig(readmeComponentId, LanesAspect.id)) || {};\n\n const remoteLaneIdStr = lane.toLaneId().toString();\n\n if (existingLaneConfig.readme) {\n delete existingLaneConfig.readme[remoteLaneIdStr];\n await this.workspace.removeSpecificComponentConfig(readmeComponentId, LanesAspect.id, false);\n await this.workspace.addSpecificComponentConfig(readmeComponentId, LanesAspect.id, existingLaneConfig);\n }\n\n lane.setReadmeComponent(undefined);\n await scope.lanes.saveLane(lane);\n await this.workspace.bitMap.write();\n\n return { result: true };\n }\n\n async laneDiff(sourceLaneId: LaneId, targetLaneId?: LaneId): Promise<LaneComponentDiff[]> {\n const sourceLane = await this.loadLane(sourceLaneId);\n if (!sourceLane) throw new Error(`unable to find ${sourceLaneId.toString()} in the scope`);\n const targetLane = targetLaneId ? await this.loadLane(targetLaneId) : undefined;\n const targetLaneIds = targetLane?.toBitIds();\n const host = this.componentAspect.getHost();\n const results = await Promise.all(\n sourceLane.components.map(async (comp) => {\n const componentId = await host.resolveComponentId(comp.id);\n const headOnTargetLane = targetLaneIds\n ? targetLaneIds.searchWithoutVersion(comp.id)?.version\n : await this.getHeadOnMain(componentId);\n const snapsDistance = await this.getSnapsDistance(componentId, comp.head.toString(), headOnTargetLane);\n const getChangeType = async (): Promise<ChangeType> => {\n if (!headOnTargetLane) return ChangeType.NEW;\n const compare = await this.componentCompare.compare(\n comp.id.changeVersion(comp.head.toString()).toString(),\n comp.id.changeVersion(headOnTargetLane).toString()\n );\n if (compare.code.length && compare.code.some((f) => f.status !== 'UNCHANGED')) {\n return ChangeType.SOURCE_CODE;\n }\n if (!compare.fields.length) return ChangeType.NONE;\n const depsFields = ['dependencies', 'devDependencies', 'extensionDependencies'];\n if (compare.fields.some((field) => depsFields.includes(field.fieldName))) return ChangeType.DEPENDENCY;\n return ChangeType.CONFIG;\n };\n const changeType = await getChangeType();\n return { componentId, changeType, upToDate: snapsDistance.isUpToDate() };\n })\n );\n\n return results;\n }\n\n async addLaneReadme(readmeComponentIdStr: string, laneName?: string): Promise<{ result: boolean; message?: string }> {\n if (!this.workspace) {\n throw new BitError(`unable to track a lane readme component outside of Bit workspace`);\n }\n const readmeComponentId = await this.workspace.resolveComponentId(readmeComponentIdStr);\n\n const readmeComponentBitId = readmeComponentId._legacy;\n const scope: LegacyScope = this.workspace.scope.legacyScope;\n const laneId: LaneId = laneName\n ? await scope.lanes.parseLaneIdFromString(laneName)\n : (this.getCurrentLaneId() as LaneId);\n\n const lane: Lane | null | undefined = await scope.loadLane(laneId);\n\n if (!lane) {\n return { result: false, message: `cannot find lane ${laneName}` };\n }\n\n lane.setReadmeComponent(readmeComponentBitId);\n await scope.lanes.saveLane(lane);\n\n const existingLaneConfig =\n (await this.workspace.getSpecificComponentConfig(readmeComponentId, LanesAspect.id)) || {};\n\n const remoteLaneIdStr = lane.toLaneId().toString();\n\n if (existingLaneConfig.readme) {\n await this.workspace.addSpecificComponentConfig(readmeComponentId, LanesAspect.id, {\n ...existingLaneConfig,\n readme: {\n ...existingLaneConfig.readme,\n [remoteLaneIdStr]: true,\n },\n });\n } else {\n await this.workspace.addSpecificComponentConfig(readmeComponentId, LanesAspect.id, {\n ...existingLaneConfig,\n readme: {\n [remoteLaneIdStr]: true,\n },\n });\n }\n await this.workspace.bitMap.write();\n return { result: true };\n }\n\n private async getLaneDataOfDefaultLane(): Promise<LaneData | null> {\n const consumer = this.workspace?.consumer;\n let bitIds: BitId[] = [];\n if (!consumer) {\n const scopeComponents = await this.scope.list();\n bitIds = scopeComponents.filter((component) => component.head).map((component) => component.id._legacy);\n } else {\n bitIds = await consumer.getIdsOfDefaultLane();\n }\n\n return {\n name: DEFAULT_LANE,\n remote: null,\n id: this.getDefaultLaneId(),\n components: bitIds.map((bitId) => ({ id: bitId, head: bitId.version as string })),\n isMerged: null,\n hash: '',\n };\n }\n\n get createRoutePath() {\n return '/lanes/create';\n }\n\n get deleteRoutePath() {\n return '/lanes/delete';\n }\n\n static slots = [];\n static dependencies = [\n CLIAspect,\n ScopeAspect,\n WorkspaceAspect,\n GraphqlAspect,\n MergingAspect,\n ComponentAspect,\n LoggerAspect,\n ImporterAspect,\n ExportAspect,\n ExpressAspect,\n ComponentCompareAspect,\n ];\n static runtime = MainRuntime;\n static async provider([\n cli,\n scope,\n workspace,\n graphql,\n merging,\n component,\n loggerMain,\n importer,\n exporter,\n express,\n componentCompare,\n ]: [\n CLIMain,\n ScopeMain,\n Workspace,\n GraphqlMain,\n MergingMain,\n ComponentMain,\n LoggerMain,\n ImporterMain,\n ExportMain,\n ExpressMain,\n ComponentCompareMain\n ]) {\n const logger = loggerMain.createLogger(LanesAspect.id);\n const lanesMain = new LanesMain(workspace, scope, merging, component, logger, importer, exporter, componentCompare);\n const switchCmd = new SwitchCmd(lanesMain);\n const laneCmd = new LaneCmd(lanesMain, workspace, scope);\n laneCmd.commands = [\n new LaneListCmd(lanesMain, workspace, scope),\n switchCmd,\n new LaneShowCmd(lanesMain, workspace, scope),\n new LaneCreateCmd(lanesMain),\n new LaneRemoveCmd(lanesMain),\n new LaneChangeScopeCmd(lanesMain),\n new LaneAliasCmd(lanesMain),\n new LaneRenameCmd(lanesMain),\n new LaneDiffCmd(workspace, scope),\n new LaneAddReadmeCmd(lanesMain),\n new LaneRemoveReadmeCmd(lanesMain),\n new LaneImportCmd(switchCmd),\n ];\n cli.register(laneCmd, switchCmd);\n graphql.register(lanesSchema(lanesMain));\n express.register([new LanesCreateRoute(l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X,SAAS,CAAC,EAC3B,KAAIY,qBAAa,EAACZ,SAAS,CAAC,EAC5B,KAAIa,2BAAW,EAAChS,SAAS,EAAEC,KAAK,CAAC,EACjC,KAAIgS,wBAAgB,EAACd,SAAS,CAAC,EAC/B,KAAIe,2BAAmB,EAACf,SAAS,CAAC,EAClC,KAAIgB,qBAAa,EAACf,SAAS,CAAC,CAC7B;IACDN,GAAG,CAACsB,QAAQ,CAACd,OAAO,EAAEF,SAAS,CAAC;IAChCL,OAAO,CAACqB,QAAQ,CAAC,IAAAC,qBAAW,EAAClB,SAAS,CAAC,CAAC;IACxCF,OAAO,CAACmB,QAAQ,CAAC,CAAC,KAAIE,+BAAgB,EAACnB,SAAS,EAAE/Q,MAAM,CAAC,EAAE,KAAImS,+BAAgB,EAACpB,SAAS,EAAE/Q,MAAM,CAAC,CAAC,CAAC;IACpG,OAAO+Q,SAAS;EAClB;AACF;AAAC;AAAA,gCAptBYrR,SAAS,WAqpBL,EAAE;AAAA,gCArpBNA,SAAS,kBAspBE,CACpB0S,gBAAS,EACTC,oBAAW,EACXC,4BAAe,EACfC,wBAAa,EACbC,wBAAa,EACbC,oBAAe,EACfC,sBAAY,EACZC,0BAAc,EACdC,sBAAY,EACZC,wBAAa,EACbC,0CAAsB,CACvB;AAAA,gCAlqBUpT,SAAS,aAmqBHqT,kBAAW;AAmD9BtF,oBAAW,CAACuF,UAAU,CAACtT,SAAS,CAAC;AAAC,eAEnBA,SAAS;AAAA"}
|
package/dist/lanes.spec.js
CHANGED
@@ -44,6 +44,13 @@ function _lanes() {
|
|
44
44
|
};
|
45
45
|
return data;
|
46
46
|
}
|
47
|
+
function _lanesMain() {
|
48
|
+
const data = require("./lanes.main.runtime");
|
49
|
+
_lanesMain = function () {
|
50
|
+
return data;
|
51
|
+
};
|
52
|
+
return data;
|
53
|
+
}
|
47
54
|
describe('LanesAspect', function () {
|
48
55
|
this.timeout(0);
|
49
56
|
describe('getLanes()', () => {
|
@@ -80,14 +87,16 @@ describe('LanesAspect', function () {
|
|
80
87
|
snapping = await (0, _harmonyTesting().loadAspect)(_snapping().default, workspacePath);
|
81
88
|
await snapping.tag({
|
82
89
|
ids: ['comp1'],
|
83
|
-
build: false
|
90
|
+
build: false,
|
91
|
+
ignoreIssues: 'MissingManuallyConfiguredPackages'
|
84
92
|
});
|
85
93
|
lanes = await (0, _harmonyTesting().loadAspect)(_lanes().LanesAspect, workspacePath);
|
86
94
|
await lanes.createLane('stage');
|
87
95
|
await (0, _componentTesting().modifyMockedComponents)(workspacePath, 'v2');
|
88
96
|
const result = await snapping.snap({
|
89
97
|
pattern: 'comp1',
|
90
|
-
build: false
|
98
|
+
build: false,
|
99
|
+
ignoreIssues: 'MissingManuallyConfiguredPackages'
|
91
100
|
});
|
92
101
|
// intermediate step, make sure it is snapped
|
93
102
|
(0, _chai().expect)(result === null || result === void 0 ? void 0 : result.snappedComponents.length).to.equal(1);
|
@@ -110,12 +119,64 @@ describe('LanesAspect', function () {
|
|
110
119
|
await snapping.snap({
|
111
120
|
pattern: 'comp1',
|
112
121
|
build: false,
|
113
|
-
unmodified: true
|
122
|
+
unmodified: true,
|
123
|
+
ignoreIssues: 'MissingManuallyConfiguredPackages'
|
114
124
|
});
|
115
125
|
const isUpToDate = await lanes.isLaneUpToDate(currentLane);
|
116
126
|
(0, _chai().expect)(isUpToDate).to.be.false;
|
117
127
|
});
|
118
128
|
});
|
129
|
+
describe('laneDiff', () => {
|
130
|
+
let lanes;
|
131
|
+
let snapping;
|
132
|
+
let workspaceData;
|
133
|
+
before(async () => {
|
134
|
+
workspaceData = (0, _workspaceTesting().mockWorkspace)();
|
135
|
+
const {
|
136
|
+
workspacePath
|
137
|
+
} = workspaceData;
|
138
|
+
await (0, _componentTesting().mockComponents)(workspacePath);
|
139
|
+
snapping = await (0, _harmonyTesting().loadAspect)(_snapping().default, workspacePath);
|
140
|
+
await snapping.tag({
|
141
|
+
ids: ['comp1'],
|
142
|
+
build: false
|
143
|
+
});
|
144
|
+
lanes = await (0, _harmonyTesting().loadAspect)(_lanes().LanesAspect, workspacePath);
|
145
|
+
await lanes.createLane('stage');
|
146
|
+
const result = await snapping.snap({
|
147
|
+
pattern: 'comp1',
|
148
|
+
build: false,
|
149
|
+
unmodified: true
|
150
|
+
});
|
151
|
+
// intermediate step, make sure it is snapped
|
152
|
+
(0, _chai().expect)(result === null || result === void 0 ? void 0 : result.snappedComponents.length).to.equal(1);
|
153
|
+
});
|
154
|
+
after(async () => {
|
155
|
+
await (0, _workspaceTesting().destroyWorkspace)(workspaceData);
|
156
|
+
});
|
157
|
+
it('should return that the lane is up to date when the lane is ahead of main', async () => {
|
158
|
+
const currentLane = await lanes.getCurrentLane();
|
159
|
+
if (!currentLane) throw new Error('unable to get the current lane');
|
160
|
+
const laneDiffResults = await lanes.laneDiff(currentLane.toLaneId());
|
161
|
+
(0, _chai().expect)(laneDiffResults[0].upToDate).to.be.true;
|
162
|
+
(0, _chai().expect)(laneDiffResults[0].changeType).to.equal(_lanesMain().ChangeType.NONE);
|
163
|
+
});
|
164
|
+
it('should return that the lane is not up to date when main is ahead', async () => {
|
165
|
+
const currentLane = await lanes.getCurrentLane();
|
166
|
+
if (!currentLane) throw new Error('unable to get the current lane');
|
167
|
+
await lanes.switchLanes('main', {
|
168
|
+
skipDependencyInstallation: true
|
169
|
+
});
|
170
|
+
await snapping.snap({
|
171
|
+
pattern: 'comp1',
|
172
|
+
build: false,
|
173
|
+
unmodified: true
|
174
|
+
});
|
175
|
+
const laneDiffResults = await lanes.laneDiff(currentLane.toLaneId());
|
176
|
+
(0, _chai().expect)(laneDiffResults[0].upToDate).to.be.false;
|
177
|
+
(0, _chai().expect)(laneDiffResults[0].changeType).to.equal(_lanesMain().ChangeType.NONE);
|
178
|
+
});
|
179
|
+
});
|
119
180
|
});
|
120
181
|
|
121
182
|
//# sourceMappingURL=lanes.spec.js.map
|
package/dist/lanes.spec.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["describe","timeout","lanes","workspaceData","before","mockWorkspace","workspacePath","mockComponents","loadAspect","LanesAspect","createLane","after","destroyWorkspace","it","currentLanes","getLanes","expect","to","have","lengthOf","name","equal","snapping","SnappingAspect","tag","ids","build","modifyMockedComponents","result","snap","pattern","snappedComponents","length","currentLane","getCurrentLane","Error","isUpToDate","isLaneUpToDate","be","true","switchLanes","skipDependencyInstallation","unmodified","false"],"sources":["lanes.spec.ts"],"sourcesContent":["import { expect } from 'chai';\nimport { loadAspect } from '@teambit/harmony.testing.load-aspect';\nimport SnappingAspect, { SnappingMain } from '@teambit/snapping';\nimport { mockWorkspace, destroyWorkspace, WorkspaceData } from '@teambit/workspace.testing.mock-workspace';\nimport { mockComponents, modifyMockedComponents } from '@teambit/component.testing.mock-components';\nimport { LanesAspect } from './lanes.aspect';\nimport { LanesMain } from './lanes.main.runtime';\n\ndescribe('LanesAspect', function () {\n this.timeout(0);\n\n describe('getLanes()', () => {\n let lanes: LanesMain;\n let workspaceData: WorkspaceData;\n before(async () => {\n workspaceData = mockWorkspace();\n const { workspacePath } = workspaceData;\n await mockComponents(workspacePath);\n lanes = await loadAspect(LanesAspect, workspacePath);\n await lanes.createLane('stage');\n });\n after(async () => {\n await destroyWorkspace(workspaceData);\n });\n it('should list all lanes', async () => {\n const currentLanes = await lanes.getLanes({});\n expect(currentLanes).to.have.lengthOf(1);\n expect(currentLanes[0].name).to.equal('stage');\n });\n });\n\n describe('isLaneUpToDate', () => {\n let lanes: LanesMain;\n let snapping: SnappingMain;\n let workspaceData: WorkspaceData;\n before(async () => {\n workspaceData = mockWorkspace();\n const { workspacePath } = workspaceData;\n await mockComponents(workspacePath);\n snapping = await loadAspect(SnappingAspect, workspacePath);\n await snapping.tag({ ids: ['comp1'], build: false });\n lanes = await loadAspect(LanesAspect, workspacePath);\n await lanes.createLane('stage');\n await modifyMockedComponents(workspacePath, 'v2');\n const result = await snapping.snap({ pattern: 'comp1', build: false });\n // intermediate step, make sure it is snapped\n expect(result?.snappedComponents.length).to.equal(1);\n });\n after(async () => {\n await destroyWorkspace(workspaceData);\n });\n it('should return that the lane is up to date when the lane is ahead of main', async () => {\n const currentLane = await lanes.getCurrentLane();\n if (!currentLane) throw new Error('unable to get the current lane');\n const isUpToDate = await lanes.isLaneUpToDate(currentLane);\n expect(isUpToDate).to.be.true;\n });\n it('should return that the lane is not up to date when main is ahead', async () => {\n const currentLane = await lanes.getCurrentLane();\n if (!currentLane) throw new Error('unable to get the current lane');\n await lanes.switchLanes('main', { skipDependencyInstallation: true });\n await snapping.snap({ pattern: 'comp1', build: false, unmodified: true });\n const isUpToDate = await lanes.isLaneUpToDate(currentLane);\n expect(isUpToDate).to.be.false;\n });\n });\n});\n"],"mappings":";;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAGAA,QAAQ,CAAC,aAAa,EAAE,YAAY;EAClC,IAAI,CAACC,OAAO,CAAC,CAAC,CAAC;EAEfD,QAAQ,CAAC,YAAY,EAAE,MAAM;IAC3B,IAAIE,KAAgB;IACpB,IAAIC,aAA4B;IAChCC,MAAM,CAAC,YAAY;MACjBD,aAAa,GAAG,IAAAE,iCAAa,GAAE;MAC/B,MAAM;QAAEC;MAAc,CAAC,GAAGH,aAAa;MACvC,MAAM,IAAAI,kCAAc,EAACD,aAAa,CAAC;MACnCJ,KAAK,GAAG,MAAM,IAAAM,4BAAU,EAACC,oBAAW,EAAEH,aAAa,CAAC;MACpD,MAAMJ,KAAK,CAACQ,UAAU,CAAC,OAAO,CAAC;IACjC,CAAC,CAAC;IACFC,KAAK,CAAC,YAAY;MAChB,MAAM,IAAAC,oCAAgB,EAACT,aAAa,CAAC;IACvC,CAAC,CAAC;IACF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,CAAC,CAAC,CAAC;IACtD,CAAC,CAAC;IACFV,KAAK,CAAC,YAAY;MAChB,MAAM,IAAAC,oCAAgB,EAACT,aAAa,CAAC;IACvC,CAAC,CAAC;IACFU,EAAE,CAAC,0EAA0E,EAAE,YAAY;MACzF,MAAMoB,WAAW,GAAG,MAAM/B,KAAK,CAACgC,cAAc,EAAE;MAChD,IAAI,CAACD,WAAW,EAAE,MAAM,IAAIE,KAAK,CAAC,gCAAgC,CAAC;MACnE,MAAMC,UAAU,GAAG,MAAMlC,KAAK,CAACmC,cAAc,CAACJ,WAAW,CAAC;MAC1D,IAAAjB,cAAM,EAACoB,UAAU,CAAC,CAACnB,EAAE,CAACqB,EAAE,CAACC,IAAI;IAC/B,CAAC,CAAC;IACF1B,EAAE,CAAC,kEAAkE,EAAE,YAAY;MACjF,MAAMoB,WAAW,GAAG,MAAM/B,KAAK,CAACgC,cAAc,EAAE;MAChD,IAAI,CAACD,WAAW,EAAE,MAAM,IAAIE,KAAK,CAAC,gCAAgC,CAAC;MACnE,MAAMjC,KAAK,CAACsC,WAAW,CAAC,MAAM,EAAE;QAAEC,0BAA0B,EAAE;MAAK,CAAC,CAAC;MACrE,MAAMnB,QAAQ,CAACO,IAAI,CAAC;QAAEC,OAAO,EAAE,OAAO;QAAEJ,KAAK,EAAE,KAAK;QAAEgB,UAAU,EAAE;MAAK,CAAC,CAAC;MACzE,MAAMN,UAAU,GAAG,MAAMlC,KAAK,CAACmC,cAAc,CAACJ,WAAW,CAAC;MAC1D,IAAAjB,cAAM,EAACoB,UAAU,CAAC,CAACnB,EAAE,CAACqB,EAAE,CAACK,KAAK;IAChC,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
1
|
+
{"version":3,"names":["describe","timeout","lanes","workspaceData","before","mockWorkspace","workspacePath","mockComponents","loadAspect","LanesAspect","createLane","after","destroyWorkspace","it","currentLanes","getLanes","expect","to","have","lengthOf","name","equal","snapping","SnappingAspect","tag","ids","build","ignoreIssues","modifyMockedComponents","result","snap","pattern","snappedComponents","length","currentLane","getCurrentLane","Error","isUpToDate","isLaneUpToDate","be","true","switchLanes","skipDependencyInstallation","unmodified","false","laneDiffResults","laneDiff","toLaneId","upToDate","changeType","ChangeType","NONE"],"sources":["lanes.spec.ts"],"sourcesContent":["import { expect } from 'chai';\nimport { loadAspect } from '@teambit/harmony.testing.load-aspect';\nimport SnappingAspect, { SnappingMain } from '@teambit/snapping';\nimport { mockWorkspace, destroyWorkspace, WorkspaceData } from '@teambit/workspace.testing.mock-workspace';\nimport { mockComponents, modifyMockedComponents } from '@teambit/component.testing.mock-components';\nimport { LanesAspect } from './lanes.aspect';\nimport { ChangeType, LanesMain } from './lanes.main.runtime';\n\ndescribe('LanesAspect', function () {\n this.timeout(0);\n\n describe('getLanes()', () => {\n let lanes: LanesMain;\n let workspaceData: WorkspaceData;\n before(async () => {\n workspaceData = mockWorkspace();\n const { workspacePath } = workspaceData;\n await mockComponents(workspacePath);\n lanes = await loadAspect(LanesAspect, workspacePath);\n await lanes.createLane('stage');\n });\n after(async () => {\n await destroyWorkspace(workspaceData);\n });\n it('should list all lanes', async () => {\n const currentLanes = await lanes.getLanes({});\n expect(currentLanes).to.have.lengthOf(1);\n expect(currentLanes[0].name).to.equal('stage');\n });\n });\n\n describe('isLaneUpToDate', () => {\n let lanes: LanesMain;\n let snapping: SnappingMain;\n let workspaceData: WorkspaceData;\n before(async () => {\n workspaceData = mockWorkspace();\n const { workspacePath } = workspaceData;\n await mockComponents(workspacePath);\n snapping = await loadAspect(SnappingAspect, workspacePath);\n await snapping.tag({ ids: ['comp1'], build: false, ignoreIssues: 'MissingManuallyConfiguredPackages' });\n lanes = await loadAspect(LanesAspect, workspacePath);\n await lanes.createLane('stage');\n await modifyMockedComponents(workspacePath, 'v2');\n const result = await snapping.snap({\n pattern: 'comp1',\n build: false,\n ignoreIssues: 'MissingManuallyConfiguredPackages',\n });\n // intermediate step, make sure it is snapped\n expect(result?.snappedComponents.length).to.equal(1);\n });\n after(async () => {\n await destroyWorkspace(workspaceData);\n });\n it('should return that the lane is up to date when the lane is ahead of main', async () => {\n const currentLane = await lanes.getCurrentLane();\n if (!currentLane) throw new Error('unable to get the current lane');\n const isUpToDate = await lanes.isLaneUpToDate(currentLane);\n expect(isUpToDate).to.be.true;\n });\n it('should return that the lane is not up to date when main is ahead', async () => {\n const currentLane = await lanes.getCurrentLane();\n if (!currentLane) throw new Error('unable to get the current lane');\n await lanes.switchLanes('main', { skipDependencyInstallation: true });\n await snapping.snap({\n pattern: 'comp1',\n build: false,\n unmodified: true,\n ignoreIssues: 'MissingManuallyConfiguredPackages',\n });\n const isUpToDate = await lanes.isLaneUpToDate(currentLane);\n expect(isUpToDate).to.be.false;\n });\n });\n\n describe('laneDiff', () => {\n let lanes: LanesMain;\n let snapping: SnappingMain;\n let workspaceData: WorkspaceData;\n before(async () => {\n workspaceData = mockWorkspace();\n const { workspacePath } = workspaceData;\n await mockComponents(workspacePath);\n snapping = await loadAspect(SnappingAspect, workspacePath);\n await snapping.tag({ ids: ['comp1'], build: false });\n lanes = await loadAspect(LanesAspect, workspacePath);\n await lanes.createLane('stage');\n const result = await snapping.snap({ pattern: 'comp1', build: false, unmodified: true });\n // intermediate step, make sure it is snapped\n expect(result?.snappedComponents.length).to.equal(1);\n });\n after(async () => {\n await destroyWorkspace(workspaceData);\n });\n it('should return that the lane is up to date when the lane is ahead of main', async () => {\n const currentLane = await lanes.getCurrentLane();\n if (!currentLane) throw new Error('unable to get the current lane');\n const laneDiffResults = await lanes.laneDiff(currentLane.toLaneId());\n expect(laneDiffResults[0].upToDate).to.be.true;\n expect(laneDiffResults[0].changeType).to.equal(ChangeType.NONE);\n });\n it('should return that the lane is not up to date when main is ahead', async () => {\n const currentLane = await lanes.getCurrentLane();\n if (!currentLane) throw new Error('unable to get the current lane');\n await lanes.switchLanes('main', { skipDependencyInstallation: true });\n await snapping.snap({ pattern: 'comp1', build: false, unmodified: true });\n\n const laneDiffResults = await lanes.laneDiff(currentLane.toLaneId());\n expect(laneDiffResults[0].upToDate).to.be.false;\n expect(laneDiffResults[0].changeType).to.equal(ChangeType.NONE);\n });\n });\n});\n"],"mappings":";;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEAA,QAAQ,CAAC,aAAa,EAAE,YAAY;EAClC,IAAI,CAACC,OAAO,CAAC,CAAC,CAAC;EAEfD,QAAQ,CAAC,YAAY,EAAE,MAAM;IAC3B,IAAIE,KAAgB;IACpB,IAAIC,aAA4B;IAChCC,MAAM,CAAC,YAAY;MACjBD,aAAa,GAAG,IAAAE,iCAAa,GAAE;MAC/B,MAAM;QAAEC;MAAc,CAAC,GAAGH,aAAa;MACvC,MAAM,IAAAI,kCAAc,EAACD,aAAa,CAAC;MACnCJ,KAAK,GAAG,MAAM,IAAAM,4BAAU,EAACC,oBAAW,EAAEH,aAAa,CAAC;MACpD,MAAMJ,KAAK,CAACQ,UAAU,CAAC,OAAO,CAAC;IACjC,CAAC,CAAC;IACFC,KAAK,CAAC,YAAY;MAChB,MAAM,IAAAC,oCAAgB,EAACT,aAAa,CAAC;IACvC,CAAC,CAAC;IACFU,EAAE,CAAC,uBAAuB,EAAE,YAAY;MACtC,MAAMC,YAAY,GAAG,MAAMZ,KAAK,CAACa,QAAQ,CAAC,CAAC,CAAC,CAAC;MAC7C,IAAAC,cAAM,EAACF,YAAY,CAAC,CAACG,EAAE,CAACC,IAAI,CAACC,QAAQ,CAAC,CAAC,CAAC;MACxC,IAAAH,cAAM,EAACF,YAAY,CAAC,CAAC,CAAC,CAACM,IAAI,CAAC,CAAC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,MAAM,IAAIE,KAAK,CAAC,gCAAgC,CAAC;MACnE,MAAMlC,KAAK,CAACuC,WAAW,CAAC,MAAM,EAAE;QAAEC,0BAA0B,EAAE;MAAK,CAAC,CAAC;MACrE,MAAMpB,QAAQ,CAACQ,IAAI,CAAC;QAAEC,OAAO,EAAE,OAAO;QAAEL,KAAK,EAAE,KAAK;QAAEiB,UAAU,EAAE;MAAK,CAAC,CAAC;MAEzE,MAAME,eAAe,GAAG,MAAM3C,KAAK,CAAC4C,QAAQ,CAACZ,WAAW,CAACa,QAAQ,EAAE,CAAC;MACpE,IAAA/B,cAAM,EAAC6B,eAAe,CAAC,CAAC,CAAC,CAACG,QAAQ,CAAC,CAAC/B,EAAE,CAACsB,EAAE,CAACK,KAAK;MAC/C,IAAA5B,cAAM,EAAC6B,eAAe,CAAC,CAAC,CAAC,CAACI,UAAU,CAAC,CAAChC,EAAE,CAACI,KAAK,CAAC6B,uBAAU,CAACC,IAAI,CAAC;IACjE,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.lanes_lanes@0.0.
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.lanes_lanes@0.0.
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.lanes_lanes@0.0.498/dist/lanes.composition.js';
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.lanes_lanes@0.0.498/dist/lanes.docs.mdx';
|
3
3
|
|
4
4
|
export const compositions = [compositions_0];
|
5
5
|
export const overview = [overview_0];
|
Binary file
|
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/lanes",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.498",
|
4
4
|
"homepage": "https://bit.dev/teambit/lanes/lanes",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"componentId": {
|
7
7
|
"scope": "teambit.lanes",
|
8
8
|
"name": "lanes",
|
9
|
-
"version": "0.0.
|
9
|
+
"version": "0.0.498"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"chalk": "2.4.2",
|
@@ -18,31 +18,32 @@
|
|
18
18
|
"core-js": "^3.0.0",
|
19
19
|
"@teambit/harmony": "0.3.3",
|
20
20
|
"@teambit/bit-error": "0.0.402",
|
21
|
-
"@teambit/lane-id": "0.0.
|
22
|
-
"@teambit/scope": "0.0.
|
23
|
-
"@teambit/lanes.ui.models.lanes-model": "0.0.
|
24
|
-
"@teambit/cli": "0.0.
|
25
|
-
"@teambit/workspace": "0.0.
|
26
|
-
"@teambit/express": "0.0.
|
27
|
-
"@teambit/logger": "0.0.
|
28
|
-
"@teambit/graphql": "0.0.
|
29
|
-
"@teambit/component": "0.0.
|
30
|
-
"@teambit/
|
31
|
-
"@teambit/
|
32
|
-
"@teambit/
|
21
|
+
"@teambit/lane-id": "0.0.138",
|
22
|
+
"@teambit/scope": "0.0.926",
|
23
|
+
"@teambit/lanes.ui.models.lanes-model": "0.0.45",
|
24
|
+
"@teambit/cli": "0.0.620",
|
25
|
+
"@teambit/workspace": "0.0.926",
|
26
|
+
"@teambit/express": "0.0.718",
|
27
|
+
"@teambit/logger": "0.0.713",
|
28
|
+
"@teambit/graphql": "0.0.926",
|
29
|
+
"@teambit/component-compare": "0.0.174",
|
30
|
+
"@teambit/component": "0.0.926",
|
31
|
+
"@teambit/export": "0.0.926",
|
32
|
+
"@teambit/importer": "0.0.355",
|
33
|
+
"@teambit/lanes.modules.diff": "0.0.256",
|
33
34
|
"@teambit/legacy-bit-id": "0.0.421",
|
34
|
-
"@teambit/merging": "0.0.
|
35
|
+
"@teambit/merging": "0.0.241",
|
35
36
|
"@teambit/design.ui.pages.not-found": "0.0.366",
|
36
|
-
"@teambit/lanes.hooks.use-lanes": "0.0.
|
37
|
-
"@teambit/lanes.hooks.use-viewed-lane-from-url": "0.0.
|
38
|
-
"@teambit/lanes.ui.lane-overview": "0.0.
|
37
|
+
"@teambit/lanes.hooks.use-lanes": "0.0.83",
|
38
|
+
"@teambit/lanes.hooks.use-viewed-lane-from-url": "0.0.45",
|
39
|
+
"@teambit/lanes.ui.lane-overview": "0.0.45",
|
39
40
|
"@teambit/lanes.ui.menus.lanes-overview-menu": "0.0.4",
|
40
|
-
"@teambit/lanes.ui.menus.use-lanes-menu": "0.0.
|
41
|
-
"@teambit/lanes.ui.navigation.lane-switcher": "0.0.
|
42
|
-
"@teambit/sidebar": "0.0.
|
41
|
+
"@teambit/lanes.ui.menus.use-lanes-menu": "0.0.45",
|
42
|
+
"@teambit/lanes.ui.navigation.lane-switcher": "0.0.45",
|
43
|
+
"@teambit/sidebar": "0.0.926",
|
43
44
|
"@teambit/ui-foundation.ui.menu": "0.0.496",
|
44
45
|
"@teambit/ui-foundation.ui.react-router.slot-router": "0.0.499",
|
45
|
-
"@teambit/ui": "0.0.
|
46
|
+
"@teambit/ui": "0.0.926"
|
46
47
|
},
|
47
48
|
"devDependencies": {
|
48
49
|
"@types/react": "^17.0.8",
|
@@ -56,12 +57,12 @@
|
|
56
57
|
"@types/node": "12.20.4",
|
57
58
|
"@teambit/component.testing.mock-components": "0.0.17",
|
58
59
|
"@teambit/harmony.testing.load-aspect": "0.0.16",
|
59
|
-
"@teambit/snapping": "0.0.
|
60
|
+
"@teambit/snapping": "0.0.241",
|
60
61
|
"@teambit/workspace.testing.mock-workspace": "0.0.14"
|
61
62
|
},
|
62
63
|
"peerDependencies": {
|
63
64
|
"react-router-dom": "^6.0.0",
|
64
|
-
"@teambit/legacy": "1.0.
|
65
|
+
"@teambit/legacy": "1.0.401",
|
65
66
|
"react-dom": "^16.8.0 || ^17.0.0",
|
66
67
|
"react": "^16.8.0 || ^17.0.0"
|
67
68
|
},
|
Binary file
|