@salesforce/plugin-info 1.1.2 → 1.1.3
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 +10 -4
- package/LICENSE.txt +1 -1
- package/README.md +11 -8
- package/lib/commands/info/releasenotes/display.js +2 -1
- package/lib/commands/info/releasenotes/display.js.map +1 -1
- package/messages/display.js +3 -3
- package/oclif.manifest.json +1 -1
- package/package.json +5 -12
package/CHANGELOG.md
CHANGED
|
@@ -2,14 +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
|
+
### [1.1.3](https://github.com/salesforcecli/plugin-info/compare/v1.1.2...v1.1.3) (2021-12-07)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
6
8
|
|
|
9
|
+
- disable emoji ([b4edbae](https://github.com/salesforcecli/plugin-info/commit/b4edbae03f308198c8fa6a90323a3c69c1e9efc5))
|
|
10
|
+
- emoji test ([10229c4](https://github.com/salesforcecli/plugin-info/commit/10229c40da67b6ea65577ddd53f685d0ce79c0ea))
|
|
11
|
+
|
|
12
|
+
### [1.1.2](https://github.com/salesforcecli/plugin-info/compare/v1.1.1...v1.1.2) (2021-12-01)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
|
9
15
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
16
|
+
- always show notes when running directly ([a0cd11e](https://github.com/salesforcecli/plugin-info/commit/a0cd11ec3777eb91adcfcac180d85b442b34b52a))
|
|
17
|
+
- merge conflict ([e4f7103](https://github.com/salesforcecli/plugin-info/commit/e4f7103b04f23cc9f66fa02f18286166be819812))
|
|
18
|
+
- whitespace conflict ([605d782](https://github.com/salesforcecli/plugin-info/commit/605d782be93a060e0eda69441806fe0cb76193d5))
|
|
13
19
|
|
|
14
20
|
### [1.1.1](https://github.com/salesforcecli/plugin-info/compare/v1.1.0...v1.1.1) (2021-11-30)
|
|
15
21
|
|
package/LICENSE.txt
CHANGED
package/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# plugin-info
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@salesforce/plugin-info) [](https://circleci.com/gh/salesforcecli/plugin-info/tree/main) [](https://npmjs.org/package/@salesforce/plugin-info) [](https://raw.githubusercontent.com/salesforcecli/plugin-info/main/LICENSE.txt)
|
|
4
|
+
|
|
4
5
|
## Learn about the plugin-info
|
|
5
6
|
|
|
6
7
|
Salesforce CLI plugins are based on the [oclif plugin framework](<(https://oclif.io/docs/introduction.html)>). Read the [plugin developer guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_plugins.meta/sfdx_cli_plugins/cli_plugins_architecture_sf_cli.htm) to learn about Salesforce CLI plugin development.
|
|
@@ -74,20 +75,21 @@ sfdx plugins
|
|
|
74
75
|
## Commands
|
|
75
76
|
|
|
76
77
|
<!-- commands -->
|
|
77
|
-
|
|
78
|
+
|
|
79
|
+
- [`sfdx info:releasenotes:display [-v <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-inforeleasenotesdisplay--v-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
78
80
|
|
|
79
81
|
## `sfdx info:releasenotes:display [-v <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
80
82
|
|
|
81
|
-
|
|
83
|
+
Display Salesforce CLI release notes on the command line.
|
|
82
84
|
|
|
83
85
|
```
|
|
84
86
|
USAGE
|
|
85
|
-
$ sfdx info:releasenotes:display [-v <string>] [--json] [--loglevel
|
|
87
|
+
$ sfdx info:releasenotes:display [-v <string>] [--json] [--loglevel
|
|
86
88
|
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
87
89
|
|
|
88
90
|
OPTIONS
|
|
89
91
|
-v, --version=version CLI version or tag for which to
|
|
90
|
-
display release notes
|
|
92
|
+
display release notes.
|
|
91
93
|
|
|
92
94
|
--json format output as json
|
|
93
95
|
|
|
@@ -99,14 +101,15 @@ ALIASES
|
|
|
99
101
|
|
|
100
102
|
EXAMPLES
|
|
101
103
|
Display release notes for the currently installed CLI version:
|
|
102
|
-
|
|
104
|
+
sfdx info:releasenotes:display
|
|
103
105
|
|
|
104
106
|
Display release notes for CLI version 7.120.0:
|
|
105
|
-
|
|
107
|
+
sfdx info:releasenotes:display --version 7.120.0
|
|
106
108
|
|
|
107
109
|
Display release notes for the CLI version that corresponds to a tag (stable, stable-rc, latest, latest-rc, rc):
|
|
108
|
-
|
|
110
|
+
sfdx info:releasenotes:display --version latest
|
|
109
111
|
```
|
|
110
112
|
|
|
111
|
-
_See code: [src/commands/info/releasenotes/display.ts](https://github.com/salesforcecli/plugin-info/blob/v1.1.
|
|
113
|
+
_See code: [src/commands/info/releasenotes/display.ts](https://github.com/salesforcecli/plugin-info/blob/v1.1.2/src/commands/info/releasenotes/display.ts)_
|
|
114
|
+
|
|
112
115
|
<!-- commandsstop -->
|
|
@@ -49,8 +49,9 @@ class Display extends command_1.SfdxCommand {
|
|
|
49
49
|
const releaseNotes = await (0, getReleaseNotes_1.getReleaseNotes)(releaseNotesPath, releaseNotesFilename, version);
|
|
50
50
|
const tokens = (0, parseReleaseNotes_1.parseReleaseNotes)(releaseNotes, version, releaseNotesPath);
|
|
51
51
|
marked_1.marked.setOptions({
|
|
52
|
-
renderer: new TerminalRenderer(),
|
|
52
|
+
renderer: new TerminalRenderer({ emoji: false }),
|
|
53
53
|
});
|
|
54
|
+
this.ux.log(marked_1.marked.parse(`# Release notes for '${this.config.bin}':`));
|
|
54
55
|
this.ux.log(marked_1.marked.parser(tokens));
|
|
55
56
|
if (isHook) {
|
|
56
57
|
if (env.getBoolean(HIDE_FOOTER)) {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,CAClB;wBACE,IAAI;wBACJ,OAAO;wBACP,KAAK;qBACK,EACZ,GAAG,CACO;iBACb,CAAC,CAAC;gBAEH,OAAO;aACR;YAED,MAAM,GAAG,CAAC;SACX;IACH,CAAC;;AAjGH,0BAkGC;AAjGgB,eAAO,GAAG,CAAC,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;AAEhE,mBAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;AAExD,eAAO,GAAG,CAAC,UAAU,CAAC,CAAC;AAEvB,gBAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;AAEpF,mBAAW,GAAG;IAC7B,OAAO,EAAE,eAAK,CAAC,MAAM,CAAC;QACpB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,eAAe,CAAC;KAClD,CAAC;IACF,IAAI,EAAE,eAAK,CAAC,OAAO,CAAC;QAClB,MAAM,EAAE,IAAI;QACZ,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,YAAY,CAAC;KAC/C,CAAC;CACH,CAAC"}
|
package/messages/display.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
commandDescription: '
|
|
2
|
+
commandDescription: 'Display Salesforce CLI release notes on the command line.',
|
|
3
3
|
flags: {
|
|
4
|
-
version: 'CLI version or tag for which to display release notes',
|
|
5
|
-
hook: '
|
|
4
|
+
version: 'CLI version or tag for which to display release notes.',
|
|
5
|
+
hook: 'This hidden parameter is used in post install or update hooks.',
|
|
6
6
|
},
|
|
7
7
|
examples: [
|
|
8
8
|
`Display release notes for the currently installed CLI version:
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"1.1.
|
|
1
|
+
{"version":"1.1.3","commands":{"info:releasenotes:display":{"id":"info:releasenotes:display","description":"Display Salesforce CLI release notes on the command line.","usage":"<%= command.id %> [-v <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-info","pluginType":"core","aliases":["whatsnew"],"examples":["Display release notes for the currently installed CLI version:"," <%= config.bin %> <%= command.id %>","","Display release notes for CLI version 7.120.0:"," <%= config.bin %> <%= command.id %> --version 7.120.0","","Display release notes for the CLI version that corresponds to a tag (stable, stable-rc, latest, latest-rc, rc):"," <%= config.bin %> <%= command.id %> --version latest"," "],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"version":{"name":"version","type":"option","char":"v","description":"CLI version or tag for which to display release notes."},"hook":{"name":"hook","type":"boolean","description":"This hidden parameter is used in post install or update hooks.","hidden":true,"allowNo":false}},"args":[]}}}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-info",
|
|
3
3
|
"description": "Plugin for accessing cli info from the command line",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.3",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@oclif/plugin-command-snapshot": "^2.2.2",
|
|
22
22
|
"@salesforce/cli-plugins-testkit": "^1.4.17",
|
|
23
23
|
"@salesforce/dev-config": "^2.1.2",
|
|
24
|
-
"@salesforce/dev-scripts": "^0.
|
|
24
|
+
"@salesforce/dev-scripts": "^1.0.2",
|
|
25
25
|
"@salesforce/plugin-command-reference": "^1.3.17",
|
|
26
26
|
"@salesforce/prettier-config": "^0.0.2",
|
|
27
27
|
"@salesforce/ts-sinon": "1.3.21",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"eslint-plugin-import": "^2.25.3",
|
|
43
43
|
"eslint-plugin-jsdoc": "^35.5.1",
|
|
44
44
|
"eslint-plugin-prettier": "^3.4.1",
|
|
45
|
-
"husky": "^
|
|
45
|
+
"husky": "^7.0.4",
|
|
46
46
|
"lint-staged": "^11.2.6",
|
|
47
47
|
"mocha": "^8.4.0",
|
|
48
48
|
"nyc": "^15.1.0",
|
|
@@ -115,18 +115,11 @@
|
|
|
115
115
|
"test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 --timeout 600000 --parallel",
|
|
116
116
|
"version": "oclif-dev readme"
|
|
117
117
|
},
|
|
118
|
-
"husky": {
|
|
119
|
-
"hooks": {
|
|
120
|
-
"pre-commit": "sf-husky-pre-commit",
|
|
121
|
-
"commit-msg": "sf-husky-commit-msg",
|
|
122
|
-
"pre-push": "sf-husky-pre-push"
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
118
|
"publishConfig": {
|
|
126
119
|
"access": "public"
|
|
127
120
|
},
|
|
128
121
|
"sfdx": {
|
|
129
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-info/1.1.
|
|
130
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-info/1.1.
|
|
122
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-info/1.1.3.crt",
|
|
123
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-info/1.1.3.sig"
|
|
131
124
|
}
|
|
132
125
|
}
|