sfdx-git-delta 7.4.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.
Files changed (64) hide show
  1. package/README.md +22 -3
  2. package/lib/adapter/GitAdapter.d.ts +5 -3
  3. package/lib/adapter/GitAdapter.js +71 -32
  4. package/lib/adapter/GitAdapter.js.map +1 -1
  5. package/lib/adapter/pathMatching.d.ts +2 -1
  6. package/lib/adapter/pathMatching.js +35 -3
  7. package/lib/adapter/pathMatching.js.map +1 -1
  8. package/lib/adapter/treeReader.d.ts +1 -0
  9. package/lib/adapter/treeReader.js +10 -0
  10. package/lib/adapter/treeReader.js.map +1 -1
  11. package/lib/adapter/tsgitErrorMap.d.ts +5 -4
  12. package/lib/adapter/tsgitErrorMap.js +12 -5
  13. package/lib/adapter/tsgitErrorMap.js.map +1 -1
  14. package/lib/constant/metadataConstants.d.ts +9 -1
  15. package/lib/constant/metadataConstants.js +17 -3
  16. package/lib/constant/metadataConstants.js.map +1 -1
  17. package/lib/main.js +66 -63
  18. package/lib/main.js.map +1 -1
  19. package/lib/metadata/MetadataRepositoryImpl.d.ts +14 -2
  20. package/lib/metadata/MetadataRepositoryImpl.js +192 -50
  21. package/lib/metadata/MetadataRepositoryImpl.js.map +1 -1
  22. package/lib/post-processor/includeProcessor.js +8 -9
  23. package/lib/post-processor/includeProcessor.js.map +1 -1
  24. package/lib/service/botHandler.js +1 -1
  25. package/lib/service/botHandler.js.map +1 -1
  26. package/lib/service/inBundleHandler.js +10 -23
  27. package/lib/service/inBundleHandler.js.map +1 -1
  28. package/lib/service/inFolderHandler.js +1 -2
  29. package/lib/service/inFolderHandler.js.map +1 -1
  30. package/lib/service/objectTranslationHandler.d.ts +0 -1
  31. package/lib/service/objectTranslationHandler.js +11 -4
  32. package/lib/service/objectTranslationHandler.js.map +1 -1
  33. package/lib/types/runContext.d.ts +16 -5
  34. package/lib/types/runContext.js +17 -5
  35. package/lib/types/runContext.js.map +1 -1
  36. package/lib/utils/__mocks__/LoggingService.d.ts +2 -7
  37. package/lib/utils/__mocks__/LoggingService.js.map +1 -1
  38. package/lib/utils/changeSet.d.ts +1 -0
  39. package/lib/utils/changeSet.js +26 -1
  40. package/lib/utils/changeSet.js.map +1 -1
  41. package/lib/utils/configValidator.d.ts +11 -1
  42. package/lib/utils/configValidator.js +133 -80
  43. package/lib/utils/configValidator.js.map +1 -1
  44. package/lib/utils/errorUtils.d.ts +5 -0
  45. package/lib/utils/errorUtils.js +8 -0
  46. package/lib/utils/errorUtils.js.map +1 -1
  47. package/lib/utils/messageSanitizer.d.ts +1 -0
  48. package/lib/utils/messageSanitizer.js +46 -0
  49. package/lib/utils/messageSanitizer.js.map +1 -1
  50. package/lib/utils/metadataDiff/xmlEventReader.js +1 -1
  51. package/lib/utils/metadataDiff/xmlEventReader.js.map +1 -1
  52. package/lib/utils/repoGitDiff.d.ts +17 -2
  53. package/lib/utils/repoGitDiff.js +93 -12
  54. package/lib/utils/repoGitDiff.js.map +1 -1
  55. package/lib/utils/treeIndexScope.js +5 -14
  56. package/lib/utils/treeIndexScope.js.map +1 -1
  57. package/lib/utils/treeReaderBuilder.d.ts +8 -0
  58. package/lib/utils/treeReaderBuilder.js +34 -0
  59. package/lib/utils/treeReaderBuilder.js.map +1 -0
  60. package/lib/utils/txmlAdapter.js +1 -1
  61. package/lib/utils/txmlAdapter.js.map +1 -1
  62. package/messages/delta.md +16 -5
  63. package/oclif.manifest.json +1 -1
  64. package/package.json +90 -49
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfdx-git-delta",
3
- "version": "7.4.0",
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": "4.14.0",
52
- "@salesforce/core": "9.1.5",
53
- "@salesforce/sf-plugins-core": "13.0.3",
54
- "@salesforce/source-deploy-retrieve": "13.2.0",
55
- "@scolladon/tsgit": "3.6.0",
56
- "ignore": "7.0.6",
57
- "txml": "6.0.1",
58
- "zod": "4.4.3"
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.10",
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": "6.2.58",
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.2.0",
71
- "@vitest/coverage-v8": "4.1.11",
70
+ "@types/node": "26.5.1",
71
+ "@vitest/coverage-v8": "5.0.0",
72
72
  "husky": "9.1.7",
73
- "knip": "6.32.2",
74
- "lint-staged": "17.3.0",
73
+ "knip": "6.35.1",
74
+ "lint-staged": "17.5.1",
75
75
  "ls-engines": "0.10.1",
