@jayree/sfdx-plugin-manifest 2.7.4 → 2.8.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +28 -0
- package/README.md +83 -66
- package/lib/SDR-extra/utils/localGitRepo.js +1 -1
- package/lib/SDR-extra/utils/localGitRepo.js.map +1 -1
- package/lib/commands/jayree/manifest/beta/git/diff.d.ts +8 -6
- package/lib/commands/jayree/manifest/beta/git/diff.js +11 -11
- package/lib/commands/jayree/manifest/beta/git/diff.js.map +1 -1
- package/lib/commands/jayree/manifest/cleanup.d.ts +11 -9
- package/lib/commands/jayree/manifest/cleanup.js +78 -18
- package/lib/commands/jayree/manifest/cleanup.js.map +1 -1
- package/lib/commands/jayree/manifest/generate.d.ts +18 -11
- package/lib/commands/jayree/manifest/generate.js +57 -48
- package/lib/commands/jayree/manifest/generate.js.map +1 -1
- package/lib/commands/jayree/manifest/git/diff.d.ts +17 -11
- package/lib/commands/jayree/manifest/git/diff.js +479 -55
- package/lib/commands/jayree/manifest/git/diff.js.map +1 -1
- package/messages/{gitdiffbeta.md → gitdiff.md} +7 -0
- package/messages/manifestcleanup.md +21 -0
- package/messages/manifestgenerate.md +43 -0
- package/oclif.manifest.json +121 -262
- package/package.json +19 -20
- package/lib/jayreeSfdxCommand.d.ts +0 -8
- package/lib/jayreeSfdxCommand.js +0 -26
- package/lib/jayreeSfdxCommand.js.map +0 -1
- package/lib/utils/gitdiff.d.ts +0 -57
- package/lib/utils/gitdiff.js +0 -442
- package/lib/utils/gitdiff.js.map +0 -1
- package/lib/utils/manifest.d.ts +0 -1
- package/lib/utils/manifest.js +0 -66
- package/lib/utils/manifest.js.map +0 -1
- package/messages/gitdiff.json +0 -12
- package/messages/manifestcleanup.json +0 -6
- package/messages/manifestgenerate.json +0 -16
package/package.json
CHANGED
@@ -1,20 +1,19 @@
|
|
1
1
|
{
|
2
2
|
"name": "@jayree/sfdx-plugin-manifest",
|
3
3
|
"description": "A Salesforce CLI plugin containing commands for creating manifest files from Salesforce orgs or git commits of sfdx projects.",
|
4
|
-
"version": "2.
|
4
|
+
"version": "2.8.1",
|
5
5
|
"author": "jayree",
|
6
6
|
"type": "module",
|
7
7
|
"bugs": "https://github.com/jayree/sfdx-plugin-manifest/issues",
|
8
8
|
"dependencies": {
|
9
|
-
"@oclif/core": "^
|
10
|
-
"@salesforce/
|
11
|
-
"@salesforce/
|
12
|
-
"@salesforce/
|
13
|
-
"@salesforce/
|
14
|
-
"@salesforce/ts-types": "^1.7.2",
|
9
|
+
"@oclif/core": "^2.0.8",
|
10
|
+
"@salesforce/kit": "^1.8.4",
|
11
|
+
"@salesforce/sf-plugins-core": "^2.0.1",
|
12
|
+
"@salesforce/source-deploy-retrieve": "^7.8.0",
|
13
|
+
"@salesforce/ts-types": "^1.7.3",
|
15
14
|
"debug": "^4.3.4",
|
16
15
|
"fast-deep-equal": "^3.1.3",
|
17
|
-
"fast-xml-parser": "^4.
|
16
|
+
"fast-xml-parser": "^4.1.1",
|
18
17
|
"fs-extra": "^11.1.0",
|
19
18
|
"graceful-fs": "^4.2.10",
|
20
19
|
"isomorphic-git": "^1.21.0",
|
@@ -27,12 +26,12 @@
|
|
27
26
|
"devDependencies": {
|
28
27
|
"@commitlint/cli": "^17.4.2",
|
29
28
|
"@commitlint/config-conventional": "^17.4.2",
|
30
|
-
"@oclif/plugin-command-snapshot": "^3.3.
|
31
|
-
"@oclif/plugin-help": "^5.2.
|
29
|
+
"@oclif/plugin-command-snapshot": "^3.3.2",
|
30
|
+
"@oclif/plugin-help": "^5.2.2",
|
32
31
|
"@salesforce/dev-config": "^3.1.0",
|
33
|
-
"@salesforce/dev-scripts": "^3.1.
|
32
|
+
"@salesforce/dev-scripts": "^3.1.1",
|
34
33
|
"@salesforce/prettier-config": "^0.0.2",
|
35
|
-
"@salesforce/ts-sinon": "^1.4.
|
34
|
+
"@salesforce/ts-sinon": "^1.4.5",
|
36
35
|
"@types/chai": "^4.3.4",
|
37
36
|
"@types/debug": "^4.1.7",
|
38
37
|
"@types/fs-extra": "^11.0.1",
|
@@ -42,24 +41,24 @@
|
|
42
41
|
"@types/node": "^18.11.18",
|
43
42
|
"@types/semver": "^7.3.13",
|
44
43
|
"@types/sinon": "10.0.13",
|
45
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
46
|
-
"@typescript-eslint/parser": "^5.
|
44
|
+
"@typescript-eslint/eslint-plugin": "^5.50.0",
|
45
|
+
"@typescript-eslint/parser": "^5.50.0",
|
47
46
|
"chai": "^4.3.7",
|
48
|
-
"eslint": "^8.
|
47
|
+
"eslint": "^8.33.0",
|
49
48
|
"eslint-config-oclif": "^4.0",
|
50
49
|
"eslint-config-prettier": "^8.6.0",
|
51
|
-
"eslint-config-salesforce": "^1.1.
|
50
|
+
"eslint-config-salesforce": "^1.1.1",
|
52
51
|
"eslint-config-salesforce-typescript": "^1.1.1",
|
53
52
|
"eslint-plugin-header": "^3.1.1",
|
54
53
|
"eslint-plugin-import": "2.27.5",
|
55
|
-
"eslint-plugin-jsdoc": "^39.
|
54
|
+
"eslint-plugin-jsdoc": "^39.7.5",
|
56
55
|
"eslint-plugin-prettier": "^4.2.1",
|
57
|
-
"eslint-plugin-sf-plugin": "^1.
|
56
|
+
"eslint-plugin-sf-plugin": "^1.8.0",
|
58
57
|
"husky": "^8.0.3",
|
59
58
|
"is-ci": "^3.0.1",
|
60
59
|
"mocha": "^10.2.0",
|
61
60
|
"nyc": "^15.1.0",
|
62
|
-
"oclif": "^3.6.
|
61
|
+
"oclif": "^3.6.2",
|
63
62
|
"patch-package": "^6.5.1",
|
64
63
|
"pinst": "^3.0.0",
|
65
64
|
"prettier": "^2.8.3",
|
@@ -68,7 +67,7 @@
|
|
68
67
|
"sinon": "15.0.1",
|
69
68
|
"source-map-support": "~0.5.21",
|
70
69
|
"ts-node": "^10.9.1",
|
71
|
-
"typescript": "^4.9.
|
70
|
+
"typescript": "^4.9.5"
|
72
71
|
},
|
73
72
|
"engines": {
|
74
73
|
"node": ">=14.0.0"
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { SfdxCommand } from '@salesforce/command';
|
2
|
-
import { Optional } from '@salesforce/ts-types';
|
3
|
-
export declare abstract class JayreeSfdxCommand extends SfdxCommand {
|
4
|
-
protected warnIfRunByAlias(aliases: string[], id: string): void;
|
5
|
-
protected getFlag<T>(flagName: string, defaultVal?: unknown): T;
|
6
|
-
protected isJsonOutput(): boolean;
|
7
|
-
protected getSourceApiVersion(): Promise<Optional<string>>;
|
8
|
-
}
|
package/lib/jayreeSfdxCommand.js
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright (c) 2022, jayree
|
3
|
-
* All rights reserved.
|
4
|
-
* Licensed under the BSD 3-Clause license.
|
5
|
-
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
6
|
-
*/
|
7
|
-
import { SfdxCommand } from '@salesforce/command';
|
8
|
-
import { get, getBoolean, getString } from '@salesforce/ts-types';
|
9
|
-
export class JayreeSfdxCommand extends SfdxCommand {
|
10
|
-
warnIfRunByAlias(aliases, id) {
|
11
|
-
if (aliases.some((r) => process.argv.includes(r))) {
|
12
|
-
this.ux.warn(`You are using a deprecated alias of the command: ${id}`);
|
13
|
-
}
|
14
|
-
}
|
15
|
-
getFlag(flagName, defaultVal) {
|
16
|
-
return get(this.flags, flagName, defaultVal);
|
17
|
-
}
|
18
|
-
isJsonOutput() {
|
19
|
-
return getBoolean(this.flags, 'json', false);
|
20
|
-
}
|
21
|
-
async getSourceApiVersion() {
|
22
|
-
const projectConfig = await this.project.resolveProjectConfig();
|
23
|
-
return getString(projectConfig, 'sourceApiVersion');
|
24
|
-
}
|
25
|
-
}
|
26
|
-
//# sourceMappingURL=jayreeSfdxCommand.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"jayreeSfdxCommand.js","sourceRoot":"","sources":["../src/jayreeSfdxCommand.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,SAAS,EAAY,MAAM,sBAAsB,CAAC;AAE5E,MAAM,OAAgB,iBAAkB,SAAQ,WAAW;IAC/C,gBAAgB,CAAC,OAAiB,EAAE,EAAU;QACtD,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE;YACjD,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,oDAAoD,EAAE,EAAE,CAAC,CAAC;SACxE;IACH,CAAC;IAES,OAAO,CAAI,QAAgB,EAAE,UAAoB;QACzD,OAAO,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,UAAU,CAAM,CAAC;IACpD,CAAC;IAES,YAAY;QACpB,OAAO,UAAU,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IAC/C,CAAC;IAES,KAAK,CAAC,mBAAmB;QACjC,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,CAAC;QAChE,OAAO,SAAS,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAAC;IACtD,CAAC;CACF"}
|
package/lib/utils/gitdiff.d.ts
DELETED
@@ -1,57 +0,0 @@
|
|
1
|
-
import { ComponentSet, VirtualTreeContainer, SourceComponent, NodeFSTreeContainer as FSTreeContainer } from '@salesforce/source-deploy-retrieve';
|
2
|
-
import Debug from 'debug';
|
3
|
-
import git from 'isomorphic-git';
|
4
|
-
export declare const debug: Debug.Debugger;
|
5
|
-
type gitResults = {
|
6
|
-
manifest: ComponentSet;
|
7
|
-
output: {
|
8
|
-
unchanged: string[];
|
9
|
-
ignored: {
|
10
|
-
ref1: string[];
|
11
|
-
ref2: string[];
|
12
|
-
};
|
13
|
-
counts: {
|
14
|
-
added: number;
|
15
|
-
deleted: number;
|
16
|
-
modified: number;
|
17
|
-
unchanged: number;
|
18
|
-
ignored: number;
|
19
|
-
error: number;
|
20
|
-
};
|
21
|
-
errors: string[];
|
22
|
-
};
|
23
|
-
};
|
24
|
-
type git = {
|
25
|
-
ref1: string;
|
26
|
-
ref2: string;
|
27
|
-
refString: string;
|
28
|
-
};
|
29
|
-
export type gitLines = Array<{
|
30
|
-
path: string;
|
31
|
-
status: string;
|
32
|
-
}>;
|
33
|
-
export declare function resolveRef(refOrig: string, dir: string): Promise<string>;
|
34
|
-
export declare function getGitArgsFromArgv(ref1: string, ref2: string, argv: string[], dir: string): Promise<git>;
|
35
|
-
export declare function ensureOSPath(path: string): string;
|
36
|
-
export declare function ensureGitRelPath(dir: string, path: string): string;
|
37
|
-
export declare function createVirtualTreeContainer(ref: string, dir: string, modifiedFiles: string[]): Promise<VirtualTreeContainer>;
|
38
|
-
export declare function analyzeFile(path: string, ref1VirtualTreeContainer: VirtualTreeContainer, ref2VirtualTreeContainer: VirtualTreeContainer | FSTreeContainer): Promise<{
|
39
|
-
path: string;
|
40
|
-
status: number;
|
41
|
-
toManifest?: SourceComponent[];
|
42
|
-
toDestructiveChanges?: SourceComponent[];
|
43
|
-
}>;
|
44
|
-
export declare function getUniqueIdentifier(component: SourceComponent): string;
|
45
|
-
export declare function getFileStateChanges(commitHash1: string, commitHash2: string, dir: string): Promise<[
|
46
|
-
{
|
47
|
-
path: string;
|
48
|
-
status: string;
|
49
|
-
}
|
50
|
-
]>;
|
51
|
-
export declare function getGitDiff(ref1: string, ref2: string, dir: string): Promise<{
|
52
|
-
gitlines: gitLines;
|
53
|
-
warnings: string[];
|
54
|
-
}>;
|
55
|
-
export declare function getGitResults(gitLines: gitLines, ref1VirtualTreeContainer: VirtualTreeContainer, ref2VirtualTreeContainer: VirtualTreeContainer | FSTreeContainer, destructiveChangesOnly: boolean, fsPaths: string[]): Promise<gitResults>;
|
56
|
-
export declare function fixComponentSetChilds(cs: ComponentSet): ComponentSet;
|
57
|
-
export {};
|
package/lib/utils/gitdiff.js
DELETED
@@ -1,442 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright (c) 2022, jayree
|
3
|
-
* All rights reserved.
|
4
|
-
* Licensed under the BSD 3-Clause license.
|
5
|
-
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
6
|
-
*/
|
7
|
-
import { join, basename, sep, posix, dirname, relative } from 'node:path';
|
8
|
-
import util from 'util';
|
9
|
-
import { resolve } from 'node:path';
|
10
|
-
import fs from 'fs-extra';
|
11
|
-
import equal from 'fast-deep-equal';
|
12
|
-
import { ComponentSet, RegistryAccess, registry, VirtualTreeContainer, MetadataResolver, DestructiveChangesType, } from '@salesforce/source-deploy-retrieve';
|
13
|
-
import { parseMetadataXml } from '@salesforce/source-deploy-retrieve/lib/src/utils/index.js';
|
14
|
-
import Debug from 'debug';
|
15
|
-
import git from 'isomorphic-git';
|
16
|
-
import { SfProject } from '@salesforce/core';
|
17
|
-
export const debug = Debug('jayree:manifest:git:diff');
|
18
|
-
const registryAccess = new RegistryAccess();
|
19
|
-
export async function resolveRef(refOrig, dir) {
|
20
|
-
if (refOrig === '') {
|
21
|
-
return '';
|
22
|
-
}
|
23
|
-
const getCommitLog = async (ref) => {
|
24
|
-
try {
|
25
|
-
const [log] = await git.log({
|
26
|
-
fs,
|
27
|
-
dir,
|
28
|
-
ref,
|
29
|
-
depth: 1,
|
30
|
-
});
|
31
|
-
return { oid: log.oid, parents: log.commit.parent };
|
32
|
-
}
|
33
|
-
catch (error) {
|
34
|
-
throw new Error(`ambiguous argument '${ref}': unknown revision or path not in the working tree.
|
35
|
-
See more help with --help`);
|
36
|
-
}
|
37
|
-
};
|
38
|
-
if (!['~', '^'].some((el) => refOrig.includes(el))) {
|
39
|
-
return (await getCommitLog(refOrig)).oid;
|
40
|
-
}
|
41
|
-
const firstIndex = [refOrig.indexOf('^'), refOrig.indexOf('~')]
|
42
|
-
.filter((a) => a >= 0)
|
43
|
-
.reduce((a, b) => Math.min(a, b));
|
44
|
-
let path = refOrig.substring(firstIndex);
|
45
|
-
let ref = refOrig.substring(0, firstIndex);
|
46
|
-
while (path.length && ref !== undefined) {
|
47
|
-
if (path.startsWith('^')) {
|
48
|
-
path = path.substring(1);
|
49
|
-
let next = Number(path.substring(0, 1));
|
50
|
-
path = next ? path.substring(1) : path;
|
51
|
-
next = next ? next : 1;
|
52
|
-
// eslint-disable-next-line no-await-in-loop
|
53
|
-
ref = (await getCommitLog(ref)).parents[next - 1];
|
54
|
-
}
|
55
|
-
else if (path.startsWith('~')) {
|
56
|
-
path = path.substring(1);
|
57
|
-
let next = Number(path.substring(0, 1));
|
58
|
-
path = next ? path.substring(1) : path;
|
59
|
-
next = next ? next : 1;
|
60
|
-
for (let index = 0; index <= next - 1; index++) {
|
61
|
-
// eslint-disable-next-line no-await-in-loop
|
62
|
-
ref = (await getCommitLog(ref)).parents[0];
|
63
|
-
}
|
64
|
-
}
|
65
|
-
else {
|
66
|
-
ref = undefined;
|
67
|
-
}
|
68
|
-
}
|
69
|
-
if (ref === undefined) {
|
70
|
-
throw new Error(`ambiguous argument '${refOrig}': unknown revision or path not in the working tree.`);
|
71
|
-
}
|
72
|
-
return ref;
|
73
|
-
}
|
74
|
-
export async function getGitArgsFromArgv(ref1, ref2, argv, dir) {
|
75
|
-
const newArgv = [];
|
76
|
-
while (argv.length) {
|
77
|
-
let [e] = argv.splice(0, 1);
|
78
|
-
if (e.includes('=')) {
|
79
|
-
// skip parameter=value
|
80
|
-
}
|
81
|
-
else if (e.includes('-')) {
|
82
|
-
// remove value
|
83
|
-
if (argv[0] && !argv[0].includes('-') && ![ref1, ref2].includes(argv[0])) {
|
84
|
-
[e] = argv.splice(0, 1);
|
85
|
-
}
|
86
|
-
}
|
87
|
-
else {
|
88
|
-
newArgv.push(e);
|
89
|
-
}
|
90
|
-
}
|
91
|
-
argv = newArgv;
|
92
|
-
let refString = ref1;
|
93
|
-
const a = argv.join('.').split('.');
|
94
|
-
if ((a.length === 3 || a.length === 4) && typeof ref2 === 'undefined') {
|
95
|
-
ref1 = a[0];
|
96
|
-
ref2 = a[a.length - 1];
|
97
|
-
}
|
98
|
-
else if (a.length === 2 && typeof ref2 !== 'undefined') {
|
99
|
-
refString = `${ref1}..${ref2}`;
|
100
|
-
}
|
101
|
-
else if (a.length === 1) {
|
102
|
-
ref2 = '';
|
103
|
-
}
|
104
|
-
else {
|
105
|
-
throw new Error(`Ambiguous ${util.format('argument%s', argv.length === 1 ? '' : 's')}: ${argv.join(', ')}
|
106
|
-
See more help with --help`);
|
107
|
-
}
|
108
|
-
ref1 = await resolveRef(ref1, dir);
|
109
|
-
ref2 = await resolveRef(ref2, dir);
|
110
|
-
if (a.length === 4) {
|
111
|
-
ref1 = (await git.findMergeBase({
|
112
|
-
fs,
|
113
|
-
dir,
|
114
|
-
oids: [ref2, ref1],
|
115
|
-
}))[0];
|
116
|
-
}
|
117
|
-
return { ref1, ref2, refString };
|
118
|
-
}
|
119
|
-
export function ensureOSPath(path) {
|
120
|
-
return path.split(posix.sep).join(sep);
|
121
|
-
}
|
122
|
-
export function ensureGitRelPath(dir, path) {
|
123
|
-
return relative(dir, path).split(sep).join(posix.sep);
|
124
|
-
}
|
125
|
-
export async function createVirtualTreeContainer(ref, dir, modifiedFiles) {
|
126
|
-
const paths = (await git.listFiles({ fs, dir, ref })).map((p) => join(dir, ensureOSPath(p)));
|
127
|
-
const oid = ref ? await git.resolveRef({ fs, dir, ref }) : '';
|
128
|
-
const virtualDirectoryByFullPath = new Map();
|
129
|
-
for await (const filename of paths) {
|
130
|
-
let dirPath = dirname(filename);
|
131
|
-
virtualDirectoryByFullPath.set(dirPath, {
|
132
|
-
dirPath,
|
133
|
-
children: Array.from(new Set(virtualDirectoryByFullPath.get(dirPath)?.children ?? []).add({
|
134
|
-
name: basename(filename),
|
135
|
-
data: parseMetadataXml(filename) && modifiedFiles.includes(filename)
|
136
|
-
? oid
|
137
|
-
? Buffer.from((await git.readBlob({ fs, dir, oid, filepath: ensureGitRelPath(dir, filename) })).blob)
|
138
|
-
: await fs.readFile(ensureOSPath(filename))
|
139
|
-
: Buffer.from(''),
|
140
|
-
})),
|
141
|
-
});
|
142
|
-
const splits = filename.split(sep);
|
143
|
-
for (let i = 1; i < splits.length - 1; i++) {
|
144
|
-
dirPath = splits.slice(0, i + 1).join(sep);
|
145
|
-
virtualDirectoryByFullPath.set(dirPath, {
|
146
|
-
dirPath,
|
147
|
-
children: Array.from(new Set(virtualDirectoryByFullPath.get(dirPath)?.children ?? []).add(splits[i + 1])),
|
148
|
-
});
|
149
|
-
}
|
150
|
-
}
|
151
|
-
return new VirtualTreeContainer(Array.from(virtualDirectoryByFullPath.values()));
|
152
|
-
}
|
153
|
-
export async function analyzeFile(path, ref1VirtualTreeContainer, ref2VirtualTreeContainer) {
|
154
|
-
if (!parseMetadataXml(path)) {
|
155
|
-
return { path, status: 0 };
|
156
|
-
}
|
157
|
-
const ref2resolver = new MetadataResolver(registryAccess, ref2VirtualTreeContainer);
|
158
|
-
const [ref2Component] = ref2resolver.getComponentsFromPath(path); // git path only conaints files
|
159
|
-
const ref1resolver = new MetadataResolver(registryAccess, ref1VirtualTreeContainer);
|
160
|
-
const [ref1Component] = ref1resolver.getComponentsFromPath(path); // git path only conaints files
|
161
|
-
if (ref1resolver.forceIgnoredPaths.has(path) || ref2resolver.forceIgnoredPaths.has(path)) {
|
162
|
-
return { path, status: -2 };
|
163
|
-
}
|
164
|
-
if (equal(await ref1Component.parseXml(), await ref2Component.parseXml())) {
|
165
|
-
return { path, status: -1 };
|
166
|
-
}
|
167
|
-
if (ref1Component.type.strictDirectoryName === true || !ref1Component.type.children) {
|
168
|
-
return { path, status: 0 };
|
169
|
-
}
|
170
|
-
const ref2ChildUniqueIdArray = ref2Component
|
171
|
-
.getChildren()
|
172
|
-
.map((childComponent) => getUniqueIdentifier(childComponent));
|
173
|
-
const ref1ChildUniqueIdArray = ref1Component
|
174
|
-
.getChildren()
|
175
|
-
.map((childComponent) => getUniqueIdentifier(childComponent));
|
176
|
-
const childComponentsNotInRef2 = ref1Component
|
177
|
-
.getChildren()
|
178
|
-
.filter((childComponent) => !ref2ChildUniqueIdArray.includes(getUniqueIdentifier(childComponent))); // deleted
|
179
|
-
const childComponentsNotInRef1 = ref2Component
|
180
|
-
.getChildren()
|
181
|
-
.filter((childComponent) => !ref1ChildUniqueIdArray.includes(getUniqueIdentifier(childComponent))); // added
|
182
|
-
const childComponentsInRef1AndRef2 = ref1Component
|
183
|
-
.getChildren()
|
184
|
-
.filter((childComponent) => ref2ChildUniqueIdArray.includes(getUniqueIdentifier(childComponent))); // modified?
|
185
|
-
debug({ childComponentsNotInRef2, childComponentsNotInRef1, childComponentsInRef1AndRef2 });
|
186
|
-
for await (const childComponentRef1 of childComponentsInRef1AndRef2) {
|
187
|
-
const [childComponentRef2] = ref2Component
|
188
|
-
.getChildren()
|
189
|
-
.filter((childComponent) => getUniqueIdentifier(childComponentRef1) === getUniqueIdentifier(childComponent));
|
190
|
-
if (!equal(await childComponentRef1.parseXml(), await childComponentRef2.parseXml())) {
|
191
|
-
childComponentsNotInRef1.push(childComponentRef2); // modified! -> add to added
|
192
|
-
}
|
193
|
-
}
|
194
|
-
debug({ childComponentsNotInRef1 });
|
195
|
-
return {
|
196
|
-
path,
|
197
|
-
status: 1 + childComponentsNotInRef2.length + childComponentsNotInRef1.length,
|
198
|
-
toManifest: childComponentsNotInRef1,
|
199
|
-
toDestructiveChanges: childComponentsNotInRef2,
|
200
|
-
};
|
201
|
-
}
|
202
|
-
export function getUniqueIdentifier(component) {
|
203
|
-
return `${component.type.name}#${component[component.type.uniqueIdElement]}`;
|
204
|
-
}
|
205
|
-
export async function getFileStateChanges(commitHash1, commitHash2, dir) {
|
206
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
207
|
-
return git.walk({
|
208
|
-
fs,
|
209
|
-
dir,
|
210
|
-
trees: [git.TREE({ ref: commitHash1 }), git.TREE({ ref: commitHash2 })],
|
211
|
-
async map(filepath, [A, B]) {
|
212
|
-
if (filepath === '.' || (await A?.type()) === 'tree' || (await B?.type()) === 'tree') {
|
213
|
-
return;
|
214
|
-
}
|
215
|
-
const Aoid = await A?.oid();
|
216
|
-
const Boid = await B?.oid();
|
217
|
-
let type = 'EQ';
|
218
|
-
if (Aoid !== Boid) {
|
219
|
-
type = 'M';
|
220
|
-
}
|
221
|
-
if (Aoid === undefined) {
|
222
|
-
type = 'A';
|
223
|
-
}
|
224
|
-
if (Boid === undefined) {
|
225
|
-
type = 'D';
|
226
|
-
}
|
227
|
-
if (type !== 'EQ') {
|
228
|
-
return {
|
229
|
-
path: join(dir, ensureOSPath(filepath)),
|
230
|
-
status: type,
|
231
|
-
};
|
232
|
-
}
|
233
|
-
},
|
234
|
-
});
|
235
|
-
}
|
236
|
-
async function getStatusMatrix(dir, ref) {
|
237
|
-
const getStatus = (row) => {
|
238
|
-
if ([
|
239
|
-
[0, 2, 2],
|
240
|
-
[0, 2, 3], // added, staged, with unstaged changes
|
241
|
-
].some((a) => a.every((val, index) => val === row[index]))) {
|
242
|
-
return 'A';
|
243
|
-
}
|
244
|
-
if ([
|
245
|
-
[1, 0, 0],
|
246
|
-
[1, 0, 1],
|
247
|
-
[1, 1, 0],
|
248
|
-
[1, 2, 0],
|
249
|
-
[1, 0, 3], // modified, staged, with unstaged deletion
|
250
|
-
].some((a) => a.every((val, index) => val === row[index]))) {
|
251
|
-
return 'D';
|
252
|
-
}
|
253
|
-
if ([
|
254
|
-
[1, 2, 1],
|
255
|
-
[1, 2, 2],
|
256
|
-
[1, 2, 3], // modified, staged, with unstaged changes
|
257
|
-
].some((a) => a.every((val, index) => val === row[index]))) {
|
258
|
-
return 'M';
|
259
|
-
}
|
260
|
-
};
|
261
|
-
const statusMatrix = await git.statusMatrix({ fs, dir, ref });
|
262
|
-
const warnings = statusMatrix
|
263
|
-
.filter((row) => [
|
264
|
-
[0, 2, 0],
|
265
|
-
[0, 0, 3],
|
266
|
-
[0, 2, 3],
|
267
|
-
[1, 2, 1],
|
268
|
-
[1, 0, 3],
|
269
|
-
[1, 1, 3],
|
270
|
-
[1, 2, 3],
|
271
|
-
[1, 1, 0],
|
272
|
-
[1, 2, 0],
|
273
|
-
[1, 0, 1], // deleted, unstaged
|
274
|
-
].some((a) => a.every((val, index) => val === row.slice(1)[index])))
|
275
|
-
.map((row) => join(dir, ensureOSPath(row[0])));
|
276
|
-
const gitlines = statusMatrix
|
277
|
-
.filter((row) => ![
|
278
|
-
[0, 0, 0],
|
279
|
-
[1, 1, 1],
|
280
|
-
[0, 0, 3],
|
281
|
-
[0, 2, 0],
|
282
|
-
[1, 1, 3], // modified, staged, with unstaged original file
|
283
|
-
].some((a) => a.every((val, index) => val === row.slice(1)[index])))
|
284
|
-
.map((row) => ({
|
285
|
-
path: join(dir, ensureOSPath(row[0])),
|
286
|
-
status: getStatus(row.slice(1)),
|
287
|
-
}));
|
288
|
-
return { warnings, lines: gitlines };
|
289
|
-
}
|
290
|
-
export async function getGitDiff(ref1, ref2, dir) {
|
291
|
-
let gitlines;
|
292
|
-
let warnings;
|
293
|
-
const proj = await SfProject.resolve();
|
294
|
-
const resolveSourcePaths = proj.getUniquePackageDirectories().map((pDir) => pDir.fullPath);
|
295
|
-
if (ref2) {
|
296
|
-
gitlines = (await getFileStateChanges(ref1, ref2, dir)).filter((l) => resolveSourcePaths.some((f) => l.path.startsWith(f)));
|
297
|
-
}
|
298
|
-
else {
|
299
|
-
const { warnings: warn, lines } = await getStatusMatrix(dir, ref1);
|
300
|
-
warnings = warn.filter((l) => resolveSourcePaths.some((f) => l.startsWith(f)));
|
301
|
-
gitlines = lines.filter((l) => resolveSourcePaths.some((f) => l.path.startsWith(f)));
|
302
|
-
}
|
303
|
-
gitlines = gitlines.filter((line) => {
|
304
|
-
if (line.status === 'D') {
|
305
|
-
for (const sourcePath of resolveSourcePaths) {
|
306
|
-
const defaultFolder = join(sourcePath, 'main', 'default');
|
307
|
-
const filePath = line.path.replace(line.path.startsWith(defaultFolder) ? defaultFolder : sourcePath, '');
|
308
|
-
const target = gitlines.find((t) => t.path.endsWith(filePath) && t.status === 'A');
|
309
|
-
if (target) {
|
310
|
-
debug(`rename: ${line.path} -> ${target.path}`);
|
311
|
-
return false;
|
312
|
-
}
|
313
|
-
}
|
314
|
-
}
|
315
|
-
return true;
|
316
|
-
});
|
317
|
-
debug({ gitlines, warnings });
|
318
|
-
return { gitlines, warnings };
|
319
|
-
}
|
320
|
-
// eslint-disable-next-line complexity
|
321
|
-
export async function getGitResults(gitLines, ref1VirtualTreeContainer, ref2VirtualTreeContainer, destructiveChangesOnly, fsPaths) {
|
322
|
-
const results = {
|
323
|
-
manifest: new ComponentSet(undefined, registryAccess),
|
324
|
-
output: {
|
325
|
-
unchanged: [],
|
326
|
-
ignored: { ref1: [], ref2: [] },
|
327
|
-
counts: { added: 0, deleted: 0, modified: 0, unchanged: 0, ignored: 0, error: 0 },
|
328
|
-
errors: [],
|
329
|
-
},
|
330
|
-
};
|
331
|
-
const ref1Resolver = new MetadataResolver(registryAccess, ref1VirtualTreeContainer);
|
332
|
-
const ref2Resolver = new MetadataResolver(registryAccess, ref2VirtualTreeContainer);
|
333
|
-
const getComponentsFromPath = (resolver, path) => {
|
334
|
-
let result = [];
|
335
|
-
try {
|
336
|
-
result = resolver.getComponentsFromPath(path);
|
337
|
-
}
|
338
|
-
catch (error) {
|
339
|
-
results.output.counts.error++;
|
340
|
-
results.output.errors.push(error);
|
341
|
-
}
|
342
|
-
return result;
|
343
|
-
};
|
344
|
-
const analyzedFilesPromises = [];
|
345
|
-
for (const [, { status, path }] of gitLines.entries()) {
|
346
|
-
if (!fsPaths || fsPaths.some((fsPath) => resolve(path).startsWith(fsPath))) {
|
347
|
-
if (status === 'D') {
|
348
|
-
for (const c of getComponentsFromPath(ref1Resolver, path)) {
|
349
|
-
if (c.xml === path || gitLines.find((x) => x.path === c.xml)) {
|
350
|
-
results.manifest.add(c, DestructiveChangesType.POST);
|
351
|
-
results.output.counts.deleted++;
|
352
|
-
}
|
353
|
-
else {
|
354
|
-
try {
|
355
|
-
// in case a binary source file of a bundle was deleted, check if the bundle ist still valid and update instead of delete
|
356
|
-
ref2Resolver.getComponentsFromPath(c.xml);
|
357
|
-
if (!destructiveChangesOnly) {
|
358
|
-
results.manifest.add(c);
|
359
|
-
results.output.counts.added++;
|
360
|
-
}
|
361
|
-
}
|
362
|
-
catch (error) {
|
363
|
-
results.output.counts.error++;
|
364
|
-
results.output.errors.push(error);
|
365
|
-
}
|
366
|
-
}
|
367
|
-
}
|
368
|
-
}
|
369
|
-
else if (status === 'A') {
|
370
|
-
if (!destructiveChangesOnly) {
|
371
|
-
for (const c of getComponentsFromPath(ref2Resolver, path)) {
|
372
|
-
results.manifest.add(c);
|
373
|
-
results.output.counts.added++;
|
374
|
-
}
|
375
|
-
}
|
376
|
-
}
|
377
|
-
else {
|
378
|
-
analyzedFilesPromises.push(analyzeFile(path, ref1VirtualTreeContainer, ref2VirtualTreeContainer));
|
379
|
-
}
|
380
|
-
}
|
381
|
-
else {
|
382
|
-
debug(`${path} not included in sourcepath`);
|
383
|
-
}
|
384
|
-
}
|
385
|
-
for await (const check of analyzedFilesPromises) {
|
386
|
-
if (check.status === 0) {
|
387
|
-
if (!destructiveChangesOnly) {
|
388
|
-
for (const c of getComponentsFromPath(ref2Resolver, check.path)) {
|
389
|
-
results.manifest.add(c);
|
390
|
-
results.output.counts.modified++;
|
391
|
-
}
|
392
|
-
}
|
393
|
-
}
|
394
|
-
else if (check.status === -1) {
|
395
|
-
results.output.unchanged.push(check.path);
|
396
|
-
results.output.counts.unchanged++;
|
397
|
-
}
|
398
|
-
else if (check.status === -2) {
|
399
|
-
results.output.counts.ignored++;
|
400
|
-
results.output.ignored.ref2.push(check.path);
|
401
|
-
}
|
402
|
-
else {
|
403
|
-
if (check.toDestructiveChanges.length > 0 || (check.toManifest.length > 0 && !destructiveChangesOnly)) {
|
404
|
-
results.output.counts.modified++;
|
405
|
-
}
|
406
|
-
for (const c of check.toDestructiveChanges) {
|
407
|
-
results.manifest.add(c, DestructiveChangesType.POST);
|
408
|
-
}
|
409
|
-
if (!destructiveChangesOnly) {
|
410
|
-
for (const c of check.toManifest) {
|
411
|
-
results.manifest.add(c);
|
412
|
-
}
|
413
|
-
}
|
414
|
-
}
|
415
|
-
}
|
416
|
-
results.output.ignored = {
|
417
|
-
ref1: Array.from(ref1Resolver.forceIgnoredPaths),
|
418
|
-
ref2: results.output.ignored.ref2.concat(Array.from(ref2Resolver.forceIgnoredPaths)),
|
419
|
-
};
|
420
|
-
results.output.counts.ignored =
|
421
|
-
results.output.counts.ignored + ref1Resolver.forceIgnoredPaths.size + ref2Resolver.forceIgnoredPaths.size;
|
422
|
-
return results;
|
423
|
-
}
|
424
|
-
export function fixComponentSetChilds(cs) {
|
425
|
-
let sourceComponents = cs.getSourceComponents();
|
426
|
-
// SDR library is more strict and avoids fixes like this
|
427
|
-
const childsTobeReplacedByParent = [
|
428
|
-
...Object.keys(registry.types.workflow.children.types),
|
429
|
-
...Object.keys(registry.types.sharingrules.children.types),
|
430
|
-
...Object.keys(registry.types.customobjecttranslation.children.types),
|
431
|
-
...Object.keys(registry.types.bot.children.types),
|
432
|
-
];
|
433
|
-
sourceComponents = sourceComponents.map((component) => {
|
434
|
-
if (!component.isMarkedForDelete() && childsTobeReplacedByParent.includes(component.type.id)) {
|
435
|
-
debug(`replace: ${component.type.name}:${component.fullName} -> ${component.parent.type.name}:${component.parent.fullName}`);
|
436
|
-
return component.parent;
|
437
|
-
}
|
438
|
-
return component;
|
439
|
-
});
|
440
|
-
return new ComponentSet(sourceComponents, registryAccess);
|
441
|
-
}
|
442
|
-
//# sourceMappingURL=gitdiff.js.map
|
package/lib/utils/gitdiff.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"gitdiff.js","sourceRoot":"","sources":["../../src/utils/gitdiff.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,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