@salesforce/sf-plugins-core 1.8.0 → 1.10.0
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 +18 -0
- package/lib/sfCommand.js +7 -1
- package/messages/messages.md +5 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
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.10.0](https://github.com/salesforcecli/sf-plugins-core/compare/v1.9.0...v1.10.0) (2022-03-31)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
- warn users when using a beta command ([2cf26f2](https://github.com/salesforcecli/sf-plugins-core/commit/2cf26f2d363a40b0739f082bfe4aedd62fd4531f))
|
|
10
|
+
|
|
11
|
+
## [1.9.0](https://github.com/salesforcecli/sf-plugins-core/compare/v1.8.1...v1.9.0) (2022-03-24)
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
- explain what a valid api version looks like ([4c5669a](https://github.com/salesforcecli/sf-plugins-core/commit/4c5669a969ef79eae1d4aec76f6cb20df92aae5e))
|
|
16
|
+
|
|
17
|
+
### [1.8.1](https://github.com/salesforcecli/sf-plugins-core/compare/v1.8.0...v1.8.1) (2022-03-24)
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
- log errors to stderr ([9958d8e](https://github.com/salesforcecli/sf-plugins-core/commit/9958d8e49cf1fbe514026491d8d095651d1cb88b))
|
|
22
|
+
|
|
5
23
|
## [1.8.0](https://github.com/salesforcecli/sf-plugins-core/compare/v1.7.2...v1.8.0) (2022-03-17)
|
|
6
24
|
|
|
7
25
|
### Features
|
package/lib/sfCommand.js
CHANGED
|
@@ -140,6 +140,9 @@ class SfCommand extends core_1.Command {
|
|
|
140
140
|
if (this.statics.requiresProject) {
|
|
141
141
|
this.project = await this.assignProject();
|
|
142
142
|
}
|
|
143
|
+
if (this.statics.state === 'beta') {
|
|
144
|
+
this.warn(messages.getMessage('warning.CommandInBeta'));
|
|
145
|
+
}
|
|
143
146
|
this.lifecycle.onWarning(async (warning) => {
|
|
144
147
|
this.warn(warning);
|
|
145
148
|
});
|
|
@@ -183,10 +186,13 @@ class SfCommand extends core_1.Command {
|
|
|
183
186
|
async catch(error) {
|
|
184
187
|
var _a, _b;
|
|
185
188
|
process.exitCode = (_b = (_a = process.exitCode) !== null && _a !== void 0 ? _a : error.exitCode) !== null && _b !== void 0 ? _b : 1;
|
|
186
|
-
this.log(this.formatError(error));
|
|
187
189
|
if (this.jsonEnabled()) {
|
|
188
190
|
core_1.CliUx.ux.styledJSON(this.toErrorJson(error));
|
|
189
191
|
}
|
|
192
|
+
else {
|
|
193
|
+
// eslint-disable-next-line no-console
|
|
194
|
+
console.error(this.formatError(error));
|
|
195
|
+
}
|
|
190
196
|
return error;
|
|
191
197
|
}
|
|
192
198
|
/**
|
package/messages/messages.md
CHANGED
|
@@ -48,7 +48,7 @@ API versions up to %s are deprecated. See %s for more information.
|
|
|
48
48
|
|
|
49
49
|
# errors.InvalidApiVersion
|
|
50
50
|
|
|
51
|
-
%s is not a valid API version.
|
|
51
|
+
%s is not a valid API version. It should end in '.0' like '54.0'.
|
|
52
52
|
|
|
53
53
|
# errors.RetiredApiVersion
|
|
54
54
|
|
|
@@ -73,3 +73,7 @@ Info:
|
|
|
73
73
|
# actions.tryThis
|
|
74
74
|
|
|
75
75
|
Try this:
|
|
76
|
+
|
|
77
|
+
# warning.CommandInBeta
|
|
78
|
+
|
|
79
|
+
This command is currently in beta. Any aspect of this command can change without advanced notice. Don't use beta commands in your scripts.
|