@jayree/sfdx-plugin-manifest 3.6.24 → 3.6.25

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/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## [3.6.25](https://github.com/jayree/sfdx-plugin-manifest/compare/3.6.24...3.6.25) (2025-01-05)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** bump @salesforce/source-tracking from 7.3.4 to 7.3.5 ([#1608](https://github.com/jayree/sfdx-plugin-manifest/issues/1608)) ([f09379d](https://github.com/jayree/sfdx-plugin-manifest/commit/f09379d989899ab75a6e9ba95006386981105ab1))
7
+
8
+
9
+
1
10
  ## [3.6.24](https://github.com/jayree/sfdx-plugin-manifest/compare/3.6.23...3.6.24) (2024-12-29)
2
11
 
3
12
 
package/README.md CHANGED
@@ -7,24 +7,76 @@ A Salesforce CLI plugin containing commands for creating manifest files from Sal
7
7
  [![Downloads/week](https://img.shields.io/npm/dw/@jayree/sfdx-plugin-manifest.svg)](https://npmjs.org/package/@jayree/sfdx-plugin-manifest)
8
8
  [![License](https://img.shields.io/badge/License-BSD%203--Clause-brightgreen.svg)](https://raw.githubusercontent.com/jayree/sfdx-plugin-manifest/main/LICENSE.txt)
9
9
 
10
- ## Install
10
+ ## Introduction
11
11
 
12
- ```bash
13
- sf plugins:install @jayree/sfdx-plugin-manifest
14
- ```
12
+ `@jayree/sfdx-plugin-manifest` is a Salesforce CLI plugin and Node.js library designed to streamline metadata management and deployment processes. By leveraging Salesforce's native [@salesforce/source-deploy-retrieve](https://github.com/forcedotcom/source-deploy-retrieve) toolkit and [@salesforce/source-tracking](https://github.com/forcedotcom/source-tracking), it ensures compatibility with Salesforce standards. The plugin is particularly effective for incremental deployments and Git-based change tracking, making it a valuable tool for modern Salesforce development workflows.
13
+
14
+ ## Key Features
15
+
16
+ - **Dual Integration**: Use it as a Salesforce CLI plugin or integrate it into Node.js applications for programmatic workflows.
17
+ - **Native Compatibility**: Built on `@salesforce/source-deploy-retrieve` and `@salesforce/source-tracking`, ensuring alignment with Salesforce's Metadata API standards. Unlike tools with custom metadata handling, this plugin leverages native frameworks for reliability.
18
+ - **Git-Enhanced Deployments**: Simplifies deployment processes by analyzing Git changes and generating precise manifests.
19
+ - **Automated Manifest Creation**: Automatically generate [package.xml](https://trailhead.salesforce.com/en/content/learn/modules/package-xml/package-xml-adventure) files for streamlined deployments.
20
+ - **Intelligent File Tracking**: Detects and excludes renamed or moved files for accurate metadata tracking.
21
+
22
+ ## Why Use @jayree/sfdx-plugin-manifest?
23
+
24
+ Managing Salesforce metadata across teams and environments can be challenging. This plugin simplifies workflows by automating manifest creation and focusing on incremental deployments based on Git changes. It is ideal for:
25
+
26
+ - **Collaborative Development**: Streamlines workflows for teams sharing metadata repositories.
27
+ - **CI/CD Pipelines**: Ensures accurate and efficient deployments in automated pipelines.
28
+ - **Error Reduction**: Automates tasks prone to manual errors, like manifest creation.
29
+
30
+ ## Comparison with sfdx-git-delta
31
+
32
+ Both `@jayree/sfdx-plugin-manifest` and `sfdx-git-delta` are tools designed to simplify Salesforce metadata deployments. However, their **technological basis** differs:
33
+
34
+ - `@jayree/sfdx-plugin-manifest` is built on Salesforce's native [@salesforce/source-deploy-retrieve](https://github.com/forcedotcom/source-deploy-retrieve), ensuring full compatibility with Salesforce Metadata API standards.
35
+ - `sfdx-git-delta` uses custom metadata handling mechanisms, which are not directly tied to Salesforce's native APIs and frameworks, potentially introducing additional complexity.
36
+
37
+ By prioritizing native compatibility and programmatic flexibility, `@jayree/sfdx-plugin-manifest` offers a reliable solution for modern Salesforce development. While both tools are specialized for CI/CD workflows, `sfdx-git-delta` provides additional support for a small number of specific edge use cases.
38
+
39
+ ## Installation
15
40
 
16
41
  > **Note:**
17
42
  >
18
- > The `jayree manifest git diff` command uses the `isomorphic-git` module, which does not support system or global git configurations. Windows users who have `autocrlf` enabled need to set this configuration locally in the repository to enhance the performance of the command.
43
+ > The `jayree manifest git diff` command and the `SDR-extra` library use the `isomorphic-git` module, which does not support system-wide or global Git configurations. If you are a Windows user with `autocrlf` enabled, you must set this configuration locally within your repository to ensure optimal performance.
19
44
  >
20
- > To do this, execute the following command in your repository:
45
+ > To configure it, run the following command in your repository:
21
46
  >
22
47
  > ```powershell
23
48
  > git config --local core.autocrlf true
24
49
  > ```
25
50
 
51
+ ### As a Salesforce CLI Plugin
26
52
 
53
+ Install the plugin using the Salesforce CLI:
27
54
 
55
+ ```bash
56
+ sf plugins install @jayree/sfdx-plugin-manifest
57
+ ```
58
+
59
+ ### As a Node.js Module
60
+
61
+ Add the library to your Node.js project:
62
+
63
+ ```bash
64
+ npm install @jayree/sfdx-plugin-manifest
65
+ ```
66
+
67
+ Initialize a Component Set from Git Commits:
68
+
69
+ ```typescript
70
+ import { ComponentSetExtra } from '@jayree/sfdx-plugin-manifest/lib/SDR-extra/index.js';
71
+
72
+ (async () => {
73
+ const fromSingleCommit = await ComponentSetExtra.fromGitDiff(['HEAD~1']);
74
+ const fromMultipleCommits = await ComponentSetExtra.fromGitDiff([
75
+ 'commit1',
76
+ 'HEAD'
77
+ ]);
78
+ })();
79
+ ```
28
80
 
29
81
  ## Commands
30
82
 
@@ -60,7 +112,7 @@ EXAMPLES
60
112
  $ sf jayree manifest cleanup --manifest=package.xml --file=packageignore.xml
61
113
  ```
62
114
 
63
- _See code: [src/commands/jayree/manifest/cleanup.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/3.6.24/src/commands/jayree/manifest/cleanup.ts)_
115
+ _See code: [src/commands/jayree/manifest/cleanup.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/3.6.25/src/commands/jayree/manifest/cleanup.ts)_
64
116
 
65
117
  ### `sf jayree manifest generate`
66
118
 
@@ -98,7 +150,7 @@ EXAMPLES
98
150
  <Package xmlns='http://soap.sforce.com/2006/04/metadata'>...</Package>
99
151
  ```
100
152
 
101
- _See code: [src/commands/jayree/manifest/generate.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/3.6.24/src/commands/jayree/manifest/generate.ts)_
153
+ _See code: [src/commands/jayree/manifest/generate.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/3.6.25/src/commands/jayree/manifest/generate.ts)_
102
154
 
103
155
  ### `sf jayree manifest git diff REF1 [REF2]`
104
156
 
@@ -181,7 +233,7 @@ FLAG DESCRIPTIONS
181
233
  The location can be an absolute path or relative to the current working directory.
182
234
  ```
183
235
 
184
- _See code: [src/commands/jayree/manifest/git/diff.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/3.6.24/src/commands/jayree/manifest/git/diff.ts)_
236
+ _See code: [src/commands/jayree/manifest/git/diff.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/3.6.25/src/commands/jayree/manifest/git/diff.ts)_
185
237
  <!-- commandsstop -->
186
238
 
187
239
  ## Performance Testing
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@jayree/sfdx-plugin-manifest",
3
- "version": "3.6.24",
3
+ "version": "3.6.25",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@jayree/sfdx-plugin-manifest",
9
- "version": "3.6.24",
9
+ "version": "3.6.25",
10
10
  "license": "BSD-3-Clause",
11
11
  "dependencies": {
12
12
  "@jayree/changelog": "^1.2.4",
@@ -15,7 +15,7 @@
15
15
  "@salesforce/kit": "^3.2.3",
16
16
  "@salesforce/sf-plugins-core": "^12.1.1",
17
17
  "@salesforce/source-deploy-retrieve": "^12.10.4",
18
- "@salesforce/source-tracking": "^7.3.4",
18
+ "@salesforce/source-tracking": "^7.3.5",
19
19
  "@salesforce/ts-types": "^2.0.12",
20
20
  "fast-deep-equal": "^3.1.3",
21
21
  "fast-xml-parser": "^4.5.1",
@@ -36,7 +36,7 @@
36
36
  "eslint-config-oclif": "^5.2",
37
37
  "eslint-plugin-prettier": "^5.2.1",
38
38
  "eslint-plugin-sf-plugin": "^1.20.13",
39
- "oclif": "^4.17.4",
39
+ "oclif": "^4.17.6",
40
40
  "patch-package": "^8.0.0",
41
41
  "prettier": "^3.4.2",
42
42
  "pretty-quick": "^4.0.0",
@@ -5075,13 +5075,13 @@
5075
5075
  }
5076
5076
  },
5077
5077
  "node_modules/@oclif/plugin-not-found": {
5078
- "version": "3.2.32",
5079
- "resolved": "https://registry.npmjs.org/@oclif/plugin-not-found/-/plugin-not-found-3.2.32.tgz",
5080
- "integrity": "sha512-8uyqhwq0I2qkBra6W6Ti0opBqDsBbMywVWplhbt1TkjMr9B8ZA8F1cQYa5Zz14blJD7dSS+OAhSHb/Ikkm1g4Q==",
5078
+ "version": "3.2.33",
5079
+ "resolved": "https://registry.npmjs.org/@oclif/plugin-not-found/-/plugin-not-found-3.2.33.tgz",
5080
+ "integrity": "sha512-1RgvZ0J5KloU8TRemHxCr5MbVtr41ungnz8BBCPJn2yR5L+Eo2Lt+kpOyEeYAohjo4Tml1AHSmipUF4jKThwTw==",
5081
5081
  "dev": true,
5082
5082
  "license": "MIT",
5083
5083
  "dependencies": {
5084
- "@inquirer/prompts": "^7.2.0",
5084
+ "@inquirer/prompts": "^7.2.1",
5085
5085
  "@oclif/core": "^4",
5086
5086
  "ansis": "^3.5.2",
5087
5087
  "fast-levenshtein": "^3.0.0"
@@ -5685,15 +5685,15 @@
5685
5685
  }
5686
5686
  },
5687
5687
  "node_modules/@salesforce/source-tracking": {
5688
- "version": "7.3.4",
5689
- "resolved": "https://registry.npmjs.org/@salesforce/source-tracking/-/source-tracking-7.3.4.tgz",
5690
- "integrity": "sha512-Qs2GWPaF8GrIvEZyVqX9zmk80BZAzKxirbnfGk+eB0Nig3/Yh01PLdjH5ctRxZpAvraXYZqConIyUxztwT16pA==",
5688
+ "version": "7.3.5",
5689
+ "resolved": "https://registry.npmjs.org/@salesforce/source-tracking/-/source-tracking-7.3.5.tgz",
5690
+ "integrity": "sha512-JQJtFWXCzWwEA+AX1vQyBTIDUoUlEAtRD0A/8O08roIEpK+wK+sh/hSVOhDeKYoaXyjaOeawkYJ40gCThiSs8w==",
5691
5691
  "license": "BSD-3-Clause",
5692
5692
  "dependencies": {
5693
5693
  "@oclif/core": "^4.2.0",
5694
5694
  "@salesforce/core": "^8.8.0",
5695
5695
  "@salesforce/kit": "^3.2.3",
5696
- "@salesforce/source-deploy-retrieve": "^12.10.3",
5696
+ "@salesforce/source-deploy-retrieve": "^12.10.4",
5697
5697
  "@salesforce/ts-types": "^2.0.12",
5698
5698
  "fast-xml-parser": "^4.5.1",
5699
5699
  "graceful-fs": "^4.2.11",
@@ -14633,20 +14633,20 @@
14633
14633
  }
14634
14634
  },
14635
14635
  "node_modules/oclif": {
14636
- "version": "4.17.4",
14637
- "resolved": "https://registry.npmjs.org/oclif/-/oclif-4.17.4.tgz",
14638
- "integrity": "sha512-CELZOdxSfpM2Kl3dGP0N4fL4+RReGP18vo6oNklWoSP4ka+pJTBzO3W0o15KHAyrzpes5cui+xur3UPZIGr0LQ==",
14636
+ "version": "4.17.6",
14637
+ "resolved": "https://registry.npmjs.org/oclif/-/oclif-4.17.6.tgz",
14638
+ "integrity": "sha512-0BtCVyoP7IG3o8IuVlbBd9eHQbzQu4Banwt4G5ZdfmLs/UwUyE1AVW8h/bZcBBujT5iys9LcAuSk1l50OXO6ow==",
14639
14639
  "dev": true,
14640
14640
  "license": "MIT",
14641
14641
  "dependencies": {
14642
14642
  "@aws-sdk/client-cloudfront": "^3.699.0",
14643
- "@aws-sdk/client-s3": "^3.712.0",
14643
+ "@aws-sdk/client-s3": "^3.717.0",
14644
14644
  "@inquirer/confirm": "^3.1.22",
14645
14645
  "@inquirer/input": "^2.2.4",
14646
14646
  "@inquirer/select": "^2.5.0",
14647
14647
  "@oclif/core": "^4.2.0",
14648
14648
  "@oclif/plugin-help": "^6.2.20",
14649
- "@oclif/plugin-not-found": "^3.2.31",
14649
+ "@oclif/plugin-not-found": "^3.2.32",
14650
14650
  "@oclif/plugin-warn-if-update-available": "^3.1.28",
14651
14651
  "async-retry": "^1.3.3",
14652
14652
  "chalk": "^4",
package/oclif.lock CHANGED
@@ -136,7 +136,7 @@
136
136
  "@smithy/util-waiter" "^3.2.0"
137
137
  tslib "^2.6.2"
138
138
 
139
- "@aws-sdk/client-s3@^3.712.0":
139
+ "@aws-sdk/client-s3@^3.717.0":
140
140
  version "3.717.0"
141
141
  resolved "https://registry.yarnpkg.com/@aws-sdk/client-s3/-/client-s3-3.717.0.tgz#b2ab596bd2d293db6ab57f963608b451dca0560e"
142
142
  integrity sha512-jzaH8IskAXVnqlZ3/H/ROwrB2HCnq/atlN7Hi7FIfjWvMPf5nfcJKfzJ1MXFX0EQR5qO6X4TbK7rgi7Bjw9NjQ==
@@ -1623,7 +1623,7 @@
1623
1623
  "@inquirer/type" "^3.0.2"
1624
1624
  ansi-escapes "^4.3.2"
1625
1625
 
1626
- "@inquirer/prompts@^7.2.0":
1626
+ "@inquirer/prompts@^7.2.1":
1627
1627
  version "7.2.1"
1628
1628
  resolved "https://registry.yarnpkg.com/@inquirer/prompts/-/prompts-7.2.1.tgz#f00fbcf06998a07faebc10741efa289384529950"
1629
1629
  integrity sha512-v2JSGri6/HXSfoGIwuKEn8sNCQK6nsB2BNpy2lSX6QH9bsECrMv93QHnj5+f+1ZWpF/VNioIV2B/PDox8EvGuQ==
@@ -1862,12 +1862,12 @@
1862
1862
  dependencies:
1863
1863
  "@oclif/core" "^4"
1864
1864
 
1865
- "@oclif/plugin-not-found@^3.2.31":
1866
- version "3.2.32"
1867
- resolved "https://registry.yarnpkg.com/@oclif/plugin-not-found/-/plugin-not-found-3.2.32.tgz#5b96bb4ea006a45798ecd869fc5bfa019ce124bc"
1868
- integrity sha512-8uyqhwq0I2qkBra6W6Ti0opBqDsBbMywVWplhbt1TkjMr9B8ZA8F1cQYa5Zz14blJD7dSS+OAhSHb/Ikkm1g4Q==
1865
+ "@oclif/plugin-not-found@^3.2.32":
1866
+ version "3.2.33"
1867
+ resolved "https://registry.yarnpkg.com/@oclif/plugin-not-found/-/plugin-not-found-3.2.33.tgz#d74cd2c16eaf0f54aa0f45ae7e29c0664f8bb8ea"
1868
+ integrity sha512-1RgvZ0J5KloU8TRemHxCr5MbVtr41ungnz8BBCPJn2yR5L+Eo2Lt+kpOyEeYAohjo4Tml1AHSmipUF4jKThwTw==
1869
1869
  dependencies:
1870
- "@inquirer/prompts" "^7.2.0"
1870
+ "@inquirer/prompts" "^7.2.1"
1871
1871
  "@oclif/core" "^4"
1872
1872
  ansis "^3.5.2"
1873
1873
  fast-levenshtein "^3.0.0"
@@ -2041,7 +2041,7 @@
2041
2041
  cli-progress "^3.12.0"
2042
2042
  terminal-link "^3.0.0"
2043
2043
 
2044
- "@salesforce/source-deploy-retrieve@^12.10.3", "@salesforce/source-deploy-retrieve@^12.10.4":
2044
+ "@salesforce/source-deploy-retrieve@^12.10.4":
2045
2045
  version "12.10.4"
2046
2046
  resolved "https://registry.yarnpkg.com/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-12.10.4.tgz#d719d6c1ec5e6df90bd7acc1f874f122678e0b0f"
2047
2047
  integrity sha512-0zuz2tvfcIJhGFcMUFS3uD66hiWlX9lku+VafAymRNxzMeGR1W5PdSLMwx3q8t9ZMnJjJWvA7QhfYTpy9Ee4/g==
@@ -2060,15 +2060,15 @@
2060
2060
  minimatch "^9.0.5"
2061
2061
  proxy-agent "^6.4.0"
2062
2062
 
2063
- "@salesforce/source-tracking@^7.3.4":
2064
- version "7.3.4"
2065
- resolved "https://registry.yarnpkg.com/@salesforce/source-tracking/-/source-tracking-7.3.4.tgz#6e51ffb0c6305086c142f86ed17432cfb37298ba"
2066
- integrity sha512-Qs2GWPaF8GrIvEZyVqX9zmk80BZAzKxirbnfGk+eB0Nig3/Yh01PLdjH5ctRxZpAvraXYZqConIyUxztwT16pA==
2063
+ "@salesforce/source-tracking@^7.3.5":
2064
+ version "7.3.5"
2065
+ resolved "https://registry.yarnpkg.com/@salesforce/source-tracking/-/source-tracking-7.3.5.tgz#b1c2bab19626ed66803b87499e5a6185fc3092b9"
2066
+ integrity sha512-JQJtFWXCzWwEA+AX1vQyBTIDUoUlEAtRD0A/8O08roIEpK+wK+sh/hSVOhDeKYoaXyjaOeawkYJ40gCThiSs8w==
2067
2067
  dependencies:
2068
2068
  "@oclif/core" "^4.2.0"
2069
2069
  "@salesforce/core" "^8.8.0"
2070
2070
  "@salesforce/kit" "^3.2.3"
2071
- "@salesforce/source-deploy-retrieve" "^12.10.3"
2071
+ "@salesforce/source-deploy-retrieve" "^12.10.4"
2072
2072
  "@salesforce/ts-types" "^2.0.12"
2073
2073
  fast-xml-parser "^4.5.1"
2074
2074
  graceful-fs "^4.2.11"
@@ -7169,19 +7169,19 @@ object.values@^1.1.7:
7169
7169
  define-properties "^1.2.1"
7170
7170
  es-object-atoms "^1.0.0"
7171
7171
 
7172
- oclif@^4.17.4:
7173
- version "4.17.4"
7174
- resolved "https://registry.yarnpkg.com/oclif/-/oclif-4.17.4.tgz#d435f6c95f6b6b19fb5cb0f35544f8b4f0e6a458"
7175
- integrity sha512-CELZOdxSfpM2Kl3dGP0N4fL4+RReGP18vo6oNklWoSP4ka+pJTBzO3W0o15KHAyrzpes5cui+xur3UPZIGr0LQ==
7172
+ oclif@^4.17.6:
7173
+ version "4.17.6"
7174
+ resolved "https://registry.yarnpkg.com/oclif/-/oclif-4.17.6.tgz#7ec3cb606396978f3bcc5856a7442f2bb7cddef3"
7175
+ integrity sha512-0BtCVyoP7IG3o8IuVlbBd9eHQbzQu4Banwt4G5ZdfmLs/UwUyE1AVW8h/bZcBBujT5iys9LcAuSk1l50OXO6ow==
7176
7176
  dependencies:
7177
7177
  "@aws-sdk/client-cloudfront" "^3.699.0"
7178
- "@aws-sdk/client-s3" "^3.712.0"
7178
+ "@aws-sdk/client-s3" "^3.717.0"
7179
7179
  "@inquirer/confirm" "^3.1.22"
7180
7180
  "@inquirer/input" "^2.2.4"
7181
7181
  "@inquirer/select" "^2.5.0"
7182
7182
  "@oclif/core" "^4.2.0"
7183
7183
  "@oclif/plugin-help" "^6.2.20"
7184
- "@oclif/plugin-not-found" "^3.2.31"
7184
+ "@oclif/plugin-not-found" "^3.2.32"
7185
7185
  "@oclif/plugin-warn-if-update-available" "^3.1.28"
7186
7186
  async-retry "^1.3.3"
7187
7187
  chalk "^4"
@@ -323,5 +323,5 @@
323
323
  ]
324
324
  }
325
325
  },
326
- "version": "3.6.24"
326
+ "version": "3.6.25"
327
327
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jayree/sfdx-plugin-manifest",
3
3
  "description": "A Salesforce CLI plugin containing commands for creating manifest files from Salesforce orgs or git commits of sfdx projects.",
4
- "version": "3.6.24",
4
+ "version": "3.6.25",
5
5
  "author": "jayree",
6
6
  "type": "module",
7
7
  "bugs": "https://github.com/jayree/sfdx-plugin-manifest/issues",
@@ -12,7 +12,7 @@
12
12
  "@salesforce/kit": "^3.2.3",
13
13
  "@salesforce/sf-plugins-core": "^12.1.1",
14
14
  "@salesforce/source-deploy-retrieve": "^12.10.4",
15
- "@salesforce/source-tracking": "^7.3.4",
15
+ "@salesforce/source-tracking": "^7.3.5",
16
16
  "@salesforce/ts-types": "^2.0.12",
17
17
  "fast-deep-equal": "^3.1.3",
18
18
  "fast-xml-parser": "^4.5.1",
@@ -33,7 +33,7 @@
33
33
  "eslint-config-oclif": "^5.2",
34
34
  "eslint-plugin-prettier": "^5.2.1",
35
35
  "eslint-plugin-sf-plugin": "^1.20.13",
36
- "oclif": "^4.17.4",
36
+ "oclif": "^4.17.6",
37
37
  "patch-package": "^8.0.0",
38
38
  "prettier": "^3.4.2",
39
39
  "pretty-quick": "^4.0.0",