@teambit/snapping 1.0.922 → 1.0.923

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.
@@ -132,6 +132,7 @@ export declare class SnappingMain {
132
132
  stagedConfig?: import("@teambit/scope").StagedConfig;
133
133
  removedComponents?: ComponentIdList;
134
134
  totalComponentsCount?: number;
135
+ batchId: string;
135
136
  }>;
136
137
  private addAspectsFromConfigObject;
137
138
  snapFromScope(snapDataPerCompRaw: SnapDataPerCompRaw[], params: {
@@ -184,11 +185,12 @@ export declare class SnappingMain {
184
185
  * used externally. don't make it private.
185
186
  */
186
187
  _getPublishedPackages(components: ConsumerComponent[]): PackageIntegritiesByPublishedPackages;
187
- _addCompToObjects({ source, lane, shouldValidateVersion, addVersionOpts, }: {
188
+ _addCompToObjects({ source, lane, shouldValidateVersion, addVersionOpts, batchId, }: {
188
189
  source: ConsumerComponent;
189
190
  lane?: Lane;
190
191
  shouldValidateVersion?: boolean;
191
192
  addVersionOpts?: AddVersionOpts;
193
+ batchId?: string;
192
194
  }): Promise<{
193
195
  component: ModelComponent;
194
196
  version: Version;
@@ -1030,13 +1030,17 @@ another option, in case this dependency is not in main yet is to remove all refe
1030
1030
  source,
1031
1031
  lane,
1032
1032
  shouldValidateVersion = false,
1033
- addVersionOpts
1033
+ addVersionOpts,
1034
+ batchId
1034
1035
  }) {
1035
1036
  const {
1036
1037
  addedVersionStr,
1037
1038
  component,
1038
1039
  version
1039
1040
  } = await this._addCompFromScopeToObjects(source, lane, addVersionOpts);
1041
+ if (batchId) {
1042
+ version.batchId = batchId;
1043
+ }
1040
1044
  const unmergedComponent = this.scope.legacyScope.objects.unmergedComponents.getEntry(component.toComponentId());
1041
1045
  if (unmergedComponent) {
1042
1046
  if (unmergedComponent.unrelated) {