Releases: salesforcecli/sf-plugins-core
Releases · salesforcecli/sf-plugins-core
12.0.5
12.0.4
12.0.3
12.0.2
12.0.1
12.0.0
BREAKING CHANGES
New table
API
We updated table
to be easier to use. If you need to maintain the old (v11 or older) API or would like to migrate one table at a time, you can wrap the old input in convertToNewTableAPI
to convert it.
Before
const data = [
{
alias: 'devhub',
connectedStatus: 'Connected',
defaultMarker: undefined,
instanceUrl: 'https://su0503.my.salesforce.com',
isDefaultDevHubUsername: false,
isDefaultUsername: false,
isDevHub: true,
orgId: '00DB0000000Ih65MAC',
timestamp: '2022-05-10T19:26:45.436Z',
type: 'DevHub',
username: '[email protected]',
},
{
alias: 'na40devhub',
connectedStatus: 'Connected',
defaultMarker: '🌳',
instanceUrl: 'https://na40-dev-hub.my.salesforce.com',
isDefaultDevHubUsername: true,
isDefaultUsername: false,
isDevHub: true,
orgId: '00D460000019MkyEAE',
type: 'DevHub',
username: '[email protected]',
},
]
const columns = {
defaultMarker: {
header: '',
},
type: {
header: 'Type',
},
alias: {
header: 'Alias',
},
username: { header: 'Username' },
orgId: { header: 'Org ID' },
}
table(data, columns)
After
const data = [
{
alias: 'devhub',
connectedStatus: 'Connected',
defaultMarker: undefined,
instanceUrl: 'https://su0503.my.salesforce.com',
isDefaultDevHubUsername: false,
isDefaultUsername: false,
isDevHub: true,
orgId: '00DB0000000Ih65MAC',
timestamp: '2022-05-10T19:26:45.436Z',
type: 'DevHub',
username: '[email protected]',
},
{
alias: 'na40devhub',
connectedStatus: 'Connected',
defaultMarker: '🌳',
instanceUrl: 'https://na40-dev-hub.my.salesforce.com',
isDefaultDevHubUsername: true,
isDefaultUsername: false,
isDevHub: true,
orgId: '00D460000019MkyEAE',
type: 'DevHub',
username: '[email protected]',
},
]
table({
columns: [
{
key: 'defaultMarker',
name: ' ',
},
'type',
'alias',
'username',
{
key: 'instanceUrl',
name: 'Instance URL',
},
{
key: 'orgId',
name: 'Org ID',
},
],
data,
})