File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 219219 }
220220 },
221221 "apiVersionMetadata" : {
222- "comment" : " Refer to ApiVersionMetadata in orgUtils.ts for details" ,
222+ "x-apiVersionMetadata-comments" : [
223+ " Refer to ApiVersionMetadata in orgUtils.ts for more details." ,
224+ " The 'target' section defines the dev server version (matchingDevServerVersion) and the API version that it can support (versionNumber)." ,
225+ " The 'versionToTagMappings' section defines the mapping between released tags for our CLI plugin and the org version that each tag supports."
226+ ],
223227 "target" : {
224228 "versionNumber" : " 64.0" ,
225229 "matchingDevServerVersion" : " ~11.5.0"
Original file line number Diff line number Diff line change @@ -177,8 +177,9 @@ export class OrgUtils {
177177
178178 if ( Version . same ( orgVersion , targetVersion ) === false ) {
179179 let errorMessage = messages . getMessage ( 'error.org.api-mismatch.message' , [ orgVersion , targetVersion ] ) ;
180+ // Find the tag (if any) that can support this org version
180181 const tagName = pkg . apiVersionMetadata . versionToTagMappings . find (
181- ( info ) => info . versionNumber === targetVersion
182+ ( info ) => info . versionNumber === orgVersion
182183 ) ?. tagName ;
183184 if ( tagName ) {
184185 const remediation = messages . getMessage ( 'error.org.api-mismatch.remediation' , [
You can’t perform that action at this time.
0 commit comments