sf-decomposer 5.3.8 → 5.3.9

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
@@ -5,6 +5,13 @@
5
5
 
6
6
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
7
7
 
8
+ ## [5.3.9](https://github.com/mcarvin8/sf-decomposer/compare/v5.3.8...v5.3.9) (2025-02-10)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **deps:** bump @salesforce/source-deploy-retrieve ([a4aa797](https://github.com/mcarvin8/sf-decomposer/commit/a4aa797cb9b581ebe24950f08c631f75bbbc070e))
14
+
8
15
  ## [5.3.8](https://github.com/mcarvin8/sf-decomposer/compare/v5.3.7...v5.3.8) (2025-02-03)
9
16
 
10
17
 
package/README.md CHANGED
@@ -19,6 +19,7 @@
19
19
  - [Ignore Files](#ignore-files)
20
20
  - [`.forceignore` updates](#.forceignore-updates)
21
21
  - [`.gitignore` updates](#.gitignore-updates)
22
+ - [Contributing](#contributing)
22
23
  - [Issues](#issues)
23
24
  - [License](#license)
24
25
  </details>
@@ -46,6 +47,7 @@ Why should you consider using this Salesforce CLI Plugin over Salesforce's decom
46
47
  - Salesforce's decomposition is all or nothing for each metadata type. Meaning, if you want to decompose workflows, all of your workflows will need to be decomposed to work with Salesforce's approach. My plugin allows you to selectively decompose for each metadata type.
47
48
  - See [Ignore Files when Decomposing](#ignore-files-when-decomposing)
48
49
  - Some metadata types may only be partially decomposed by Salesforce such as permission sets based on what designs are picked. My plugin will allow for total decomposition. So if a user wants to fully decompose permission sets, they can use this plugin.
50
+ - When this plugin recomposes the decomposed files, it will sort the elements consistently compared to native Salesforce files.
49
51
 
50
52
  ## Commands
51
53
 
@@ -56,7 +58,14 @@ The `sf-decomposer` supports 2 commands:
56
58
 
57
59
  ## `sf decomposer decompose`
58
60
 
59
- Decomposes the original metadata files in all local package directories into smaller files for version control. If unique ID elements are found, the decomposed files will be named using them. Otherwise, the decomposed files will be named with the SHA-256 hash of the element contents.
61
+ Decomposes the original metadata files in all local package directories into smaller files for version control.
62
+
63
+ When the files are decomposed, it will:
64
+ - decompose leaf elements (i.e. `<userLicense>Salesforce</userLicense>`) in the same file. The leaf file-name will match the original file-name, just in a decomposed directory.
65
+ - decompose nested elements into their own files.
66
+ - If unique ID elements are found, the decomposed files will be named using them.
67
+ - Otherwise, the decomposed files will be named with the SHA-256 hash of the element contents.
68
+ - See [Contributing](#contributing) for more information on unique ID elements.
60
69
 
61
70
  <img src="https://raw.githubusercontent.com/mcarvin8/sf-decomposer/main/.github/images/decomposed-perm-set.png">
62
71
  <p><em>Decomposed Permission Sets named using unique ID elements</em></p>
@@ -249,6 +258,10 @@ Optionally, Git (or whatever version control system you are using) can ignore th
249
258
 
250
259
  You can use the sample [.gitignore](https://raw.githubusercontent.com/mcarvin8/sf-decomposer/main/samples/.gitignore) provided.
251
260
 
261
+ ## Contributing
262
+
263
+ Contributions are welcome! See [Contributing](https://github.com/mcarvin8/sf-decomposer/blob/main/CONTRIBUTING.md).
264
+
252
265
  ## Issues
253
266
 
254
267
  If you encounter any issues, please create an issue in the repository's [issue tracker](https://github.com/mcarvin8/sf-decomposer/issues). Please also create issues for feature enhancements or to support newer metadata types added to the [SDR toolkit](https://github.com/forcedotcom/source-deploy-retrieve).
package/oclif.lock CHANGED
@@ -1596,10 +1596,10 @@
1596
1596
  string-width "^7.2.0"
1597
1597
  terminal-link "^3.0.0"
1598
1598
 
1599
- "@salesforce/source-deploy-retrieve@^12.14.2":
1600
- version "12.14.2"
1601
- resolved "https://registry.yarnpkg.com/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-12.14.2.tgz#c14c62f2d72d5415265401068bb0e046a2b0f973"
1602
- integrity sha512-ZLV5YYNZV7d+ONzrgA+VeMsdWr+sqx2WQaswFK6RzrHPqItsczp6RM298oOZm8ZvKJCdQpjiRi0/cDqKGX/nkw==
1599
+ "@salesforce/source-deploy-retrieve@^12.14.6":
1600
+ version "12.14.6"
1601
+ resolved "https://registry.yarnpkg.com/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-12.14.6.tgz#19fee9916619cac38d4b703de3ad9eba10343143"
1602
+ integrity sha512-7a9tzVmRhuja1w05zhW/UpoViA5xYXJGsZlSjAqOPHH5n4e2/q9Q+XeOb2kfusOr34oEHoU+YFcsZXWc9hu0SA==
1603
1603
  dependencies:
1604
1604
  "@salesforce/core" "^8.8.2"
1605
1605
  "@salesforce/kit" "^3.2.3"
@@ -198,5 +198,5 @@
198
198
  ]
199
199
  }
200
200
  },
201
- "version": "5.3.8"
201
+ "version": "5.3.9"
202
202
  }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "sf-decomposer",
3
3
  "description": "Decomposes Salesforce metadata into more manageable files.",
4
- "version": "5.3.8",
4
+ "version": "5.3.9",
5
5
  "dependencies": {
6
6
  "@oclif/core": "^4",
7
7
  "@salesforce/core": "^8.2.1",
8
8
  "@salesforce/sf-plugins-core": "^11.2.1",
9
- "@salesforce/source-deploy-retrieve": "^12.14.2",
9
+ "@salesforce/source-deploy-retrieve": "^12.14.6",
10
10
  "fs-extra": "^11.2.0",
11
11
  "xml-disassembler": "^1.3.11",
12
12
  "xml2json-disassembler": "^1.1.11",