@teambit/checkout 1.0.310 → 1.0.312

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <testsuites tests="3" failures="0" errors="0" skipped="0">
3
- <testsuite name="teambit.component/checkout@1.0.310" tests="3" failures="0" errors="0" skipped="0">
3
+ <testsuite name="teambit.component/checkout@1.0.312" tests="3" failures="0" errors="0" skipped="0">
4
4
  <testcase classname="dist/checkout.spec.js" name="should bring the files back"/>
5
- <testcase classname="dist/checkout.spec.js" name="the workspace should get the component as a valid component" time="0.044"/>
5
+ <testcase classname="dist/checkout.spec.js" name="the workspace should get the component as a valid component" time="0.047"/>
6
6
  <testcase classname="dist/checkout.spec.js" name="should checkout according to the number of generations specified" time="0.002"/>
7
7
  </testsuite>
8
8
  </testsuites>
@@ -247,7 +247,8 @@
247
247
  "character": 3
248
248
  },
249
249
  "raw": "/**\n * if .bitmap entry exists but the rootDir is missing from the filesystem, find the component in the scope and restore it.\n * returns the restored component ids.\n */",
250
- "comment": "if .bitmap entry exists but the rootDir is missing from the filesystem, find the component in the scope and restore it.\nreturns the restored component ids."
250
+ "comment": "if .bitmap entry exists but the rootDir is missing from the filesystem, find the component in the scope and restore it.\nreturns the restored component ids.",
251
+ "tags": []
251
252
  },
252
253
  "signature": "(method) CheckoutMain.restoreMissingComponents(checkoutProps: CheckoutProps): Promise<ComponentID[] | undefined>",
253
254
  "name": "restoreMissingComponents",
@@ -1205,7 +1206,8 @@
1205
1206
  "character": 1
1206
1207
  },
1207
1208
  "raw": "/**\n * relevant only when\n * 1) there is no conflict => add files from mergeResults: addFiles, overrideFiles and modifiedFiles.output.\n * 2) there is conflict and mergeStrategy is manual => add files from mergeResults: addFiles, overrideFiles and modifiedFiles.conflict.\n *\n * this function only updates the files content, it doesn't write the files\n */",
1208
- "comment": "relevant only when\n1) there is no conflict => add files from mergeResults: addFiles, overrideFiles and modifiedFiles.output.\n2) there is conflict and mergeStrategy is manual => add files from mergeResults: addFiles, overrideFiles and modifiedFiles.conflict.\n\nthis function only updates the files content, it doesn't write the files"
1209
+ "comment": "relevant only when\n1) there is no conflict => add files from mergeResults: addFiles, overrideFiles and modifiedFiles.output.\n2) there is conflict and mergeStrategy is manual => add files from mergeResults: addFiles, overrideFiles and modifiedFiles.conflict.\n\nthis function only updates the files content, it doesn't write the files",
1210
+ "tags": []
1209
1211
  },
1210
1212
  "signature": "function applyModifiedVersion(componentFiles: SourceFile[], mergeResults: MergeResultsThreeWay, mergeStrategy: MergeStrategy | null | undefined): {\n filesStatus: Record<string, any>;\n modifiedFiles: SourceFile[];\n}",
1211
1213
  "name": "applyModifiedVersion",
@@ -1417,7 +1419,8 @@
1417
1419
  "character": 1
1418
1420
  },
1419
1421
  "raw": "/**\n * This function optionally returns \"component\" object. If it returns, it means it needs to be written to the filesystem.\n * Otherwise, it means the component is already up to date and no need to write it.\n *\n * If no need to change anything (ours), then don't return the component object.\n * Otherwise, either return the component object as is (if no conflicts or \"theirs\"), or change the files in this\n * component object. Later, this component object is written to the filesystem.\n *\n * 1) when the files are modified with conflicts and the strategy is \"ours\", or forceOurs was used, leave the FS as is.\n *\n * 2) when the files are modified with conflicts and the strategy is \"theirs\", or forceTheirs was used, write the\n * component according to \"component\" object\n *\n * 3) when files are modified with no conflict or files are modified with conflicts and the\n * strategy is manual, load the component according to id.version and update component.files.\n * applyModifiedVersion() docs explains what files are updated/added.\n *\n * Side note:\n * Deleted file => if files are in used version but not in the modified one, no need to delete it. (similar to git).\n * Added file => if files are not in used version but in the modified one, they'll be under mergeResults.addFiles\n */",
