sfdx-git-delta 7.4.0 → 7.4.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/README.md +22 -3
- package/lib/adapter/GitAdapter.d.ts +5 -3
- package/lib/adapter/GitAdapter.js +71 -32
- 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 +5 -4
- package/lib/adapter/tsgitErrorMap.js +12 -5
- package/lib/adapter/tsgitErrorMap.js.map +1 -1
- package/lib/constant/metadataConstants.d.ts +12 -1
- package/lib/constant/metadataConstants.js +28 -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/changesManifestProcessor.js +14 -1
- package/lib/post-processor/changesManifestProcessor.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 +4 -0
- package/lib/utils/changeSet.js +87 -37
- package/lib/utils/changeSet.js.map +1 -1
- package/lib/utils/configValidator.d.ts +11 -1
- package/lib/utils/configValidator.js +133 -80
- package/lib/utils/configValidator.js.map +1 -1
- package/lib/utils/errorUtils.d.ts +5 -0
- package/lib/utils/errorUtils.js +8 -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/metadataBoundaryResolver.d.ts +4 -0
- package/lib/utils/metadataBoundaryResolver.js +40 -29
- package/lib/utils/metadataBoundaryResolver.js.map +1 -1
- package/lib/utils/metadataDiff/deepEqualJson.js +51 -44
- package/lib/utils/metadataDiff/deepEqualJson.js.map +1 -1
- package/lib/utils/metadataDiff/xmlEventReader.js +60 -50
- package/lib/utils/metadataDiff/xmlEventReader.js.map +1 -1
- package/lib/utils/repoGitDiff.d.ts +20 -2
- package/lib/utils/repoGitDiff.js +129 -35
- package/lib/utils/repoGitDiff.js.map +1 -1
- package/lib/utils/treeIndexScope.js +25 -37
- 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 +90 -49
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repoGitDiff.js","sourceRoot":"","sources":["../../src/utils/repoGitDiff.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;AACZ,OAAO,UAGN,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,GAAG,EAAE,MAAM,6BAA6B,CAA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AM,CAAC,EAAE;YAClB,aAAa,EAAE,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC;YACnD,gBAAgB,EAAE,IAAI,CAAC,MAAM,CAAC,gBAAgB;SAC/C,CAAA;IACH,CAAC;CACF"}
|
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
import { PATH_SEP } from '../constant/fsConstants.js';
|
|
3
3
|
import { GIT_DIFF_TYPE_REGEX } from '../constant/gitConstants.js';
|
|
4
|
-
import { CONTENT_CONTAINER_ADAPTERS } from '../constant/metadataConstants.js';
|
|
5
|
-
// Bundle-style adapters get a deeper scope slice in scopeForType than the
|
|
6
|
-
// flat mixedContent containers, so this stays distinct from the broader
|
|
7
|
-
// CONTENT_CONTAINER_ADAPTERS membership used by needsTreeIndex.
|
|
8
|
-
const BUNDLE_ADAPTERS = new Set(['bundle', 'digitalExperience']);
|
|
4
|
+
import { CONTENT_CONTAINER_ADAPTERS, DASHBOARD_TYPE, OBJECT_TYPE, PERMISSIONSET_TYPE, REPORT_TYPE, } from '../constant/metadataConstants.js';
|
|
9
5
|
const TREE_INDEX_XML_NAMES = new Set([
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
OBJECT_TYPE,
|
|
7
|
+
DASHBOARD_TYPE,
|
|
8
|
+
REPORT_TYPE,
|
|
13
9
|
'AuraDefinitionBundle',
|
|
14
10
|
'LightningComponentBundle',
|
|
15
11
|
'GenAiFunction',
|
|
16
|
-
|
|
12
|
+
PERMISSIONSET_TYPE,
|
|
17
13
|
'Territory2Model',
|
|
18
14
|
]);
|
|
19
15
|
const needsTreeIndex = (type) => {
|
|
@@ -35,44 +31,36 @@ const buildParentIndex = (metadata) => {
|
|
|
35
31
|
}
|
|
36
32
|
return index;
|
|
37
33
|
};
|
|
34
|
+
// Every tree-index-needing type scopes to its type directory, regardless of
|
|
35
|
+
// adapter: a bundle's liveness check (pathExists on its component directory)
|
|
36
|
+
// answers identically whether the index was built from just that component
|
|
37
|
+
// or from the whole type directory, so there is no need to slice deeper for
|
|
38
|
+
// bundle-style adapters.
|
|
38
39
|
const scopeForType = (parts, type) => {
|
|
39
40
|
const dirIndex = parts.indexOf(type.directoryName);
|
|
40
|
-
// Stryker disable next-line ConditionalExpression -- equivalent: dir-not-found guard; flipping to false continues with dirIndex=-1 and slice(0, 0) returns an empty string that the caller's scope set absorbs as a useless entry not asserted on
|
|
41
41
|
if (dirIndex < 0)
|
|
42
42
|
return null;
|
|
43
|
-
if (type.adapter && BUNDLE_ADAPTERS.has(type.adapter)) {
|
|
44
|
-
// Stryker disable next-line ConditionalExpression,EqualityOperator,ArithmeticOperator -- equivalent: bundle-vs-non-bundle slice gate; for bundles the scope expands by one segment if the path has another segment, otherwise stays at dirIndex+1; the mutants flip the boundary by one position which still produces a valid scope path that the test surface accepts as either the parent dir or the bundle dir — both are observed as the same set membership in scope
|
|
45
|
-
if (dirIndex + 1 < parts.length) {
|
|
46
|
-
return parts.slice(0, dirIndex + 2).join(PATH_SEP);
|
|
47
|
-
}
|
|
48
|
-
// Stryker disable next-line MethodExpression -- equivalent: this branch fires only when `dirIndex + 1 >= parts.length`, i.e. parts ends at the type directory; in that case `parts.slice(0, dirIndex + 1)` is reference-distinct but value-identical to `parts`, so the join produces the same string
|
|
49
|
-
return parts.slice(0, dirIndex + 1).join(PATH_SEP);
|
|
50
|
-
}
|
|
51
|
-
// Stryker disable next-line MethodExpression -- equivalent: parts.slice(0, dirIndex + 1).join(PATH_SEP) computes the scope path; mutating slice to return parts wholesale would yield the full path joined, but the consuming Set absorbs both forms and tests assert on the directory-prefix membership which both forms satisfy
|
|
52
43
|
return parts.slice(0, dirIndex + 1).join(PATH_SEP);
|
|
53
44
|
};
|
|
45
|
+
// A child type (parentXmlName) is indexed through its parent: the parent's
|
|
46
|
+
// type directory is the one the index must cover.
|
|
47
|
+
const scopeForLine = (line, metadata, parentIndex) => {
|
|
48
|
+
const path = line.replace(GIT_DIFF_TYPE_REGEX, '');
|
|
49
|
+
const type = metadata.get(path);
|
|
50
|
+
if (!type)
|
|
51
|
+
return null;
|
|
52
|
+
const indexedType = type.parentXmlName
|
|
53
|
+
? parentIndex.get(type.parentXmlName)
|
|
54
|
+
: type;
|
|
55
|
+
if (!indexedType || !needsTreeIndex(indexedType))
|
|
56
|
+
return null;
|
|
57
|
+
return scopeForType(path.split(PATH_SEP), indexedType);
|
|
58
|
+
};
|
|
54
59
|
export const computeTreeIndexScope = (lines, metadata) => {
|
|
55
60
|
const scope = new Set();
|
|
56
61
|
const parentIndex = buildParentIndex(metadata);
|
|
57
62
|
for (const line of lines) {
|
|
58
|
-
const
|
|
59
|
-
const type = metadata.get(path);
|
|
60
|
-
if (!type)
|
|
61
|
-
continue;
|
|
62
|
-
const parts = path.split(PATH_SEP);
|
|
63
|
-
if (type.parentXmlName) {
|
|
64
|
-
const parent = parentIndex.get(type.parentXmlName);
|
|
65
|
-
if (parent && needsTreeIndex(parent)) {
|
|
66
|
-
const result = scopeForType(parts, parent);
|
|
67
|
-
if (result) {
|
|
68
|
-
scope.add(result);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
continue;
|
|
72
|
-
}
|
|
73
|
-
if (!needsTreeIndex(type))
|
|
74
|
-
continue;
|
|
75
|
-
const result = scopeForType(parts, type);
|
|
63
|
+
const result = scopeForLine(line, metadata, parentIndex);
|
|
76
64
|
if (result) {
|
|
77
65
|
scope.add(result);
|
|
78
66
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"treeIndexScope.js","sourceRoot":"","sources":["../../src/utils/treeIndexScope.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;AACZ,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AACjE,OAAO,
|
|
1
|
+
{"version":3,"file":"treeIndexScope.js","sourceRoot":"","sources":["../../src/utils/treeIndexScope.ts"],"names":[],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xD,IAAI,MAAM,EAAE,CAAC;YACX,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;QACnB,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAA;AACd,CAAC,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type GitAdapter from '../adapter/GitAdapter.js';
|
|
2
|
+
import { type TreeReader } from '../adapter/treeReader.js';
|
|
3
|
+
import type { Config } from '../types/config.js';
|
|
4
|
+
export type TreeReaderBuildResult = Readonly<{
|
|
5
|
+
trees: TreeReader;
|
|
6
|
+
unindexed: readonly string[];
|
|
7
|
+
}>;
|
|
8
|
+
export declare const buildRunTreeReader: (gitAdapter: Pick<GitAdapter, 'buildTreeIndex'>, config: Pick<Config, 'to' | 'from'>, scopePaths: readonly string[]) => Promise<TreeReaderBuildResult>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
import { createTreeReader, EMPTY_TREE_READER, } from '../adapter/treeReader.js';
|
|
3
|
+
// One TreeIndex per revision, built once per run under the run's own scope
|
|
4
|
+
// and threaded to every reader through RunContext rather than cached on
|
|
5
|
+
// GitAdapter: a reader can never see a different scope than the one this
|
|
6
|
+
// build ran under (a shared, scope-keyed cache — the design this replaced —
|
|
7
|
+
// is an implicit contract that drifts). An empty scope means the run
|
|
8
|
+
// touches nothing index-backed, so no tree is walked at all — nothing was
|
|
9
|
+
// attempted, so nothing is reported unindexed.
|
|
10
|
+
export const buildRunTreeReader = async (gitAdapter, config, scopePaths) => {
|
|
11
|
+
if (scopePaths.length === 0) {
|
|
12
|
+
return { trees: EMPTY_TREE_READER, unindexed: [] };
|
|
13
|
+
}
|
|
14
|
+
const [toIndex, fromIndex] = await Promise.all([
|
|
15
|
+
gitAdapter.buildTreeIndex(config.to, scopePaths),
|
|
16
|
+
gitAdapter.buildTreeIndex(config.from, scopePaths),
|
|
17
|
+
]);
|
|
18
|
+
const entries = new Map();
|
|
19
|
+
const unindexed = [];
|
|
20
|
+
if (toIndex) {
|
|
21
|
+
entries.set(config.to, toIndex);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
unindexed.push(config.to);
|
|
25
|
+
}
|
|
26
|
+
if (fromIndex) {
|
|
27
|
+
entries.set(config.from, fromIndex);
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
unindexed.push(config.from);
|
|
31
|
+
}
|
|
32
|
+
return { trees: createTreeReader(entries), unindexed };
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=treeReaderBuilder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"treeReaderBuilder.js","sourceRoot":"","sources":["../../src/utils/treeReaderBuilder.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAGZ,OAAO,EACL,gBAAgB,EAChB,iBAAiB,GAElB,MAAM,0BAA0B,CAAA;AAajC,2EAA2E;AAC3E,wEAAwE;AACxE,yEAAyE;AACzE,4EAA4E;AAC5E,qEAAqE;AACrE,0EAA0E;AAC1E,+CAA+C;AAC/C,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,EACrC,UAA8C,EAC9C,MAAmC,EACnC,UAA6B,EACG,EAAE;IAClC,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC5B,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,EAAE,EAAE,CAAA;IACpD,CAAC;IACD,MAAM,CAAC,OAAO,EAAE,SAAS,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAC7C,UAAU,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,EAAE,UAAU,CAAC;QAChD,UAAU,CAAC,cAAc,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC;KACnD,CAAC,CAAA;IACF,MAAM,OAAO,GAAG,IAAI,GAAG,EAAqB,CAAA;IAC5C,MAAM,SAAS,GAAa,EAAE,CAAA;IAC9B,IAAI,OAAO,EAAE,CAAC;QACZ,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,CAAC,CAAA;IACjC,CAAC;SAAM,CAAC;QACN,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;IAC3B,CAAC;IACD,IAAI,SAAS,EAAE,CAAC;QACd,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,CAAA;IACrC,CAAC;SAAM,CAAC;QACN,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IAC7B,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,gBAAgB,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,CAAA;AACxD,CAAC,CAAA"}
|
package/lib/utils/txmlAdapter.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
import { parse as txmlParse } from 'txml';
|
|
2
|
+
import { parse as txmlParse } from 'txml/txml';
|
|
3
3
|
import { ATTRIBUTE_PREFIX, XML_HEADER_ATTRIBUTE_KEY, } from './xmlHelper.js';
|
|
4
4
|
// Stryker disable next-line StringLiteral -- equivalent: '#comment' is the internal sentinel key for comment children; mutating to "" produces an empty key that addComment still uses consistently and the test surface only checks for the presence of the comment via the same constant
|
|
5
5
|
const COMMENT_KEY = '#comment';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"txmlAdapter.js","sourceRoot":"","sources":["../../src/utils/txmlAdapter.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"txmlAdapter.js","sourceRoot":"","sources":["../../src/utils/txmlAdapter.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,WAAW,CAAA;AAE9C,OAAO,EACL,gBAAgB,EAChB,wBAAwB,GAEzB,MAAM,gB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E,CAAA;QAC1B,KAAK,MAAM,KAAK,IAAI,IAAI,EAAE,CAAC;YACzB,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;gBACrB,UAAU,CAAC,GAAG,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC,CAAA;gBACpC,SAAQ;YACV,CAAC;YACD,mSAAmS;YACnS,IAAI,OAAO,KAAK,KAAK,QAAQ;gBAAE,SAAQ,CAAC,uBAAuB;YAC/D,2TAA2T;YAC3T,IAAI,KAAK,CAAC,OAAO,KAAK,wBAAwB,EAAE,CAAC;gBAC/C,GAAG,CAAC,wBAAwB,CAAC,GAAG,gBAAgB,CAAC,KAAK,CAAC,UAAU,CAAC,CAAA;gBAClE,SAAQ;YACV,CAAC;YACD,QAAQ,CAAC,GAAG,EAAE,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAAA;QACxD,CAAC;QACD,OAAO,GAAG,CAAA;IACZ,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAA;IACX,CAAC;AACH,CAAC,CAAA"}
|
package/messages/delta.md
CHANGED
|
@@ -94,6 +94,10 @@ path to a JSON file grouping changed components by kind (add, modify, delete, re
|
|
|
94
94
|
|
|
95
95
|
--%s is not a valid sha pointer: '%s' (If in CI/CD context, check the fetch depth is properly set)
|
|
96
96
|
|
|
97
|
+
# error.ParameterIsNotCommit
|
|
98
|
+
|
|
99
|
+
--%s must resolve to a commit: '%s' resolves to a %s. Use a commit sha, a branch, or a tag that points to a commit
|
|
100
|
+
|
|
97
101
|
# error.MergeBaseNotFound
|
|
98
102
|
|
|
99
103
|
no merge base found between --from '%s' and --to '%s' (If in CI/CD context, check the fetch depth is properly set)
|
|
@@ -130,10 +134,6 @@ no merge base found between --from '%s' and --to '%s' (If in CI/CD context, chec
|
|
|
130
134
|
|
|
131
135
|
--source-dir does not accept git pathspec magic (e.g. ':(exclude)', ':!'); use a literal repository-relative path instead (received: '%s')
|
|
132
136
|
|
|
133
|
-
# warning.ApiVersionOverridden
|
|
134
|
-
|
|
135
|
-
API version '%s' is not supported, using '%s' instead
|
|
136
|
-
|
|
137
137
|
# warning.ApiVersionDefaulted
|
|
138
138
|
|
|
139
139
|
No API version found (no --api-version flag, no sourceApiVersion in sfdx-project.json), using '%s'
|
|
@@ -142,6 +142,10 @@ No API version found (no --api-version flag, no sourceApiVersion in sfdx-project
|
|
|
142
142
|
|
|
143
143
|
Unable to resolve the Salesforce API version. Provide one with --api-version, or set "sourceApiVersion" in sfdx-project.json. Caused by: %s
|
|
144
144
|
|
|
145
|
+
# error.ApiVersionLookupUnusable
|
|
146
|
+
|
|
147
|
+
The appexchange org returned '%s', which is not a usable Salesforce API version
|
|
148
|
+
|
|
145
149
|
# warning.MalformedXML
|
|
146
150
|
|
|
147
151
|
could not process '%s', please ensure it is properly formatted xml in both '%s' and '%s' revision
|
|
@@ -174,4 +178,11 @@ Failure
|
|
|
174
178
|
|
|
175
179
|
💡 Enjoying sfdx-git-delta?
|
|
176
180
|
Your contribution helps us provide fast support 🚀 and high quality features 🔥
|
|
177
|
-
Become a sponsor: https://github.com/sponsors/scolladon 💙
|
|
181
|
+
Become a sponsor: https://github.com/sponsors/scolladon 💙
|
|
182
|
+
# warning.IgnoredMoveCheckSkipped
|
|
183
|
+
|
|
184
|
+
Could not read the file list at '%s', so %s component(s) moved into an ignored directory could not be confirmed as moves and are reported as deletions. Check that --to resolves to a readable commit.
|
|
185
|
+
|
|
186
|
+
# warning.TreeIndexUnavailable
|
|
187
|
+
|
|
188
|
+
Could not build the file tree index for '%s', so components that still exist there may be listed in destructiveChanges.xml as deleted. Check that the commit's tree objects are present locally (a partial clone created with --filter may not have them).
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sfdx-git-delta",
|
|
3
|
-
"version": "7.4.
|
|
3
|
+
"version": "7.4.2",
|
|
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.
|
|
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.2.0",
|
|
53
|
+
"@salesforce/sf-plugins-core": "13.0.4",
|
|
54
|
+
"@salesforce/source-deploy-retrieve": "13.4.0",
|
|
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.14",
|
|
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.6.1",
|
|
71
|
+
"@vitest/coverage-v8": "5.0.1",
|
|
72
72
|
"husky": "9.1.7",
|
|
73
|
-
"knip": "6.
|
|
74
|
-
"lint-staged": "17.
|
|
73
|
+
"knip": "6.36.0",
|
|
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.1",
|
|
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,11 @@
|
|
|
264
288
|
"src/**/*.ts",
|
|
265
289
|
"__tests__/functional/**/*.test.ts",
|
|
266
290
|
"__tests__/functional/byteEquality/fixtures/**",
|
|
267
|
-
"
|
|
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
|
-
"
|
|
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": "
|
|
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
|
-
"
|
|
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": "
|
|
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
|
-
"
|
|
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
|
-
"
|
|
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
|
-
"
|
|
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
|
],
|