@jayree/sfdx-plugin-manifest 2.5.2 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +64 -45
- package/README.md +63 -4
- package/lib/SDR-extra/collections/componentSetExtra.d.ts +38 -0
- package/lib/SDR-extra/collections/componentSetExtra.js +66 -0
- package/lib/SDR-extra/collections/componentSetExtra.js.map +1 -0
- package/lib/SDR-extra/resolve/gitDiffResolver.d.ts +18 -0
- package/lib/SDR-extra/resolve/gitDiffResolver.js +192 -0
- package/lib/SDR-extra/resolve/gitDiffResolver.js.map +1 -0
- package/lib/SDR-extra/resolve/treeContainersExtra.d.ts +13 -0
- package/lib/SDR-extra/resolve/treeContainersExtra.js +51 -0
- package/lib/SDR-extra/resolve/treeContainersExtra.js.map +1 -0
- package/lib/SDR-extra/utils/git-extra.d.ts +65 -0
- package/lib/SDR-extra/utils/git-extra.js +198 -0
- package/lib/SDR-extra/utils/git-extra.js.map +1 -0
- package/lib/commands/jayree/manifest/beta/git/diff.d.ts +32 -0
- package/lib/commands/jayree/manifest/beta/git/diff.js +127 -0
- package/lib/commands/jayree/manifest/beta/git/diff.js.map +1 -0
- package/lib/jayreeSfdxCommand.d.ts +3 -0
- package/lib/jayreeSfdxCommand.js +8 -1
- package/lib/jayreeSfdxCommand.js.map +1 -1
- package/lib/utils/gitdiff.js +2 -2
- package/lib/utils/gitdiff.js.map +1 -1
- package/messages/gitdiffbeta.json +17 -0
- package/oclif.manifest.json +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,22 @@
|
|
1
|
+
# [2.6.0](https://github.com/jayree/sfdx-plugin-manifest/compare/v2.5.3...v2.6.0) (2023-01-01)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* **gitdiff:** fix diff status of childComponents ([ef13e60](https://github.com/jayree/sfdx-plugin-manifest/commit/ef13e600df02bf23aa764084686c0eb789055c20))
|
7
|
+
|
8
|
+
|
9
|
+
### Features
|
10
|
+
|
11
|
+
* **manifest:beta:git:diff:** added new beta command manifest:beta:git:diff ([f4b6242](https://github.com/jayree/sfdx-plugin-manifest/commit/f4b6242e52a4a04d1279e2090dcf1fe37aca2ff2))
|
12
|
+
|
13
|
+
## [2.5.3](https://github.com/jayree/sfdx-plugin-manifest/compare/v2.5.2...v2.5.3) (2022-12-31)
|
14
|
+
|
15
|
+
|
16
|
+
### Bug Fixes
|
17
|
+
|
18
|
+
* **gitdiff:** fix warnings ([b28f12e](https://github.com/jayree/sfdx-plugin-manifest/commit/b28f12eff17c206204c4f5d00b2b5de7f7f6b2f3))
|
19
|
+
|
1
20
|
## [2.5.2](https://github.com/jayree/sfdx-plugin-manifest/compare/v2.5.1...v2.5.2) (2022-12-30)
|
2
21
|
|
3
22
|
|
@@ -13,15 +32,15 @@
|
|
13
32
|
|
14
33
|
### Bug Fixes
|
15
34
|
|
16
|
-
* fix parameter order ([2b5b244](https://github.com/jayree/sfdx-plugin-manifest/commit/2b5b24435725e3095895b2efa8a23ee1b05a6e78))
|
17
|
-
* use fullPath to align with SDR ([f5c1de1](https://github.com/jayree/sfdx-plugin-manifest/commit/f5c1de1285ba68515de92c9e4ff8cf7603825810))
|
35
|
+
* **manifest:git:diff:** fix parameter order ([2b5b244](https://github.com/jayree/sfdx-plugin-manifest/commit/2b5b24435725e3095895b2efa8a23ee1b05a6e78))
|
36
|
+
* **manifest:git:diff:** use fullPath to align with SDR ([f5c1de1](https://github.com/jayree/sfdx-plugin-manifest/commit/f5c1de1285ba68515de92c9e4ff8cf7603825810))
|
18
37
|
|
19
38
|
# [2.5.0](https://github.com/jayree/sfdx-plugin-manifest/compare/v2.4.8...v2.5.0) (2022-12-23)
|
20
39
|
|
21
40
|
|
22
41
|
### Features
|
23
42
|
|
24
|
-
* uses isomorphic-git statusMatrix to match the behavior for unstaged files with the git diff output ([9dd515f](https://github.com/jayree/sfdx-plugin-manifest/commit/9dd515fdc9e90602da8d7a78dd2d30cc41155b37))
|
43
|
+
* **manifest:git:diff:** uses isomorphic-git statusMatrix to match the behavior for unstaged files with the git diff output ([9dd515f](https://github.com/jayree/sfdx-plugin-manifest/commit/9dd515fdc9e90602da8d7a78dd2d30cc41155b37))
|
25
44
|
|
26
45
|
## [2.4.8](https://github.com/jayree/sfdx-plugin-manifest/compare/v2.4.7...v2.4.8) (2022-12-23)
|
27
46
|
|
@@ -55,14 +74,14 @@
|
|
55
74
|
|
56
75
|
### Bug Fixes
|
57
76
|
|
58
|
-
* fix manifest output ([a7527da](https://github.com/jayree/sfdx-plugin-manifest/commit/a7527da33e19f83ad344afbe6d7c8d5f186c933b))
|
77
|
+
* **manifest:git:diff:** fix manifest output ([a7527da](https://github.com/jayree/sfdx-plugin-manifest/commit/a7527da33e19f83ad344afbe6d7c8d5f186c933b))
|
59
78
|
|
60
79
|
## [2.4.4](https://github.com/jayree/sfdx-plugin-manifest/compare/v2.4.3...v2.4.4) (2022-12-06)
|
61
80
|
|
62
81
|
|
63
82
|
### Bug Fixes
|
64
83
|
|
65
|
-
* fix --json output ([80ed6a6](https://github.com/jayree/sfdx-plugin-manifest/commit/80ed6a66e4003ab05c1447c019ca85d7482c9eaa))
|
84
|
+
* **manifest:git:diff:** fix --json output ([80ed6a6](https://github.com/jayree/sfdx-plugin-manifest/commit/80ed6a66e4003ab05c1447c019ca85d7482c9eaa))
|
66
85
|
|
67
86
|
## [2.4.3](https://github.com/jayree/sfdx-plugin-manifest/compare/v2.4.2...v2.4.3) (2022-12-02)
|
68
87
|
|
@@ -234,7 +253,7 @@
|
|
234
253
|
* **deps:** bump @oclif/core from 1.13.0 to 1.13.10 ([22b579e](https://github.com/jayree/sfdx-plugin-manifest/commit/22b579e242ba6ee240f851dfb519ca6f7f71bd8f))
|
235
254
|
* **deps:** bump @salesforce/source-deploy-retrieve from 6.2.6 to 6.2.9 ([8d0c93d](https://github.com/jayree/sfdx-plugin-manifest/commit/8d0c93daa2f177f51970f838e116d209f492826f))
|
236
255
|
* **deps:** bump listr2 from 5.0.1 to 5.0.2 ([d00b56d](https://github.com/jayree/sfdx-plugin-manifest/commit/d00b56d7b3c49fa78589f83665a2a31197dc8230))
|
237
|
-
* remove datamappingobjectdefinition ([95c1e02](https://github.com/jayree/sfdx-plugin-manifest/commit/95c1e026209b0eeb60b9ebd802f8a278f45a3139))
|
256
|
+
* **manifest:git:diff:** remove datamappingobjectdefinition ([95c1e02](https://github.com/jayree/sfdx-plugin-manifest/commit/95c1e026209b0eeb60b9ebd802f8a278f45a3139))
|
238
257
|
|
239
258
|
## [2.2.8](https://github.com/jayree/sfdx-plugin-manifest/compare/v2.2.7...v2.2.8) (2022-08-02)
|
240
259
|
|
@@ -274,7 +293,7 @@
|
|
274
293
|
### Bug Fixes
|
275
294
|
|
276
295
|
* fix getPackageXml ([84236f3](https://github.com/jayree/sfdx-plugin-manifest/commit/84236f34bc1656adb6d6de2158b0039ce07e54c3))
|
277
|
-
* resolve components hotfix where type string is empty ([8e2a504](https://github.com/jayree/sfdx-plugin-manifest/commit/8e2a5043e4f5d028af4a57ee99ce78911da77c30))
|
296
|
+
* **manifest:generate:** resolve components hotfix where type string is empty ([8e2a504](https://github.com/jayree/sfdx-plugin-manifest/commit/8e2a5043e4f5d028af4a57ee99ce78911da77c30))
|
278
297
|
|
279
298
|
## [2.2.4](https://github.com/jayree/sfdx-plugin-manifest/compare/v2.2.3...v2.2.4) (2022-05-29)
|
280
299
|
|
@@ -305,7 +324,7 @@
|
|
305
324
|
|
306
325
|
### Bug Fixes
|
307
326
|
|
308
|
-
* **
|
327
|
+
* **manifest:git:diff:** support customobjecttranslation and bot again after SDR fix ([99d650d](https://github.com/jayree/sfdx-plugin-manifest/commit/99d650de4bf04647ea0b11a3317e4d8a2c2e89dc))
|
309
328
|
|
310
329
|
# [2.2.0](https://github.com/jayree/sfdx-plugin-manifest/compare/v2.1.9...v2.2.0) (2022-03-03)
|
311
330
|
|
@@ -327,7 +346,7 @@
|
|
327
346
|
|
328
347
|
### Features
|
329
348
|
|
330
|
-
* **
|
349
|
+
* **manifest:generate:** add --excludeall flag to exclude managed and unlocked packages ([396a76f](https://github.com/jayree/sfdx-plugin-manifest/commit/396a76f91ab5b6da8630c9faff0621296c7c3944))
|
331
350
|
|
332
351
|
## [2.1.9](https://github.com/jayree/sfdx-plugin-manifest/compare/v2.1.8...v2.1.9) (2022-01-15)
|
333
352
|
|
@@ -414,87 +433,87 @@
|
|
414
433
|
|
415
434
|
### Bug Fixes
|
416
435
|
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
436
|
+
* **deps:** bump @salesforce/source-deploy-retrieve from 5.6.3 to 5.7.0 ([72100de](https://github.com/jayree/sfdx-plugin-manifest/commit/72100deb19b5fdd3dd0a0d50dea6c7060e0abba6))
|
437
|
+
* **deps:** bump cli-ux from 5.6.3 to 5.6.4 ([76a603f](https://github.com/jayree/sfdx-plugin-manifest/commit/76a603fca3ceba0b556ca4814bfedca1f5259ab9))
|
438
|
+
* **deps:** bump listr2 from 3.13.4 to 3.13.5 ([f271782](https://github.com/jayree/sfdx-plugin-manifest/commit/f271782ea470012ecd1bef3acaa116fd41a37fce))
|
439
|
+
* **deps:** bump marked from 4.0.4 to 4.0.5 ([df74dae](https://github.com/jayree/sfdx-plugin-manifest/commit/df74dae17353e466b02871c9525d93d48482cd51))
|
421
440
|
|
422
441
|
### Features
|
423
442
|
|
424
|
-
|
443
|
+
* **manifest:git:diff:** add parameter to generate a destructiveChanges manifest with empty package.xml for mdapi:deploy ([dbd3f6e](https://github.com/jayree/sfdx-plugin-manifest/commit/dbd3f6ed6881147960220903269b4095c386ca1a))
|
425
444
|
|
426
445
|
# [2.0.0](https://github.com/jayree/sfdx-plugin-manifest/compare/v1.0.6...v2.0.0) (2021-11-21)
|
427
446
|
|
428
447
|
### Bug Fixes
|
429
448
|
|
430
449
|
- catch more MetadataResolver errors ([cd82847](https://github.com/jayree/sfdx-plugin-manifest/commit/cd82847e58efa2ca95e425f2a1719a48af144d53))
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
450
|
+
* **deps:** bump @oclif/command from 1.8.0 to 1.8.3 ([6f9e532](https://github.com/jayree/sfdx-plugin-manifest/commit/6f9e5324f249bf9ff30d82fd22983046cde7680a))
|
451
|
+
* **deps:** bump @oclif/config from 1.17.0 to 1.17.1 ([4f89c92](https://github.com/jayree/sfdx-plugin-manifest/commit/4f89c929ff9d2c06ca81f349531b2e6bca36ca6e))
|
452
|
+
* **deps:** bump @salesforce/command from 4.1.4 to 4.1.5 ([21c6572](https://github.com/jayree/sfdx-plugin-manifest/commit/21c657228e47f2984b017e01af81a12d5f7a0ae9))
|
453
|
+
* **deps:** bump @salesforce/source-deploy-retrieve from 5.5.0 to 5.6.3 ([e4f92f9](https://github.com/jayree/sfdx-plugin-manifest/commit/e4f92f9fbdb6b34e868ee1c1061f73f6697ba9c8))
|
454
|
+
* **deps:** bump listr2 from 3.13.3 to 3.13.4 ([3f3c9c3](https://github.com/jayree/sfdx-plugin-manifest/commit/3f3c9c357abe85bbb378c005923608285350e2d6))
|
455
|
+
* **deps:** bump marked from 4.0.3 to 4.0.4 ([95c2ba2](https://github.com/jayree/sfdx-plugin-manifest/commit/95c2ba2e079ad9542c03d7b694ba9eeed8bd6b74))
|
456
|
+
* **manifest:git:diff:** make debugging easier ([cf18cca](https://github.com/jayree/sfdx-plugin-manifest/commit/cf18ccac20c018e721c6913b7c976d4628845941))
|
457
|
+
* **manifestgenerate:** metadata api not returning valid metadata type ([909bf7e](https://github.com/jayree/sfdx-plugin-manifest/commit/909bf7e5d680c56c3a6ed123e3d6ee798ac8dacd))
|
439
458
|
|
440
459
|
### Features
|
441
460
|
|
442
|
-
|
461
|
+
* **manifest:git:diff:** add outputdir parameter ([fe95206](https://github.com/jayree/sfdx-plugin-manifest/commit/fe9520637b9b9370470d37d1dde54f7c769c31ac))
|
443
462
|
|
444
463
|
### BREAKING CHANGES
|
445
464
|
|
446
|
-
|
465
|
+
* **manifest:git:diff:** To support the destructivechanges parameters of the source:deploy command all files are written to outputdir (defaults to '')
|
447
466
|
|
448
467
|
## [1.0.6](https://github.com/jayree/sfdx-plugin-manifest/compare/v1.0.5...v1.0.6) (2021-11-16)
|
449
468
|
|
450
469
|
### Bug Fixes
|
451
470
|
|
452
|
-
|
471
|
+
* **manifest:git:diff:** restore support for caret and tilde in refs ([50ea6b6](https://github.com/jayree/sfdx-plugin-manifest/commit/50ea6b6f3cebe7af4d46d3cbfd1e5d3807009d59))
|
453
472
|
|
454
473
|
## [1.0.5](https://github.com/jayree/sfdx-plugin-manifest/compare/v1.0.4...v1.0.5) (2021-11-13)
|
455
474
|
|
456
475
|
### Bug Fixes
|
457
476
|
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
477
|
+
* **deps:** bump @salesforce/core from 2.28.3 to 2.28.4 ([e7769e4](https://github.com/jayree/sfdx-plugin-manifest/commit/e7769e4fc079f9f87fb75ef51cda7264495bb901))
|
478
|
+
* **deps:** bump @salesforce/kit from 1.5.17 to 1.5.18 ([9cc8e13](https://github.com/jayree/sfdx-plugin-manifest/commit/9cc8e1393894b2ed23f22112b8c3e0bf647bd8b7))
|
479
|
+
* **deps:** bump @salesforce/source-deploy-retrieve from 5.4.1 to 5.5.0 ([feb9769](https://github.com/jayree/sfdx-plugin-manifest/commit/feb97693b964baa1f386d90ee892ea33b04484d5))
|
480
|
+
* **deps:** bump marked from 4.0.0 to 4.0.3 ([ba08e91](https://github.com/jayree/sfdx-plugin-manifest/commit/ba08e91131ffae0b5becba419e790924a007ce3d))
|
462
481
|
|
463
482
|
## [1.0.4](https://github.com/jayree/sfdx-plugin-manifest/compare/v1.0.3...v1.0.4) (2021-11-08)
|
464
483
|
|
465
484
|
### Bug Fixes
|
466
485
|
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
486
|
+
* **deps:** bump @salesforce/core from 2.28.2 to 2.28.3 ([da85585](https://github.com/jayree/sfdx-plugin-manifest/commit/da85585fbec455f20d6f785709e93f9167d8db92))
|
487
|
+
* **deps:** bump @salesforce/source-deploy-retrieve from 5.1.2 to 5.4.1 ([45ab5ce](https://github.com/jayree/sfdx-plugin-manifest/commit/45ab5ce975692b9fbd41496e0cc3c922eb01fb6a))
|
488
|
+
* **deps:** bump listr2 from 3.13.1 to 3.13.3 ([a20b53e](https://github.com/jayree/sfdx-plugin-manifest/commit/a20b53ee87376e53c9cdd185420e4cf4ee4010c4))
|
489
|
+
* **deps:** bump marked from 3.0.8 to 4.0.0 ([36f8f55](https://github.com/jayree/sfdx-plugin-manifest/commit/36f8f55b5968a794e9e00e4b795abd6b9e648723))
|
490
|
+
* **manifest:git:diff:** optimize the comparison of childComponents ([0dfe979](https://github.com/jayree/sfdx-plugin-manifest/commit/0dfe979cba37ea5ab5eba8d6ecdb2acb64358938))
|
491
|
+
* **manifestgenerate:** optimize StandardValueSet query ([3d98d83](https://github.com/jayree/sfdx-plugin-manifest/commit/3d98d83e3ef8112b15c188c59b2138ae79b9a720))
|
473
492
|
|
474
493
|
## [1.0.3](https://github.com/jayree/sfdx-plugin-manifest/compare/v1.0.2...v1.0.3) (2021-10-31)
|
475
494
|
|
476
495
|
### Bug Fixes
|
477
496
|
|
478
|
-
|
479
|
-
|
497
|
+
* **deps:** bump @salesforce/source-deploy-retrieve from 5.1.1 to 5.1.2 ([3f061e8](https://github.com/jayree/sfdx-plugin-manifest/commit/3f061e80f3ee66e9af306baaa8c0dd640694d52c))
|
498
|
+
* **deps:** bump fast-xml-parser from 3.21.0 to 3.21.1 ([ea4c7b6](https://github.com/jayree/sfdx-plugin-manifest/commit/ea4c7b696381e3a9b9bf656e71332b58fec71d66))
|
480
499
|
|
481
500
|
## [1.0.2](https://github.com/jayree/sfdx-plugin-manifest/compare/v1.0.1...v1.0.2) (2021-10-29)
|
482
501
|
|
483
502
|
### Bug Fixes
|
484
503
|
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
504
|
+
* **deps:** bump @salesforce/source-deploy-retrieve from 5.0.1 to 5.1.1 ([bb40fac](https://github.com/jayree/sfdx-plugin-manifest/commit/bb40fac5c2f8facbfe36df10908b9ae0ed342503))
|
505
|
+
* **deps:** bump fast-xml-parser from 3.20.3 to 3.21.0 ([77cceff](https://github.com/jayree/sfdx-plugin-manifest/commit/77cceffd9546cf262cdb341a5cb8c0a27e2a587b))
|
506
|
+
* **deps:** bump listr2 from 3.12.2 to 3.13.1 ([0afae6e](https://github.com/jayree/sfdx-plugin-manifest/commit/0afae6ea8729afeb069998d2fc5cb192e5e65440))
|
507
|
+
* **deps:** bump marked from 3.0.7 to 3.0.8 ([fb76d91](https://github.com/jayree/sfdx-plugin-manifest/commit/fb76d91ef590575bab75c0e12188b13aa4794b2b))
|
508
|
+
* **manifest:git:diff:** optimize createVirtualTreeContainer method ([8a0579a](https://github.com/jayree/sfdx-plugin-manifest/commit/8a0579ae1fb4b7ce39f0c515344b1db05913af77))
|
509
|
+
* **manifest:git:diff:** set sourceApiVersion ([cc3d5df](https://github.com/jayree/sfdx-plugin-manifest/commit/cc3d5df8e3455867f5d8628e28f4c36a85b745da))
|
510
|
+
* **manifest:git:diff:** sort types and members in manifest ([7f76423](https://github.com/jayree/sfdx-plugin-manifest/commit/7f76423a0566ba34091b81b442901f5fe17f51f1))
|
492
511
|
|
493
512
|
## [1.0.1](https://github.com/jayree/sfdx-plugin-manifest/compare/v1.0.0...v1.0.1) (2021-10-21)
|
494
513
|
|
495
514
|
### Bug Fixes
|
496
515
|
|
497
|
-
|
516
|
+
* **deps:** bump @salesforce/source-deploy-retrieve from 4.5.11 to 5.0.1 ([6c30cfa](https://github.com/jayree/sfdx-plugin-manifest/commit/6c30cfad891ecda913838b01d86e1e3a5e575a29))
|
498
517
|
|
499
518
|
# 1.0.0 (2021-10-19)
|
500
519
|
|
package/README.md
CHANGED
@@ -22,7 +22,7 @@ $ sfdx plugins:install @jayree/sfdx-plugin-manifest
|
|
22
22
|
$ sfdx jayree:[COMMAND]
|
23
23
|
running command...
|
24
24
|
$ sfdx plugins
|
25
|
-
@jayree/sfdx-plugin-manifest 2.
|
25
|
+
@jayree/sfdx-plugin-manifest 2.6.0
|
26
26
|
$ sfdx help jayree:[COMMAND]
|
27
27
|
USAGE
|
28
28
|
$ sfdx jayree:COMMAND
|
@@ -33,10 +33,69 @@ USAGE
|
|
33
33
|
## Commands
|
34
34
|
|
35
35
|
<!-- commands -->
|
36
|
+
* [`sfdx jayree:manifest:beta:git:diff`](#sfdx-jayreemanifestbetagitdiff)
|
36
37
|
* [`sfdx jayree:manifest:cleanup`](#sfdx-jayreemanifestcleanup)
|
37
38
|
* [`sfdx jayree:manifest:generate`](#sfdx-jayreemanifestgenerate)
|
38
39
|
* [`sfdx jayree:manifest:git:diff`](#sfdx-jayreemanifestgitdiff)
|
39
40
|
|
41
|
+
### `sfdx jayree:manifest:beta:git:diff`
|
42
|
+
|
43
|
+
create a project manifest and destructiveChanges manifest that lists the metadata components you want to deploy or delete based on changes in your git history
|
44
|
+
|
45
|
+
```
|
46
|
+
USAGE
|
47
|
+
$ sfdx jayree:manifest:beta:git:diff [-p <array>] [-o <string>] [-d] [--apiversion <string>] [--json] [--loglevel
|
48
|
+
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
49
|
+
|
50
|
+
ARGUMENTS
|
51
|
+
REF1 base commit or branch
|
52
|
+
REF2 commit or branch to compare to the base commit
|
53
|
+
|
54
|
+
FLAGS
|
55
|
+
-d, --destructivechangesonly create a destructiveChanges manifest
|
56
|
+
only (package.xml will be empty)
|
57
|
+
-o, --outputdir=<value> directory to save the created
|
58
|
+
manifest files
|
59
|
+
-p, --sourcepath=<value> comma-separated list of paths to the
|
60
|
+
local source files to include in the
|
61
|
+
manifest
|
62
|
+
--apiversion=<value> override the api version used for
|
63
|
+
api requests made by this command
|
64
|
+
--json format output as json
|
65
|
+
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
|
66
|
+
this command invocation
|
67
|
+
|
68
|
+
DESCRIPTION
|
69
|
+
create a project manifest and destructiveChanges manifest that lists the metadata components you want to deploy or
|
70
|
+
delete based on changes in your git history
|
71
|
+
Use this command to create a manifest and destructiveChanges manifest file based on the difference (git diff) of two
|
72
|
+
git refs.
|
73
|
+
|
74
|
+
You can use all ways to spell <commit> which are valid for 'git diff'.
|
75
|
+
(See https://git-scm.com/docs/git-diff)
|
76
|
+
|
77
|
+
EXAMPLES
|
78
|
+
$ sfdx jayree:manifest:beta:git:diff <commit> <commit>
|
79
|
+
|
80
|
+
$ sfdx jayree:manifest:git:diff <commit>..<commit>
|
81
|
+
|
82
|
+
uses the changes between two arbitrary <commit>
|
83
|
+
|
84
|
+
$ sfdx jayree:manifest:beta:git:diff <commit>...<commit>
|
85
|
+
|
86
|
+
uses the changes on the branch containing and up to the second <commit>, starting at a common ancestor of both <commit>.
|
87
|
+
|
88
|
+
$ sfdx jayree:manifest:beta:git:diff branchA..branchB
|
89
|
+
|
90
|
+
uses the diff of what is unique in branchB (REF2) and unique in branchA (REF1)
|
91
|
+
|
92
|
+
$ sfdx jayree:manifest:beta:git:diff branchA...branchB
|
93
|
+
|
94
|
+
uses the diff of what is unique in branchB (REF2)
|
95
|
+
```
|
96
|
+
|
97
|
+
_See code: [src/commands/jayree/manifest/beta/git/diff.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.6.0/src/commands/jayree/manifest/beta/git/diff.ts)_
|
98
|
+
|
40
99
|
### `sfdx jayree:manifest:cleanup`
|
41
100
|
|
42
101
|
removes those tags from a manifest file that are present in a second manifest file
|
@@ -63,7 +122,7 @@ EXAMPLES
|
|
63
122
|
$ sfdx jayree:manifest:cleanup --manifest=package.xml --file=packageignore.xml
|
64
123
|
```
|
65
124
|
|
66
|
-
_See code: [src/commands/jayree/manifest/cleanup.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.
|
125
|
+
_See code: [src/commands/jayree/manifest/cleanup.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.6.0/src/commands/jayree/manifest/cleanup.ts)_
|
67
126
|
|
68
127
|
### `sfdx jayree:manifest:generate`
|
69
128
|
|
@@ -106,7 +165,7 @@ EXAMPLES
|
|
106
165
|
<Package xmlns='http://soap.sforce.com/2006/04/metadata'>...</Package>
|
107
166
|
```
|
108
167
|
|
109
|
-
_See code: [src/commands/jayree/manifest/generate.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.
|
168
|
+
_See code: [src/commands/jayree/manifest/generate.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.6.0/src/commands/jayree/manifest/generate.ts)_
|
110
169
|
|
111
170
|
### `sfdx jayree:manifest:git:diff`
|
112
171
|
|
@@ -160,5 +219,5 @@ EXAMPLES
|
|
160
219
|
uses the diff of what is unique in branchB (REF2)
|
161
220
|
```
|
162
221
|
|
163
|
-
_See code: [src/commands/jayree/manifest/git/diff.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.
|
222
|
+
_See code: [src/commands/jayree/manifest/git/diff.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.6.0/src/commands/jayree/manifest/git/diff.ts)_
|
164
223
|
<!-- commandsstop -->
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import { ComponentSet, OptionalTreeRegistryOptions } from '@salesforce/source-deploy-retrieve';
|
2
|
+
import Debug from 'debug';
|
3
|
+
export declare const debug: Debug.Debugger;
|
4
|
+
export interface FromGitDiffOptions extends OptionalTreeRegistryOptions {
|
5
|
+
/**
|
6
|
+
* Git ref to resolve components against
|
7
|
+
*/
|
8
|
+
ref: string | string[];
|
9
|
+
/**
|
10
|
+
* File paths or directory paths to resolve components against
|
11
|
+
*/
|
12
|
+
fsPaths?: string[];
|
13
|
+
}
|
14
|
+
export declare class ComponentSetExtra extends ComponentSet {
|
15
|
+
/**
|
16
|
+
* Resolve metadata components from git diff <ref> HEAD.
|
17
|
+
*
|
18
|
+
* @param ref Git ref to resolve components against HEAD
|
19
|
+
* @returns ComponentSet of source resolved components
|
20
|
+
*/
|
21
|
+
static fromGitDiff(ref: string): Promise<ComponentSet>;
|
22
|
+
/**
|
23
|
+
* Resolve metadata components from git diff <ref1> <ref2>.
|
24
|
+
*
|
25
|
+
* @param refs Git refs to resolve components against
|
26
|
+
* @returns ComponentSet of source resolved components
|
27
|
+
*/
|
28
|
+
static fromGitDiff(refs: string[]): Promise<ComponentSet>;
|
29
|
+
/**
|
30
|
+
* Resolve metadata components from git diff.
|
31
|
+
* Customize the resolution process using an options object, such as specifying filters
|
32
|
+
* and resolving against a different file system abstraction (see {@link TreeContainer}).
|
33
|
+
*
|
34
|
+
* @param options
|
35
|
+
* @returns ComponentSet of source resolved components
|
36
|
+
*/
|
37
|
+
static fromGitDiff(options: FromGitDiffOptions): Promise<ComponentSet>;
|
38
|
+
}
|
@@ -0,0 +1,66 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) 2022, jayree
|
3
|
+
* All rights reserved.
|
4
|
+
* Licensed under the BSD 3-Clause license.
|
5
|
+
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
6
|
+
*/
|
7
|
+
import { ComponentSet, DestructiveChangesType, registry as untypedRegistry, } from '@salesforce/source-deploy-retrieve';
|
8
|
+
import { SfProject } from '@salesforce/core';
|
9
|
+
import Debug from 'debug';
|
10
|
+
import { GitDiffResolver } from '../resolve/gitDiffResolver.js';
|
11
|
+
export const debug = Debug('sf:gitDiff:ComponentSetExtra');
|
12
|
+
export class ComponentSetExtra extends ComponentSet {
|
13
|
+
static async fromGitDiff(input) {
|
14
|
+
let fsPaths;
|
15
|
+
let registry;
|
16
|
+
let tree;
|
17
|
+
let ref1;
|
18
|
+
let ref2;
|
19
|
+
if (Array.isArray(input)) {
|
20
|
+
ref1 = input[0];
|
21
|
+
ref2 = input[1];
|
22
|
+
}
|
23
|
+
else if (typeof input === 'object') {
|
24
|
+
if (Array.isArray(input.ref)) {
|
25
|
+
ref1 = input.ref[0];
|
26
|
+
ref2 = input.ref[1];
|
27
|
+
}
|
28
|
+
else {
|
29
|
+
ref1 = input.ref;
|
30
|
+
}
|
31
|
+
fsPaths = input.fsPaths;
|
32
|
+
registry = input.registry ?? registry;
|
33
|
+
tree = input.tree ?? tree;
|
34
|
+
}
|
35
|
+
else {
|
36
|
+
ref1 = input;
|
37
|
+
}
|
38
|
+
const proj = await SfProject.resolve();
|
39
|
+
fsPaths = fsPaths || proj.getUniquePackageDirectories().map((pDir) => pDir.fullPath);
|
40
|
+
const gitDiffResolver = new GitDiffResolver();
|
41
|
+
const inclusiveFilter = await gitDiffResolver.resolve(ref1, ref2, fsPaths);
|
42
|
+
const components = ComponentSet.fromSource({
|
43
|
+
fsPaths,
|
44
|
+
include: inclusiveFilter,
|
45
|
+
tree,
|
46
|
+
registry,
|
47
|
+
});
|
48
|
+
const childsTobeReplacedByParent = [
|
49
|
+
...Object.keys(untypedRegistry.types.workflow.children.types),
|
50
|
+
...Object.keys(untypedRegistry.types.sharingrules.children.types),
|
51
|
+
...Object.keys(untypedRegistry.types.customobjecttranslation.children.types),
|
52
|
+
...Object.keys(untypedRegistry.types.bot.children.types),
|
53
|
+
];
|
54
|
+
for (const component of inclusiveFilter.getSourceComponents()) {
|
55
|
+
if (component.isMarkedForDelete()) {
|
56
|
+
components.add(component, DestructiveChangesType.POST);
|
57
|
+
}
|
58
|
+
else if (childsTobeReplacedByParent.includes(component.type.id)) {
|
59
|
+
debug(`add parent ${component.parent.type.name}:${component.parent.fullName} of ${component.type.name}:${component.fullName} to manifest`);
|
60
|
+
components.add(component.parent);
|
61
|
+
}
|
62
|
+
}
|
63
|
+
return components;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
//# sourceMappingURL=componentSetExtra.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"componentSetExtra.js","sourceRoot":"","sources":["../../../src/SDR-extra/collections/componentSetExtra.ts"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,MAAM,CAAC,QAAQ,OAAO,SAAS,CAAC,IAAI,CAAC,IAAI,IAAI,SAAS,CAAC,QAAQ,cAAc,CACpI,CAAC;gBACF,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;aAClC;SACF;QAED,OAAO,UAAU,CAAC;IACpB,CAAC;CACF"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { ComponentSet } from '@salesforce/source-deploy-retrieve';
|
2
|
+
import Debug from 'debug';
|
3
|
+
export declare const debug: Debug.Debugger;
|
4
|
+
/**
|
5
|
+
* Resolver for metadata type and component objects from a git diff result
|
6
|
+
*
|
7
|
+
* @internal
|
8
|
+
*/
|
9
|
+
export declare class GitDiffResolver {
|
10
|
+
private ref1VirtualTreeContainer;
|
11
|
+
private ref2VirtualTreeContainer;
|
12
|
+
private ref1Resolver;
|
13
|
+
private ref2Resolver;
|
14
|
+
private static getFileStatus;
|
15
|
+
resolve(ref1: string, ref2: string, fsPaths: string[]): Promise<ComponentSet>;
|
16
|
+
private getComponentSet;
|
17
|
+
private getChildComponentStatus;
|
18
|
+
}
|