Skip to content

Commit e7763a4

Browse files
committed
fix: bump core and sf-plugins-core versions
1 parent c0d7067 commit e7763a4

File tree

8 files changed

+1847
-1759
lines changed

8 files changed

+1847
-1759
lines changed

.gitignore

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ docs
3030
*.sig
3131
package.json.bak.
3232

33+
34+
npm-shrinkwrap.json
35+
oclif.manifest.json
36+
oclif.lock
37+
3338
# -- CLEAN ALL
3439
*.tsbuildinfo
3540
.eslintcache
@@ -42,7 +47,3 @@ node_modules
4247
# os specific files
4348
.DS_Store
4449
.idea
45-
46-
oclif.manifest.json
47-
48-
oclif.lock

package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"bugs": "https://github.com/forcedotcom/cli/issues",
77
"dependencies": {
88
"@oclif/core": "^3.18.1",
9-
"@salesforce/core": "^6.5.1",
9+
"@salesforce/core": "^6.6.0",
1010
"@salesforce/kit": "^3.0.15",
11-
"@salesforce/sf-plugins-core": "^7.1.4",
11+
"@salesforce/sf-plugins-core": "^7.1.14",
1212
"@salesforce/source-deploy-retrieve": "^10.3.8",
1313
"chalk": "^5.3.0",
1414
"change-case": "^5.4.2",
@@ -26,7 +26,6 @@
2626
"moment": "^2.30.1",
2727
"oclif": "^4.4.2",
2828
"shelljs": "^0.8.5",
29-
"shx": "0.3.4",
3029
"ts-node": "^10.9.2",
3130
"typescript": "^5.3.3"
3231
},
@@ -36,8 +35,9 @@
3635
"files": [
3736
"/lib",
3837
"/messages",
39-
"/oclif.manifest.json",
40-
"/oclif.lock"
38+
"/npm-shrinkwrap.json",
39+
"/oclif.lock",
40+
"/oclif.manifest.json"
4141
],
4242
"homepage": "https://github.com/salesforcecli/plugin-org",
4343
"keywords": [
@@ -100,13 +100,12 @@
100100
"build": "wireit",
101101
"clean": "sf-clean",
102102
"clean-all": "sf-clean all",
103-
"clean:lib": "shx rm -rf lib && shx rm -rf coverage && shx rm -rf .nyc_output && shx rm -f oclif.manifest.json oclif.lock",
104103
"compile": "wireit",
105104
"docs": "sf-docs",
106105
"format": "wireit",
107106
"link-check": "wireit",
108107
"lint": "wireit",
109-
"postpack": "shx rm -f oclif.manifest.json oclif.lock",
108+
"postpack": "sf-clean --ignore-signing-artifacts",
110109
"prepack": "sf-prepack",
111110
"prepare": "sf-install",
112111
"test": "wireit",

src/commands/org/create/scratch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { ScratchCreateResponse } from '../../../shared/orgTypes.js';
2222
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
2323
const messages = Messages.loadMessages('@salesforce/plugin-org', 'create_scratch');
2424

25-
export const secretTimeout = 60000;
25+
export const secretTimeout = 60_000;
2626

2727
const definitionFileHelpGroupName = 'Definition File Override';
2828
export default class EnvCreateScratch extends SfCommand<ScratchCreateResponse> {

src/commands/org/refresh/sandbox.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
*/
77

88
import { Duration, omit } from '@salesforce/kit';
9-
import { isString } from '@salesforce/ts-types';
109
import { Flags } from '@salesforce/sf-plugins-core';
1110
import { Lifecycle, Messages, SandboxInfo, SandboxEvents, SandboxProcessObject, SfError } from '@salesforce/core';
1211
import { Ux } from '@salesforce/sf-plugins-core';
@@ -204,7 +203,8 @@ export default class RefreshSandbox extends SandboxCommandBase<SandboxProcessObj
204203
const sandboxInfoRecord = await prodOrgConnection.singleRecordQuery<SandboxInfoRecord>(soql, { tooling: true });
205204
sandboxInfo = omit(sandboxInfoRecord, 'attributes');
206205
} catch (error: unknown) {
207-
const err = error instanceof Error ? error : isString(error) ? SfError.wrap(error) : new SfError('unknown');
206+
const err =
207+
error instanceof Error ? error : typeof error === 'string' ? SfError.wrap(error) : new SfError('unknown');
208208
if (err.name === 'SingleRecordQuery_NoRecords') {
209209
throw messages.createError('error.SandboxNotFound', [sbxName, prodOrg.getUsername()]);
210210
}

src/shared/timeUtils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ export const getClockForSeconds = (timeInSec: number): string => {
2525
};
2626
export const getTimeComponentsFromSeconds = (timeInSec: number): TimeComponents => {
2727
const days = Duration.days(Math.floor(timeInSec / 86_400));
28-
const hours = Duration.hours(Math.floor((timeInSec % 86_400) / 3_600));
29-
const minutes = Duration.minutes(Math.floor((timeInSec % 3_600) / 60));
28+
const hours = Duration.hours(Math.floor((timeInSec % 86_400) / 3600));
29+
const minutes = Duration.minutes(Math.floor((timeInSec % 3600) / 60));
3030
const seconds = Duration.seconds(Math.floor(timeInSec % 60));
3131

3232
return { days, hours, minutes, seconds };

test/nut/open.nut.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ describe('test org:open command', () => {
5656
// we need stuff in the org
5757
const cs = await ComponentSetBuilder.build({ sourcepath: [path.join(session.project.dir, 'force-app')] });
5858
const deploy = await cs.deploy({ usernameOrConnection: defaultUsername });
59-
const deployResult = await deploy.pollStatus(1000, 60000);
59+
const deployResult = await deploy.pollStatus(1000, 60_000);
6060
expect(deployResult.getFileResponses().length).to.not.equal(0);
6161
const result = execCmd<OrgOpenOutput>(`force:source:open --sourcefile ${flexiPagePath} --urlonly --json`, {
6262
ensureExitCode: 0,

test/nut/sandbox.sandboxNut.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@
55
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
77

8-
98
import { execCmd, TestSession } from '@salesforce/cli-plugins-testkit';
109
import { Lifecycle, Messages, SandboxEvents, SandboxProcessObject, StatusEvent } from '@salesforce/core';
1110
import { expect, assert, config } from 'chai';
1211

1312
config.truncateThreshold = 0;
1413

15-
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url)
14+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
1615

1716
describe('Sandbox Orgs', () => {
1817
let session: TestSession;
@@ -36,15 +35,15 @@ describe('Sandbox Orgs', () => {
3635
);
3736
let rawResult = execCmd(
3837
`env:create:sandbox -a mySandbox -s -l Developer -o ${hubOrgUsername} --no-prompt --json --async`,
39-
{ timeout: 3600000 }
38+
{ timeout: 3_600_000 }
4039
);
4140
result = rawResult.jsonOutput?.result as SandboxProcessObject;
4241
// autogenerated sandbox names start with 'sbx'
4342
expect(result).to.be.ok;
4443
expect(result.SandboxName.startsWith('sbx'), 'env:create:sandbox').to.be.true;
4544
rawResult = execCmd<SandboxProcessObject>(
4645
`env:resume:sandbox --name ${result.SandboxName} -o ${hubOrgUsername} -w 60 --json`,
47-
{ timeout: 3600000 }
46+
{ timeout: 3_600_000 }
4847
);
4948
result = rawResult.jsonOutput?.result as SandboxProcessObject;
5049
expect(result).to.be.ok;

0 commit comments

Comments
 (0)