Skip to content

Commit

Permalink
feat: bump sf-plugins-core (#1132)
Browse files Browse the repository at this point in the history
* feat: bump sf-plugins-core

* test: update stubs
  • Loading branch information
mdonnalley authored Mar 25, 2024
1 parent 8359748 commit d1d44cf
Show file tree
Hide file tree
Showing 20 changed files with 144 additions and 153 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ $ npm install -g @salesforce/plugin-source
$ sfdx COMMAND
running command...
$ sfdx (--version)
@salesforce/plugin-source/3.1.23 linux-x64 node-v18.19.1
@salesforce/plugin-source/3.1.23 darwin-arm64 node-v20.11.0
$ sfdx --help [COMMAND]
USAGE
$ sfdx COMMAND
Expand All @@ -88,6 +88,4 @@ USAGE

<!-- commands -->

# Command Topics

<!-- commandsstop -->
121 changes: 69 additions & 52 deletions command-snapshot.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
[
{
"command": "force",
"plugin": "@salesforce/plugin-source",
"flags": ["json"],
"alias": [],
"command": "force",
"flagAliases": [],
"flagChars": [],
"flagAliases": []
"flags": ["flags-dir", "json"],
"plugin": "@salesforce/plugin-source"
},
{
"alias": [],
"command": "force:mdapi:deploy",
"plugin": "@salesforce/plugin-source",
"flagAliases": ["apiversion", "targetusername"],
"flagChars": ["c", "d", "f", "g", "l", "o", "q", "r", "s", "u", "w"],
"flags": [
"api-version",
"checkonly",
"concise",
"coverageformatters",
"deploydir",
"flags-dir",
"ignoreerrors",
"ignorewarnings",
"json",
Expand All @@ -33,25 +36,26 @@
"wait",
"zipfile"
],
"alias": [],
"flagChars": ["c", "d", "f", "g", "l", "o", "q", "r", "s", "u", "w"],
"flagAliases": ["apiversion", "targetusername"]
"plugin": "@salesforce/plugin-source"
},
{
"command": "force:mdapi:deploy:cancel",
"plugin": "@salesforce/plugin-source",
"flags": ["api-version", "jobid", "json", "loglevel", "target-org", "wait"],
"alias": [],
"command": "force:mdapi:deploy:cancel",
"flagAliases": ["apiversion", "targetusername", "u"],
"flagChars": ["i", "o", "w"],
"flagAliases": ["apiversion", "targetusername", "u"]
"flags": ["api-version", "flags-dir", "jobid", "json", "loglevel", "target-org", "wait"],
"plugin": "@salesforce/plugin-source"
},
{
"alias": [],
"command": "force:mdapi:deploy:report",
"plugin": "@salesforce/plugin-source",
"flagAliases": ["apiversion", "targetusername", "u"],
"flagChars": ["i", "o", "w"],
"flags": [
"api-version",
"concise",
"coverageformatters",
"flags-dir",
"jobid",
"json",
"junit",
Expand All @@ -61,15 +65,16 @@
"verbose",
"wait"
],
"alias": [],
"flagChars": ["i", "o", "w"],
"flagAliases": ["apiversion", "targetusername", "u"]
"plugin": "@salesforce/plugin-source"
},
{
"alias": [],
"command": "force:mdapi:retrieve",
"plugin": "@salesforce/plugin-source",
"flagAliases": ["targetusername", "u"],
"flagChars": ["a", "d", "k", "n", "o", "p", "r", "s", "w", "z"],
"flags": [
"apiversion",
"flags-dir",
"json",
"loglevel",
"packagenames",
Expand All @@ -83,15 +88,16 @@
"wait",
"zipfilename"
],
"alias": [],
"flagChars": ["a", "d", "k", "n", "o", "p", "r", "s", "w", "z"],
"flagAliases": ["targetusername", "u"]
"plugin": "@salesforce/plugin-source"
},
{
"alias": [],
"command": "force:mdapi:retrieve:report",
"plugin": "@salesforce/plugin-source",
"flagAliases": ["apiversion", "targetusername", "u"],
"flagChars": ["i", "n", "o", "r", "w", "z"],
"flags": [
"api-version",
"flags-dir",
"jobid",
"json",
"loglevel",
Expand All @@ -102,17 +108,18 @@
"wait",
"zipfilename"
],
"alias": [],
"flagChars": ["i", "n", "o", "r", "w", "z"],
"flagAliases": ["apiversion", "targetusername", "u"]
"plugin": "@salesforce/plugin-source"
},
{
"alias": [],
"command": "force:source:deploy",
"plugin": "@salesforce/plugin-source",
"flagAliases": ["apiversion", "targetusername"],
"flagChars": ["c", "f", "g", "l", "m", "o", "p", "q", "r", "t", "u", "w", "x"],
"flags": [
"api-version",
"checkonly",
"coverageformatters",
"flags-dir",
"forceoverwrite",
"ignoreerrors",
"ignorewarnings",
Expand All @@ -135,24 +142,25 @@
"verbose",
"wait"
],
"alias": [],
"flagChars": ["c", "f", "g", "l", "m", "o", "p", "q", "r", "t", "u", "w", "x"],
"flagAliases": ["apiversion", "targetusername"]
"plugin": "@salesforce/plugin-source"
},
{
"command": "force:source:deploy:cancel",
"plugin": "@salesforce/plugin-source",
"flags": ["api-version", "jobid", "json", "loglevel", "target-org", "wait"],
"alias": [],
"command": "force:source:deploy:cancel",
"flagAliases": ["apiversion", "targetusername", "u"],
"flagChars": ["i", "o", "w"],
"flagAliases": ["apiversion", "targetusername", "u"]
"flags": ["api-version", "flags-dir", "jobid", "json", "loglevel", "target-org", "wait"],
"plugin": "@salesforce/plugin-source"
},
{
"alias": [],
"command": "force:source:deploy:report",
"plugin": "@salesforce/plugin-source",
"flagAliases": ["apiversion", "targetusername", "u"],
"flagChars": ["i", "o", "w"],
"flags": [
"api-version",
"coverageformatters",
"flags-dir",
"jobid",
"json",
"junit",
Expand All @@ -162,31 +170,42 @@
"verbose",
"wait"
],
"alias": [],
"flagChars": ["i", "o", "w"],
"flagAliases": ["apiversion", "targetusername", "u"]
"plugin": "@salesforce/plugin-source"
},
{
"command": "force:source:pull",
"plugin": "@salesforce/plugin-source",
"flags": ["api-version", "forceoverwrite", "json", "loglevel", "target-org", "verbose", "wait"],
"alias": [],
"command": "force:source:pull",
"flagAliases": ["apiversion", "targetusername", "u"],
"flagChars": ["f", "o", "w"],
"flagAliases": ["apiversion", "targetusername", "u"]
"flags": ["api-version", "flags-dir", "forceoverwrite", "json", "loglevel", "target-org", "verbose", "wait"],
"plugin": "@salesforce/plugin-source"
},
{
"command": "force:source:push",
"plugin": "@salesforce/plugin-source",
"flags": ["api-version", "forceoverwrite", "ignorewarnings", "json", "loglevel", "quiet", "target-org", "wait"],
"alias": [],
"command": "force:source:push",
"flagAliases": ["apiversion", "targetusername", "u"],
"flagChars": ["f", "g", "o", "w"],
"flagAliases": ["apiversion", "targetusername", "u"]
"flags": [
"api-version",
"flags-dir",
"forceoverwrite",
"ignorewarnings",
"json",
"loglevel",
"quiet",
"target-org",
"wait"
],
"plugin": "@salesforce/plugin-source"
},
{
"alias": [],
"command": "force:source:retrieve",
"plugin": "@salesforce/plugin-source",
"flagAliases": ["apiversion", "targetusername", "u"],
"flagChars": ["a", "f", "m", "n", "o", "p", "r", "t", "w", "x"],
"flags": [
"api-version",
"flags-dir",
"forceoverwrite",
"json",
"loglevel",
Expand All @@ -200,16 +219,14 @@
"verbose",
"wait"
],
"alias": [],
"flagChars": ["a", "f", "m", "n", "o", "p", "r", "t", "w", "x"],
"flagAliases": ["apiversion", "targetusername", "u"]
"plugin": "@salesforce/plugin-source"
},
{
"command": "force:source:status",
"plugin": "@salesforce/plugin-source",
"flags": ["api-version", "concise", "json", "local", "loglevel", "remote", "target-org"],
"alias": [],
"command": "force:source:status",
"flagAliases": ["apiversion", "targetusername", "u"],
"flagChars": ["l", "o", "r"],
"flagAliases": ["apiversion", "targetusername", "u"]
"flags": ["api-version", "concise", "flags-dir", "json", "local", "loglevel", "remote", "target-org"],
"plugin": "@salesforce/plugin-source"
}
]
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"@salesforce/apex-node": "^3.1.0",
"@salesforce/core": "^6.4.4",
"@salesforce/kit": "^3.0.15",
"@salesforce/sf-plugins-core": "^7.1.14",
"@salesforce/sf-plugins-core": "^8.0.1",
"@salesforce/source-deploy-retrieve": "^10.5.5",
"@salesforce/source-tracking": "^5.1.11",
"chalk": "^5.3.0",
Expand Down
2 changes: 1 addition & 1 deletion src/deployCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import { transformCoverageToApexCoverage, transformDeployTestsResultsToTestResul

export type TestLevel = 'NoTestRun' | 'RunSpecifiedTests' | 'RunLocalTests' | 'RunAllTestsInOrg';

Messages.importMessagesDirectoryFromMetaUrl(import.meta.url)
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
const messages = Messages.loadMessages('@salesforce/plugin-source', 'deployCommand');
export const reportsFormatters = Object.keys(DefaultReportOptions);

Expand Down
4 changes: 1 addition & 3 deletions src/formatters/deployReportResultFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/



import { MetadataApiDeployStatus, RequestStatus } from '@salesforce/source-deploy-retrieve';
import { SfError, Messages } from '@salesforce/core';
import { DeployResultFormatter } from './deployResultFormatter.js';

Messages.importMessagesDirectoryFromMetaUrl(import.meta.url)
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
export type DeployReportCommandResult = MetadataApiDeployStatus;

export class DeployReportResultFormatter extends DeployResultFormatter {
Expand Down
3 changes: 1 addition & 2 deletions src/formatters/deployResultFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import path from 'node:path';


import chalk from 'chalk';

import { Messages, SfError } from '@salesforce/core';
Expand All @@ -29,7 +28,7 @@ import { ResultFormatter, ResultFormatterOptions } from './resultFormatter.js';
import { MdDeployResult } from './mdapi/mdDeployResultFormatter.js';
import { maybePrintCodeCoverageTable } from './codeCoverageTable.js';

Messages.importMessagesDirectoryFromMetaUrl(import.meta.url)
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
const messages = Messages.loadMessages('@salesforce/plugin-source', 'deploy');

export type DeployCommandResult = {
Expand Down
4 changes: 1 addition & 3 deletions src/formatters/mdapi/mdDeployAsyncResultFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@

import { EOL } from 'node:os';



import { Messages } from '@salesforce/core';
import { AsyncResult } from '@salesforce/source-deploy-retrieve';
import { Ux } from '@salesforce/sf-plugins-core';
import { ResultFormatterOptions } from '../resultFormatter.js';
import { DeployAsyncResultFormatter } from '../source/deployAsyncResultFormatter.js';

Messages.importMessagesDirectoryFromMetaUrl(import.meta.url)
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
const messages = Messages.loadMessages('@salesforce/plugin-source', 'md.deploy');

export class MdDeployAsyncResultFormatter extends DeployAsyncResultFormatter {
Expand Down
4 changes: 1 addition & 3 deletions src/formatters/mdapi/mdDeployResultFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/



import chalk from 'chalk';
import { getNumber } from '@salesforce/ts-types';
import { Messages, SfError } from '@salesforce/core';
Expand All @@ -23,7 +21,7 @@ import { Ux } from '@salesforce/sf-plugins-core';
import { CoverageResultsFileInfo, ResultFormatter, ResultFormatterOptions } from '../resultFormatter.js';
import { maybePrintCodeCoverageTable } from '../codeCoverageTable.js';

Messages.importMessagesDirectoryFromMetaUrl(import.meta.url)
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
const messages = Messages.loadMessages('@salesforce/plugin-source', 'md.deploy');

export type MdDeployResult = {
Expand Down
4 changes: 1 addition & 3 deletions src/formatters/retrieveFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/



import { Messages, SfError } from '@salesforce/core';
import { get } from '@salesforce/ts-types';
import {
Expand All @@ -20,7 +18,7 @@ import { ensureArray } from '@salesforce/kit';
import { Ux } from '@salesforce/sf-plugins-core';
import chalk from 'chalk';
import { ResultFormatter, ResultFormatterOptions } from './resultFormatter.js';
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url)
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);

export abstract class RetrieveFormatter extends ResultFormatter {
protected warnings: RetrieveMessage[];
Expand Down
4 changes: 1 addition & 3 deletions src/formatters/source/pullFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/



import chalk from 'chalk';

import { Messages, SfError } from '@salesforce/core';
Expand All @@ -22,7 +20,7 @@ import {
import { Ux } from '@salesforce/sf-plugins-core';
import { ResultFormatter, ResultFormatterOptions } from '../resultFormatter.js';

Messages.importMessagesDirectoryFromMetaUrl(import.meta.url)
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
const messages = Messages.loadMessages('@salesforce/plugin-source', 'pull');

export type PullResponse = { pulledSource: Array<Pick<FileResponse, 'filePath' | 'fullName' | 'state' | 'type'>> };
Expand Down
4 changes: 1 addition & 3 deletions src/formatters/source/statusFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/



import { Messages } from '@salesforce/core';
import { Ux } from '@salesforce/sf-plugins-core';
import { ResultFormatter, ResultFormatterOptions } from '../resultFormatter.js';

Messages.importMessagesDirectoryFromMetaUrl(import.meta.url)
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
const messages = Messages.loadMessages('@salesforce/plugin-source', 'status');

type StatusActualState = 'Deleted' | 'Add' | 'Changed' | 'Unchanged';
Expand Down
Loading

0 comments on commit d1d44cf

Please sign in to comment.