From d1d44cf7224cf06a7077cecc539909603490bc4c Mon Sep 17 00:00:00 2001 From: Mike Donnalley Date: Mon, 25 Mar 2024 15:05:24 -0600 Subject: [PATCH] feat: bump sf-plugins-core (#1132) * feat: bump sf-plugins-core * test: update stubs --- README.md | 4 +- command-snapshot.json | 121 ++++++++++-------- package.json | 2 +- src/deployCommand.ts | 2 +- src/formatters/deployReportResultFormatter.ts | 4 +- src/formatters/deployResultFormatter.ts | 3 +- .../mdapi/mdDeployAsyncResultFormatter.ts | 4 +- .../mdapi/mdDeployResultFormatter.ts | 4 +- src/formatters/retrieveFormatter.ts | 4 +- src/formatters/source/pullFormatter.ts | 4 +- src/formatters/source/statusFormatter.ts | 4 +- src/stash.ts | 3 +- src/trackingFunctions.ts | 4 +- test/commands/mdapi/retrieve.test.ts | 10 +- test/commands/mdapi/retrieveReport.test.ts | 10 +- test/commands/source/cancel.test.ts | 10 +- test/commands/source/deploy.test.ts | 13 +- test/commands/source/report.test.ts | 10 +- test/commands/source/retrieve.test.ts | 3 +- yarn.lock | 78 +++-------- 20 files changed, 144 insertions(+), 153 deletions(-) diff --git a/README.md b/README.md index c82fc0772..de936edc9 100644 --- a/README.md +++ b/README.md @@ -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 @@ -88,6 +88,4 @@ USAGE -# Command Topics - diff --git a/command-snapshot.json b/command-snapshot.json index 5d0b366eb..7ffed2efd 100644 --- a/command-snapshot.json +++ b/command-snapshot.json @@ -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", @@ -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", @@ -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", @@ -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", @@ -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", @@ -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", @@ -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", @@ -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" } ] diff --git a/package.json b/package.json index 8a9975ffe..f473371ef 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/deployCommand.ts b/src/deployCommand.ts index 2f1e77a30..f87c0dd95 100644 --- a/src/deployCommand.ts +++ b/src/deployCommand.ts @@ -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); diff --git a/src/formatters/deployReportResultFormatter.ts b/src/formatters/deployReportResultFormatter.ts index e3f317547..775da6295 100644 --- a/src/formatters/deployReportResultFormatter.ts +++ b/src/formatters/deployReportResultFormatter.ts @@ -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 { diff --git a/src/formatters/deployResultFormatter.ts b/src/formatters/deployResultFormatter.ts index cf134986b..cbc900f4a 100644 --- a/src/formatters/deployResultFormatter.ts +++ b/src/formatters/deployResultFormatter.ts @@ -7,7 +7,6 @@ import path from 'node:path'; - import chalk from 'chalk'; import { Messages, SfError } from '@salesforce/core'; @@ -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 = { diff --git a/src/formatters/mdapi/mdDeployAsyncResultFormatter.ts b/src/formatters/mdapi/mdDeployAsyncResultFormatter.ts index 86e0b2b0f..2d872d038 100644 --- a/src/formatters/mdapi/mdDeployAsyncResultFormatter.ts +++ b/src/formatters/mdapi/mdDeployAsyncResultFormatter.ts @@ -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 { diff --git a/src/formatters/mdapi/mdDeployResultFormatter.ts b/src/formatters/mdapi/mdDeployResultFormatter.ts index 8ec24e05c..88eae1920 100644 --- a/src/formatters/mdapi/mdDeployResultFormatter.ts +++ b/src/formatters/mdapi/mdDeployResultFormatter.ts @@ -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'; @@ -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 = { diff --git a/src/formatters/retrieveFormatter.ts b/src/formatters/retrieveFormatter.ts index 90dbd3181..7333e9591 100644 --- a/src/formatters/retrieveFormatter.ts +++ b/src/formatters/retrieveFormatter.ts @@ -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 { @@ -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[]; diff --git a/src/formatters/source/pullFormatter.ts b/src/formatters/source/pullFormatter.ts index 5917d4221..04ee97dad 100644 --- a/src/formatters/source/pullFormatter.ts +++ b/src/formatters/source/pullFormatter.ts @@ -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'; @@ -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> }; diff --git a/src/formatters/source/statusFormatter.ts b/src/formatters/source/statusFormatter.ts index bbf8fc372..739974d25 100644 --- a/src/formatters/source/statusFormatter.ts +++ b/src/formatters/source/statusFormatter.ts @@ -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'; diff --git a/src/stash.ts b/src/stash.ts index 180593b90..e7e51a5fc 100644 --- a/src/stash.ts +++ b/src/stash.ts @@ -6,11 +6,10 @@ */ import fs from 'node:fs'; - import { ConfigFile, Logger, Messages, SfError } from '@salesforce/core'; import { JsonMap, Optional } from '@salesforce/ts-types'; -Messages.importMessagesDirectoryFromMetaUrl(import.meta.url) +Messages.importMessagesDirectoryFromMetaUrl(import.meta.url); interface StashFile { isGlobal: boolean; diff --git a/src/trackingFunctions.ts b/src/trackingFunctions.ts index f66c8d321..9847b4d4d 100644 --- a/src/trackingFunctions.ts +++ b/src/trackingFunctions.ts @@ -6,8 +6,6 @@ */ import path from 'node:path'; - - import { ChangeResult, SourceTracking, SourceTrackingOptions } from '@salesforce/source-tracking'; import { Messages, SfError } from '@salesforce/core'; import { @@ -18,7 +16,7 @@ import { RetrieveResult, } from '@salesforce/source-deploy-retrieve'; import { Ux } from '@salesforce/sf-plugins-core'; -Messages.importMessagesDirectoryFromMetaUrl(import.meta.url) +Messages.importMessagesDirectoryFromMetaUrl(import.meta.url); const messages = Messages.loadMessages('@salesforce/plugin-source', 'tracking'); interface TrackingSetupRequest extends SourceTrackingOptions { diff --git a/test/commands/mdapi/retrieve.test.ts b/test/commands/mdapi/retrieve.test.ts index e43437a99..069929c55 100644 --- a/test/commands/mdapi/retrieve.test.ts +++ b/test/commands/mdapi/retrieve.test.ts @@ -27,7 +27,15 @@ describe('force:mdapi:retrieve', () => { testOrg.username = 'retrieve-test@org.com'; const packageXml = 'package.xml'; const retrievetargetdir = path.resolve('retrieve-target-dir'); - const oclifConfigStub = fromStub(stubInterface(sandbox)); + const oclifConfigStub = fromStub( + stubInterface(sandbox, { + runHook: async () => + Promise.resolve({ + successes: [], + failures: [], + }), + }) + ); const retrieveResult = getRetrieveResult('success'); const defaultZipFilePath = path.join(retrievetargetdir, 'unpackaged.zip'); const expectedDefaultResult = Object.assign({}, retrieveResult.response, { zipFilePath: defaultZipFilePath }); diff --git a/test/commands/mdapi/retrieveReport.test.ts b/test/commands/mdapi/retrieveReport.test.ts index 140c5c812..81b446c5e 100644 --- a/test/commands/mdapi/retrieveReport.test.ts +++ b/test/commands/mdapi/retrieveReport.test.ts @@ -27,7 +27,15 @@ describe('force:mdapi:retrieve:report', () => { const sandbox = $$.SANDBOX; testOrg.username = 'report-test@org.com'; const retrievetargetdir = path.resolve('retrieve-target-dir'); - const oclifConfigStub = fromStub(stubInterface(sandbox)); + const oclifConfigStub = fromStub( + stubInterface(sandbox, { + runHook: async () => + Promise.resolve({ + successes: [], + failures: [], + }), + }) + ); const retrieveResult = getRetrieveResult('success'); const defaultZipFileName = 'unpackaged.zip'; const defaultZipFilePath = path.join(retrievetargetdir, defaultZipFileName); diff --git a/test/commands/source/cancel.test.ts b/test/commands/source/cancel.test.ts index 4ea387d46..11bd79756 100644 --- a/test/commands/source/cancel.test.ts +++ b/test/commands/source/cancel.test.ts @@ -38,7 +38,15 @@ describe('force:source:deploy:cancel', () => { expectedResults.deploys = [deployResult.response]; // Stubs - const oclifConfigStub = fromStub(stubInterface(sandbox)); + const oclifConfigStub = fromStub( + stubInterface(sandbox, { + runHook: async () => + Promise.resolve({ + successes: [], + failures: [], + }), + }) + ); let pollStub: sinon.SinonStub; let cancelStub: sinon.SinonStub; let uxLogStub: sinon.SinonStub; diff --git a/test/commands/source/deploy.test.ts b/test/commands/source/deploy.test.ts index 7efb73753..563e23287 100644 --- a/test/commands/source/deploy.test.ts +++ b/test/commands/source/deploy.test.ts @@ -7,7 +7,6 @@ import { join } from 'node:path'; - import sinon from 'sinon'; import { expect } from 'chai'; import { ComponentSetBuilder, ComponentSetOptions, MetadataApiDeployOptions } from '@salesforce/source-deploy-retrieve'; @@ -28,7 +27,7 @@ import { DeployProgressStatusFormatter } from '../../../src/formatters/deployPro import { getDeployResult } from './deployResponses.js'; import { exampleSourceComponent } from './testConsts.js'; -Messages.importMessagesDirectoryFromMetaUrl(import.meta.url) +Messages.importMessagesDirectoryFromMetaUrl(import.meta.url); describe('force:source:deploy', () => { const $$ = new TestContext(); const testOrg = new MockTestOrgData(); @@ -36,7 +35,15 @@ describe('force:source:deploy', () => { testOrg.username = 'deploy-test@org.com'; const packageXml = 'package.xml'; const defaultDir = join('my', 'default', 'package'); - const oclifConfigStub = fromStub(stubInterface(sandbox)); + const oclifConfigStub = fromStub( + stubInterface(sandbox, { + runHook: async () => + Promise.resolve({ + successes: [], + failures: [], + }), + }) + ); const deployResult = getDeployResult('successSync'); const expectedResults = deployResult.response as DeployCommandResult; diff --git a/test/commands/source/report.test.ts b/test/commands/source/report.test.ts index 61d547457..2751d4ed2 100644 --- a/test/commands/source/report.test.ts +++ b/test/commands/source/report.test.ts @@ -38,7 +38,15 @@ describe('force:source:report', () => { expectedResults.deploys = [deployResult.response]; // Stubs - const oclifConfigStub = fromStub(stubInterface(sandbox)); + const oclifConfigStub = fromStub( + stubInterface(sandbox, { + runHook: async () => + Promise.resolve({ + successes: [], + failures: [], + }), + }) + ); let checkDeployStatusStub: sinon.SinonStub; let uxLogStub: sinon.SinonStub; let pollStatusStub: sinon.SinonStub; diff --git a/test/commands/source/retrieve.test.ts b/test/commands/source/retrieve.test.ts index c90d0e487..3013ffa64 100644 --- a/test/commands/source/retrieve.test.ts +++ b/test/commands/source/retrieve.test.ts @@ -8,7 +8,6 @@ import { join } from 'node:path'; import path from 'node:path'; - import sinon from 'sinon'; import { expect } from 'chai'; import { @@ -31,7 +30,7 @@ import { getRetrieveResult } from './retrieveResponses.js'; import { exampleSourceComponent } from './testConsts.js'; -Messages.importMessagesDirectoryFromMetaUrl(import.meta.url) +Messages.importMessagesDirectoryFromMetaUrl(import.meta.url); const messages = Messages.loadMessages('@salesforce/plugin-source', 'retrieve'); describe('force:source:retrieve', () => { diff --git a/yarn.lock b/yarn.lock index f2124a732..3903157f1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1468,41 +1468,7 @@ wordwrap "^1.0.0" wrap-ansi "^7.0.0" -"@oclif/core@^3.15.1", "@oclif/core@^3.16.0", "@oclif/core@^3.18.1", "@oclif/core@^3.18.2", "@oclif/core@^3.19.2", "@oclif/core@^3.19.6", "@oclif/core@^3.25.2": - version "3.25.2" - resolved "https://registry.yarnpkg.com/@oclif/core/-/core-3.25.2.tgz#a26d56abe5686c57c1e973957777bd2ae324e973" - integrity sha512-OkW/cNa/3DhoCz2YlSpymVe8DXqkoRaLY4SPTVqNVzR4R1dFBE5KoCtuwKwnhxYLCRCqaViPgRnB5K26f0MnjA== - dependencies: - "@types/cli-progress" "^3.11.5" - ansi-escapes "^4.3.2" - ansi-styles "^4.3.0" - cardinal "^2.1.1" - chalk "^4.1.2" - clean-stack "^3.0.1" - cli-progress "^3.12.0" - color "^4.2.3" - debug "^4.3.4" - ejs "^3.1.9" - get-package-type "^0.1.0" - globby "^11.1.0" - hyperlinker "^1.0.0" - indent-string "^4.0.0" - is-wsl "^2.2.0" - js-yaml "^3.14.1" - minimatch "^9.0.3" - natural-orderby "^2.0.3" - object-treeify "^1.1.33" - password-prompt "^1.1.3" - slice-ansi "^4.0.0" - string-width "^4.2.3" - strip-ansi "^6.0.1" - supports-color "^8.1.1" - supports-hyperlinks "^2.2.0" - widest-line "^3.1.0" - wordwrap "^1.0.0" - wrap-ansi "^7.0.0" - -"@oclif/core@^3.20.0": +"@oclif/core@^3.15.1", "@oclif/core@^3.16.0", "@oclif/core@^3.18.1", "@oclif/core@^3.18.2", "@oclif/core@^3.19.2", "@oclif/core@^3.20.0", "@oclif/core@^3.23.0", "@oclif/core@^3.25.2": version "3.26.0" resolved "https://registry.yarnpkg.com/@oclif/core/-/core-3.26.0.tgz#959d5e9f13f4ad6a4e98235ad125189df9ee4279" integrity sha512-TpMdfD4tfA2tVVbd4l0PrP02o5KoUXYmudBbTC7CeguDo/GLoprw4uL8cMsaVA26+cbcy7WYtOEydQiHVtJixA== @@ -1715,10 +1681,10 @@ strip-ansi "6.0.1" ts-retry-promise "^0.8.0" -"@salesforce/core@^6.4.1", "@salesforce/core@^6.4.4", "@salesforce/core@^6.5.1", "@salesforce/core@^6.5.3", "@salesforce/core@^6.6.0", "@salesforce/core@^6.7.0", "@salesforce/core@^6.7.1": - version "6.7.1" - resolved "https://registry.yarnpkg.com/@salesforce/core/-/core-6.7.1.tgz#4dcfb62bc3d488462ea6e9438ff092cf202c1696" - integrity sha512-SxscNdH2l+K5LmqH9XrosX+fjhPkMLN3hsG50sWQi7DbaI1Z0FGAKVOmVe6fZZsUsVNThKvZ+159IwwtxHWY6w== +"@salesforce/core@^6.4.1", "@salesforce/core@^6.4.4", "@salesforce/core@^6.5.1", "@salesforce/core@^6.5.3", "@salesforce/core@^6.7.0", "@salesforce/core@^6.7.1", "@salesforce/core@^6.7.3": + version "6.7.3" + resolved "https://registry.yarnpkg.com/@salesforce/core/-/core-6.7.3.tgz#5d8f30c40ac3cebb898c8e845fe9a067bc729268" + integrity sha512-uU+PuZZGXxByhvnXLH1V3eY5P1caw401dIZ/QvhzYxoP/alPLk7dpChnZNJYH5Rw3dc/AhSPw+eg0cvUyjhP1Q== dependencies: "@salesforce/kit" "^3.0.15" "@salesforce/schemas" "^1.6.1" @@ -1821,15 +1787,15 @@ chalk "^4" inquirer "^8.2.5" -"@salesforce/sf-plugins-core@^7.1.14": - version "7.1.14" - resolved "https://registry.yarnpkg.com/@salesforce/sf-plugins-core/-/sf-plugins-core-7.1.14.tgz#5f07316a602b4c5d44c09bc74c294d7df9e2e260" - integrity sha512-KDX9vYDeVOkozRrsjVh4Pvzay++7bWWKmaHtGOwkZrBHb3mVEdCp0ryF0WaDTfaEvgNKn7kiZEDSO7oEhJSzug== +"@salesforce/sf-plugins-core@^8.0.1": + version "8.0.1" + resolved "https://registry.yarnpkg.com/@salesforce/sf-plugins-core/-/sf-plugins-core-8.0.1.tgz#f155cddfd7695aab0d8264848b634b2a91cdbf2c" + integrity sha512-R6SqJ1XqSINSWdZruKtC2SKGnLBh7KbFI7+qS0FYlyPU4IlWoa+AZkGwWvlczuSOumqnlhT95rNKwZTS5rJugA== dependencies: "@inquirer/confirm" "^2.0.17" "@inquirer/password" "^1.1.16" - "@oclif/core" "^3.19.6" - "@salesforce/core" "^6.6.0" + "@oclif/core" "^3.23.0" + "@salesforce/core" "^6.7.3" "@salesforce/kit" "^3.0.15" "@salesforce/ts-types" "^2.0.9" chalk "^5.3.0" @@ -2689,10 +2655,10 @@ dependencies: "@types/node" "*" -"@types/node@*": - version "20.10.6" - resolved "https://registry.yarnpkg.com/@types/node/-/node-20.10.6.tgz#a3ec84c22965802bf763da55b2394424f22bfbb5" - integrity sha512-Vac8H+NlRNNlAmDfGUP7b5h/KA+AtWIzuXy0E6OyP8f1tCLYAtPvKRRDJjAPqhpCb0t6U2j7/xqAuLEebW2kiw== +"@types/node@*", "@types/node@^20.10.7": + version "20.11.24" + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.11.24.tgz#cc207511104694e84e9fb17f9a0c4c42d4517792" + integrity sha512-Kza43ewS3xoLgCEpQrsT+xRo/EJej1y0kVYGiLFE1NEODXGzTfwiC6tXTLMQskn1X4/Rjlh0MQUvx9W+L9long== dependencies: undici-types "~5.26.4" @@ -2718,13 +2684,6 @@ dependencies: undici-types "~5.26.4" -"@types/node@^20.10.7": - version "20.11.24" - resolved "https://registry.yarnpkg.com/@types/node/-/node-20.11.24.tgz#cc207511104694e84e9fb17f9a0c4c42d4517792" - integrity sha512-Kza43ewS3xoLgCEpQrsT+xRo/EJej1y0kVYGiLFE1NEODXGzTfwiC6tXTLMQskn1X4/Rjlh0MQUvx9W+L9long== - dependencies: - undici-types "~5.26.4" - "@types/normalize-package-data@^2.4.0": version "2.4.4" resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.4.tgz#56e2cc26c397c038fab0e3a917a12d5c5909e901" @@ -2749,12 +2708,7 @@ dependencies: "@types/node" "*" -"@types/semver@^7.5.0": - version "7.5.6" - resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.5.6.tgz#c65b2bfce1bec346582c07724e3f8c1017a20339" - integrity sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A== - -"@types/semver@^7.5.8": +"@types/semver@^7.5.0", "@types/semver@^7.5.8": version "7.5.8" resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.5.8.tgz#8268a8c57a3e4abd25c165ecd36237db7948a55e" integrity sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==