sfdx-git-delta 5.7.1 → 5.9.0

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.
Files changed (64) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +6 -2
  3. package/lib/locales/en.d.ts +0 -1
  4. package/lib/locales/en.js +0 -1
  5. package/lib/locales/en.js.map +1 -1
  6. package/lib/main.js +3 -1
  7. package/lib/main.js.map +1 -1
  8. package/lib/metadata/a48.json +1 -1
  9. package/lib/metadata/v47.json +1 -1
  10. package/lib/metadata/v49.json +1 -1
  11. package/lib/metadata/v50.json +1 -1
  12. package/lib/metadata/v51.json +1 -1
  13. package/lib/metadata/v52.json +1 -1
  14. package/lib/metadata/v53.json +1 -1
  15. package/lib/metadata/v54.json +1 -1
  16. package/lib/metadata/v55.json +1 -1
  17. package/lib/metadata/v56.json +1424 -0
  18. package/lib/post-processor/flowTranslationProcessor.d.ts +1 -0
  19. package/lib/post-processor/flowTranslationProcessor.js +18 -18
  20. package/lib/post-processor/flowTranslationProcessor.js.map +1 -1
  21. package/lib/service/botHandler.d.ts +1 -0
  22. package/lib/service/botHandler.js +5 -0
  23. package/lib/service/botHandler.js.map +1 -1
  24. package/lib/service/customObjectHandler.js +6 -8
  25. package/lib/service/customObjectHandler.js.map +1 -1
  26. package/lib/service/inBundleHandler.d.ts +4 -0
  27. package/lib/service/inBundleHandler.js +22 -0
  28. package/lib/service/inBundleHandler.js.map +1 -0
  29. package/lib/service/inFileHandler.js +9 -8
  30. package/lib/service/inFileHandler.js.map +1 -1
  31. package/lib/service/inFolderHandler.js +4 -10
  32. package/lib/service/inFolderHandler.js.map +1 -1
  33. package/lib/service/inResourceHandler.js +5 -6
  34. package/lib/service/inResourceHandler.js.map +1 -1
  35. package/lib/service/inTranslationHandler.d.ts +1 -0
  36. package/lib/service/inTranslationHandler.js +3 -0
  37. package/lib/service/inTranslationHandler.js.map +1 -1
  38. package/lib/service/standardHandler.d.ts +2 -1
  39. package/lib/service/standardHandler.js +7 -4
  40. package/lib/service/standardHandler.js.map +1 -1
  41. package/lib/service/subCustomObjectHandler.js +13 -19
  42. package/lib/service/subCustomObjectHandler.js.map +1 -1
  43. package/lib/service/typeHandlerFactory.js +2 -0
  44. package/lib/service/typeHandlerFactory.js.map +1 -1
  45. package/lib/service/waveHandler.js +6 -4
  46. package/lib/service/waveHandler.js.map +1 -1
  47. package/lib/utils/childProcessUtils.d.ts +1 -0
  48. package/lib/utils/childProcessUtils.js +1 -0
  49. package/lib/utils/childProcessUtils.js.map +1 -1
  50. package/lib/utils/cliHelper.js +0 -5
  51. package/lib/utils/cliHelper.js.map +1 -1
  52. package/lib/utils/fsHelper.d.ts +6 -4
  53. package/lib/utils/fsHelper.js +59 -34
  54. package/lib/utils/fsHelper.js.map +1 -1
  55. package/lib/utils/packageHelper.d.ts +1 -0
  56. package/lib/utils/packageHelper.js +8 -9
  57. package/lib/utils/packageHelper.js.map +1 -1
  58. package/lib/utils/repoGitDiff.js +3 -3
  59. package/lib/utils/repoGitDiff.js.map +1 -1
  60. package/lib/utils/repoSetup.d.ts +0 -1
  61. package/lib/utils/repoSetup.js +0 -10
  62. package/lib/utils/repoSetup.js.map +1 -1
  63. package/oclif.manifest.json +1 -1
  64. package/package.json +28 -28
package/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  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.
4
4
 
