Skip to content

Commit cd36292

Browse files
committed
Bump dependencies to base packages, fixes #176
1 parent ea52d3b commit cd36292

File tree

30 files changed

+2376
-1544
lines changed

30 files changed

+2376
-1544
lines changed

oclif.lock

Lines changed: 1152 additions & 739 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
{
22
"name": "texei-sfdx-plugin",
33
"description": "Texeï's plugin for sfdx",
4-
"version": "2.7.1",
4+
"version": "2.8.0",
55
"author": "Texeï",
66
"bugs": "https://github.com/texei/texei-sfdx-plugin/issues",
7+
"type": "module",
78
"dependencies": {
8-
"@oclif/core": "^2.15.0",
9-
"@salesforce/core": "^5.2.10",
10-
"@salesforce/kit": "^3.0.11",
11-
"@salesforce/packaging": "^2.4.3",
12-
"@salesforce/sf-plugins-core": "^3.1.24",
13-
"@salesforce/source-tracking": "^4.2.14",
9+
"@oclif/core": "^4.0.28",
10+
"@salesforce/core": "^8.6.2",
11+
"@salesforce/kit": "^3.2.3",
12+
"@salesforce/packaging": "^4.2.15",
13+
"@salesforce/sf-plugins-core": "^11.3.12",
14+
"@salesforce/source-tracking": "^7.1.17",
1415
"@types/child-process-promise": "^2.2.2",
15-
"@types/jsforce": "^1.11.0",
16+
"@types/jsforce": "^1.11.5",
1617
"@types/xml2js": "^0.4.11",
1718
"chalk": "^4.1.2",
1819
"child-process-promise": "^2.2.1",
@@ -35,7 +36,7 @@
3536
"@salesforce/prettier-config": "^0.0.3",
3637
"@salesforce/ts-sinon": "1.4.5",
3738
"@salesforce/ts-types": "^2.0.6",
38-
"@swc/core": "^1.3.35",
39+
"@swc/core": "^1.3.39",
3940
"@typescript-eslint/eslint-plugin": "^5.61.0",
4041
"@typescript-eslint/parser": "^5.61.0",
4142
"chai": "^4.3.10",
@@ -51,13 +52,13 @@
5152
"husky": "^7.0.4",
5253
"mocha": "^9.1.3",
5354
"nyc": "^15.1.0",
54-
"oclif": "^4.14.31",
55+
"oclif": "^4.15.8",
5556
"prettier": "^2.8.3",
5657
"pretty-quick": "^3.1.3",
5758
"shx": "0.3.4",
5859
"sinon": "^11.1.2",
5960
"ts-node": "^10.8.1",
60-
"typescript": "^5.2.2",
61+
"typescript": "^5.6.3",
6162
"wireit": "^0.14.1"
6263
},
6364
"config": {},

src/commands/texei/contractstatus/value/add.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ import {
1111
loglevel,
1212
} from '@salesforce/sf-plugins-core';
1313
import { Messages } from '@salesforce/core';
14-
import { StandardValueSetHelper } from '../../../../shared/standardValueSetHelper';
14+
import { StandardValueSetHelper } from '../../../../shared/standardValueSetHelper.js';
1515

1616
// Initialize Messages with the current plugin directory
17-
Messages.importMessagesDirectory(__dirname);
17+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
1818

1919
// Load the specific messages for this file. Messages from @salesforce/command, @salesforce/core,
2020
// or any library that is using the messages framework can also be loaded this way.

src/commands/texei/cpqsettings/set.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import * as puppeteer from 'puppeteer';
2121
import { ElementHandle } from 'puppeteer';
2222

2323
// Initialize Messages with the current plugin directory
24-
Messages.importMessagesDirectory(__dirname);
24+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
2525

2626
// Load the specific messages for this file. Messages from @salesforce/command, @salesforce/core,
2727
// or any library that is using the messages framework can also be loaded this way.

src/commands/texei/data/export.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import { Messages, SfError, Connection } from '@salesforce/core';
2626
import { Record } from 'jsforce';
2727

2828
// Initialize Messages with the current plugin directory
29-
Messages.importMessagesDirectory(__dirname);
29+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
3030

3131
// Load the specific messages for this file. Messages from @salesforce/command, @salesforce/core,
3232
// or any library that is using the messages framework can also be loaded this way.
@@ -252,6 +252,7 @@ export default class Export extends SfCommand<ExportResult> {
252252
// Manually reading stream instead on using jsforce directly
253253
// Because jsforce will return '75008.0' instead of 75008 for a number
254254
const recordStream = conn.bulk.query(sObjectQuery);
255+
// @ts-ignore: TODO: working code, but look at TS warning
255256
const readStream = recordStream.stream();
256257
const csvToJsonParser = csv({ flatKeys: false, checkType: true });
257258
// eslint-disable-next-line @typescript-eslint/no-floating-promises
@@ -262,6 +263,7 @@ export default class Export extends SfCommand<ExportResult> {
262263
retrievedRecords.push(JSON.parse(data.toString('utf8')));
263264
});
264265

266+
// @ts-ignore: TODO: working code, but look at TS warning
265267
recordStream.on('error', (error) => {
266268
reject(error);
267269
});

src/commands/texei/data/import.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { Messages, SfError, Connection } from '@salesforce/core';
2727
import { Record, RecordResult, SuccessResult, ErrorResult, ExecuteOptions, DescribeSObjectResult } from 'jsforce';
2828

2929
// Initialize Messages with the current plugin directory
30-
Messages.importMessagesDirectory(__dirname);
30+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
3131

3232
// Load the specific messages for this file. Messages from @salesforce/command, @salesforce/core,
3333
// or any library that is using the messages framework can also be loaded this way.

src/commands/texei/data/plan/generate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Messages, SfError } from '@salesforce/core';
66
const dataPlanFilename = 'data-plan.json';
77

