@salesforce/source-tracking 1.1.2 → 1.1.5
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 +14 -0
- package/lib/compatibility.js +11 -11
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
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.5](https://github.com/forcedotcom/source-tracking/compare/v1.1.4...v1.1.5) (2022-03-11)
|
|
6
|
+
|
|
7
|
+
### [1.1.4](https://github.com/forcedotcom/source-tracking/compare/v1.1.3...v1.1.4) (2022-03-07)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- clearer messaging and legacy accommodation ([9f14e0f](https://github.com/forcedotcom/source-tracking/commit/9f14e0f02c9df69018b396148b8b4c49c161bf4d))
|
|
12
|
+
|
|
13
|
+
### [1.1.3](https://github.com/forcedotcom/source-tracking/compare/v1.1.2...v1.1.3) (2022-03-07)
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
- revert beta/legacy mapping ([4d3380c](https://github.com/forcedotcom/source-tracking/commit/4d3380c74a72572a8c1e464c739c4d5b8af69442))
|
|
18
|
+
|
|
5
19
|
### [1.1.2](https://github.com/forcedotcom/source-tracking/compare/v1.1.1...v1.1.2) (2022-03-02)
|
|
6
20
|
|
|
7
21
|
### Bug Fixes
|
package/lib/compatibility.js
CHANGED
|
@@ -54,16 +54,16 @@ const throwIfInvalid = ({ org, projectPath, toValidate, command, }) => {
|
|
|
54
54
|
// We expected it to be the toolbelt version but it is using the new tracking files
|
|
55
55
|
if (toValidate === 'toolbelt') {
|
|
56
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,
|
|
58
|
-
'new',
|
|
59
|
-
(0, exports.replaceRenamedCommands)('sfdx force:source:tracking:clear'
|
|
57
|
+
throw new core_1.SfdxError(`${messages.getMessage('sourceTrackingFileVersionMismatch', ['new/beta'])}\n\nTry this:\n${messages.getMessage('useOtherVersion', ['new/beta', (0, exports.replaceRenamedCommands)(command.replace(':legacy', ''))])}.\n${messages.getMessage('clearSuggestion', [
|
|
58
|
+
'new/beta',
|
|
59
|
+
(0, exports.replaceRenamedCommands)('sfdx force:source:tracking:clear'),
|
|
60
60
|
])}.`, 'SourceTrackingFileVersionMismatch');
|
|
61
61
|
}
|
|
62
62
|
// We expected it to be the plugin-source version but it is using the old tracking files
|
|
63
63
|
if (toValidate === 'plugin-source') {
|
|
64
|
-
throw new core_1.SfdxError(messages.getMessage('sourceTrackingFileVersionMismatch', ['old']), 'SourceTrackingFileVersionMismatch', [
|
|
65
|
-
messages.getMessage('useOtherVersion', ['old', (0, exports.replaceRenamedCommands)(command)]),
|
|
66
|
-
messages.getMessage('clearSuggestion', ['old',
|
|
64
|
+
throw new core_1.SfdxError(messages.getMessage('sourceTrackingFileVersionMismatch', ['old/legacy']), 'SourceTrackingFileVersionMismatch', [
|
|
65
|
+
messages.getMessage('useOtherVersion', ['old/legacy', (0, exports.replaceRenamedCommands)(command, true)]),
|
|
66
|
+
messages.getMessage('clearSuggestion', ['old/legacy', 'sfdx force:source:tracking:clear']),
|
|
67
67
|
]);
|
|
68
68
|
}
|
|
69
69
|
};
|
|
@@ -82,10 +82,10 @@ const replaceRenamedCommands = (input, reverse = false) => {
|
|
|
82
82
|
};
|
|
83
83
|
exports.replaceRenamedCommands = replaceRenamedCommands;
|
|
84
84
|
const renames = new Map([
|
|
85
|
-
['force:source:status', 'force:source:
|
|
86
|
-
['force:source:push', 'force:source:
|
|
87
|
-
['force:source:pull', 'force:source:
|
|
88
|
-
['force:source:tracking:reset', 'force:source:
|
|
89
|
-
['force:source:tracking:clear', 'force:source:
|
|
85
|
+
['force:source:status', 'force:source:beta:status'],
|
|
86
|
+
['force:source:push', 'force:source:beta:push'],
|
|
87
|
+
['force:source:pull', 'force:source:beta:pull'],
|
|
88
|
+
['force:source:tracking:reset', 'force:source:beta:tracking:reset'],
|
|
89
|
+
['force:source:tracking:clear', 'force:source:beta:tracking:clear'],
|
|
90
90
|
]);
|
|
91
91
|
//# sourceMappingURL=compatibility.js.map
|
package/package.json
CHANGED