1420
- "comment": "This function optionally returns \"component\" object. If it returns, it means it needs to be written to the filesystem.\nOtherwise, it means the component is already up to date and no need to write it.\n\nIf no need to change anything (ours), then don't return the component object.\nOtherwise, either return the component object as is (if no conflicts or \"theirs\"), or change the files in this\ncomponent object. Later, this component object is written to the filesystem.\n\n1) when the files are modified with conflicts and the strategy is \"ours\", or forceOurs was used, leave the FS as is.\n\n2) when the files are modified with conflicts and the strategy is \"theirs\", or forceTheirs was used, write the\ncomponent according to \"component\" object\n\n3) when files are modified with no conflict or files are modified with conflicts and the\nstrategy is manual, load the component according to id.version and update component.files.\napplyModifiedVersion() docs explains what files are updated/added.\n\nSide note:\nDeleted file => if files are in used version but not in the modified one, no need to delete it. (similar to git).\nAdded file => if files are not in used version but in the modified one, they'll be under mergeResults.addFiles"
1422
+ "comment": "This function optionally returns \"component\" object. If it returns, it means it needs to be written to the filesystem.\nOtherwise, it means the component is already up to date and no need to write it.\n\nIf no need to change anything (ours), then don't return the component object.\nOtherwise, either return the component object as is (if no conflicts or \"theirs\"), or change the files in this\ncomponent object. Later, this component object is written to the filesystem.\n\n1) when the files are modified with conflicts and the strategy is \"ours\", or forceOurs was used, leave the FS as is.\n\n2) when the files are modified with conflicts and the strategy is \"theirs\", or forceTheirs was used, write the\ncomponent according to \"component\" object\n\n3) when files are modified with no conflict or files are modified with conflicts and the\nstrategy is manual, load the component according to id.version and update component.files.\napplyModifiedVersion() docs explains what files are updated/added.\n\nSide note:\nDeleted file => if files are in used version but not in the modified one, no need to delete it. (similar to git).\nAdded file => if files are not in used version but in the modified one, they'll be under mergeResults.addFiles",
1423
+ "tags": []
1421
1424
  },
1422
1425
  "signature": "function applyVersion(consumer: Consumer, id: ComponentID, componentFromFS: ConsumerComponent | null | undefined, mergeResults: MergeResultsThreeWay | null | undefined, checkoutProps: CheckoutProps): Promise<ApplyVersionWithComps>",
1423
1426
  "name": "applyVersion",
@@ -1636,7 +1639,8 @@
1636
1639
  "character": 1
1637
1640
  },
1638
1641
  "raw": "/**\n * when files exist on the filesystem but not on the checked out versions, they need to be deleted.\n * without this function, these files would be left on the filesystem. (we don't delete the comp-dir before writing).\n * this needs to be done *before* the component is written to the filesystem, otherwise, it won't work when a file\n * has a case change. e.g. from uppercase to lowercase. (see merge-lane.e2e 'renaming files from uppercase to lowercase').\n */",
1639
- "comment": "when files exist on the filesystem but not on the checked out versions, they need to be deleted.\nwithout this function, these files would be left on the filesystem. (we don't delete the comp-dir before writing).\nthis needs to be done *before* the component is written to the filesystem, otherwise, it won't work when a file\nhas a case change. e.g. from uppercase to lowercase. (see merge-lane.e2e 'renaming files from uppercase to lowercase')."
1642
+ "comment": "when files exist on the filesystem but not on the checked out versions, they need to be deleted.\nwithout this function, these files would be left on the filesystem. (we don't delete the comp-dir before writing).\nthis needs to be done *before* the component is written to the filesystem, otherwise, it won't work when a file\nhas a case change. e.g. from uppercase to lowercase. (see merge-lane.e2e 'renaming files from uppercase to lowercase').",
1643
+ "tags": []
1640
1644
  },
1641
1645
  "signature": "function removeFilesIfNeeded(filesStatus: FilesStatus, consumer: Consumer, componentFromFS?: ConsumerComponent): Promise<void>",
1642
1646
  "name": "removeFilesIfNeeded",
@@ -3203,7 +3207,8 @@
3203
3207
  "character": 3
3204
3208
  },
3205
3209
  "raw": "/**\n * if .bitmap entry exists but the rootDir is missing from the filesystem, find the component in the scope and restore it.\n * returns the restored component ids.\n */",
3206
- "comment": "if .bitmap entry exists but the rootDir is missing from the filesystem, find the component in the scope and restore it.\nreturns the restored component ids."
3210
+ "comment": "if .bitmap entry exists but the rootDir is missing from the filesystem, find the component in the scope and restore it.\nreturns the restored component ids.",
3211
+ "tags": []
3207
3212
  },
3208
3213
  "signature": "(method) CheckoutMain.restoreMissingComponents(checkoutProps: CheckoutProps): Promise<ComponentID[] | undefined>",
3209
3214
  "name": "restoreMissingComponents",
