Skip to content

Commit c9fc501

Browse files
committed
Merge branch 'main' into mdonnalley/ink
2 parents 4715c03 + a0bdcbb commit c9fc501

File tree

14 files changed

+740
-639
lines changed

14 files changed

+740
-639
lines changed

.eslintrc.cjs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,10 @@
55
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
77
module.exports = {
8-
extends: [
9-
'eslint-config-salesforce-typescript',
10-
'eslint-config-salesforce-license',
11-
'plugin:sf-plugin/recommended',
12-
'xo-react/space',
13-
],
8+
extends: ['eslint-config-salesforce-typescript', 'eslint-config-salesforce-license', 'plugin:sf-plugin/recommended'],
149
rules: {
1510
// allow deleting object properties via rest operator
1611
'@typescript-eslint/no-unused-vars': ['error', { ignoreRestSiblings: true }],
17-
'react/jsx-tag-spacing': 'off',
1812
},
1913
ignorePatterns: ['test/nuts/specialTypes/*Project/**', 'test/nuts/retrieve/partialBundleDeleteProject/**'],
2014
};

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
# [3.10.0](https://github.com/salesforcecli/plugin-deploy-retrieve/compare/3.9.27...3.10.0) (2024-08-16)
2+
3+
### Bug Fixes
4+
5+
- always display the "no main/default" warning even in dry-run ([e122e72](https://github.com/salesforcecli/plugin-deploy-retrieve/commit/e122e725bd8cf0efce0a3f4c76e053ab718f897a))
6+
- stl fix and other deps ([13462f0](https://github.com/salesforcecli/plugin-deploy-retrieve/commit/13462f0cd7856935130e95a7f92fcbc379aa29a2))
7+
8+
### Features
9+
10+
- confirmation and warnings for convert behavior ([29d8309](https://github.com/salesforcecli/plugin-deploy-retrieve/commit/29d83095b273114bd084188563734be7b768266a))
11+
12+
## [3.9.27](https://github.com/salesforcecli/plugin-deploy-retrieve/compare/3.9.26...3.9.27) (2024-08-13)
13+
14+
### Bug Fixes
15+
16+
- clarify help docs and command output for package-name flag ([16b2993](https://github.com/salesforcecli/plugin-deploy-retrieve/commit/16b29938835bf09ad91e05385a5d1650325334ae))
17+
18+
## [3.9.26](https://github.com/salesforcecli/plugin-deploy-retrieve/compare/3.9.25...3.9.26) (2024-08-10)
19+
20+
### Bug Fixes
21+
22+
- **deps:** bump @salesforce/sf-plugins-core from 11.2.4 to 11.3.0 ([3ed5999](https://github.com/salesforcecli/plugin-deploy-retrieve/commit/3ed59999fc2d6c11f1ad625d85ed1978bbeb0f05))
23+
124
## [3.9.25](https://github.com/salesforcecli/plugin-deploy-retrieve/compare/3.9.24...3.9.25) (2024-08-03)
225

326
### Bug Fixes

README.md

Lines changed: 39 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ FLAG DESCRIPTIONS
141141
If you specify this parameter, don’t specify --metadata or --source-dir.
142142
```
143143

144-
_See code: [src/commands/project/convert/mdapi.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.9.25/src/commands/project/convert/mdapi.ts)_
144+
_See code: [src/commands/project/convert/mdapi.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.10.0/src/commands/project/convert/mdapi.ts)_
145145

146146
## `sf project convert source`
147147

@@ -153,7 +153,7 @@ USAGE
153153
[-p <value>... | -x <value> | -m <value>...]
154154
155155
FLAGS
156-
-d, --output-dir=<value> [default: metadataPackage_1722653249381] Output directory to store the Metadata
156+
-d, --output-dir=<value> [default: metadataPackage_1723826880963] Output directory to store the Metadata
157157
API–formatted files in.
158158
-m, --metadata=<value>... Metadata component names to convert.
159159
-n, --package-name=<value> Name of the package to associate with the metadata-formatted files.
@@ -214,7 +214,7 @@ FLAG DESCRIPTIONS
214214
Override the api version used for api requests made by this command
215215
```
216216

217-
_See code: [src/commands/project/convert/source.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.9.25/src/commands/project/convert/source.ts)_
217+
_See code: [src/commands/project/convert/source.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.10.0/src/commands/project/convert/source.ts)_
218218

219219
## `sf project convert source-behavior`
220220

@@ -223,14 +223,14 @@ Enable a behavior of your project source files, and then update your Salesforce
223223
```
224224
USAGE
225225
$ sf project convert source-behavior -b
226-
decomposeCustomLabelsBeta|decomposePermissionSetBeta|decomposeSharingRulesBeta|decomposeWorkflowBeta [--json]
227-
[--flags-dir <value>] [--dry-run] [--preserve-temp-dir] [-o <value>]
226+
decomposeCustomLabelsBeta2|decomposeCustomLabelsBeta|decomposePermissionSetBeta|decomposeSharingRulesBeta|decomposeW
227+
orkflowBeta [--json] [--flags-dir <value>] [--dry-run] [--preserve-temp-dir] [-o <value>]
228228
229229
FLAGS
230230
-b, --behavior=<option> (required) Behavior to enable; the values correspond to the possible values of the
231231
"sourceBehaviorOption" option in the "sfdx-project.json" file.
232-
<options: decomposeCustomLabelsBeta|decomposePermissionSetBeta|decomposeSharingRulesBeta|dec
233-
omposeWorkflowBeta>
232+
<options: decomposeCustomLabelsBeta2|decomposeCustomLabelsBeta|decomposePermissionSetBeta|de
233+
composeSharingRulesBeta|decomposeWorkflowBeta>
234234
-o, --target-org=<value> Username or alias of the target org.
235235
--dry-run Display what the command would do, but don't make any actual changes.
236236
--preserve-temp-dir Don't delete the metadata API format temporary directory that this command creates. Useful
@@ -258,20 +258,20 @@ DESCRIPTION
258258
https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_ws_config.htm topic.
259259
260260
EXAMPLES
261-
Update your Salesforce DX project to decompose custom labels:
261+
Update your Salesforce DX project to decompose custom permission sets:
262262
263-
$ sf project convert source-behavior --behavior decomposeCustomLabelsBeta
263+
$ sf project convert source-behavior --behavior decomposePermissionSetBeta
264264
265265
Display what the command would do, but don't change any existing files:
266266
267-
$ sf project convert source-behavior --behavior decomposeCustomLabelsBeta --dry-run
267+
$ sf project convert source-behavior --behavior decomposePermissionSetBeta --dry-run
268268
269269
Keep the temporary directory that contains the interim metadata API formatted files:
270270
271-
$ sf project convert source-behavior --behavior decomposeCustomLabelsBeta --dry-run --preserve-temp-dir
271+
$ sf project convert source-behavior --behavior decomposePermissionSetBeta --dry-run --preserve-temp-dir
272272
```
273273

274-
_See code: [src/commands/project/convert/source-behavior.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.9.25/src/commands/project/convert/source-behavior.ts)_
274+
_See code: [src/commands/project/convert/source-behavior.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.10.0/src/commands/project/convert/source-behavior.ts)_
275275

276276
## `sf project delete source`
277277

@@ -411,7 +411,7 @@ FLAG DESCRIPTIONS
411411
- Separate the test names with spaces: --tests Test1 Test2 "Test With Space"
412412
```
413413

414-
_See code: [src/commands/project/delete/source.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.9.25/src/commands/project/delete/source.ts)_
414+
_See code: [src/commands/project/delete/source.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.10.0/src/commands/project/delete/source.ts)_
415415

416416
## `sf project delete tracking`
417417

@@ -448,7 +448,7 @@ EXAMPLES
448448
$ sf project delete tracking --target-org my-scratch
449449
```
450450

451-
_See code: [src/commands/project/delete/tracking.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.9.25/src/commands/project/delete/tracking.ts)_
451+
_See code: [src/commands/project/delete/tracking.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.10.0/src/commands/project/delete/tracking.ts)_
452452

453453
## `sf project deploy cancel`
454454

@@ -520,7 +520,7 @@ FLAG DESCRIPTIONS
520520
project deploy report".
521521
```
522522

523-
_See code: [src/commands/project/deploy/cancel.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.9.25/src/commands/project/deploy/cancel.ts)_
523+
_See code: [src/commands/project/deploy/cancel.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.10.0/src/commands/project/deploy/cancel.ts)_
524524

525525
## `sf project deploy preview`
526526

@@ -603,7 +603,7 @@ FLAG DESCRIPTIONS
603603
All child components are included. If you specify this flag, don’t specify --metadata or --source-dir.
604604
```
605605

606-
_See code: [src/commands/project/deploy/preview.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.9.25/src/commands/project/deploy/preview.ts)_
606+
_See code: [src/commands/project/deploy/preview.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.10.0/src/commands/project/deploy/preview.ts)_
607607

608608
## `sf project deploy quick`
609609

@@ -687,7 +687,7 @@ FLAG DESCRIPTIONS
687687
deploy report".
688688
```
689689

690-
_See code: [src/commands/project/deploy/quick.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.9.25/src/commands/project/deploy/quick.ts)_
690+
_See code: [src/commands/project/deploy/quick.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.10.0/src/commands/project/deploy/quick.ts)_
691691

692692
## `sf project deploy report`
693693

@@ -779,7 +779,7 @@ FLAG DESCRIPTIONS
779779
--coverage-formatters lcov --coverage-formatters clover
780780
```
781781

782-
_See code: [src/commands/project/deploy/report.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.9.25/src/commands/project/deploy/report.ts)_
782+
_See code: [src/commands/project/deploy/report.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.10.0/src/commands/project/deploy/report.ts)_
783783

784784
## `sf project deploy resume`
785785

@@ -864,7 +864,7 @@ FLAG DESCRIPTIONS
864864
--coverage-formatters lcov --coverage-formatters clover
865865
```
866866

867-
_See code: [src/commands/project/deploy/resume.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.9.25/src/commands/project/deploy/resume.ts)_
867+
_See code: [src/commands/project/deploy/resume.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.10.0/src/commands/project/deploy/resume.ts)_
868868

869869
## `sf project deploy start`
870870

@@ -1100,7 +1100,7 @@ FLAG DESCRIPTIONS
11001100
--coverage-formatters lcov --coverage-formatters clover
11011101
```
11021102

1103-
_See code: [src/commands/project/deploy/start.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.9.25/src/commands/project/deploy/start.ts)_
1103+
_See code: [src/commands/project/deploy/start.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.10.0/src/commands/project/deploy/start.ts)_
11041104

11051105
## `sf project deploy validate`
11061106

@@ -1273,7 +1273,7 @@ FLAG DESCRIPTIONS
12731273
--coverage-formatters lcov --coverage-formatters clover
12741274
```
12751275

1276-
_See code: [src/commands/project/deploy/validate.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.9.25/src/commands/project/deploy/validate.ts)_
1276+
_See code: [src/commands/project/deploy/validate.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.10.0/src/commands/project/deploy/validate.ts)_
12771277

12781278
## `sf project generate manifest`
12791279

@@ -1350,7 +1350,7 @@ EXAMPLES
13501350
$ sf project generate manifest --from-org [email protected] --include-packages unlocked
13511351
```
13521352

1353-
_See code: [src/commands/project/generate/manifest.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.9.25/src/commands/project/generate/manifest.ts)_
1353+
_See code: [src/commands/project/generate/manifest.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.10.0/src/commands/project/generate/manifest.ts)_
13541354

13551355
## `sf project list ignored`
13561356

@@ -1392,7 +1392,7 @@ EXAMPLES
13921392
$ sf project list ignored --source-dir package.xml
13931393
```
13941394

1395-
_See code: [src/commands/project/list/ignored.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.9.25/src/commands/project/list/ignored.ts)_
1395+
_See code: [src/commands/project/list/ignored.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.10.0/src/commands/project/list/ignored.ts)_
13961396

13971397
## `sf project reset tracking`
13981398

@@ -1441,7 +1441,7 @@ EXAMPLES
14411441
$ sf project reset tracking --revision 30
14421442
```
14431443

1444-
_See code: [src/commands/project/reset/tracking.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.9.25/src/commands/project/reset/tracking.ts)_
1444+
_See code: [src/commands/project/reset/tracking.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.10.0/src/commands/project/reset/tracking.ts)_
14451445

14461446
## `sf project retrieve preview`
14471447

@@ -1495,7 +1495,7 @@ FLAG DESCRIPTIONS
14951495
production orgs.
14961496
```
14971497

1498-
_See code: [src/commands/project/retrieve/preview.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.9.25/src/commands/project/retrieve/preview.ts)_
1498+
_See code: [src/commands/project/retrieve/preview.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.10.0/src/commands/project/retrieve/preview.ts)_
14991499

15001500
## `sf project retrieve start`
15011501

@@ -1514,7 +1514,8 @@ FLAGS
15141514
-d, --source-dir=<value>... File paths for source to retrieve from the org.
15151515
-m, --metadata=<value>... Metadata component names to retrieve. Wildcards (`*`) supported as long as you use
15161516
quotes, such as `ApexClass:MyClass*`.
1517-
-n, --package-name=<value>... Package names to retrieve.
1517+
-n, --package-name=<value>... Package names to retrieve. Use of this flag is for reference only; don't use it to
1518+
retrieve packaged metadata for development.
15181519
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
15191520
configuration variable is already set.
15201521
-r, --output-dir=<value> Directory root for the retrieved source files.
@@ -1637,6 +1638,17 @@ FLAG DESCRIPTIONS
16371638
The supplied paths can be to a single file (in which case the operation is applied to only one file) or to a folder
16381639
(in which case the operation is applied to all source files in the directory and its subdirectories).
16391640
1641+
-n, --package-name=<value>...
1642+
1643+
Package names to retrieve. Use of this flag is for reference only; don't use it to retrieve packaged metadata for
1644+
development.
1645+
1646+
The metadata of the supplied package name(s) will be retrieved into a child directory of the project. The name of
1647+
that child directory matches the name of the package. The retrieved metadata is meant for your reference only, don't
1648+
add it to a source control system for development and deployment. For package development, retrieve the metadata
1649+
using a manifest (`--manifest` flag) or by targeting a source controlled package directory within your project
1650+
(`--source-dir` flag).
1651+
16401652
-r, --output-dir=<value> Directory root for the retrieved source files.
16411653
16421654
The root of the directory structure into which the source files are retrieved.
@@ -1652,6 +1664,6 @@ FLAG DESCRIPTIONS
16521664
If you specify this parameter, don’t specify --metadata or --source-dir.
16531665
```
16541666

1655-
_See code: [src/commands/project/retrieve/start.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.9.25/src/commands/project/retrieve/start.ts)_
1667+
_See code: [src/commands/project/retrieve/start.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.10.0/src/commands/project/retrieve/start.ts)_
16561668

16571669
<!-- commandsstop -->

messages/convert.source-behavior.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ Behavior to enable; the values correspond to the possible values of the "sourceB
1616

1717
# examples
1818

19-
- Update your Salesforce DX project to decompose custom labels:
19+
- Update your Salesforce DX project to decompose custom permission sets:
2020

21-
<%= config.bin %> <%= command.id %> --behavior decomposeCustomLabelsBeta
21+
<%= config.bin %> <%= command.id %> --behavior decomposePermissionSetBeta
2222

2323
- Display what the command would do, but don't change any existing files:
2424

25-
<%= config.bin %> <%= command.id %> --behavior decomposeCustomLabelsBeta --dry-run
25+
<%= config.bin %> <%= command.id %> --behavior decomposePermissionSetBeta --dry-run
2626

2727
- Keep the temporary directory that contains the interim metadata API formatted files:
2828

29-
<%= config.bin %> <%= command.id %> --behavior decomposeCustomLabelsBeta --dry-run --preserve-temp-dir
29+
<%= config.bin %> <%= command.id %> --behavior decomposePermissionSetBeta --dry-run --preserve-temp-dir
3030

3131
# flags.dry-run.summary
3232

@@ -51,15 +51,13 @@ Your project has a default org (target-org) that uses source tracking. This oper
5151
- Run this command again.
5252
- Create a new org ("sf org create scratch" or "sf org create sandbox") and deploy the modified source.
5353

54-
# error.packageDirectoryNeedsMainDefault
54+
# mainDefaultConfirmation
5555

56-
The package directory %s doesn't have a main/default structure.
57-
This command moves metadata into a main/default structure, but your package directories aren't ready for it.
56+
- This command puts components in a newly created `main/default` folder in each package directory. You might need to re-organize them into your preferred structure.
5857

59-
# error.packageDirectoryNeedsMainDefault.actions
58+
# basicConfirmation
6059

61-
- Update %s to have all its metadata inside a main/default directory structure.
62-
- Run the command again.
60+
- This command makes changes to your project. Be sure you've committed any source changes before continuing so you can easily revert if necessary.
6361

6462
# success.dryRun
6563

messages/retrieve.start.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,11 @@ Metadata component names to retrieve. Wildcards (`*`) supported as long as you u
103103

104104
# flags.package-name.summary
105105

106-
Package names to retrieve.
106+
Package names to retrieve. Use of this flag is for reference only; don't use it to retrieve packaged metadata for development.
107+
108+
# flags.package-name.description
109+
110+
The metadata of the supplied package name(s) will be retrieved into a child directory of the project. The name of that child directory matches the name of the package. The retrieved metadata is meant for your reference only, don't add it to a source control system for development and deployment. For package development, retrieve the metadata using a manifest (`--manifest` flag) or by targeting a source controlled package directory within your project (`--source-dir` flag).
107111

108112
# flags.source-dir.summary
109113

package.json

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,33 @@
11
{
22
"name": "@salesforce/plugin-deploy-retrieve",
33
"description": "deploy and retrieve commands for sf",
4-
"version": "3.9.25",
4+
"version": "3.10.0",
55
"author": "Salesforce",
66
"bugs": "https://github.com/forcedotcom/cli/issues",
77
"dependencies": {
8-
"@oclif/core": "^4.0.12",
8+
"@oclif/core": "^4.0.17",
99
"@oclif/multi-stage-output": "^0.3.0",
10-
"@salesforce/apex-node": "^8.1.1",
11-
"@salesforce/core": "^8.2.8",
12-
"@salesforce/kit": "^3.1.6",
13-
"@salesforce/plugin-info": "^3.3.24",
14-
"@salesforce/sf-plugins-core": "^11.2.4",
15-
"@salesforce/source-deploy-retrieve": "^12.1.11",
16-
"@salesforce/source-tracking": "^7.1.2",
10+
"@salesforce/apex-node": "^8.1.3",
11+
"@salesforce/core": "^8.4.0",
12+
"@salesforce/kit": "^3.2.1",
13+
"@salesforce/plugin-info": "^3.3.28",
14+
"@salesforce/sf-plugins-core": "^11.3.2",
15+
"@salesforce/source-deploy-retrieve": "^12.4.0",
16+
"@salesforce/source-tracking": "^7.1.7",
1717
"@salesforce/ts-types": "^2.0.12",
1818
"ansis": "^3.3.2"
1919
},
2020
"devDependencies": {
21-
"@oclif/plugin-command-snapshot": "^5.2.10",
22-
"@salesforce/cli-plugins-testkit": "^5.3.20",
21+
"@oclif/plugin-command-snapshot": "^5.2.12",
22+
"@salesforce/cli-plugins-testkit": "^5.3.25",
2323
"@salesforce/dev-scripts": "^10.2.9",
24-
"@salesforce/plugin-command-reference": "^3.1.13",
24+
"@salesforce/plugin-command-reference": "^3.1.16",
2525
"@salesforce/schemas": "^1.9.0",
2626
"@salesforce/source-testkit": "^2.2.39",
27-
"@salesforce/ts-sinon": "^1.4.23",
27+
"@salesforce/ts-sinon": "^1.4.24",
2828
"cross-env": "^7.0.3",
29-
"eslint-config-xo": "^0.45.0",
30-
"eslint-config-xo-react": "^0.27.0",
31-
"eslint-plugin-react": "^7.34.3",
32-
"eslint-plugin-react-hooks": "^4.6.2",
33-
"eslint-plugin-sf-plugin": "^1.18.11",
34-
"oclif": "^4.14.6",
29+
"eslint-plugin-sf-plugin": "^1.20.4",
30+
"oclif": "^4.14.19",
3531
"ts-node": "^10.9.2",
3632
"typescript": "^5.5.4"
3733
},

0 commit comments

Comments
 (0)