@salesforce/source-tracking 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.1.1](https://github.com/forcedotcom/source-tracking/compare/v1.1.0...v1.1.1) (2022-02-23)
6
+
7
+ ### Bug Fixes
8
+
9
+ - message formatting for GA ([194ba4b](https://github.com/forcedotcom/source-tracking/commit/194ba4b4bd08a26e7f7c5c6ef28dc1fb20acc1de))
10
+
5
11
  ## [1.1.0](https://github.com/forcedotcom/source-tracking/compare/v1.0.2...v1.1.0) (2022-02-16)
6
12
 
7
13
  ### Features
@@ -53,16 +53,17 @@ const throwIfInvalid = ({ org, projectPath, toValidate, command, }) => {
53
53
  }
54
54
  // We expected it to be the toolbelt version but it is using the new tracking files
55
55
  if (toValidate === 'toolbelt') {
56
- throw new core_1.SfdxError(messages.getMessage('sourceTrackingFileVersionMismatch', ['new']), 'SourceTrackingFileVersionMismatch', [
57
- messages.getMessage('useOtherVersion', ['new', (0, exports.replaceRenamedCommands)(command)]),
58
- messages.getMessage('clearSuggestion', ['new', (0, exports.replaceRenamedCommands)('sfdx force:source:tracking:clear')]),
59
- ]);
56
+ // some of the toolbelt commands aren't using SfdxCommand and the SfdxError actions won't be automatically displayed
57
+ throw new core_1.SfdxError(`${messages.getMessage('sourceTrackingFileVersionMismatch', ['new'])}\n\nTry this:\n${messages.getMessage('useOtherVersion', ['new', (0, exports.replaceRenamedCommands)(command, true)])}.\n${messages.getMessage('clearSuggestion', [
58
+ 'new',
59
+ (0, exports.replaceRenamedCommands)('sfdx force:source:tracking:clear', true),
60
+ ])}.`, 'SourceTrackingFileVersionMismatch');
60
61
  }
61
62
  // We expected it to be the plugin-source version but it is using the old tracking files
62
63
  if (toValidate === 'plugin-source') {
63
64
  throw new core_1.SfdxError(messages.getMessage('sourceTrackingFileVersionMismatch', ['old']), 'SourceTrackingFileVersionMismatch', [
64
- messages.getMessage('useOtherVersion', ['old', (0, exports.replaceRenamedCommands)(command, true)]),
65
- messages.getMessage('clearSuggestion', ['old', 'sfdx force:source:tracking:clear']),
65
+ messages.getMessage('useOtherVersion', ['old', (0, exports.replaceRenamedCommands)(command)]),
66
+ messages.getMessage('clearSuggestion', ['old', (0, exports.replaceRenamedCommands)('sfdx force:source:tracking:clear')]),
66
67
  ]);
67
68
  }
68
69
  };
@@ -81,10 +82,10 @@ const replaceRenamedCommands = (input, reverse = false) => {
81
82
  };
82
83
  exports.replaceRenamedCommands = replaceRenamedCommands;
83
84
  const renames = new Map([
84
- ['force:source:status', 'force:source:beta:status'],
85
- ['force:source:push', 'force:source:beta:push'],
86
- ['force:source:pull', 'force:source:beta:pull'],
87
- ['force:source:tracking:reset', 'force:source:beta:tracking:reset'],
88
- ['force:source:tracking:clear', 'force:source:beta:tracking:clear'],
85
+ ['force:source:status', 'force:source:legacy:status'],
86
+ ['force:source:push', 'force:source:legacy:push'],
87
+ ['force:source:pull', 'force:source:legacy:pull'],
88
+ ['force:source:tracking:reset', 'force:source:legacy:tracking:reset'],
89
+ ['force:source:tracking:clear', 'force:source:legacy:tracking:clear'],
89
90
  ]);
90
91
  //# sourceMappingURL=compatibility.js.map
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "sourceTrackingFileVersionMismatch": "This project uses the %s version of source tracking files.",
3
3
  "clearSuggestion": "Clear the %s version of the tracking files by running '%s'",
4
- "useOtherVersion": "Use the %s version of the command, '%s' to preserve the tracking files"
4
+ "useOtherVersion": "Use the %s version of the command, '%s' with your existing tracking files."
5
5
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/source-tracking",
3
3
  "description": "API for tracking local and remote Salesforce metadata changes",
4
- "version": "1.1.0",
4
+ "version": "1.1.1",
5
5
  "author": "Salesforce",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "lib/index.js",