sf-decomposer 5.8.0 → 5.8.1
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.8.1](https://github.com/mcarvin8/sf-decomposer/compare/v5.8.0...v5.8.1) (2025-04-18)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* add strategy to decompose hook ([86e6c8d](https://github.com/mcarvin8/sf-decomposer/commit/86e6c8daa11e9c934427e5a98627ebba79a6e47c))
|
|
14
|
+
|
|
8
15
|
## [5.8.0](https://github.com/mcarvin8/sf-decomposer/compare/v5.7.2...v5.8.0) (2025-04-18)
|
|
9
16
|
|
|
10
17
|
|
package/README.md
CHANGED
|
@@ -256,6 +256,12 @@ To add debugging to the log, provide the `--debug` flag to the decompose or reco
|
|
|
256
256
|
[2024-03-30T14:28:37.959] [DEBUG] default - Created disassembled file: mock\no-nested-elements\HR_Admin\HR_Admin.permissionset-meta.xml
|
|
257
257
|
```
|
|
258
258
|
|
|
259
|
+
If a file only contains leaf elements, the decomposer has nothing to decompose so it will print this warning and skip processing the file:
|
|
260
|
+
|
|
261
|
+
```
|
|
262
|
+
Warning: The XML file force-app\main\default\permissionsets\view_of_projects_tab_on_opportunity.permissionset-meta.xml only has leaf elements. This file will not be disassembled.
|
|
263
|
+
```
|
|
264
|
+
|
|
259
265
|
Custom labels can only be decomposed via the `unique-id` strategy. If the other one is provided, it will print this warning and skip to the next metadata entry.
|
|
260
266
|
|
|
261
267
|
```
|
|
@@ -277,6 +283,7 @@ You can copy and update the sample [.sfdecomposer.config.json](https://raw.githu
|
|
|
277
283
|
| `prePurge` | No | `true` or `false`. If `true`, deletes existing decomposed files before decomposing. Defaults to `false`. |
|
|
278
284
|
| `postPurge` | No | `true` or `false`. If `true`, deletes the retrieval file after decomposing or deletes decomposed files after recomposing. Defaults to `false`. |
|
|
279
285
|
| `decomposedFormat` | No | Format of decomposed files: `xml`, `json`, `json5`, `toml`, `ini`, or `yaml`. Defaults to `xml`. |
|
|
286
|
+
| `strategy` | No | Strategy for decomposing the files: `unique-id` or `grouped-by-tag`. Defaults to `unique-id`. |
|
|
280
287
|
|
|
281
288
|
If `.sfdecomposer.config.json` is found, the hooks will run:
|
|
282
289
|
|
package/lib/helpers/types.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export const scopedPostRetrieve = async function (options) {
|
|
|
26
26
|
const prepurge = configFile.prePurge || false;
|
|
27
27
|
const postpurge = configFile.postPurge || false;
|
|
28
28
|
const ignorePackageDirs = configFile.ignorePackageDirectories || '';
|
|
29
|
+
const strategy = configFile.strategy || 'unique-id';
|
|
29
30
|
if (metadataTypes.trim() === '.') {
|
|
30
31
|
return;
|
|
31
32
|
}
|
|
@@ -52,6 +53,8 @@ export const scopedPostRetrieve = async function (options) {
|
|
|
52
53
|
if (postpurge) {
|
|
53
54
|
commandArgs.push('--postpurge');
|
|
54
55
|
}
|
|
56
|
+
commandArgs.push('--strategy');
|
|
57
|
+
commandArgs.push(strategy);
|
|
55
58
|
await DecomposerDecompose.run(commandArgs);
|
|
56
59
|
};
|
|
57
60
|
//# sourceMappingURL=scopedPostRetrieve.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scopedPostRetrieve.js","sourceRoot":"","sources":["../../src/hooks/scopedPostRetrieve.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,OAAO,mBAAmB,MAAM,qCAAqC,CAAC;AAEtE,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,O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esforce metadata files into smaller, more manageable files for version control and then recreate deployment-compatible files.",
|
|
4
|
-
"version": "5.8.
|
|
4
|
+
"version": "5.8.1",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@oclif/core": "^4",
|
|
7
7
|
"@salesforce/core": "^8.9.0",
|