@jayree/sfdx-plugin-manifest 2.6.4 → 2.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +58 -53
  3. package/lib/SDR-extra/collections/componentSetExtra.d.ts +2 -3
  4. package/lib/SDR-extra/collections/componentSetExtra.js +28 -18
  5. package/lib/SDR-extra/collections/componentSetExtra.js.map +1 -1
  6. package/lib/SDR-extra/collections/index.d.ts +1 -0
  7. package/lib/SDR-extra/collections/index.js +8 -0
  8. package/lib/SDR-extra/collections/index.js.map +1 -0
  9. package/lib/SDR-extra/index.d.ts +3 -0
  10. package/lib/SDR-extra/index.js +10 -0
  11. package/lib/SDR-extra/index.js.map +1 -0
  12. package/lib/SDR-extra/resolve/gitDiffResolver.d.ts +3 -6
  13. package/lib/SDR-extra/resolve/gitDiffResolver.js +22 -18
  14. package/lib/SDR-extra/resolve/gitDiffResolver.js.map +1 -1
  15. package/lib/SDR-extra/resolve/index.d.ts +2 -0
  16. package/lib/SDR-extra/resolve/index.js +9 -0
  17. package/lib/SDR-extra/resolve/index.js.map +1 -0
  18. package/lib/SDR-extra/resolve/treeContainersExtra.d.ts +1 -1
  19. package/lib/SDR-extra/resolve/treeContainersExtra.js +9 -8
  20. package/lib/SDR-extra/resolve/treeContainersExtra.js.map +1 -1
  21. package/lib/SDR-extra/utils/index.d.ts +1 -0
  22. package/lib/SDR-extra/utils/index.js +8 -0
  23. package/lib/SDR-extra/utils/index.js.map +1 -0
  24. package/lib/SDR-extra/utils/localGitRepo.d.ts +39 -0
  25. package/lib/SDR-extra/utils/localGitRepo.js +239 -0
  26. package/lib/SDR-extra/utils/localGitRepo.js.map +1 -0
  27. package/lib/commands/jayree/manifest/beta/git/diff.d.ts +15 -10
  28. package/lib/commands/jayree/manifest/beta/git/diff.js +49 -35
  29. package/lib/commands/jayree/manifest/beta/git/diff.js.map +1 -1
  30. package/lib/commands/jayree/manifest/cleanup.js +7 -1
  31. package/lib/commands/jayree/manifest/cleanup.js.map +1 -1
  32. package/lib/commands/jayree/manifest/generate.js +7 -1
  33. package/lib/commands/jayree/manifest/generate.js.map +1 -1
  34. package/lib/commands/jayree/manifest/git/diff.js +7 -2
  35. package/lib/commands/jayree/manifest/git/diff.js.map +1 -1
  36. package/lib/hooks/changelog.js +7 -2
  37. package/lib/hooks/changelog.js.map +1 -1
  38. package/lib/utils/gitdiff.js +2 -2
  39. package/lib/utils/gitdiff.js.map +1 -1
  40. package/messages/gitdiffbeta.md +78 -0
  41. package/oclif.manifest.json +1 -1
  42. package/package.json +5 -3
  43. package/lib/SDR-extra/utils/git-extra.d.ts +0 -71
  44. package/lib/SDR-extra/utils/git-extra.js +0 -202
  45. package/lib/SDR-extra/utils/git-extra.js.map +0 -1
  46. package/messages/gitdiffbeta.json +0 -17