76
- "oclif": "4.23.30",
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": "4.1.11",
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": "TS_NODE_COMPILER_OPTIONS='{\"rootDir\":\".\"}' node --loader ts-node/esm tooling/syncInternalRegistryWithSdr.ts",
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
- "**/tsconfig.json",
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-raw.json perf-runtime.json perf-memory.json perf-preview.html",
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
- "**/tsconfig.json"
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
- "**/tsconfig.json"
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
- "**/tsconfig.json",
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,11 @@
264
288
  "src/**/*.ts",
265
289
  "__tests__/functional/**/*.test.ts",
266
290
  "__tests__/functional/byteEquality/fixtures/**",
267
- "**/tsconfig.json",
291
+ "tsconfig.json",
292
+ "__tests__/tsconfig.json",
293
+ "tooling/tsconfig.json",
268
294
  "vitest.functional.config.ts",
295
+ "vitest.shared.ts",
269
296
  "package.json",
270
297
  "package-lock.json"
271
298
  ],
@@ -279,8 +306,11 @@
279
306
  "files": [
280
307
  "src/**/*.ts",
281
308
  "__tests__/integration/**/*.test.ts",
282
- "**/tsconfig.json",
309
+ "tsconfig.json",
310
+ "__tests__/tsconfig.json",
311
+ "tooling/tsconfig.json",
283
312
  "vitest.integration.config.ts",
313
+ "vitest.shared.ts",
284
314
  "package.json",
285
315
  "package-lock.json",
286
316
  "__tests__/__utils__/**/*.ts"
@@ -298,17 +328,8 @@
298
328
  ]
299
329
  },
300
330
  "test:perf": {
301
- "command": "node --expose-gc ./node_modules/.bin/vitest bench --config vitest.config.perf.ts && node __tests__/perf/formatResults.mjs",
302
- "files": [
303
- "src/**/*.ts",
304
- "__tests__/perf/**",
305
- "**/tsconfig.json",
306
- "vitest.config.perf.ts",
307
- "package.json",
308
- "package-lock.json"
309
- ],
331
+ "command": "vitest bench --config vitest.config.perf.ts",
310
332
  "output": [
311
- "perf-raw.json",
312
333
  "perf-runtime.json",
313
334
  "perf-memory.json"
314
335
  ],
@@ -321,30 +342,44 @@
321
342
  "files": [
322
343
  "src/**/*.ts",
323
344
  "__tests__/**/*.ts",
345
+ "tooling/**/*.ts",
346
+ "stryker.conf.mjs",
324
347
  "messages/**",
325
- "**/tsconfig.json",
348
+ "tsconfig.json",
349
+ "__tests__/tsconfig.json",
350
+ "tooling/tsconfig.json",
326
351
  "package.json",
327
- "package-lock.json"
352
+ "package-lock.json",
353
+ "vitest.config.ts",
354
+ "vitest.shared.ts"
328
355
  ],
329
356
  "output": [
330
- ".stryker-tmp/**"
357
+ ".stryker-tmp/**",
358
+ "reports/mutation/**"
331
359
  ],
332
360
  "dependencies": [
333
361
  "lint"
334
362
  ]
335
363
  },
336
364
  "test:mutation:incremental": {
337
- "command": "FILES=$(git --no-pager diff --name-only --diff-filter=AM --merge-base origin/main src | grep '.ts$' | paste -sd ',' -); if [ -n \"$FILES\" ]; then stryker run --mutate \"$FILES\"; else echo 'No source files changed — skipping mutation testing'; fi",
365
+ "command": "node tooling/mutationIncremental.ts",
338
366
  "files": [
339
367
  "src/**/*.ts",
340
368
  "__tests__/**/*.ts",
369
+ "tooling/**/*.ts",
370
+ "stryker.conf.mjs",
341
371
  "messages/**",
342
- "**/tsconfig.json",
372
+ "tsconfig.json",
373
+ "__tests__/tsconfig.json",
374
+ "tooling/tsconfig.json",
343
375
  "package.json",
344
- "package-lock.json"
376
+ "package-lock.json",
377
+ "vitest.config.ts",
378
+ "vitest.shared.ts"
345
379
  ],
346
380
  "output": [
347
- ".stryker-tmp/**"
381
+ ".stryker-tmp/**",
382
+ "reports/mutation/**"
348
383
  ],
349
384
  "dependencies": [
350
385
  "lint"
@@ -356,8 +391,11 @@
356
391
  "src/**/*.ts",
357
392
  "__tests__/nut/**/*.nut.ts",
358
393
  "messages/**",
359
- "**/tsconfig.json",
394
+ "tsconfig.json",
395
+ "__tests__/tsconfig.json",
396
+ "tooling/tsconfig.json",
360
397
  "vitest.nut.config.ts",
398
+ "vitest.shared.ts",
361
399
  "package.json",
362
400
  "package-lock.json"
363
401
  ],
@@ -373,8 +411,11 @@
373
411
  "src/**/*.ts",
374
412
  "__tests__/**/*.ts",
375
413
  "messages/**",
376
- "**/tsconfig.json",
414
+ "tsconfig.json",
415
+ "__tests__/tsconfig.json",
416
+ "tooling/tsconfig.json",
377
417
  "vitest.config.ts",
418
+ "vitest.shared.ts",
378
419
  "package.json",
379
420
  "package-lock.json"
380
421
  ],