From 21988980c4364c3f8c2c700af01d2367c43ccc38 Mon Sep 17 00:00:00 2001 From: Nicolas Vuillamy Date: Thu, 9 Jan 2025 10:36:26 +0100 Subject: [PATCH 1/2] Api version doc --- src/commands/hardis/project/audit/apiversion.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands/hardis/project/audit/apiversion.ts b/src/commands/hardis/project/audit/apiversion.ts index d0c7866c8..a89a4aa81 100644 --- a/src/commands/hardis/project/audit/apiversion.ts +++ b/src/commands/hardis/project/audit/apiversion.ts @@ -21,7 +21,9 @@ export default class CallInCallOut extends SfCommand { It can also fix the apiVersions with the latest one, if parameter --fix is sent - Example to handle [ApexClass / Trigger & ApexPage mandatory version upgrade](https://help.salesforce.com/s/articleView?id=sf.admin_locales_update_api.htm&type=5) : sf hardis:project:audit:apiversion --metadatatype ApexClass,ApexTrigger,ApexPage --minimumapiversion 45.0 --fix + Example to handle [ApexClass / Trigger & ApexPage mandatory version upgrade](https://help.salesforce.com/s/articleView?id=sf.admin_locales_update_api.htm&type=5) : + + \`sf hardis:project:audit:apiversion --metadatatype ApexClass,ApexTrigger,ApexPage --minimumapiversion 45.0 --fix\` ` public static examples = [ From bbfb9f74294eafb7e53c776d68fcbc306ef41455 Mon Sep 17 00:00:00 2001 From: Nicolas Vuillamy Date: Fri, 10 Jan 2025 13:38:02 +0100 Subject: [PATCH 2/2] Fix crash when deployment is ok ^^ --- CHANGELOG.md | 4 ++++ src/common/utils/deployUtils.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e808b1136..9ff9eeaa6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ Note: Can be used with `sfdx plugins:install sfdx-hardis@beta` and docker image `hardisgroupcom/sfdx-hardis@beta` +## [5.14.3] 2025-01-10 + +- [hardis:project:deploy:smart](https://sfdx-hardis.cloudity.com/hardis/project/deploy/smart/) Fix crash when deployment is ok + ## [5.14.2] 2025-01-10 - [hardis:project:deploy:smart](https://sfdx-hardis.cloudity.com/hardis/project/deploy/smart/) Fix parsing error in case it is UNKNOWN_ERROR diff --git a/src/common/utils/deployUtils.ts b/src/common/utils/deployUtils.ts index 74c2accbd..bf56cb848 100644 --- a/src/common/utils/deployUtils.ts +++ b/src/common/utils/deployUtils.ts @@ -296,7 +296,7 @@ export async function smartDeploy( retry: deployment.retry || null, }); if (deployRes.status === 0) { - uxLog(commandThis, c.grey(shortenLogLines(deployRes.stdout + deployRes.stderr))); + uxLog(commandThis, c.grey(shortenLogLines(JSON.stringify(deployRes)))); } } catch (e: any) { await generateApexCoverageOutputFile(e);