5
+ ## 5.9.0 (2022-12-13)
6
+
7
+
8
+ ### Features
9
+
10
+ * add digital experience metadata ([#397](https://github.com/scolladon/sfdx-git-delta/issues/397)) ([71c0a02](https://github.com/scolladon/sfdx-git-delta/commit/71c0a0267e555f2139c06b1f4a74ac555fdd5a6d))
11
+
12
+ ## 5.8.0 (2022-11-12)
13
+
14
+
15
+ ### Features
16
+
17
+ * add `ExternalCredentials` metadata and `v56` api version ([#390](https://github.com/scolladon/sfdx-git-delta/issues/390)) ([5136b7a](https://github.com/scolladon/sfdx-git-delta/commit/5136b7a2481db2f3dfd612ecfdd6920576a4480a))
18
+
5
19
  ### 5.7.1 (2022-11-10)
6
20
 
7
21
 
package/README.md CHANGED
@@ -122,7 +122,7 @@ sfdx plugins:install sfdx-git-delta
122
122
 
123
123
  Because this plugin is not signed, you will get a warning saying that "This plugin is not digitally signed and its authenticity cannot be verified". This is expected, and you will have to answer `y` (yes) to proceed with the installation.
124
124
 
125
- If you run your CI/CD jobs inside a Docker image, you can add the plugin to your image (such as in [this example](https://github.com/mehdisfdc/sfdx-cli-gitlab)).
125
+ If you run your CI/CD jobs inside a Docker image, you can add the plugin to your image (such as in [this example](https://github.com/mehdisfdc/sfdx-cli-gitlab)). If you use GitHub Actions, you can find some examples of using SGD [here](https://github.com/mehdisfdc/sfdx-GitHub-actions/tree/main/.github/workflows).
126
126
 
127
127
  ⚠️ The Salesforce CLI plugin is now the only supported way to install SGD. There used to be another way to install it using yarn or npm. The legacy `sgd` command is now deprecated and decommissioned.
128
128
 
@@ -186,7 +186,7 @@ OPTIONS
186
186
  this command invocation
187
187
  ```
188
188
 
189
- _See code: [src/commands/sgd/source/delta.ts](https://github.com/scolladon/sfdx-git-delta/blob/v5.7.1/src/commands/sgd/source/delta.ts)_
189
+ _See code: [src/commands/sgd/source/delta.ts](https://github.com/scolladon/sfdx-git-delta/blob/v5.9.0/src/commands/sgd/source/delta.ts)_
190
190
  <!-- commandsstop -->
191
191
 
192
192
  ### Windows users
@@ -207,6 +207,10 @@ sfdx sgd:source:delta --from "HEAD~1" # right git shortcut with windows because
207
207
 
208
208
  ### CI/CD specificity
209
209
 
210
+ In CI/CD pipelines, for most of the CI/CD providers, the checkout operation fetch only the last commit of the branch currently evaluated.
211
+ You need to fetch all the needed commits, as the plugin needs to have the branch to compare from as well,
212
+ Example for Github action checkout [here](https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches).
213
+
210
214
  In CI/CD pipelines, branches are not checked out locally when the repository is cloned, so you must specify the remote prefix.
211
215
  If you do not specify the remote in CI context, the git pointer check will raise an error (as the branch is not created locally).
212
216
  This applies to both `--from` and `--to` parameters as they both accept git pointers.
@@ -3,5 +3,4 @@ export const errorParameterIsNotGitSHA: string;
3
3
  export const errorPathIsNotDir: string;
4
4
  export const errorPathIsNotFile: string;
5
5
  export const errorPathIsNotGit: string;
6
- export const errorToNotHeadWithDeltaGenerate: string;
7
6
  export const warningApiVersionNotSupported: string;
package/lib/locales/en.js CHANGED
@@ -5,7 +5,6 @@ module.exports = {
5
5
  errorPathIsNotDir: `'%s' folder does not exist`,
6
6
  errorPathIsNotFile: `'%s' file does not exist`,
7
7
  errorPathIsNotGit: `'%s' is not a git repository`,
8
- errorToNotHeadWithDeltaGenerate: '--generate-delta (-d) parameter cannot be used when --to (-t) parameter is not equivalent to HEAD',
9
8
  warningApiVersionNotSupported: `API version not found or not supported, using '%s' instead`,
10
9
  };
11
10
  //# sourceMappingURL=en.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"en.js","sourceRoot":"","sources":["../../src/locales/en.js"],"names":[],"mappings":";AAAA,MAAM,CAAC,OAAO,GAAG;IACf,kBAAkB,EAAE,qBAAqB;IACzC,yBAAyB,EAAE,uCAAuC;IAClE,iBAAiB,EAAE,4BAA4B;IAC/C,kBAAkB,EAAE,0BAA0B;IAC9C,iBAAiB,EAAE,8BAA8B;IACjD,+BAA+B,EAC7B,mGAAmG;IACrG,6BAA6B,EAAE,4DAA4D;CAC5F,CAAA"}
1
+ {"version":3,"file":"en.js","sourceRoot":"","sources":["../../src/locales/en.js"],"names":[],"mappings":";AAAA,MAAM,CAAC,OAAO,GAAG;IACf,kBAAkB,EAAE,qBAAqB;IACzC,yBAAyB,EAAE,uCAAuC;IAClE,iBAAiB,EAAE,4BAA4B;IAC/C,kBAAkB,EAAE,0BAA0B;IAC9C,iBAAiB,EAAE,8BAA8B;IACjD,6BAA6B,EAAE,4DAA4D;CAC5F,CAAA"}
package/lib/main.js CHANGED
@@ -20,7 +20,9 @@ module.exports = async (config) => {
20
20
  };
21
21
  const treatDiff = async (work, lines, metadata) => {
22
22
  const typeHandlerFactory = new TypeHandlerFactory(work, metadata);
23
- await Promise.all(lines.map(line => typeHandlerFactory.getTypeHandler(line).handle()));
23
+ for (const line of lines) {
24
+ await typeHandlerFactory.getTypeHandler(line).handle();
25
+ }
24
26
  await getPostProcessors(work, metadata).execute();
25
27
  };
26
28
  //# sourceMappingURL=main.js.map
package/lib/main.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.js"],"names":[],"mappings":"AAAA,YAAY,CAAA;AACZ,MAAM,kBAAkB,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAA;AAClE,MAAM,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAA;AAC/D,MAAM,SAAS,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAA;AAC9C,MAAM,WAAW,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAA;AAClD,MAAM,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAAC,uCAAuC,CAAC,CAAA;AAE9E,MAAM,CAAC,OAAO,GAAG,KAAK,EAAC,MAAM,EAAC,EAAE;IAC9B,MAAM,IAAI,GAAG;QACX,MAAM,EAAE,MAAM;QACd,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,EAAE,kBAAkB,EAAE,IAAI,GAAG,EAAE,EAAE;QAC5D,QAAQ,EAAE,EAAE;KACb,CAAA;IACD,MAAM,SAAS,GAAG,IAAI,SAAS,CAAC,IAAI,CAAC,CAAA;IACrC,MAAM,SAAS,CAAC,cAAc,EAAE,CAAA;IAEhC,MAAM,QAAQ,GAAG,MAAM,aAAa,CAAC,eAAe,EAAE,MAAM,CAAC,UAAU,CAAC,CAAA;IACxE,MAAM,iBAAiB,GAAG,IAAI,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;IAE3D,MAAM,KAAK,GAAG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AAC,IAAI,CAAC,CAAA;IACrC,MAAM,SAAS,CAAC,cAAc,EAAE,CAAA;IAEhC,MAAM,QAAQ,GAAG,MAAM,aAAa,CAAC,eAAe,EAAE,MAAM,CAAC,UAAU,CAAC,CAAA;IACxE,MAAM,iBAAiB,GAAG,IAAI,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;IAE3D,MAAM,KAAK,GAAG,MAAM,iBAAiB,CAAC,QAAQ,EAAE,CAAA;IAChD,MAAM,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAA;IACtC,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AAED,MAAM,SAAS,GAAG,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE;IAChD,MAAM,kBAAkB,GAAG,IAAI,kBAAkB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAA;IAEjE,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;QACxB,MAAM,kBAAkB,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,CAAA;KACvD;IAED,MAAM,iBAAiB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,OAAO,EAAE,CAAA;AACnD,CAAC,CAAA"}
@@ -817,7 +817,7 @@
817
817
  "directoryName": "experiences",
818
818
  "inFolder": false,
819
819
  "metaFile": true,
820
- "suffix": "site",
820
+ "suffix": "experience",
821
821
  "xmlName": "ExperienceBundle"
822
822
  },
823
823
  {
@@ -810,7 +810,7 @@
810
810
  "directoryName": "experiences",
811
811
  "inFolder": false,
812
812
  "metaFile": true,
813
- "suffix": "site",
813
+ "suffix": "experience",
814
814
  "xmlName": "ExperienceBundle"
815
815
  },
816
816
  {
@@ -824,7 +824,7 @@
824
824
  "directoryName": "experiences",
825
825
  "inFolder": false,
826
826
  "metaFile": true,
827
- "suffix": "site",
827
+ "suffix": "experience",
828
828
  "xmlName": "ExperienceBundle"
829
829
  },
830
830
  {
@@ -824,7 +824,7 @@
824
824
  "directoryName": "experiences",
825
825
  "inFolder": false,
826
826
  "metaFile": true,
827
- "suffix": "site",
827
+ "suffix": "experience",
828
828
  "xmlName": "ExperienceBundle"
829
829
  },
830
830
  {
@@ -880,7 +880,7 @@
880
880
  "directoryName": "experiences",
881
881
  "inFolder": false,
882
882
  "metaFile": true,
883
- "suffix": "site",
883
+ "suffix": "experience",
884
884
  "xmlName": "ExperienceBundle"
885
885
  },
886
886
  {
@@ -880,7 +880,7 @@
880
880
  "directoryName": "experiences",
881
881
  "inFolder": false,
882
882
  "metaFile": true,
883
- "suffix": "site",
883
+ "suffix": "experience",
884
884
  "xmlName": "ExperienceBundle"
885
885
  },
886
886
  {
@@ -880,7 +880,7 @@
880
880
  "directoryName": "experiences",
881
881
  "inFolder": false,
882
882
  "metaFile": true,
883
- "suffix": "site",
883
+ "suffix": "experience",
884
884
  "xmlName": "ExperienceBundle"
885
885
  },
886
886
  {
@@ -880,7 +880,7 @@
880
880
  "directoryName": "experiences",
881
881
  "inFolder": false,
882
882
  "metaFile": true,
883
- "suffix": "site",
883
+ "suffix": "experience",
884
884
  "xmlName": "ExperienceBundle"
885
885
  },
886
886
  {
@@ -894,7 +894,7 @@
894
894
  "directoryName": "experiences",
895
895
  "inFolder": false,
896
896
  "metaFile": true,
897
- "suffix": "site",
897
+ "suffix": "experience",
898
898
  "xmlName": "ExperienceBundle"
899
899
  },
900
900
  {