@salesforce/plugin-info 1.3.1 → 2.0.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 +6 -0
- package/README.md +1 -1
- package/lib/shared/getInfoConfig.js +2 -2
- package/lib/shared/getInfoConfig.js.map +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +12 -9
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
|
+
## [2.0.0](https://github.com/salesforcecli/plugin-info/compare/v1.3.1...v2.0.0) (2022-04-01)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- parking orbit plugin-info ([f18721f](https://github.com/salesforcecli/plugin-info/commit/f18721ff411cb4720d6d297d3250206129eb620b))
|
|
10
|
+
|
|
5
11
|
### [1.3.1](https://github.com/salesforcecli/plugin-info/compare/v1.3.0...v1.3.1) (2022-03-16)
|
|
6
12
|
|
|
7
13
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -108,6 +108,6 @@ EXAMPLES
|
|
|
108
108
|
sfdx info:releasenotes:display --version latest
|
|
109
109
|
```
|
|
110
110
|
|
|
111
|
-
_See code: [src/commands/info/releasenotes/display.ts](https://github.com/salesforcecli/plugin-info/blob/
|
|
111
|
+
_See code: [src/commands/info/releasenotes/display.ts](https://github.com/salesforcecli/plugin-info/blob/v2.0.0/src/commands/info/releasenotes/display.ts)_
|
|
112
112
|
|
|
113
113
|
<!-- commandsstop -->
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.getInfoConfig = void 0;
|
|
10
10
|
const path_1 = require("path");
|
|
11
|
-
const
|
|
11
|
+
const fs = require("fs");
|
|
12
12
|
/* sfdx example to add to cli pjson.oclif
|
|
13
13
|
|
|
14
14
|
example location with npm install:
|
|
@@ -26,7 +26,7 @@ Add to oclif object
|
|
|
26
26
|
const getInfoConfig = async (path) => {
|
|
27
27
|
// TODO: could add env var support for these values
|
|
28
28
|
const fullPath = (0, path_1.join)(path, 'package.json');
|
|
29
|
-
const json = (await
|
|
29
|
+
const json = JSON.parse(await fs.promises.readFile(fullPath, 'utf8'));
|
|
30
30
|
const { info } = json.oclif;
|
|
31
31
|
if (!info)
|
|
32
32
|
throw new Error('getInfoConfig() failed to find pjson.oclif.info config');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getInfoConfig.js","sourceRoot":"","sources":["../../src/shared/getInfoConfig.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,+BAA4B;AAC5B,
|
|
1
|
+
{"version":3,"file":"getInfoConfig.js","sourceRoot":"","sources":["../../src/shared/getInfoConfig.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,+BAA4B;AAC5B,yBAAyB;AAiBzB;;;;;;;;;;;;;EAaE;AAEF,MAAM,aAAa,GAAG,KAAK,EAAE,IAAY,EAAuB,EAAE;IAChE,mDAAmD;IACnD,MAAM,QAAQ,GAAG,IAAA,WAAI,EAAC,IAAI,EAAE,cAAc,CAAC,CAAC;IAE5C,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAkB,CAAC;IAEvF,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;IAE5B,IAAI,CAAC,IAAI;QAAE,MAAM,IAAI,KAAK,CAAC,wDAAwD,CAAC,CAAC;IAErF,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEO,sCAAa"}
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"2.0.0","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,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-info",
|
|
3
3
|
"description": "Plugin for accessing cli info from the command line",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.0.0",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
|
+
"main": "lib/index.js",
|
|
7
8
|
"dependencies": {
|
|
8
|
-
"@oclif/
|
|
9
|
-
"@
|
|
10
|
-
"@salesforce/
|
|
11
|
-
"@salesforce/
|
|
12
|
-
"@salesforce/kit": "^1.5.17",
|
|
9
|
+
"@oclif/core": "^1.6.3",
|
|
10
|
+
"@salesforce/command": "^5.0.4",
|
|
11
|
+
"@salesforce/core": "^3.10.1",
|
|
12
|
+
"@salesforce/kit": "^1.5.34",
|
|
13
13
|
"got": "^11.8.2",
|
|
14
14
|
"marked": "^4.0.1",
|
|
15
15
|
"marked-terminal": "^4.2.0",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@oclif/dev-cli": "^1",
|
|
23
|
-
"@oclif/plugin-command-snapshot": "^
|
|
23
|
+
"@oclif/plugin-command-snapshot": "^3",
|
|
24
24
|
"@salesforce/cli-plugins-testkit": "^1.4.17",
|
|
25
25
|
"@salesforce/dev-config": "^3.0.0",
|
|
26
26
|
"@salesforce/dev-scripts": "^2.0.0",
|
|
@@ -81,6 +81,9 @@
|
|
|
81
81
|
"license": "BSD-3-Clause",
|
|
82
82
|
"oclif": {
|
|
83
83
|
"commands": "./lib/commands",
|
|
84
|
+
"additionalHelpFlags": [
|
|
85
|
+
"-h"
|
|
86
|
+
],
|
|
84
87
|
"bin": "sfdx",
|
|
85
88
|
"devPlugins": [
|
|
86
89
|
"@oclif/plugin-help",
|
|
@@ -123,7 +126,7 @@
|
|
|
123
126
|
"access": "public"
|
|
124
127
|
},
|
|
125
128
|
"sfdx": {
|
|
126
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-info/
|
|
127
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-info/
|
|
129
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-info/2.0.0.crt",
|
|
130
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-info/2.0.0.sig"
|
|
128
131
|
}
|
|
129
132
|
}
|