@@ -1,202 +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 util from 'util';
8
- import path from 'path';
9
- import git from 'isomorphic-git';
10
- import Debug from 'debug';
11
- const debug = Debug('sf:gitDiff:extra');
12
- async function getCommitLog(options) {
13
- try {
14
- const [log] = await git.log({
15
- fs: options.fs,
16
- dir: options.dir,
17
- ref: options.ref,
18
- depth: 1,
19
- });
20
- return { oid: log.oid, parents: log.commit.parent };
21
- }
22
- catch (error) {
23
- throw new Error(`ambiguous argument '${options.ref}': unknown revision or path not in the working tree.
24
- See more help with --help`);
25
- }
26
- }
27
- export async function resolveMultiRefString(options) {
28
- const a = options.ref.split('.');
29
- let ref1;
30
- let ref2;
31
- if (a.length === 3 || a.length === 4) {
32
- ref1 = a[0];
33
- ref2 = a[a.length - 1];
34
- }
35
- else if (a.length === 1) {
36
- ref1 = a[0];
37
- ref2 = undefined;
38
- }
39
- else {
40
- throw new Error(`Ambiguous ${util.format('argument%s', options.ref.length === 1 ? '' : 's')}: ${options.ref}
41
- See more help with --help`);
42
- }
43
- if (a.length === 4) {
44
- ref1 = (await git.findMergeBase({
45
- fs: options.fs,
46
- dir: options.dir,
47
- oids: [ref2, ref1],
48
- }))[0];
49
- }
50
- else {
51
- ref1 = await resolveSingleRefString({ ref: ref1, dir: options.dir, fs: options.fs });
52
- }
53
- ref2 = await resolveSingleRefString({ ref: ref2, dir: options.dir, fs: options.fs });
54
- return { ref1, ref2 };
55
- }
56
- export async function resolveSingleRefString(options) {
57
- if (options.ref === undefined) {
58
- return '';
59
- }
60
- if (!['~', '^'].some((el) => options.ref.includes(el))) {
61
- return (await getCommitLog({ ref: options.ref, fs: options.fs, dir: options.dir })).oid;
62
- }
63
- const firstIndex = [options.ref.indexOf('^'), options.ref.indexOf('~')]
64
- .filter((a) => a >= 0)
65
- .reduce((a, b) => Math.min(a, b));
66
- let ipath = options.ref.substring(firstIndex);
67
- let resolvedRef = options.ref.substring(0, firstIndex);
68
- while (ipath.length && resolvedRef !== undefined) {
69
- if (ipath.startsWith('^')) {
70
- ipath = ipath.substring(1);
71
- let next = Number(ipath.substring(0, 1));
72
- ipath = next ? ipath.substring(1) : ipath;
73
- next = next ? next : 1;
74
- // eslint-disable-next-line no-await-in-loop
75
- resolvedRef = (await getCommitLog({ ref: resolvedRef, fs: options.fs, dir: options.dir })).parents[next - 1];
76
- }
77
- else if (ipath.startsWith('~')) {
78
- ipath = ipath.substring(1);
79
- let next = Number(ipath.substring(0, 1));
80
- ipath = next ? ipath.substring(1) : ipath;
81
- next = next ? next : 1;
82
- for (let index = 0; index <= next - 1; index++) {
83
- // eslint-disable-next-line no-await-in-loop
84
- resolvedRef = (await getCommitLog({ ref: resolvedRef, fs: options.fs, dir: options.dir })).parents[0];
85
- }
86
- }
87
- else {
88
- resolvedRef = undefined;
89
- }
90
- }
91
- if (resolvedRef === undefined) {
92
- throw new Error(`ambiguous argument '${options.ref}': unknown revision or path not in the working tree.`);
93
- }
94
- return resolvedRef;
95
- }
96
- export async function getFileState(options) {
97
- // eslint-disable-next-line @typescript-eslint/no-unsafe-return
98
- return git.walk({
99
- fs: options.fs,
100
- dir: options.dir,
101
- trees: [git.TREE({ ref: options.ref1 }), git.TREE({ ref: options.ref2 })],
102
- async map(filepath, [A, B]) {
103
- if (filepath === '.' || (await A?.type()) === 'tree' || (await B?.type()) === 'tree') {
104
- return;
105
- }
106
- const Aoid = await A?.oid();
107
- const Boid = await B?.oid();
108
- let type = 'EQ';
109
- if (Aoid !== Boid) {
110
- type = 'M';
111
- }
112
- if (Aoid === undefined) {
113
- type = 'A';
114
- }
115
- if (Boid === undefined) {
116
- type = 'D';
117
- }
118
- if (type !== 'EQ') {
119
- return {
120
- path: path.join(options.dir, ensureOSPath(filepath)),
121
- status: type,
122
- };
123
- }
124
- },
125
- });
126
- }
127
- export async function getStatus(options) {
128
- const getStatusText = (row) => {
129
- if ([
130
- [0, 2, 2],
131
- [0, 2, 3], // added, staged, with unstaged changes
132
- ].some((a) => a.every((val, index) => val === row[index]))) {
133
- return 'A';
134
- }
135
- if ([
136
- [1, 0, 0],
137
- [1, 0, 1],
138
- [1, 1, 0],
139
- [1, 2, 0],
140
- [1, 0, 3], // modified, staged, with unstaged deletion
141
- ].some((a) => a.every((val, index) => val === row[index]))) {
142
- return 'D';
143
- }
144
- if ([
145
- [1, 2, 1],
146
- [1, 2, 2],
147
- [1, 2, 3], // modified, staged, with unstaged changes
148
- ].some((a) => a.every((val, index) => val === row[index]))) {
149
- return 'M';
150
- }
151
- };
152
- const statusMatrix = await git.statusMatrix({ fs: options.fs, dir: options.dir, ref: options.ref });
153
- const unstaged = statusMatrix
154
- .filter((row) => [
155
- [0, 2, 0],
156
- [0, 0, 3],
157
- [0, 2, 3],
158
- [1, 2, 1],
159
- [1, 0, 3],
160
- [1, 1, 3],
161
- [1, 2, 3],
162
- [1, 1, 0],
163
- [1, 2, 0],
164
- [1, 0, 1], // deleted, unstaged
165
- ].some((a) => a.every((val, index) => val === row.slice(1)[index])))
166
- .map((row) => path.join(options.dir, ensureOSPath(row[0])));
167
- debug({ unstaged });
168
- const gitlines = statusMatrix
169
- .filter((row) => ![
170
- [0, 0, 0],
171
- [1, 1, 1],
172
- [0, 0, 3],
173
- [0, 2, 0],
174
- [1, 1, 3], // modified, staged, with unstaged original file
175
- ].some((a) => a.every((val, index) => val === row.slice(1)[index])))
176
- .map((row) => ({
177
- path: path.join(options.dir, ensureOSPath(row[0])),
178
- status: getStatusText(row.slice(1)),
179
- }));
180
- return gitlines;
181
- }
182
- function ensureOSPath(fpath) {
183
- return fpath.split(path.posix.sep).join(path.sep);
184
- }
185
- function ensureGitRelPath(dir, fpath) {
186
- return path.relative(dir, fpath).split(path.sep).join(path.posix.sep);
187
- }
188
- export async function listFullPathFiles(options) {
189
- return (await git.listFiles({ fs: options.fs, dir: options.dir, ref: options.ref })).map((p) => path.join(options.dir, ensureOSPath(p)));
190
- }
191
- export async function getOid(options) {
192
- return options.ref ? git.resolveRef({ fs: options.fs, dir: options.dir, ref: options.ref }) : '';
193
- }
194
- export async function readBlobAsBuffer(options) {
195
- return Buffer.from((await git.readBlob({
196
- fs: options.fs,
197
- dir: options.dir,
198
- oid: options.oid,
199
- filepath: ensureGitRelPath(options.dir, options.filename),
200
- })).blob);
201
- }
202
- //# sourceMappingURL=git-extra.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"git-extra.js","sourceRoot":"","sources":["../../../src/SDR-extra/utils/git-extra.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,GAA0C,MAAM,gBAAgB,CAAC;AACxE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,KAAK,GAAG,KAAK,CAAC,kBAAkB,CAAC,CAAC;AAmBxC,KAAK,UAAU,YAAY,CAAC,OAAmB;IAC7C,IAAI;QACF,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,GAAG,CAAC,GAAG,CAAC;YAC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,CAAC,KAAK,UAAU,gBAAgB,CAAC,OAAoB;IACzD,OAAO,MAAM,CAAC,IAAI,CAChB,CACE,MAAM,GAAG,CAAC,QAAQ,CAAC;QACjB,EAAE,EAAE,OAAO,CAAC,EAAE;QACd,GAAG,EAAE,OAAO,CAAC,GAAG;QAChB,GAAG,EAAE,OAAO,CAAC,GAAG;QAChB,QAAQ,EAAE,gBAAgB,CAAC,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,QAAQ,CAAC;KAC1D,CAAC,CACH,CAAC,IAAI,CACP,CAAC;AACJ,CAAC"}
@@ -1,17 +0,0 @@
1
- {
2
- "description": "create a project manifest and destructiveChanges manifest that lists the metadata components you want to deploy or delete based on changes in your git history\nUse this command to create a manifest and destructiveChanges manifest file based on the difference (git diff) of two git refs.\n\nYou can use all ways to spell <commit> which are valid for 'git diff'.\n(See https://git-scm.com/docs/git-diff)",
3
- "examples": [
4
- "$ sfdx jayree:manifest:beta:git:diff <commit> <commit>\n$ sfdx jayree:manifest:git:diff <commit>..<commit>\nuses the changes between two arbitrary <commit>",
5
- "$ sfdx jayree:manifest:beta:git:diff <commit>...<commit>\nuses the changes on the branch containing and up to the second <commit>, starting at a common ancestor of both <commit>.",
6
- "$ sfdx jayree:manifest:beta:git:diff branchA..branchB\nuses the diff of what is unique in branchB (REF2) and unique in branchA (REF1)",
7
- "$ sfdx jayree:manifest:beta:git:diff branchA...branchB\nuses the diff of what is unique in branchB (REF2)"
8
- ],
9
- "flags": {
10
- "outputdir": "directory to save the created manifest files",
11
- "sourcepath": "comma-separated list of paths to the local source files to include in the manifest",
12
- "destructivechangesonly": "create a destructiveChanges manifest only (package.xml will be empty)"
13
- },
14
- "success": "successfully wrote %s",
15
- "successOutputDir": "successfully wrote %s to %s",
16
- "nocomponents": "no source-backed components present"
17
- }