@jayree/sfdx-plugin-manifest 3.3.0 → 3.3.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +9 -0
- package/README.md +3 -3
- package/lib/SDR-extra/collections/componentSetExtra.js +4 -5
- package/lib/SDR-extra/collections/componentSetExtra.js.map +1 -1
- package/lib/SDR-extra/resolve/gitDiffResolver.js +5 -6
- package/lib/SDR-extra/resolve/gitDiffResolver.js.map +1 -1
- package/lib/commands/jayree/manifest/cleanup.js +2 -3
- package/lib/commands/jayree/manifest/cleanup.js.map +1 -1
- package/lib/hooks/changelog.js +3 -3
- package/lib/hooks/changelog.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/npm-shrinkwrap.json +54 -234
- package/oclif.lock +8 -45
- package/oclif.manifest.json +1 -1
- package/package.json +3 -7
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
## [3.3.1](https://github.com/jayree/sfdx-plugin-manifest/compare/3.3.0...3.3.1) (2024-06-12)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* replace debug with logger ([#1334](https://github.com/jayree/sfdx-plugin-manifest/issues/1334)) ([5cad351](https://github.com/jayree/sfdx-plugin-manifest/commit/5cad351730293ac13251e8849f3d8d4b5b437598))
|
7
|
+
|
8
|
+
|
9
|
+
|
1
10
|
# [3.3.0](https://github.com/jayree/sfdx-plugin-manifest/compare/3.2.25...3.3.0) (2024-06-09)
|
2
11
|
|
3
12
|
|
package/README.md
CHANGED
@@ -60,7 +60,7 @@ EXAMPLES
|
|
60
60
|
$ sf jayree manifest cleanup --manifest=package.xml --file=packageignore.xml
|
61
61
|
```
|
62
62
|
|
63
|
-
_See code: [src/commands/jayree/manifest/cleanup.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/3.3.
|
63
|
+
_See code: [src/commands/jayree/manifest/cleanup.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/3.3.1/src/commands/jayree/manifest/cleanup.ts)_
|
64
64
|
|
65
65
|
### `sf jayree manifest generate`
|
66
66
|
|
@@ -98,7 +98,7 @@ EXAMPLES
|
|
98
98
|
<Package xmlns='http://soap.sforce.com/2006/04/metadata'>...</Package>
|
99
99
|
```
|
100
100
|
|
101
|
-
_See code: [src/commands/jayree/manifest/generate.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/3.3.
|
101
|
+
_See code: [src/commands/jayree/manifest/generate.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/3.3.1/src/commands/jayree/manifest/generate.ts)_
|
102
102
|
|
103
103
|
### `sf jayree manifest git diff REF1 [REF2]`
|
104
104
|
|
@@ -181,5 +181,5 @@ FLAG DESCRIPTIONS
|
|
181
181
|
The location can be an absolute path or relative to the current working directory.
|
182
182
|
```
|
183
183
|
|
184
|
-
_See code: [src/commands/jayree/manifest/git/diff.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/3.3.
|
184
|
+
_See code: [src/commands/jayree/manifest/git/diff.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/3.3.1/src/commands/jayree/manifest/git/diff.ts)_
|
185
185
|
<!-- commandsstop -->
|
@@ -6,11 +6,10 @@
|
|
6
6
|
*/
|
7
7
|
import path from 'node:path';
|
8
8
|
import { ComponentSet, RegistryAccess, } from '@salesforce/source-deploy-retrieve';
|
9
|
-
import { SfProject, Lifecycle } from '@salesforce/core';
|
10
|
-
import Debug from 'debug';
|
9
|
+
import { SfProject, Lifecycle, Logger } from '@salesforce/core';
|
11
10
|
import fs from 'graceful-fs';
|
12
11
|
import { GitDiffResolver } from '../resolve/index.js';
|
13
|
-
const
|
12
|
+
const logger = Logger.childFromRoot('gitDiff:ComponentSetExtra');
|
14
13
|
export class ComponentSetExtra extends ComponentSet {
|
15
14
|
static async fromGitDiff(input) {
|
16
15
|
let fsPaths;
|
@@ -50,7 +49,7 @@ export class ComponentSetExtra extends ComponentSet {
|
|
50
49
|
for (const component of gitDiffResult.getSourceComponents()) {
|
51
50
|
if (!component.isMarkedForDelete()) {
|
52
51
|
if (component.parent && childsTobeReplacedByParent.includes(component.type.id)) {
|
53
|
-
debug(`add parent ${component.parent.type.name}:${component.parent.fullName} of ${component.type.name}:${component.fullName} to manifest`);
|
52
|
+
logger.debug(`add parent ${component.parent.type.name}:${component.parent.fullName} of ${component.type.name}:${component.fullName} to manifest`);
|
54
53
|
include.add(component.parent);
|
55
54
|
}
|
56
55
|
include.add(component);
|
@@ -62,7 +61,7 @@ export class ComponentSetExtra extends ComponentSet {
|
|
62
61
|
fsPaths =
|
63
62
|
fsPaths?.map((filepath) => path.resolve(filepath)).filter((filepath) => fs.existsSync(filepath)) ??
|
64
63
|
project.getUniquePackageDirectories().map((pDir) => pDir.fullPath);
|
65
|
-
debug({ fsPaths });
|
64
|
+
logger.debug({ fsPaths });
|
66
65
|
const components = ComponentSet.fromSource({
|
67
66
|
fsPaths,
|
68
67
|
include,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"componentSetExtra.js","sourceRoot":"","sources":["../../../src/SDR-extra/collections/componentSetExtra.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EACL,YAAY,EAGZ,cAAc,GAEf,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"componentSetExtra.js","sourceRoot":"","sources":["../../../src/SDR-extra/collections/componentSetExtra.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EACL,YAAY,EAGZ,cAAc,GAEf,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,MAAM,MAAM,GAAG,MAAM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QAAQ,CACrG,EACD,CAAC;gBACD,MAAM,SAAS,CAAC,WAAW,CACzB,kBAAkB,SAAS,CAAC,IAAI,CAAC,IAAI,IAAI,SAAS,CAAC,QAAQ,0BAA0B,CACtF,CAAC;YACJ,CAAC;QACH,CAAC;QAED,OAAO,UAAU,CAAC;IACpB,CAAC;CACF"}
|
@@ -6,13 +6,12 @@
|
|
6
6
|
*/
|
7
7
|
import path from 'node:path';
|
8
8
|
import { ComponentSet, RegistryAccess, MetadataResolver, SourceComponent, DestructiveChangesType, } from '@salesforce/source-deploy-retrieve';
|
9
|
-
import { SfError, Lifecycle } from '@salesforce/core';
|
9
|
+
import { SfError, Lifecycle, Logger } from '@salesforce/core';
|
10
10
|
import equal from 'fast-deep-equal';
|
11
|
-
import Debug from 'debug';
|
12
11
|
import { getString } from '@salesforce/ts-types';
|
13
12
|
import { GitRepo } from '../utils/localGitRepo.js';
|
14
13
|
import { VirtualTreeContainerExtra, parseMetadataXml } from './index.js';
|
15
|
-
const
|
14
|
+
const logger = Logger.childFromRoot('gitDiff:resolver');
|
16
15
|
/**
|
17
16
|
* Resolver for metadata type and component objects from a git diff result
|
18
17
|
*
|
@@ -52,9 +51,9 @@ export class GitDiffResolver {
|
|
52
51
|
ref1 = r1;
|
53
52
|
ref2 = r2;
|
54
53
|
}
|
55
|
-
debug({ ref1, ref2 });
|
54
|
+
logger.debug({ ref1, ref2 });
|
56
55
|
const fileStatus = await this.getFileStatus(ref1, ref2);
|
57
|
-
debug({ fileStatus });
|
56
|
+
logger.debug({ fileStatus });
|
58
57
|
const [ref1VirtualTreeContainer, ref2VirtualTreeContainer] = await Promise.all([
|
59
58
|
VirtualTreeContainerExtra.fromGitRef(ref1, this.gitDir, fileStatus.filter((l) => l.status === 'M').map((l) => l.path)),
|
60
59
|
VirtualTreeContainerExtra.fromGitRef(ref2, this.gitDir, fileStatus.filter((l) => l.status === 'M').map((l) => l.path)),
|
@@ -124,7 +123,7 @@ export class GitDiffResolver {
|
|
124
123
|
});
|
125
124
|
}
|
126
125
|
catch (e) {
|
127
|
-
debug(`unable to find component at ${c.content}. That's ok if it was supposed to be deleted`);
|
126
|
+
logger.debug(`unable to find component at ${c.content}. That's ok if it was supposed to be deleted`);
|
128
127
|
}
|
129
128
|
}
|
130
129
|
else {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"gitDiffResolver.js","sourceRoot":"","sources":["../../../src/SDR-extra/resolve/gitDiffResolver.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EACL,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,sBAAsB,GACvB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAa,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;
|
1
|
+
{"version":3,"file":"gitDiffResolver.js","sourceRoot":"","sources":["../../../src/SDR-extra/resolve/gitDiffResolver.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EACL,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,sBAAsB,GACvB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAa,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,KAAK,MAAM,iBAAiB,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEzE,MAAM,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC;AAExD;;;;GAIG;AACH,MAAM,OAAO,eAAe;IAClB,wBAAwB,CAA6B;IACrD,YAAY,CAAoB;IAChC,YAAY,CAAoB;IAChC,MAAM,CAAS;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,CAAC,CAAC,4BAA4B;YACjF,CAAC;QACH,CAAC;QAED,OAAO;YACL,IAAI,EAAE,KAAK;YACX,MAAM,EAAE,CAAC,GAAG,wBAAwB,CAAC,MAAM,GAAG,wBAAwB,CAAC,MAAM;YAC7E,UAAU,EAAE,wBAAwB;YACpC,oBAAoB,EAAE,wBAAwB;SAC/C,CAAC;IACJ,CAAC;CACF"}
|
@@ -6,9 +6,8 @@
|
|
6
6
|
*/
|
7
7
|
import { Messages } from '@salesforce/core';
|
8
8
|
import { CLIError } from '@oclif/core/errors';
|
9
|
-
import chalk from 'chalk';
|
10
9
|
import fs from 'fs-extra';
|
11
|
-
import { SfCommand, Flags } from '@salesforce/sf-plugins-core';
|
10
|
+
import { SfCommand, Flags, StandardColors } from '@salesforce/sf-plugins-core';
|
12
11
|
import { ensureArray } from '@salesforce/kit';
|
13
12
|
import { XMLParser, XMLBuilder } from 'fast-xml-parser';
|
14
13
|
import { XML_DECL, XML_NS_KEY, XML_NS_URL } from '@salesforce/source-deploy-retrieve/lib/src/common/index.js';
|
@@ -75,7 +74,7 @@ export default class CleanupManifest extends SfCommand {
|
|
75
74
|
}
|
76
75
|
else {
|
77
76
|
if (!flags['manifest'] || !(await fs.pathExists(flags['manifest']))) {
|
78
|
-
throw new CLIError(`The following error occurred:\n ${
|
77
|
+
throw new CLIError(`The following error occurred:\n ${StandardColors.info('Missing required flag manifest')}`);
|
79
78
|
}
|
80
79
|
await this.cleanupManifestFile(flags['manifest'], file);
|
81
80
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"cleanup.js","sourceRoot":"","sources":["../../../../src/commands/jayree/manifest/cleanup.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,
|
1
|
+
{"version":3,"file":"cleanup.js","sourceRoot":"","sources":["../../../../src/commands/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C;gBACnB,WAAW,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;YAChD,CAAC;QACH,CAAC;QAED,MAAM,EAAE,CAAC,SAAS,CAAC,QAAQ,EAAE,WAAW,CAAC,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;IAC1F,CAAC;;AAGH,SAAS,aAAa,CAAC,OAAe;IACpC,MAAM,MAAM,GAAG,IAAI,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,SAAS,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,CAAC,CAAC;IAE/E,MAAM,EACJ,OAAO,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,GAC5B,GAAG,MAAM,CAAC,KAAK,CAAC,OAAO,CAA0B,CAAC;IAEnD,MAAM,kBAAkB,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;IAC9C,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,CAAC;AACzC,CAAC;AAED,SAAS,WAAW,CAAC,MAA6B;IAChD,MAAM,MAAM,GAAG,IAAI,UAAU,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,gBAAgB,EAAE,KAAK,EAAE,CAAC,CAAC;IAC3F,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,UAAU,CAAC;IACxC,OAAO,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAW,CAAC,CAAC;AACzD,CAAC"}
|
package/lib/hooks/changelog.js
CHANGED
@@ -8,17 +8,17 @@
|
|
8
8
|
import { join, dirname } from 'node:path';
|
9
9
|
import { fileURLToPath } from 'node:url';
|
10
10
|
import printChangeLog from '@jayree/changelog';
|
11
|
-
import
|
11
|
+
import { Logger } from '@salesforce/core';
|
12
12
|
// eslint-disable-next-line no-underscore-dangle
|
13
13
|
const __filename = fileURLToPath(import.meta.url);
|
14
14
|
// eslint-disable-next-line no-underscore-dangle
|
15
15
|
const __dirname = dirname(__filename);
|
16
|
+
const logger = Logger.childFromRoot('@jayree/sfdx-plugin-manifest:hooks:update');
|
16
17
|
// eslint-disable-next-line @typescript-eslint/require-await
|
17
18
|
export const changelog = async function () {
|
18
|
-
const debug = Debug([this.config.bin, '@jayree/sfdx-plugin-manifest', 'hooks', 'update'].join(':'));
|
19
19
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
20
20
|
process.once('beforeExit', async () => {
|
21
|
-
const changes = await printChangeLog(this.config.cacheDir, join(__dirname, '..', '..'),
|
21
|
+
const changes = await printChangeLog(this.config.cacheDir, join(__dirname, '..', '..'), logger);
|
22
22
|
if (changes)
|
23
23
|
this.log(changes);
|
24
24
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"changelog.js","sourceRoot":"","sources":["../../src/hooks/changelog.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,0BAA0B;AAC1B,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,
|
1
|
+
{"version":3,"file":"changelog.js","sourceRoot":"","sources":["../../src/hooks/changelog.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,0BAA0B;AAC1B,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,gDAAgD;AAChD,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,gDAAgD;AAChD,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAEtC,MAAM,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC,2CAA2C,CAAC,CAAC;AAEjF,4DAA4D;AAC5D,MAAM,CAAC,MAAM,SAAS,GAAmB,KAAK;IAC5C,kEAAkE;IAClE,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,KAAK,IAAI,EAAE;QACpC,MAAM,OAAO,GAAG,MAAM,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,CAAC;QAChG,IAAI,OAAO;YAAE,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
|