@salesforce/source-deploy-retrieve 5.0.1 → 5.0.2
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 +33 -46
- package/LICENSE.txt +12 -0
- package/README.md +2 -2
- package/lib/src/client/deployStrategies/auraDeploy.d.ts +2 -2
- package/lib/src/client/deployStrategies/auraDeploy.js +98 -108
- package/lib/src/client/deployStrategies/auraDeploy.js.map +1 -1
- package/lib/src/client/deployStrategies/baseDeploy.d.ts +1 -1
- package/lib/src/client/deployStrategies/baseDeploy.js +37 -38
- package/lib/src/client/deployStrategies/baseDeploy.js.map +1 -1
- package/lib/src/client/deployStrategies/containerDeploy.d.ts +2 -2
- package/lib/src/client/deployStrategies/containerDeploy.js +57 -72
- package/lib/src/client/deployStrategies/containerDeploy.js.map +1 -1
- package/lib/src/client/deployStrategies/index.js +4 -3
- package/lib/src/client/deployStrategies/index.js.map +1 -1
- package/lib/src/client/deployStrategies/lwcDeploy.d.ts +2 -2
- package/lib/src/client/deployStrategies/lwcDeploy.js +98 -109
- package/lib/src/client/deployStrategies/lwcDeploy.js.map +1 -1
- package/lib/src/client/diagnosticUtil.d.ts +1 -1
- package/lib/src/client/diagnosticUtil.js +11 -11
- package/lib/src/client/diagnosticUtil.js.map +1 -1
- package/lib/src/client/index.d.ts +1 -1
- package/lib/src/client/index.js +1 -1
- package/lib/src/client/index.js.map +1 -1
- package/lib/src/client/metadataApiDeploy.d.ts +4 -4
- package/lib/src/client/metadataApiDeploy.js +57 -73
- package/lib/src/client/metadataApiDeploy.js.map +1 -1
- package/lib/src/client/metadataApiRetrieve.d.ts +2 -2
- package/lib/src/client/metadataApiRetrieve.js +86 -106
- package/lib/src/client/metadataApiRetrieve.js.map +1 -1
- package/lib/src/client/metadataTransfer.d.ts +2 -2
- package/lib/src/client/metadataTransfer.js +101 -118
- package/lib/src/client/metadataTransfer.js.map +1 -1
- package/lib/src/client/retrieveUtil.d.ts +1 -1
- package/lib/src/client/retrieveUtil.js +17 -17
- package/lib/src/client/retrieveUtil.js.map +1 -1
- package/lib/src/client/toolingApi.d.ts +2 -2
- package/lib/src/client/toolingApi.js +71 -94
- package/lib/src/client/toolingApi.js.map +1 -1
- package/lib/src/client/types.js +1 -14
- package/lib/src/client/types.js.map +1 -1
- package/lib/src/collections/componentSet.d.ts +3 -1
- package/lib/src/collections/componentSet.js +70 -88
- package/lib/src/collections/componentSet.js.map +1 -1
- package/lib/src/collections/index.js +1 -0
- package/lib/src/collections/index.js.map +1 -1
- package/lib/src/collections/lazyCollection.js +5 -1
- package/lib/src/collections/lazyCollection.js.map +1 -1
- package/lib/src/common/constants.js +1 -1
- package/lib/src/common/constants.js.map +1 -1
- package/lib/src/common/index.d.ts +1 -1
- package/lib/src/common/index.js +1 -0
- package/lib/src/common/index.js.map +1 -1
- package/lib/src/convert/convertContext.d.ts +8 -10
- package/lib/src/convert/convertContext.js +162 -197
- package/lib/src/convert/convertContext.js.map +1 -1
- package/lib/src/convert/index.js +1 -0
- package/lib/src/convert/index.js.map +1 -1
- package/lib/src/convert/metadataConverter.d.ts +2 -17
- package/lib/src/convert/metadataConverter.js +106 -111
- package/lib/src/convert/metadataConverter.js.map +1 -1
- package/lib/src/convert/streams.d.ts +4 -4
- package/lib/src/convert/streams.js +111 -147
- package/lib/src/convert/streams.js.map +1 -1
- package/lib/src/convert/transformers/baseMetadataTransformer.js.map +1 -1
- package/lib/src/convert/transformers/decomposedMetadataTransformer.d.ts +2 -1
- package/lib/src/convert/transformers/decomposedMetadataTransformer.js +125 -133
- package/lib/src/convert/transformers/decomposedMetadataTransformer.js.map +1 -1
- package/lib/src/convert/transformers/defaultMetadataTransformer.d.ts +1 -1
- package/lib/src/convert/transformers/defaultMetadataTransformer.js +11 -23
- package/lib/src/convert/transformers/defaultMetadataTransformer.js.map +1 -1
- package/lib/src/convert/transformers/index.js +1 -0
- package/lib/src/convert/transformers/index.js.map +1 -1
- package/lib/src/convert/transformers/metadataTransformerFactory.js +1 -1
- package/lib/src/convert/transformers/metadataTransformerFactory.js.map +1 -1
- package/lib/src/convert/transformers/nonDecomposedMetadataTransformer.d.ts +1 -1
- package/lib/src/convert/transformers/nonDecomposedMetadataTransformer.js +18 -29
- package/lib/src/convert/transformers/nonDecomposedMetadataTransformer.js.map +1 -1
- package/lib/src/convert/transformers/staticResourceMetadataTransformer.d.ts +1 -1
- package/lib/src/convert/transformers/staticResourceMetadataTransformer.js +78 -132
- package/lib/src/convert/transformers/staticResourceMetadataTransformer.js.map +1 -1
- package/lib/src/convert/types.d.ts +1 -1
- package/lib/src/errors/index.js.map +1 -1
- package/lib/src/i18n/i18n.js +3 -2
- package/lib/src/i18n/i18n.js.map +1 -1
- package/lib/src/i18n/index.js +3 -4
- package/lib/src/i18n/index.js.map +1 -1
- package/lib/src/i18n/localization.js +4 -4
- package/lib/src/i18n/localization.js.map +1 -1
- package/lib/src/index.js +1 -4
- package/lib/src/index.js.map +1 -1
- package/lib/src/registry/index.js +1 -4
- package/lib/src/registry/index.js.map +1 -1
- package/lib/src/registry/{registry.json → metadataRegistry.json} +0 -0
- package/lib/src/registry/nonSupportedTypes.js +5 -7
- package/lib/src/registry/nonSupportedTypes.js.map +1 -1
- package/lib/src/registry/registry.js +2 -2
- package/lib/src/registry/registry.js.map +1 -1
- package/lib/src/registry/registryAccess.d.ts +2 -0
- package/lib/src/registry/registryAccess.js +3 -1
- package/lib/src/registry/registryAccess.js.map +1 -1
- package/lib/src/registry/types.js +0 -35
- package/lib/src/registry/types.js.map +1 -1
- package/lib/src/resolve/adapters/baseSourceAdapter.d.ts +2 -2
- package/lib/src/resolve/adapters/baseSourceAdapter.js +20 -16
- package/lib/src/resolve/adapters/baseSourceAdapter.js.map +1 -1
- package/lib/src/resolve/adapters/bundleSourceAdapter.d.ts +1 -1
- package/lib/src/resolve/adapters/bundleSourceAdapter.js +0 -6
- package/lib/src/resolve/adapters/bundleSourceAdapter.js.map +1 -1
- package/lib/src/resolve/adapters/decomposedSourceAdapter.d.ts +1 -1
- package/lib/src/resolve/adapters/decomposedSourceAdapter.js +6 -13
- package/lib/src/resolve/adapters/decomposedSourceAdapter.js.map +1 -1
- package/lib/src/resolve/adapters/defaultSourceAdapter.d.ts +1 -1
- package/lib/src/resolve/adapters/defaultSourceAdapter.js +0 -6
- package/lib/src/resolve/adapters/defaultSourceAdapter.js.map +1 -1
- package/lib/src/resolve/adapters/index.js +1 -0
- package/lib/src/resolve/adapters/index.js.map +1 -1
- package/lib/src/resolve/adapters/matchingContentSourceAdapter.d.ts +1 -1
- package/lib/src/resolve/adapters/matchingContentSourceAdapter.js +2 -2
- package/lib/src/resolve/adapters/matchingContentSourceAdapter.js.map +1 -1
- package/lib/src/resolve/adapters/mixedContentSourceAdapter.d.ts +1 -1
- package/lib/src/resolve/adapters/mixedContentSourceAdapter.js +6 -6
- package/lib/src/resolve/adapters/mixedContentSourceAdapter.js.map +1 -1
- package/lib/src/resolve/adapters/sourceAdapterFactory.js +2 -2
- package/lib/src/resolve/adapters/sourceAdapterFactory.js.map +1 -1
- package/lib/src/resolve/forceIgnore.js +9 -14
- package/lib/src/resolve/forceIgnore.js.map +1 -1
- package/lib/src/resolve/index.d.ts +1 -1
- package/lib/src/resolve/index.js +1 -0
- package/lib/src/resolve/index.js.map +1 -1
- package/lib/src/resolve/manifestResolver.js +25 -36
- package/lib/src/resolve/manifestResolver.js.map +1 -1
- package/lib/src/resolve/metadataResolver.d.ts +6 -5
- package/lib/src/resolve/metadataResolver.js +18 -23
- package/lib/src/resolve/metadataResolver.js.map +1 -1
- package/lib/src/resolve/sourceComponent.d.ts +4 -4
- package/lib/src/resolve/sourceComponent.js +32 -44
- package/lib/src/resolve/sourceComponent.js.map +1 -1
- package/lib/src/resolve/treeContainers.d.ts +1 -1
- package/lib/src/resolve/treeContainers.js +21 -32
- package/lib/src/resolve/treeContainers.js.map +1 -1
- package/lib/src/resolve/types.d.ts +2 -2
- package/lib/src/utils/collections.js +1 -1
- package/lib/src/utils/collections.js.map +1 -1
- package/lib/src/utils/fileSystemHandler.js +1 -1
- package/lib/src/utils/fileSystemHandler.js.map +1 -1
- package/lib/src/utils/index.d.ts +1 -1
- package/lib/src/utils/index.js +1 -0
- package/lib/src/utils/index.js.map +1 -1
- package/lib/src/utils/metadata.js +1 -3
- package/lib/src/utils/metadata.js.map +1 -1
- package/lib/src/utils/path.d.ts +5 -1
- package/lib/src/utils/path.js +8 -4
- package/lib/src/utils/path.js.map +1 -1
- package/package.json +39 -34
package/CHANGELOG.md
CHANGED
|
@@ -2,12 +2,18 @@
|
|
|
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.0.
|
|
5
|
+
### [5.0.2](https://github.com/forcedotcom/source-deploy-retrieve/compare/v5.0.1...v5.0.2) (2021-10-28)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
6
9
|
|
|
10
|
+
* doesn't call Object.entries on undefined ([#484](https://github.com/forcedotcom/source-deploy-retrieve/issues/484)) ([089198e](https://github.com/forcedotcom/source-deploy-retrieve/commit/089198e7e1472724951765c2bca7be7003609b64))
|
|
11
|
+
|
|
12
|
+
### [5.0.1](https://github.com/forcedotcom/source-deploy-retrieve/compare/v5.0.0...v5.0.1) (2021-10-21)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
|
9
15
|
|
|
10
|
-
|
|
16
|
+
- migrate registry.json from fork ([#482](https://github.com/forcedotcom/source-deploy-retrieve/issues/482)) ([cad3700](https://github.com/forcedotcom/source-deploy-retrieve/commit/cad370037ef529a575723f89061d46b9503a1a60))
|
|
11
17
|
|
|
12
18
|
## [5.0.0](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.5.12...v5.0.0) (2021-10-21)
|
|
13
19
|
|
|
@@ -17,160 +23,139 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
17
23
|
|
|
18
24
|
### [4.5.10](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.5.9...v4.5.10) (2021-10-13)
|
|
19
25
|
|
|
20
|
-
|
|
21
26
|
### Bug Fixes
|
|
22
27
|
|
|
23
|
-
|
|
28
|
+
- use matching content file strategy ([#471](https://github.com/forcedotcom/source-deploy-retrieve/issues/471)) ([86b21d6](https://github.com/forcedotcom/source-deploy-retrieve/commit/86b21d69b913058f3b3fc641f6ef7ce9a0c2fe92))
|
|
24
29
|
|
|
25
30
|
### [4.5.9](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.5.8...v4.5.9) (2021-10-12)
|
|
26
31
|
|
|
27
|
-
|
|
28
32
|
### Bug Fixes
|
|
29
33
|
|
|
30
|
-
|
|
34
|
+
- bump api version to 53.0 ([#476](https://github.com/forcedotcom/source-deploy-retrieve/issues/476)) ([a62aac5](https://github.com/forcedotcom/source-deploy-retrieve/commit/a62aac52037e40f3bfbf0ff516054d8096ecbfed))
|
|
31
35
|
|
|
32
36
|
### [4.5.8](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.5.7...v4.5.8) (2021-10-12)
|
|
33
37
|
|
|
34
38
|
### [4.5.7](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.5.6...v4.5.7) (2021-10-11)
|
|
35
39
|
|
|
36
|
-
|
|
37
40
|
### Bug Fixes
|
|
38
41
|
|
|
39
|
-
|
|
42
|
+
- use parent xml to parse child ([#470](https://github.com/forcedotcom/source-deploy-retrieve/issues/470)) ([440d2be](https://github.com/forcedotcom/source-deploy-retrieve/commit/440d2beda3cdd8cc64137ac64d361e230d8f5e30))
|
|
40
43
|
|
|
41
44
|
### [4.5.6](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.5.5...v4.5.6) (2021-10-07)
|
|
42
45
|
|
|
43
46
|
### [4.5.5](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.5.4...v4.5.5) (2021-10-06)
|
|
44
47
|
|
|
45
|
-
|
|
46
48
|
### Bug Fixes
|
|
47
49
|
|
|
48
|
-
|
|
50
|
+
- replace fs with graceful-fs ([#468](https://github.com/forcedotcom/source-deploy-retrieve/issues/468)) ([2b5214c](https://github.com/forcedotcom/source-deploy-retrieve/commit/2b5214c655b94e009e18482f50f121c6217c5e24))
|
|
49
51
|
|
|
50
52
|
### [4.5.4](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.5.3...v4.5.4) (2021-10-06)
|
|
51
53
|
|
|
52
54
|
### [4.5.3](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.5.2...v4.5.3) (2021-10-06)
|
|
53
55
|
|
|
54
|
-
|
|
55
56
|
### Bug Fixes
|
|
56
57
|
|
|
57
|
-
|
|
58
|
+
- set correct status on file responses ([#465](https://github.com/forcedotcom/source-deploy-retrieve/issues/465)) ([3e95508](https://github.com/forcedotcom/source-deploy-retrieve/commit/3e9550846a0528f7c6c5ea02881003a87601fc1f))
|
|
58
59
|
|
|
59
60
|
### [4.5.2](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.5.1...v4.5.2) (2021-10-03)
|
|
60
61
|
|
|
61
|
-
|
|
62
62
|
### Bug Fixes
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
- support mixed wildcards and names in manifests ([#464](https://github.com/forcedotcom/source-deploy-retrieve/issues/464)) ([58e14ba](https://github.com/forcedotcom/source-deploy-retrieve/commit/58e14ba1b89ec6b63cfc748ef46d39d40ab8f348))
|
|
65
65
|
|
|
66
66
|
### [4.5.1](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.5.0...v4.5.1) (2021-09-30)
|
|
67
67
|
|
|
68
68
|
## [4.5.0](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.4.8...v4.5.0) (2021-09-30)
|
|
69
69
|
|
|
70
|
-
|
|
71
70
|
### Features
|
|
72
71
|
|
|
73
|
-
|
|
72
|
+
- support epb types ([#463](https://github.com/forcedotcom/source-deploy-retrieve/issues/463)) ([1963483](https://github.com/forcedotcom/source-deploy-retrieve/commit/1963483ca9795437cba09568f1bd0f29d33affd1))
|
|
74
73
|
|
|
75
74
|
### [4.4.8](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.4.7...v4.4.8) (2021-09-30)
|
|
76
75
|
|
|
77
|
-
|
|
78
76
|
### Bug Fixes
|
|
79
77
|
|
|
80
|
-
|
|
78
|
+
- resolve CustomFieldTranslations properly ([#461](https://github.com/forcedotcom/source-deploy-retrieve/issues/461)) ([cf764bb](https://github.com/forcedotcom/source-deploy-retrieve/commit/cf764bb9ce02844553e6374efa1d538e414ab697))
|
|
81
79
|
|
|
82
80
|
### [4.4.7](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.4.6...v4.4.7) (2021-09-28)
|
|
83
81
|
|
|
84
|
-
|
|
85
82
|
### Bug Fixes
|
|
86
83
|
|
|
87
|
-
|
|
84
|
+
- release sfdx-core update ([#462](https://github.com/forcedotcom/source-deploy-retrieve/issues/462)) ([ed44dff](https://github.com/forcedotcom/source-deploy-retrieve/commit/ed44dfff1757eb307f24fcbcdc1efa0e7f197ca7))
|
|
88
85
|
|
|
89
86
|
### [4.4.6](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.4.5...v4.4.6) (2021-09-24)
|
|
90
87
|
|
|
91
|
-
|
|
92
88
|
### Bug Fixes
|
|
93
89
|
|
|
94
|
-
|
|
90
|
+
- resolve folderContentTypes in mdapi format for windows ([#457](https://github.com/forcedotcom/source-deploy-retrieve/issues/457)) ([25fbec5](https://github.com/forcedotcom/source-deploy-retrieve/commit/25fbec55720e7bab39a9e7e4f0368f44882c15de))
|
|
95
91
|
|
|
96
92
|
### [4.4.5](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.4.4...v4.4.5) (2021-09-23)
|
|
97
93
|
|
|
98
|
-
|
|
99
94
|
### Bug Fixes
|
|
100
95
|
|
|
101
|
-
|
|
96
|
+
- adds support for nested InFolder metadata types ([#455](https://github.com/forcedotcom/source-deploy-retrieve/issues/455)) ([b2b90a7](https://github.com/forcedotcom/source-deploy-retrieve/commit/b2b90a7093a60d264776b663f6280ba3a101c237))
|
|
102
97
|
|
|
103
98
|
### [4.4.4](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.4.3...v4.4.4) (2021-09-20)
|
|
104
99
|
|
|
105
|
-
|
|
106
100
|
### Bug Fixes
|
|
107
101
|
|
|
108
|
-
|
|
102
|
+
- remove XML_NS_KEY from children when written in metadata format ([#451](https://github.com/forcedotcom/source-deploy-retrieve/issues/451)) ([991ba16](https://github.com/forcedotcom/source-deploy-retrieve/commit/991ba161be918c4475381b657d768d8a88a32521))
|
|
109
103
|
|
|
110
104
|
### [4.4.3](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.4.2...v4.4.3) (2021-09-16)
|
|
111
105
|
|
|
112
|
-
|
|
113
106
|
### Bug Fixes
|
|
114
107
|
|
|
115
|
-
|
|
108
|
+
- better support for non-nested inFolder types ([#452](https://github.com/forcedotcom/source-deploy-retrieve/issues/452)) ([f1237cb](https://github.com/forcedotcom/source-deploy-retrieve/commit/f1237cb887f1a24d121aadac9e5cf5f059d5203f))
|
|
116
109
|
|
|
117
110
|
### [4.4.2](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.4.1...v4.4.2) (2021-09-16)
|
|
118
111
|
|
|
119
|
-
|
|
120
112
|
### Bug Fixes
|
|
121
113
|
|
|
122
|
-
|
|
114
|
+
- **registry.json:** registry update for ManagedTopics ([#453](https://github.com/forcedotcom/source-deploy-retrieve/issues/453)) ([70f7ca8](https://github.com/forcedotcom/source-deploy-retrieve/commit/70f7ca82491b900836216bad86e99cc976044635))
|
|
123
115
|
|
|
124
116
|
### [4.4.1](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.4.0...v4.4.1) (2021-09-09)
|
|
125
117
|
|
|
126
|
-
|
|
127
118
|
### Bug Fixes
|
|
128
119
|
|
|
129
|
-
|
|
120
|
+
- fix functions to function suffix ([#449](https://github.com/forcedotcom/source-deploy-retrieve/issues/449)) ([7c2ba22](https://github.com/forcedotcom/source-deploy-retrieve/commit/7c2ba22cd47c89e11a480d7b9d8ac7c909283427))
|
|
130
121
|
|
|
131
122
|
## [4.4.0](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.3.5...v4.4.0) (2021-09-09)
|
|
132
123
|
|
|
133
|
-
|
|
134
124
|
### Features
|
|
135
125
|
|
|
136
|
-
|
|
137
|
-
|
|
126
|
+
- add required child type entries to manifest ([#446](https://github.com/forcedotcom/source-deploy-retrieve/issues/446)) ([c99198b](https://github.com/forcedotcom/source-deploy-retrieve/commit/c99198b37cd752f10b7c12e72ccf1304464cfccf))
|
|
138
127
|
|
|
139
128
|
### Bug Fixes
|
|
140
129
|
|
|
141
|
-
|
|
130
|
+
- node 16 error parsing issue ([#448](https://github.com/forcedotcom/source-deploy-retrieve/issues/448)) ([54e1fdd](https://github.com/forcedotcom/source-deploy-retrieve/commit/54e1fddc5fb26675aad69c27036b9cb7ac7e978c))
|
|
142
131
|
|
|
143
132
|
### [4.3.5](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.3.4...v4.3.5) (2021-09-02)
|
|
144
133
|
|
|
145
|
-
|
|
146
134
|
### Bug Fixes
|
|
147
135
|
|
|
148
|
-
|
|
136
|
+
- force RestrictionRule to a strict directory ([#447](https://github.com/forcedotcom/source-deploy-retrieve/issues/447)) ([00b5315](https://github.com/forcedotcom/source-deploy-retrieve/commit/00b531559774036df5d45baf1d0da9e83c3262e9))
|
|
149
137
|
|
|
150
138
|
### [4.3.4](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.3.3...v4.3.4) (2021-09-02)
|
|
151
139
|
|
|
152
140
|
### [4.3.3](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.3.2...v4.3.3) (2021-08-31)
|
|
153
141
|
|
|
154
|
-
|
|
155
142
|
### Bug Fixes
|
|
156
143
|
|
|
157
|
-
|
|
144
|
+
- Wr/aura under object main ([#443](https://github.com/forcedotcom/source-deploy-retrieve/issues/443)) ([cc5e471](https://github.com/forcedotcom/source-deploy-retrieve/commit/cc5e471b347ca1c2ed764de9c1db21d29d7af01e))
|
|
158
145
|
|
|
159
146
|
### [4.3.2](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.3.1...v4.3.2) (2021-08-26)
|
|
160
147
|
|
|
161
148
|
### [4.3.1](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.3.0...v4.3.1) (2021-08-25)
|
|
162
149
|
|
|
163
|
-
|
|
164
150
|
### Bug Fixes
|
|
165
151
|
|
|
166
|
-
|
|
152
|
+
- add children to manifest during convert ([#442](https://github.com/forcedotcom/source-deploy-retrieve/issues/442)) ([3017e9d](https://github.com/forcedotcom/source-deploy-retrieve/commit/3017e9d45c6f0bbbb9adefaa455ce9775128e2bf))
|
|
167
153
|
|
|
168
154
|
## [4.3.0](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.2.0...v4.3.0) (2021-08-25)
|
|
169
155
|
|
|
170
|
-
|
|
171
156
|
### Features
|
|
172
157
|
|
|
173
|
-
|
|
158
|
+
- add InboundCertificate to metadata registry ([#441](https://github.com/forcedotcom/source-deploy-retrieve/issues/441)) ([d833485](https://github.com/forcedotcom/source-deploy-retrieve/commit/d833485b5e9aeebfb9dd5baf89fab95f4e6032d8))
|
|
174
159
|
|
|
175
160
|
## [4.2.0](https://github.com/forcedotcom/source-deploy-retrieve/compare/v4.1.1...v4.2.0) (2021-08-25)
|
|
176
161
|
|
|
@@ -390,7 +375,7 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
390
375
|
|
|
391
376
|
- Fix for recompostion failure when the parent xml did not exist ([PR #245](https://github.com/forcedotcom/source-deploy-retrieve/pull/245))
|
|
392
377
|
|
|
393
|
-
- Fix conversion failure to source format for StaticResource component with `octet-stream` content type
|
|
378
|
+
- Fix conversion failure to source format for StaticResource component with `octet-stream` content type ([PR #244](https://github.com/forcedotcom/source-deploy-retrieve/pull/244))
|
|
394
379
|
|
|
395
380
|
- Fix timeout during metadata api deploy and retrieve operations ([PR #236](https://github.com/forcedotcom/source-deploy-retrieve/pull/236))
|
|
396
381
|
|
|
@@ -413,11 +398,13 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
413
398
|
- Fix issue setting up connection when deploying or retrieving ComponentSet ([PR #226](https://github.com/forcedotcom/source-deploy-retrieve/pull/226))
|
|
414
399
|
|
|
415
400
|
# 1.1.14 - December 7, 2020
|
|
401
|
+
|
|
416
402
|
## Fixed
|
|
417
403
|
|
|
418
404
|
- Fix issue with deploying individual child components ([#220](https://github.com/forcedotcom/source-deploy-retrieve/pull/220))
|
|
419
405
|
|
|
420
406
|
# 1.1.13 - December 3, 2020
|
|
407
|
+
|
|
421
408
|
## Fixed
|
|
422
409
|
|
|
423
410
|
- Add non-source components when initializing ComponentSets with resolve option ([#217](https://github.com/forcedotcom/source-deploy-retrieve/pull/217))
|
|
@@ -458,7 +445,7 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
458
445
|
|
|
459
446
|
## Added
|
|
460
447
|
|
|
461
|
-
- Move `RegistryAccess` functionality to new
|
|
448
|
+
- Move `RegistryAccess` functionality to new `MetadataResolver` class ([PR #194](https://github.com/forcedotcom/source-deploy-retrieve/pull/194), [PR #199](https://github.com/forcedotcom/source-deploy-retrieve/pull/199))
|
|
462
449
|
|
|
463
450
|
# 1.1.9 - October 28, 2020
|
|
464
451
|
|
package/LICENSE.txt
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Copyright (c) 2018, Salesforce.com, Inc.
|
|
2
|
+
All rights reserved.
|
|
3
|
+
|
|
4
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
5
|
+
|
|
6
|
+
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
7
|
+
|
|
8
|
+
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
9
|
+
|
|
10
|
+
* Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
11
|
+
|
|
12
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ A JavaScript toolkit for working with Salesforce metadata. Built to support the
|
|
|
16
16
|
- Convert source files between [SFDX File Formats](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_source_file_format.htm)
|
|
17
17
|
- Generate metadata packages with the option to automatically create a zip file
|
|
18
18
|
- Deploy and retrieve metadata with an org
|
|
19
|
-
- An [index](./src/registry/
|
|
19
|
+
- An [index](./src/registry/metadataRegistry.json) to reference available metadata types.
|
|
20
20
|
- Utilize promises with `async/await` syntax
|
|
21
21
|
|
|
22
22
|
## Usage
|
|
@@ -69,4 +69,4 @@ See [developing.md](./contributing/developing.md) for details on building and te
|
|
|
69
69
|
|
|
70
70
|
## Publishing
|
|
71
71
|
|
|
72
|
-
SDR publishes when changes are merged into `main`.
|
|
72
|
+
SDR publishes when changes are merged into `main`. The version is bumped per the rules of the release orb and [standard-version](https://github.com/conventional-changelog/standard-version).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComponentDeployment, SourceDeployResult
|
|
2
|
-
import { BaseDeploy } from './baseDeploy';
|
|
1
|
+
import { AuraDefinition, ComponentDeployment, SourceDeployResult } from '../types';
|
|
3
2
|
import { SourceComponent } from '../../resolve';
|
|
3
|
+
import { BaseDeploy } from './baseDeploy';
|
|
4
4
|
export declare class AuraDeploy extends BaseDeploy {
|
|
5
5
|
private static readonly AURA_DEF_TYPES;
|
|
6
6
|
deploy(component: SourceComponent, namespace: string): Promise<SourceDeployResult>;
|
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.AuraDeploy = void 0;
|
|
13
4
|
/*
|
|
@@ -20,110 +11,111 @@ const graceful_fs_1 = require("graceful-fs");
|
|
|
20
11
|
const utils_1 = require("../../utils");
|
|
21
12
|
const types_1 = require("../types");
|
|
22
13
|
const toolingApi_1 = require("../toolingApi");
|
|
23
|
-
const baseDeploy_1 = require("./baseDeploy");
|
|
24
14
|
const diagnosticUtil_1 = require("../diagnosticUtil");
|
|
15
|
+
const baseDeploy_1 = require("./baseDeploy");
|
|
25
16
|
class AuraDeploy extends baseDeploy_1.BaseDeploy {
|
|
26
|
-
deploy(component, namespace) {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
status
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
17
|
+
async deploy(component, namespace) {
|
|
18
|
+
this.component = component;
|
|
19
|
+
this.namespace = namespace;
|
|
20
|
+
const auraDefinitions = await this.buildDefList();
|
|
21
|
+
const componentDeployment = await this.upsert(auraDefinitions);
|
|
22
|
+
let status = "Completed" /* Completed */;
|
|
23
|
+
if (componentDeployment.diagnostics.length > 0) {
|
|
24
|
+
status =
|
|
25
|
+
componentDeployment.status !== types_1.ComponentStatus.Failed
|
|
26
|
+
? "CompletedPartial" /* CompletedPartial */
|
|
27
|
+
: "Failed" /* Failed */;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
id: undefined,
|
|
31
|
+
status,
|
|
32
|
+
success: status === "Completed" /* Completed */,
|
|
33
|
+
components: [componentDeployment],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
async buildDefList() {
|
|
37
|
+
const sourceFiles = this.component.walkContent();
|
|
38
|
+
const auraDefinitions = [];
|
|
39
|
+
const existingDefinitions = await this.findAuraDefinitions();
|
|
40
|
+
const auraBundle = existingDefinitions[0]
|
|
41
|
+
? await this.upsertBundle(existingDefinitions[0].AuraDefinitionBundleId)
|
|
42
|
+
: await this.upsertBundle();
|
|
43
|
+
const bundleId = auraBundle.id;
|
|
44
|
+
sourceFiles.forEach((sourceFile) => {
|
|
45
|
+
const source = (0, graceful_fs_1.readFileSync)(sourceFile, 'utf8');
|
|
46
|
+
const suffix = (0, utils_1.extName)(sourceFile);
|
|
47
|
+
const defType = this.getAuraDefType(sourceFile, suffix);
|
|
48
|
+
const format = this.getAuraFormat(suffix);
|
|
49
|
+
let match;
|
|
50
|
+
if (existingDefinitions.length > 0) {
|
|
51
|
+
match = existingDefinitions.find((definition) => definition.DefType === defType);
|
|
38
52
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
53
|
+
// If definition exists in org, assign the matching Id
|
|
54
|
+
// else, assign the id of the bundle it's associated with
|
|
55
|
+
const auraDef = {
|
|
56
|
+
FilePath: sourceFile,
|
|
57
|
+
DefType: defType,
|
|
58
|
+
Source: source,
|
|
59
|
+
Format: format,
|
|
60
|
+
...(match ? { Id: match.Id } : { AuraDefinitionBundleId: bundleId }),
|
|
44
61
|
};
|
|
62
|
+
// This is to ensure we return the correct project path when reporting errors
|
|
63
|
+
// must be the file associated with the specified aura type
|
|
64
|
+
// eslint-disable-next-line no-unused-expressions
|
|
65
|
+
AuraDeploy.AURA_DEF_TYPES.includes(auraDef.DefType)
|
|
66
|
+
? auraDefinitions.unshift(auraDef)
|
|
67
|
+
: auraDefinitions.push(auraDef);
|
|
45
68
|
});
|
|
69
|
+
return auraDefinitions;
|
|
46
70
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
71
|
+
async upsert(auraDefinitions) {
|
|
72
|
+
const type = this.component.type.name;
|
|
73
|
+
const diagnosticUtil = new diagnosticUtil_1.DiagnosticUtil('tooling');
|
|
74
|
+
const deployment = {
|
|
75
|
+
status: types_1.ComponentStatus.Unchanged,
|
|
76
|
+
component: this.component,
|
|
77
|
+
diagnostics: [],
|
|
78
|
+
};
|
|
79
|
+
let partialSuccess = false;
|
|
80
|
+
let allCreate = true;
|
|
81
|
+
const deployPromises = auraDefinitions.map(async (definition) => {
|
|
82
|
+
try {
|
|
83
|
+
if (definition.Id) {
|
|
84
|
+
const formattedDef = {
|
|
85
|
+
Source: definition.Source,
|
|
86
|
+
Id: definition.Id,
|
|
87
|
+
};
|
|
88
|
+
await this.connection.tooling.update(toolingApi_1.deployTypes.get(type), formattedDef);
|
|
89
|
+
allCreate = false;
|
|
90
|
+
partialSuccess = true;
|
|
64
91
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
return auraDefinitions;
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
upsert(auraDefinitions) {
|
|
78
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
79
|
-
const type = this.component.type.name;
|
|
80
|
-
const diagnosticUtil = new diagnosticUtil_1.DiagnosticUtil('tooling');
|
|
81
|
-
const deployment = {
|
|
82
|
-
status: types_1.ComponentStatus.Unchanged,
|
|
83
|
-
component: this.component,
|
|
84
|
-
diagnostics: [],
|
|
85
|
-
};
|
|
86
|
-
let partialSuccess = false;
|
|
87
|
-
let allCreate = true;
|
|
88
|
-
const deployPromises = auraDefinitions.map((definition) => __awaiter(this, void 0, void 0, function* () {
|
|
89
|
-
try {
|
|
90
|
-
if (definition.Id) {
|
|
91
|
-
const formattedDef = {
|
|
92
|
-
Source: definition.Source,
|
|
93
|
-
Id: definition.Id,
|
|
94
|
-
};
|
|
95
|
-
yield this.connection.tooling.update(toolingApi_1.deployTypes.get(type), formattedDef);
|
|
96
|
-
allCreate = false;
|
|
97
|
-
partialSuccess = true;
|
|
98
|
-
}
|
|
99
|
-
else {
|
|
100
|
-
const formattedDef = {
|
|
101
|
-
AuraDefinitionBundleId: definition.AuraDefinitionBundleId,
|
|
102
|
-
DefType: definition.DefType,
|
|
103
|
-
Format: definition.Format,
|
|
104
|
-
Source: definition.Source,
|
|
105
|
-
};
|
|
106
|
-
yield this.toolingCreate(toolingApi_1.deployTypes.get(type), formattedDef);
|
|
107
|
-
partialSuccess = true;
|
|
108
|
-
}
|
|
92
|
+
else {
|
|
93
|
+
const formattedDef = {
|
|
94
|
+
AuraDefinitionBundleId: definition.AuraDefinitionBundleId,
|
|
95
|
+
DefType: definition.DefType,
|
|
96
|
+
Format: definition.Format,
|
|
97
|
+
Source: definition.Source,
|
|
98
|
+
};
|
|
99
|
+
await this.toolingCreate(toolingApi_1.deployTypes.get(type), formattedDef);
|
|
100
|
+
partialSuccess = true;
|
|
109
101
|
}
|
|
110
|
-
catch (e) {
|
|
111
|
-
const diagnostic = diagnosticUtil.parseDeployDiagnostic(this.component, e.message);
|
|
112
|
-
deployment.diagnostics.push(diagnostic);
|
|
113
|
-
}
|
|
114
|
-
}));
|
|
115
|
-
yield Promise.all(deployPromises);
|
|
116
|
-
if (deployment.diagnostics.length > 0) {
|
|
117
|
-
deployment.status = partialSuccess ? types_1.ComponentStatus.Changed : types_1.ComponentStatus.Failed;
|
|
118
|
-
}
|
|
119
|
-
else if (allCreate) {
|
|
120
|
-
deployment.status = types_1.ComponentStatus.Created;
|
|
121
102
|
}
|
|
122
|
-
|
|
123
|
-
|
|
103
|
+
catch (e) {
|
|
104
|
+
const diagnostic = diagnosticUtil.parseDeployDiagnostic(this.component, e.message);
|
|
105
|
+
deployment.diagnostics.push(diagnostic);
|
|
124
106
|
}
|
|
125
|
-
return deployment;
|
|
126
107
|
});
|
|
108
|
+
await Promise.all(deployPromises);
|
|
109
|
+
if (deployment.diagnostics.length > 0) {
|
|
110
|
+
deployment.status = partialSuccess ? types_1.ComponentStatus.Changed : types_1.ComponentStatus.Failed;
|
|
111
|
+
}
|
|
112
|
+
else if (allCreate) {
|
|
113
|
+
deployment.status = types_1.ComponentStatus.Created;
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
deployment.status = types_1.ComponentStatus.Changed;
|
|
117
|
+
}
|
|
118
|
+
return deployment;
|
|
127
119
|
}
|
|
128
120
|
getAuraFormat(suffix) {
|
|
129
121
|
switch (suffix) {
|
|
@@ -138,7 +130,7 @@ class AuraDeploy extends baseDeploy_1.BaseDeploy {
|
|
|
138
130
|
}
|
|
139
131
|
}
|
|
140
132
|
getAuraDefType(sourcePath, suffix) {
|
|
141
|
-
const fileName = utils_1.baseName(sourcePath);
|
|
133
|
+
const fileName = (0, utils_1.baseName)(sourcePath);
|
|
142
134
|
switch (suffix) {
|
|
143
135
|
case 'app':
|
|
144
136
|
return 'APPLICATION';
|
|
@@ -173,11 +165,9 @@ class AuraDeploy extends baseDeploy_1.BaseDeploy {
|
|
|
173
165
|
return '';
|
|
174
166
|
}
|
|
175
167
|
}
|
|
176
|
-
findAuraDefinitions() {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
return auraDefResult.records;
|
|
180
|
-
});
|
|
168
|
+
async findAuraDefinitions() {
|
|
169
|
+
const auraDefResult = await this.connection.tooling.query(`Select AuraDefinitionBundleId, Id, Format, Source, DefType from AuraDefinition where AuraDefinitionBundle.DeveloperName = '${this.component.fullName}' and AuraDefinitionBundle.NamespacePrefix = '${this.namespace}'`);
|
|
170
|
+
return auraDefResult.records;
|
|
181
171
|
}
|
|
182
172
|
}
|
|
183
173
|
exports.AuraDeploy = AuraDeploy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auraDeploy.js","sourceRoot":"","sources":["../../../../src/client/deployStrategies/auraDeploy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"auraDeploy.js","sourceRoot":"","sources":["../../../../src/client/deployStrategies/auraDeploy.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,6CAA2C;AAC3C,uCAAgD;AAEhD,oCAMkB;AAClB,8CAA4C;AAE5C,sDAAmD;AACnD,6CAA0C;AAE1C,MAAa,UAAW,SAAQ,uBAAU;IAGjC,KAAK,CAAC,MAAM,CAAC,SAA0B,EAAE,SAAiB;QAC/D,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,YAAY,EAAE,CAAC;QAClD,MAAM,mBAA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,UAAU,CAAC,OAAO,CAAC,KAAK,CACvD,8HAA8H,IAAI,CAAC,SAAS,CAAC,QAAQ,iDAAiD,IAAI,CAAC,SAAS,GAAG,CACxN,CAAC;QACF,OAAO,aAAa,CAAC,OAA2B,CAAC;IACnD,CAAC;;AAxKH,gCAyKC;AAxKyB,yBAAc,GAAG,CAAC,aAAa,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC"}
|
|
@@ -14,7 +14,7 @@ export declare abstract class BaseDeploy {
|
|
|
14
14
|
apiVersion: string;
|
|
15
15
|
};
|
|
16
16
|
upsertBundle(Id?: string): Promise<ToolingCreateResult>;
|
|
17
|
-
protected toolingCreate(type: string, record:
|
|
17
|
+
protected toolingCreate(type: string, record: Record<string, unknown>): Promise<ToolingCreateResult>;
|
|
18
18
|
protected getFormattedPaths(filepath: string): string[];
|
|
19
19
|
abstract deploy(component: SourceComponent, namespace: string): Promise<SourceDeployResult>;
|
|
20
20
|
}
|