rflib-plugin 0.19.10 → 0.20.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/README.md +31 -0
- package/lib/commands/rflib/logging/aura/instrument.js +4 -4
- package/lib/commands/rflib/logging/aura/instrument.js.map +1 -1
- package/lib/commands/rflib/logging/flow/instrument.js +14 -27
- package/lib/commands/rflib/logging/flow/instrument.js.map +1 -1
- package/lib/commands/rflib/logging/lwc/instrument.js +0 -1
- package/lib/commands/rflib/logging/lwc/instrument.js.map +1 -1
- package/lib/commands/rflib/packages/upgrade.d.ts +35 -0
- package/lib/commands/rflib/packages/upgrade.js +187 -0
- package/lib/commands/rflib/packages/upgrade.js.map +1 -0
- package/lib/shared/formatting.js +2 -3
- package/lib/shared/formatting.js.map +1 -1
- package/lib/shared/orgClient.js +2 -2
- package/lib/shared/orgClient.js.map +1 -1
- package/lib/shared/packageClient.d.ts +86 -0
- package/lib/shared/packageClient.js +200 -0
- package/lib/shared/packageClient.js.map +1 -0
- package/messages/rflib.packages.upgrade.md +123 -0
- package/oclif.lock +1539 -2325
- package/oclif.manifest.json +94 -1
- package/package.json +22 -16
package/oclif.manifest.json
CHANGED
|
@@ -429,6 +429,99 @@
|
|
|
429
429
|
"update:loggersettings:debug:rflib"
|
|
430
430
|
]
|
|
431
431
|
},
|
|
432
|
+
"rflib:packages:upgrade": {
|
|
433
|
+
"aliases": [],
|
|
434
|
+
"args": {},
|
|
435
|
+
"description": "Compares the RFLIB packages (RFLIB, RFLIB-FS, RFLIB-TF, RFLIB-PHAROS) installed in the target org with the latest package versions published in the RFLIB GitHub repository (https://github.com/j-fischer/rflib).\n\nFor every installed package with a newer version available, the command asks whether to install the upgrade and, if confirmed, starts the installation in the target org. Upgrades are installed one at a time in dependency order (RFLIB first), and the remaining upgrades are skipped if an installation does not complete successfully.\n\nPackages that are not installed in the target org are only reported; this command never installs a package that isn't already present.\n\nUse --dryrun to only report the available upgrades, or --no-prompt to install all available upgrades without asking for confirmation. When --json is specified without --no-prompt, no upgrades are installed.",
|
|
436
|
+
"examples": [
|
|
437
|
+
"Check the RFLIB packages installed in an org and choose which upgrades to install:\n$ sf rflib packages upgrade --target-org myOrg",
|
|
438
|
+
"Report the available upgrades without installing anything:\n$ sf rflib packages upgrade --target-org myOrg --dryrun",
|
|
439
|
+
"Install all available upgrades without prompting, waiting up to 60 minutes for each installation:\n$ sf rflib packages upgrade --target-org myOrg --no-prompt --wait 60"
|
|
440
|
+
],
|
|
441
|
+
"flags": {
|
|
442
|
+
"json": {
|
|
443
|
+
"description": "Format output as json.",
|
|
444
|
+
"helpGroup": "GLOBAL",
|
|
445
|
+
"name": "json",
|
|
446
|
+
"allowNo": false,
|
|
447
|
+
"type": "boolean"
|
|
448
|
+
},
|
|
449
|
+
"flags-dir": {
|
|
450
|
+
"helpGroup": "GLOBAL",
|
|
451
|
+
"name": "flags-dir",
|
|
452
|
+
"summary": "Import flag values from a directory.",
|
|
453
|
+
"hasDynamicHelp": false,
|
|
454
|
+
"multiple": false,
|
|
455
|
+
"type": "option"
|
|
456
|
+
},
|
|
457
|
+
"target-org": {
|
|
458
|
+
"char": "o",
|
|
459
|
+
"description": "The username or alias of the Salesforce org whose installed RFLIB packages should be checked and upgraded.",
|
|
460
|
+
"name": "target-org",
|
|
461
|
+
"noCacheDefault": true,
|
|
462
|
+
"required": true,
|
|
463
|
+
"summary": "Username or alias of the target org.",
|
|
464
|
+
"hasDynamicHelp": true,
|
|
465
|
+
"multiple": false,
|
|
466
|
+
"type": "option"
|
|
467
|
+
},
|
|
468
|
+
"dryrun": {
|
|
469
|
+
"char": "d",
|
|
470
|
+
"description": "Compare the installed packages with the latest versions and print the results, without prompting or installing any upgrades.",
|
|
471
|
+
"exclusive": [
|
|
472
|
+
"no-prompt"
|
|
473
|
+
],
|
|
474
|
+
"name": "dryrun",
|
|
475
|
+
"summary": "Report the available upgrades without installing them.",
|
|
476
|
+
"allowNo": false,
|
|
477
|
+
"type": "boolean"
|
|
478
|
+
},
|
|
479
|
+
"no-prompt": {
|
|
480
|
+
"char": "r",
|
|
481
|
+
"description": "Skip the confirmation prompt for each upgrade and install every available upgrade. Use this flag in scripts and CI jobs, or together with --json.",
|
|
482
|
+
"name": "no-prompt",
|
|
483
|
+
"summary": "Install all available upgrades without asking for confirmation.",
|
|
484
|
+
"allowNo": false,
|
|
485
|
+
"type": "boolean"
|
|
486
|
+
},
|
|
487
|
+
"wait": {
|
|
488
|
+
"char": "w",
|
|
489
|
+
"description": "The number of minutes to wait for each package installation to complete before moving on. If the wait time elapses, the installation continues in the org and the remaining upgrades are skipped. Use \"sf package install report\" with the reported request ID to check its progress. Specify 0 to submit the first installation request without waiting.",
|
|
490
|
+
"name": "wait",
|
|
491
|
+
"summary": "Number of minutes to wait for each package installation to complete.",
|
|
492
|
+
"default": 30,
|
|
493
|
+
"hasDynamicHelp": false,
|
|
494
|
+
"multiple": false,
|
|
495
|
+
"type": "option"
|
|
496
|
+
}
|
|
497
|
+
},
|
|
498
|
+
"hasDynamicHelp": true,
|
|
499
|
+
"hiddenAliases": [],
|
|
500
|
+
"id": "rflib:packages:upgrade",
|
|
501
|
+
"pluginAlias": "rflib-plugin",
|
|
502
|
+
"pluginName": "rflib-plugin",
|
|
503
|
+
"pluginType": "core",
|
|
504
|
+
"strict": true,
|
|
505
|
+
"summary": "Check the RFLIB packages installed in a Salesforce org and upgrade them to the latest released versions.",
|
|
506
|
+
"enableJsonFlag": true,
|
|
507
|
+
"isESM": true,
|
|
508
|
+
"relativePath": [
|
|
509
|
+
"lib",
|
|
510
|
+
"commands",
|
|
511
|
+
"rflib",
|
|
512
|
+
"packages",
|
|
513
|
+
"upgrade.js"
|
|
514
|
+
],
|
|
515
|
+
"aliasPermutations": [],
|
|
516
|
+
"permutations": [
|
|
517
|
+
"rflib:packages:upgrade",
|
|
518
|
+
"packages:rflib:upgrade",
|
|
519
|
+
"packages:upgrade:rflib",
|
|
520
|
+
"rflib:upgrade:packages",
|
|
521
|
+
"upgrade:rflib:packages",
|
|
522
|
+
"upgrade:packages:rflib"
|
|
523
|
+
]
|
|
524
|
+
},
|
|
432
525
|
"rflib:debug:userpermissions:get": {
|
|
433
526
|
"aliases": [],
|
|
434
527
|
"args": {},
|
|
@@ -1090,5 +1183,5 @@
|
|
|
1090
1183
|
]
|
|
1091
1184
|
}
|
|
1092
1185
|
},
|
|
1093
|
-
"version": "0.
|
|
1186
|
+
"version": "0.20.0"
|
|
1094
1187
|
}
|
package/package.json
CHANGED
|
@@ -1,39 +1,42 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rflib-plugin",
|
|
3
3
|
"description": "Utility commands to help with the adoption of the RFLIB open-source library for Salesforce.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.20.0",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@oclif/core": "^4.
|
|
7
|
-
"@salesforce/core": "^8.
|
|
8
|
-
"@salesforce/sf-plugins-core": "^12.2.
|
|
6
|
+
"@oclif/core": "^4.14.0",
|
|
7
|
+
"@salesforce/core": "^8.32.6",
|
|
8
|
+
"@salesforce/sf-plugins-core": "^12.2.28",
|
|
9
9
|
"@types/xml2js": "^0.4.14",
|
|
10
|
-
"minimatch": "^10.2.
|
|
11
|
-
"prettier": "^3.
|
|
12
|
-
"prettier-plugin-apex": "^2.
|
|
10
|
+
"minimatch": "^10.2.6",
|
|
11
|
+
"prettier": "^3.9.9",
|
|
12
|
+
"prettier-plugin-apex": "^2.3.0",
|
|
13
13
|
"wireit": "^0.14.12",
|
|
14
14
|
"xml2js": "^0.6.2"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@commitlint/cli": "^20.5.3",
|
|
18
|
-
"@eslint/
|
|
19
|
-
"@eslint/js": "^8.57.1",
|
|
18
|
+
"@eslint/js": "^10.0.0",
|
|
20
19
|
"@istanbuljs/nyc-config-typescript": "^1.0.2",
|
|
21
|
-
"@oclif/plugin-command-snapshot": "^5.
|
|
22
|
-
"@salesforce/cli-plugins-testkit": "^5.3.
|
|
23
|
-
"@salesforce/dev-scripts": "^
|
|
20
|
+
"@oclif/plugin-command-snapshot": "^5.4.0",
|
|
21
|
+
"@salesforce/cli-plugins-testkit": "^5.3.66",
|
|
22
|
+
"@salesforce/dev-scripts": "^14.0.0",
|
|
24
23
|
"@types/minimatch": "^5.1.2",
|
|
25
24
|
"c8": "^10.1.3",
|
|
26
|
-
"eslint": "^
|
|
27
|
-
"eslint-
|
|
25
|
+
"eslint": "^10.11.0",
|
|
26
|
+
"eslint-config-salesforce-typescript": "^6.0.2",
|
|
27
|
+
"eslint-plugin-sf-plugin": "^3.0.0",
|
|
28
28
|
"husky": "^9.1.7",
|
|
29
|
-
"oclif": "^4.
|
|
29
|
+
"oclif": "^4.24.0",
|
|
30
30
|
"source-map-support": "^0.5.21",
|
|
31
31
|
"ts-node": "^10.9.2",
|
|
32
32
|
"tsconfig-paths": "^4.2.0",
|
|
33
33
|
"typescript": "^5.9.3"
|
|
34
34
|
},
|
|
35
|
+
"resolutions": {
|
|
36
|
+
"**/typescript": "^5.9.3"
|
|
37
|
+
},
|
|
35
38
|
"engines": {
|
|
36
|
-
"node": ">=
|
|
39
|
+
"node": ">=22.0.0"
|
|
37
40
|
},
|
|
38
41
|
"files": [
|
|
39
42
|
"/lib",
|
|
@@ -95,6 +98,9 @@
|
|
|
95
98
|
"description": "Commands related to Salesforce user permissions"
|
|
96
99
|
}
|
|
97
100
|
}
|
|
101
|
+
},
|
|
102
|
+
"packages": {
|
|
103
|
+
"description": "Commands to check and upgrade the RFLIB packages installed in a Salesforce org"
|
|
98
104
|
}
|
|
99
105
|
}
|
|
100
106
|
}
|