@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 +6 -0
- package/lib/compatibility.js +12 -11
- package/messages/compatibility.json +1 -1
- package/package.json +1 -1
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
|
package/lib/compatibility.js
CHANGED
|
@@ -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
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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
|
|
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:
|
|
85
|
-
['force:source:push', 'force:source:
|
|
86
|
-
['force:source:pull', 'force:source:
|
|
87
|
-
['force:source:tracking:reset', 'force:source:
|
|
88
|
-
['force:source:tracking:clear', 'force:source:
|
|
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'
|
|
4
|
+
"useOtherVersion": "Use the %s version of the command, '%s' with your existing tracking files."
|
|
5
5
|
}
|
package/package.json
CHANGED