@@ -3960,7 +3965,8 @@
3960
3965
  "character": 1
3961
3966
  },
3962
3967
  "raw": "/**\n * This function optionally returns \"component\" object. If it returns, it means it needs to be written to the filesystem.\n * Otherwise, it means the component is already up to date and no need to write it.\n *\n * If no need to change anything (ours), then don't return the component object.\n * Otherwise, either return the component object as is (if no conflicts or \"theirs\"), or change the files in this\n * component object. Later, this component object is written to the filesystem.\n *\n * 1) when the files are modified with conflicts and the strategy is \"ours\", or forceOurs was used, leave the FS as is.\n *\n * 2) when the files are modified with conflicts and the strategy is \"theirs\", or forceTheirs was used, write the\n * component according to \"component\" object\n *\n * 3) when files are modified with no conflict or files are modified with conflicts and the\n * strategy is manual, load the component according to id.version and update component.files.\n * applyModifiedVersion() docs explains what files are updated/added.\n *\n * Side note:\n * Deleted file => if files are in used version but not in the modified one, no need to delete it. (similar to git).\n * Added file => if files are not in used version but in the modified one, they'll be under mergeResults.addFiles\n */",
3963
- "comment": "This function optionally returns \"component\" object. If it returns, it means it needs to be written to the filesystem.\nOtherwise, it means the component is already up to date and no need to write it.\n\nIf no need to change anything (ours), then don't return the component object.\nOtherwise, either return the component object as is (if no conflicts or \"theirs\"), or change the files in this\ncomponent object. Later, this component object is written to the filesystem.\n\n1) when the files are modified with conflicts and the strategy is \"ours\", or forceOurs was used, leave the FS as is.\n\n2) when the files are modified with conflicts and the strategy is \"theirs\", or forceTheirs was used, write the\ncomponent according to \"component\" object\n\n3) when files are modified with no conflict or files are modified with conflicts and the\nstrategy is manual, load the component according to id.version and update component.files.\napplyModifiedVersion() docs explains what files are updated/added.\n\nSide note:\nDeleted file => if files are in used version but not in the modified one, no need to delete it. (similar to git).\nAdded file => if files are not in used version but in the modified one, they'll be under mergeResults.addFiles"
3968
+ "comment": "This function optionally returns \"component\" object. If it returns, it means it needs to be written to the filesystem.\nOtherwise, it means the component is already up to date and no need to write it.\n\nIf no need to change anything (ours), then don't return the component object.\nOtherwise, either return the component object as is (if no conflicts or \"theirs\"), or change the files in this\ncomponent object. Later, this component object is written to the filesystem.\n\n1) when the files are modified with conflicts and the strategy is \"ours\", or forceOurs was used, leave the FS as is.\n\n2) when the files are modified with conflicts and the strategy is \"theirs\", or forceTheirs was used, write the\ncomponent according to \"component\" object\n\n3) when files are modified with no conflict or files are modified with conflicts and the\nstrategy is manual, load the component according to id.version and update component.files.\napplyModifiedVersion() docs explains what files are updated/added.\n\nSide note:\nDeleted file => if files are in used version but not in the modified one, no need to delete it. (similar to git).\nAdded file => if files are not in used version but in the modified one, they'll be under mergeResults.addFiles",
3969
+ "tags": []
3964
3970
  },
3965
3971
  "signature": "function applyVersion(consumer: Consumer, id: ComponentID, componentFromFS: ConsumerComponent | null | undefined, mergeResults: MergeResultsThreeWay | null | undefined, checkoutProps: CheckoutProps): Promise<ApplyVersionWithComps>",
3966
3972
  "name": "applyVersion",
@@ -4268,7 +4274,8 @@
4268
4274
  "character": 1
4269
4275
  },
4270
4276
  "raw": "/**\n * when files exist on the filesystem but not on the checked out versions, they need to be deleted.\n * without this function, these files would be left on the filesystem. (we don't delete the comp-dir before writing).\n * this needs to be done *before* the component is written to the filesystem, otherwise, it won't work when a file\n * has a case change. e.g. from uppercase to lowercase. (see merge-lane.e2e 'renaming files from uppercase to lowercase').\n */",
4271
- "comment": "when files exist on the filesystem but not on the checked out versions, they need to be deleted.\nwithout this function, these files would be left on the filesystem. (we don't delete the comp-dir before writing).\nthis needs to be done *before* the component is written to the filesystem, otherwise, it won't work when a file\nhas a case change. e.g. from uppercase to lowercase. (see merge-lane.e2e 'renaming files from uppercase to lowercase')."
4277
+ "comment": "when files exist on the filesystem but not on the checked out versions, they need to be deleted.\nwithout this function, these files would be left on the filesystem. (we don't delete the comp-dir before writing).\nthis needs to be done *before* the component is written to the filesystem, otherwise, it won't work when a file\nhas a case change. e.g. from uppercase to lowercase. (see merge-lane.e2e 'renaming files from uppercase to lowercase').",
4278
+ "tags": []
4272
4279
  },