88
// Initialize Messages with the current plugin directory
9-
Messages.importMessagesDirectory(__dirname);
9+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
1010

1111
// Load the specific messages for this file. Messages from @salesforce/command, @salesforce/core,
1212
// or any library that is using the messages framework can also be loaded this way.

src/commands/texei/debug/lwc/enable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
import { Messages, SfError } from '@salesforce/core';
1111

1212
// Initialize Messages with the current plugin directory
13-
Messages.importMessagesDirectory(__dirname);
13+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
1414

1515
// Load the specific messages for this file. Messages from @salesforce/command, @salesforce/core,
1616
// or any library that is using the messages framework can also be loaded this way.

src/commands/texei/org/contractfieldhistory/fix.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { Messages } from '@salesforce/core';
1313
import * as puppeteer from 'puppeteer';
1414

1515
// Initialize Messages with the current plugin directory
16-
Messages.importMessagesDirectory(__dirname);
16+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
1717

1818
// Load the specific messages for this file. Messages from @salesforce/command, @salesforce/core,
1919
// or any library that is using the messages framework can also be loaded this way.

src/commands/texei/org/shape/extract.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ import {
1919
requiredOrgFlagWithDeprecations,
2020
} from '@salesforce/sf-plugins-core';
2121
import { Messages, SfError } from '@salesforce/core';
22-
import { toTitleCase } from '../../../../shared/utils';
22+
import { toTitleCase } from '../../../../shared/utils.js';
2323

2424
// Initialize Messages with the current plugin directory
25-
Messages.importMessagesDirectory(__dirname);
25+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
2626

2727
// Load the specific messages for this file. Messages from @salesforce/command, @salesforce/core,
2828
// or any library that is using the messages framework can also be loaded this way.
@@ -120,7 +120,7 @@ export default class Extract extends SfCommand<OrgShapeExtractResult> {
120120

121121
// Getting API Version
122122
// TODO: put this in a helper ? Is there a Core library method to get this OOTB ?
123-
let apiVersion = flags.apiversion;
123+
let apiVersion = flags['api-version'];
124124

125125
// if there is an api version set via the apiversion flag, use it
126126
// Otherwise use the latest api version available on the org

0 commit comments

Comments
 (0)