sfdx-git-delta 7.3.0 → 7.4.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/README.md +23 -4
- package/lib/adapter/GitAdapter.d.ts +9 -4
- package/lib/adapter/GitAdapter.js +147 -52
- package/lib/adapter/GitAdapter.js.map +1 -1
- package/lib/adapter/pathMatching.d.ts +2 -1
- package/lib/adapter/pathMatching.js +35 -3
- package/lib/adapter/pathMatching.js.map +1 -1
- package/lib/adapter/treeReader.d.ts +1 -0
- package/lib/adapter/treeReader.js +10 -0
- package/lib/adapter/treeReader.js.map +1 -1
- package/lib/adapter/tsgitErrorMap.d.ts +6 -3
- package/lib/adapter/tsgitErrorMap.js +55 -16
- package/lib/adapter/tsgitErrorMap.js.map +1 -1
- package/lib/constant/metadataConstants.d.ts +9 -1
- package/lib/constant/metadataConstants.js +17 -3
- package/lib/constant/metadataConstants.js.map +1 -1
- package/lib/main.js +66 -63
- package/lib/main.js.map +1 -1
- package/lib/metadata/MetadataRepositoryImpl.d.ts +14 -2
- package/lib/metadata/MetadataRepositoryImpl.js +192 -50
- package/lib/metadata/MetadataRepositoryImpl.js.map +1 -1
- package/lib/post-processor/includeProcessor.js +8 -9
- package/lib/post-processor/includeProcessor.js.map +1 -1
- package/lib/service/botHandler.js +1 -1
- package/lib/service/botHandler.js.map +1 -1
- package/lib/service/inBundleHandler.js +10 -23
- package/lib/service/inBundleHandler.js.map +1 -1
- package/lib/service/inFolderHandler.js +1 -2
- package/lib/service/inFolderHandler.js.map +1 -1
- package/lib/service/objectTranslationHandler.d.ts +0 -1
- package/lib/service/objectTranslationHandler.js +11 -4
- package/lib/service/objectTranslationHandler.js.map +1 -1
- package/lib/types/runContext.d.ts +16 -5
- package/lib/types/runContext.js +17 -5
- package/lib/types/runContext.js.map +1 -1
- package/lib/utils/__mocks__/LoggingService.d.ts +2 -7
- package/lib/utils/__mocks__/LoggingService.js.map +1 -1
- package/lib/utils/changeSet.d.ts +1 -0
- package/lib/utils/changeSet.js +26 -1
- package/lib/utils/changeSet.js.map +1 -1
- package/lib/utils/configValidator.d.ts +14 -1
- package/lib/utils/configValidator.js +144 -72
- package/lib/utils/configValidator.js.map +1 -1
- package/lib/utils/errorUtils.d.ts +8 -0
- package/lib/utils/errorUtils.js +14 -0
- package/lib/utils/errorUtils.js.map +1 -1
- package/lib/utils/messageSanitizer.d.ts +1 -0
- package/lib/utils/messageSanitizer.js +46 -0
- package/lib/utils/messageSanitizer.js.map +1 -1
- package/lib/utils/metadataDiff/xmlEventReader.js +1 -1
- package/lib/utils/metadataDiff/xmlEventReader.js.map +1 -1
- package/lib/utils/repoGitDiff.d.ts +17 -2
- package/lib/utils/repoGitDiff.js +93 -12
- package/lib/utils/repoGitDiff.js.map +1 -1
- package/lib/utils/treeIndexScope.js +5 -14
- package/lib/utils/treeIndexScope.js.map +1 -1
- package/lib/utils/treeReaderBuilder.d.ts +8 -0
- package/lib/utils/treeReaderBuilder.js +34 -0
- package/lib/utils/treeReaderBuilder.js.map +1 -0
- package/lib/utils/txmlAdapter.js +1 -1
- package/lib/utils/txmlAdapter.js.map +1 -1
- package/messages/delta.md +16 -5
- package/oclif.manifest.json +1 -1
- package/package.json +105 -49
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sfdx-git-delta",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.4.1",
|
|
4
4
|
"description": "Generate the sfdx content in source format and destructive change from two git commits",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"salesforce",
|
|
@@ -48,38 +48,37 @@
|
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@oclif/core": "
|
|
52
|
-
"@salesforce/core": "9.1.
|
|
53
|
-
"@salesforce/sf-plugins-core": "13.0.
|
|
54
|
-
"@salesforce/source-deploy-retrieve": "13.
|
|
55
|
-
"@scolladon/tsgit": "
|
|
56
|
-
"ignore": "7.0.
|
|
57
|
-
"txml": "6.0.
|
|
58
|
-
"zod": "4.
|
|
51
|
+
"@oclif/core": "5.0.0",
|
|
52
|
+
"@salesforce/core": "9.1.11",
|
|
53
|
+
"@salesforce/sf-plugins-core": "13.0.4",
|
|
54
|
+
"@salesforce/source-deploy-retrieve": "13.3.2",
|
|
55
|
+
"@scolladon/tsgit": "4.0.0",
|
|
56
|
+
"ignore": "7.0.9",
|
|
57
|
+
"txml": "6.0.3",
|
|
58
|
+
"zod": "4.6.5"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@biomejs/biome": "2.5.
|
|
61
|
+
"@biomejs/biome": "2.5.13",
|
|
62
62
|
"@commitlint/cli": "21.2.2",
|
|
63
63
|
"@commitlint/config-conventional": "21.2.2",
|
|
64
64
|
"@ls-lint/ls-lint": "2.3.1",
|
|
65
|
-
"@oclif/plugin-help": "
|
|
65
|
+
"@oclif/plugin-help": "7.0.0",
|
|
66
66
|
"@salesforce/cli-plugins-testkit": "5.3.66",
|
|
67
67
|
"@salesforce/dev-config": "4.3.3",
|
|
68
68
|
"@stryker-mutator/core": "10.0.0",
|
|
69
69
|
"@stryker-mutator/vitest-runner": "10.0.0",
|
|
70
|
-
"@types/node": "26.
|
|
71
|
-
"@vitest/coverage-v8": "
|
|
70
|
+
"@types/node": "26.5.1",
|
|
71
|
+
"@vitest/coverage-v8": "5.0.0",
|
|
72
72
|
"husky": "9.1.7",
|
|
73
|
-
"knip": "6.
|
|
74
|
-
"lint-staged": "17.
|
|
73
|
+
"knip": "6.35.1",
|
|
74
|
+
"lint-staged": "17.5.1",
|
|
75
75
|
"ls-engines": "0.10.1",
|
|
76
|
-
"oclif": "
|
|
76
|
+
"oclif": "6.0.0",
|
|
77
77
|
"pkg-pr-new": "0.0.88",
|
|
78
78
|
"shx": "0.4.0",
|
|
79
|
-
"ts-node": "10.9.2",
|
|
80
79
|
"typescript": "7.0.2",
|
|
81
80
|
"validate-branch-name": "1.3.2",
|
|
82
|
-
"vitest": "
|
|
81
|
+
"vitest": "5.0.0",
|
|
83
82
|
"wireit": "0.14.13"
|
|
84
83
|
},
|
|
85
84
|
"overrides": {
|
|
@@ -103,13 +102,14 @@
|
|
|
103
102
|
"lint:dependencies": "wireit",
|
|
104
103
|
"lint:engine": "wireit",
|
|
105
104
|
"lint:fs": "wireit",
|
|
105
|
+
"lint:types": "wireit",
|
|
106
106
|
"lint": "wireit",
|
|
107
107
|
"lint:fix": "wireit",
|
|
108
108
|
"postpack": "shx rm -f oclif.manifest.json && shx sed -i 'blob/v[^/]*/' 'blob/main/' README.md",
|
|
109
109
|
"prepack": "wireit",
|
|
110
110
|
"prepare": "husky",
|
|
111
111
|
"preview:publish": "pkg-pr-new publish --comment=off",
|
|
112
|
-
"sync:registry": "
|
|
112
|
+
"sync:registry": "node tooling/syncInternalRegistryWithSdr.ts",
|
|
113
113
|
"test:build": "wireit",
|
|
114
114
|
"test:functional": "wireit",
|
|
115
115
|
"test:integration": "wireit",
|
|
@@ -130,7 +130,9 @@
|
|
|
130
130
|
"build": {
|
|
131
131
|
"command": "tsc -p . --incremental",
|
|
132
132
|
"files": [
|
|
133
|
-
"
|
|
133
|
+
"tsconfig.json",
|
|
134
|
+
"__tests__/tsconfig.json",
|
|
135
|
+
"tooling/tsconfig.json",
|
|
134
136
|
"messages/**",
|
|
135
137
|
"src/**/*.json",
|
|
136
138
|
"src/**/*.ts"
|
|
@@ -142,14 +144,13 @@
|
|
|
142
144
|
"clean": "if-file-deleted"
|
|
143
145
|
},
|
|
144
146
|
"clean": {
|
|
145
|
-
"command": "shx rm -rf 'reports/*' oclif.manifest.json package.tgz 'sfdx-git-delta-*.tgz' 'stderr*.txt' 'stdout*.txt' '.stryker-tmp/*' perf-result.txt perf-
|
|
147
|
+
"command": "shx rm -rf 'reports/*' oclif.manifest.json package.tgz 'sfdx-git-delta-*.tgz' 'stderr*.txt' 'stdout*.txt' '.stryker-tmp/*' perf-result.txt perf-runtime.json perf-memory.json perf-preview.html",
|
|
146
148
|
"files": [
|
|
147
149
|
".stryker-tmp/*",
|
|
148
150
|
"lib",
|
|
149
151
|
"oclif.manifest.json",
|
|
150
152
|
"package.tgz",
|
|
151
153
|
"perf-result.txt",
|
|
152
|
-
"perf-raw.json",
|
|
153
154
|
"perf-runtime.json",
|
|
154
155
|
"perf-memory.json",
|
|
155
156
|
"perf-preview.html",
|
|
@@ -176,27 +177,33 @@
|
|
|
176
177
|
]
|
|
177
178
|
},
|
|
178
179
|
"lint": {
|
|
179
|
-
"command": "npx @biomejs/biome check --error-on-warnings src __tests__ messages",
|
|
180
|
+
"command": "npx @biomejs/biome check --error-on-warnings tooling src __tests__ messages",
|
|
180
181
|
"files": [
|
|
182
|
+
"tooling/**",
|
|
181
183
|
"src/**",
|
|
182
184
|
"__tests__/**/*.ts",
|
|
183
185
|
"messages/**",
|
|
184
186
|
"**/biome.json",
|
|
185
|
-
"
|
|
187
|
+
"tsconfig.json",
|
|
188
|
+
"__tests__/tsconfig.json",
|
|
189
|
+
"tooling/tsconfig.json"
|
|
186
190
|
],
|
|
187
191
|
"output": [],
|
|
188
192
|
"dependencies": [
|
|
189
|
-
"lint:fs"
|
|
193
|
+
"lint:fs",
|
|
194
|
+
"lint:types"
|
|
190
195
|
]
|
|
191
196
|
},
|
|
192
197
|
"lint:fix": {
|
|
193
|
-
"command": "npx @biomejs/biome check --fix --unsafe src __tests__ messages",
|
|
198
|
+
"command": "npx @biomejs/biome check --fix --unsafe tooling src __tests__ messages",
|
|
194
199
|
"files": [
|
|
195
200
|
"src/**",
|
|
196
201
|
"__tests__/**/*.ts",
|
|
197
202
|
"messages/**",
|
|
198
203
|
"**/biome.json",
|
|
199
|
-
"
|
|
204
|
+
"tsconfig.json",
|
|
205
|
+
"__tests__/tsconfig.json",
|
|
206
|
+
"tooling/tsconfig.json"
|
|
200
207
|
],
|
|
201
208
|
"output": [],
|
|
202
209
|
"dependencies": [
|
|
@@ -209,7 +216,9 @@
|
|
|
209
216
|
"src/**/*.ts",
|
|
210
217
|
"__tests__/**/*.ts",
|
|
211
218
|
"messages/**",
|
|
212
|
-
"
|
|
219
|
+
"tsconfig.json",
|
|
220
|
+
"__tests__/tsconfig.json",
|
|
221
|
+
"tooling/tsconfig.json",
|
|
213
222
|
"knip.config.ts"
|
|
214
223
|
],
|
|
215
224
|
"output": [],
|
|
@@ -235,6 +244,21 @@
|
|
|
235
244
|
],
|
|
236
245
|
"output": []
|
|
237
246
|
},
|
|
247
|
+
"lint:types": {
|
|
248
|
+
"command": "tsc -p tooling && tsc -p __tests__",
|
|
249
|
+
"files": [
|
|
250
|
+
"tooling/**",
|
|
251
|
+
"src/**/*.ts",
|
|
252
|
+
"__tests__/**/*.ts",
|
|
253
|
+
"stryker.conf.mjs",
|
|
254
|
+
"tsconfig.json",
|
|
255
|
+
"__tests__/tsconfig.json",
|
|
256
|
+
"tooling/tsconfig.json",
|
|
257
|
+
"package.json",
|
|
258
|
+
"package-lock.json"
|
|
259
|
+
],
|
|
260
|
+
"output": []
|
|
261
|
+
},
|
|
238
262
|
"prepack": {
|
|
239
263
|
"command": "oclif manifest && oclif readme",
|
|
240
264
|
"files": [
|
|
@@ -264,8 +288,13 @@
|
|
|
264
288
|
"src/**/*.ts",
|
|
265
289
|
"__tests__/functional/**/*.test.ts",
|
|
266
290
|
"__tests__/functional/byteEquality/fixtures/**",
|
|
267
|
-
"
|
|
268
|
-
"
|
|
291
|
+
"tsconfig.json",
|
|
292
|
+
"__tests__/tsconfig.json",
|
|
293
|
+
"tooling/tsconfig.json",
|
|
294
|
+
"vitest.functional.config.ts",
|
|
295
|
+
"vitest.shared.ts",
|
|
296
|
+
"package.json",
|
|
297
|
+
"package-lock.json"
|
|
269
298
|
],
|
|
270
299
|
"output": [],
|
|
271
300
|
"dependencies": [
|
|
@@ -277,8 +306,14 @@
|
|
|
277
306
|
"files": [
|
|
278
307
|
"src/**/*.ts",
|
|
279
308
|
"__tests__/integration/**/*.test.ts",
|
|
280
|
-
"
|
|
281
|
-
"
|
|
309
|
+
"tsconfig.json",
|
|
310
|
+
"__tests__/tsconfig.json",
|
|
311
|
+
"tooling/tsconfig.json",
|
|
312
|
+
"vitest.integration.config.ts",
|
|
313
|
+
"vitest.shared.ts",
|
|
314
|
+
"package.json",
|
|
315
|
+
"package-lock.json",
|
|
316
|
+
"__tests__/__utils__/**/*.ts"
|
|
282
317
|
],
|
|
283
318
|
"output": [],
|
|
284
319
|
"dependencies": [
|
|
@@ -293,15 +328,8 @@
|
|
|
293
328
|
]
|
|
294
329
|
},
|
|
295
330
|
"test:perf": {
|
|
296
|
-
"command": "
|
|
297
|
-
"files": [
|
|
298
|
-
"src/**/*.ts",
|
|
299
|
-
"__tests__/perf/**",
|
|
300
|
-
"**/tsconfig.json",
|
|
301
|
-
"vitest.config.perf.ts"
|
|
302
|
-
],
|
|
331
|
+
"command": "vitest bench --config vitest.config.perf.ts",
|
|
303
332
|
"output": [
|
|
304
|
-
"perf-raw.json",
|
|
305
333
|
"perf-runtime.json",
|
|
306
334
|
"perf-memory.json"
|
|
307
335
|
],
|
|
@@ -314,26 +342,44 @@
|
|
|
314
342
|
"files": [
|
|
315
343
|
"src/**/*.ts",
|
|
316
344
|
"__tests__/**/*.ts",
|
|
345
|
+
"tooling/**/*.ts",
|
|
346
|
+
"stryker.conf.mjs",
|
|
317
347
|
"messages/**",
|
|
318
|
-
"
|
|
348
|
+
"tsconfig.json",
|
|
349
|
+
"__tests__/tsconfig.json",
|
|
350
|
+
"tooling/tsconfig.json",
|
|
351
|
+
"package.json",
|
|
352
|
+
"package-lock.json",
|
|
353
|
+
"vitest.config.ts",
|
|
354
|
+
"vitest.shared.ts"
|
|
319
355
|
],
|
|
320
356
|
"output": [
|
|
321
|
-
".stryker-tmp/**"
|
|
357
|
+
".stryker-tmp/**",
|
|
358
|
+
"reports/mutation/**"
|
|
322
359
|
],
|
|
323
360
|
"dependencies": [
|
|
324
361
|
"lint"
|
|
325
362
|
]
|
|
326
363
|
},
|
|
327
364
|
"test:mutation:incremental": {
|
|
328
|
-
"command": "
|
|
365
|
+
"command": "node tooling/mutationIncremental.ts",
|
|
329
366
|
"files": [
|
|
330
367
|
"src/**/*.ts",
|
|
331
368
|
"__tests__/**/*.ts",
|
|
369
|
+
"tooling/**/*.ts",
|
|
370
|
+
"stryker.conf.mjs",
|
|
332
371
|
"messages/**",
|
|
333
|
-
"
|
|
372
|
+
"tsconfig.json",
|
|
373
|
+
"__tests__/tsconfig.json",
|
|
374
|
+
"tooling/tsconfig.json",
|
|
375
|
+
"package.json",
|
|
376
|
+
"package-lock.json",
|
|
377
|
+
"vitest.config.ts",
|
|
378
|
+
"vitest.shared.ts"
|
|
334
379
|
],
|
|
335
380
|
"output": [
|
|
336
|
-
".stryker-tmp/**"
|
|
381
|
+
".stryker-tmp/**",
|
|
382
|
+
"reports/mutation/**"
|
|
337
383
|
],
|
|
338
384
|
"dependencies": [
|
|
339
385
|
"lint"
|
|
@@ -345,8 +391,13 @@
|
|
|
345
391
|
"src/**/*.ts",
|
|
346
392
|
"__tests__/nut/**/*.nut.ts",
|
|
347
393
|
"messages/**",
|
|
348
|
-
"
|
|
349
|
-
"
|
|
394
|
+
"tsconfig.json",
|
|
395
|
+
"__tests__/tsconfig.json",
|
|
396
|
+
"tooling/tsconfig.json",
|
|
397
|
+
"vitest.nut.config.ts",
|
|
398
|
+
"vitest.shared.ts",
|
|
399
|
+
"package.json",
|
|
400
|
+
"package-lock.json"
|
|
350
401
|
],
|
|
351
402
|
"output": [],
|
|
352
403
|
"dependencies": [
|
|
@@ -360,8 +411,13 @@
|
|
|
360
411
|
"src/**/*.ts",
|
|
361
412
|
"__tests__/**/*.ts",
|
|
362
413
|
"messages/**",
|
|
363
|
-
"
|
|
364
|
-
"
|
|
414
|
+
"tsconfig.json",
|
|
415
|
+
"__tests__/tsconfig.json",
|
|
416
|
+
"tooling/tsconfig.json",
|
|
417
|
+
"vitest.config.ts",
|
|
418
|
+
"vitest.shared.ts",
|
|
419
|
+
"package.json",
|
|
420
|
+
"package-lock.json"
|
|
365
421
|
],
|
|
366
422
|
"output": [
|
|
367
423
|
"reports/coverage/**"
|