4273
4280
  "signature": "function removeFilesIfNeeded(filesStatus: FilesStatus, consumer: Consumer, componentFromFS?: ConsumerComponent): Promise<void>",
4274
4281
  "name": "removeFilesIfNeeded",
@@ -4369,7 +4376,8 @@
4369
4376
  "character": 1
4370
4377
  },
4371
4378
  "raw": "/**\n * relevant only when\n * 1) there is no conflict => add files from mergeResults: addFiles, overrideFiles and modifiedFiles.output.\n * 2) there is conflict and mergeStrategy is manual => add files from mergeResults: addFiles, overrideFiles and modifiedFiles.conflict.\n *\n * this function only updates the files content, it doesn't write the files\n */",
4372
- "comment": "relevant only when\n1) there is no conflict => add files from mergeResults: addFiles, overrideFiles and modifiedFiles.output.\n2) there is conflict and mergeStrategy is manual => add files from mergeResults: addFiles, overrideFiles and modifiedFiles.conflict.\n\nthis function only updates the files content, it doesn't write the files"
4379
+ "comment": "relevant only when\n1) there is no conflict => add files from mergeResults: addFiles, overrideFiles and modifiedFiles.output.\n2) there is conflict and mergeStrategy is manual => add files from mergeResults: addFiles, overrideFiles and modifiedFiles.conflict.\n\nthis function only updates the files content, it doesn't write the files",
4380
+ "tags": []
4373
4381
  },
4374
4382
  "signature": "function applyModifiedVersion(componentFiles: SourceFile[], mergeResults: MergeResultsThreeWay, mergeStrategy: MergeStrategy | null | undefined): {\n filesStatus: Record<string, any>;\n modifiedFiles: SourceFile[];\n}",
4375
4383
  "name": "applyModifiedVersion",
@@ -5377,7 +5385,7 @@
5377
5385
  "_legacy": {
5378
5386
  "scope": "teambit.component",
5379
5387
  "name": "checkout",
5380
- "version": "1.0.310"
5388
+ "version": "1.0.312"
5381
5389
  },
5382
5390
  "_scope": "teambit.component"
5383
5391
  }
@@ -5480,7 +5488,7 @@
5480
5488
  "componentId": {
5481
5489
  "scope": "teambit.component",
5482
5490
  "name": "checkout",
5483
- "version": "1.0.310"
5491
+ "version": "1.0.312"
5484
5492
  },
5485
5493
  "taggedModuleExports": []
5486
5494
  }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/checkout",
3
- "version": "1.0.310",
3
+ "version": "1.0.312",
4
4
  "homepage": "https://bit.cloud/teambit/component/checkout",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.component",
8
8
  "name": "checkout",
9
- "version": "1.0.310"
9
+ "version": "1.0.312"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -15,13 +15,13 @@
15
15
  "@teambit/bit-error": "0.0.404",
16
16
  "@teambit/component-id": "1.2.0",
17
17
  "@teambit/harmony": "0.4.6",
18
- "@teambit/cli": "0.0.887",
19
- "@teambit/merging": "1.0.310",
20
- "@teambit/component-writer": "1.0.310",
21
- "@teambit/importer": "1.0.310",
22
- "@teambit/logger": "0.0.980",
23
- "@teambit/remove": "1.0.310",
24
- "@teambit/workspace": "1.0.310"
18
+ "@teambit/cli": "0.0.889",
19
+ "@teambit/merging": "1.0.312",
20
+ "@teambit/component-writer": "1.0.312",
21
+ "@teambit/importer": "1.0.312",
22
+ "@teambit/logger": "0.0.982",
23
+ "@teambit/remove": "1.0.312",
24
+ "@teambit/workspace": "1.0.312"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/lodash": "4.14.165",
@@ -35,8 +35,8 @@
35
35
  "@teambit/harmony.envs.core-aspect-env": "0.0.39",
36
36
  "@teambit/component.testing.mock-components": "0.0.205",
37
37
  "@teambit/harmony.testing.load-aspect": "0.0.200",
38
- "@teambit/lister": "1.0.310",
39
- "@teambit/snapping": "1.0.310",
38
+ "@teambit/lister": "1.0.312",
39
+ "@teambit/snapping": "1.0.312",
40
40
  "@teambit/workspace.testing.mock-workspace": "0.0.27"
41
41
  },
42
42
  "peerDependencies": {