@salesforce/core 3.15.4 → 3.15.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -219,7 +219,7 @@ export declare namespace ConfigAggregator {
219
219
  * @deprecated
220
220
  */
221
221
  export declare class SfdxConfigAggregator extends ConfigAggregator {
222
- constructor(options?: ConfigAggregator.Options);
222
+ static create<P, T extends AsyncOptionalCreatable<P>>(this: new (options?: ConfigAggregator.Options) => T, options?: ConfigAggregator.Options): Promise<T>;
223
223
  getPropertyMeta(key: string): ConfigPropertyMeta;
224
224
  getPropertyValue<T extends AnyJson>(key: string): Optional<T>;
225
225
  getInfo(key: string): ConfigInfo;
@@ -313,14 +313,14 @@ ConfigAggregator.encrypted = true;
313
313
  * @deprecated
314
314
  */
315
315
  class SfdxConfigAggregator extends ConfigAggregator {
316
- constructor(options = {}) {
316
+ static async create(options = {}) {
317
317
  const customConfigMeta = options.customConfigMeta || [];
318
318
  // org-metadata-rest-deploy has been moved to plugin-deploy-retrieve but we need to have a placeholder
319
319
  // for it here since sfdx needs to know how to set the deprecated restDeploy config var.
320
320
  const restDeploy = config_1.SFDX_ALLOWED_PROPERTIES.find((p) => p.key === config_1.SfdxPropertyKeys.REST_DEPLOY);
321
321
  const orgRestDeploy = Object.assign({}, restDeploy, { key: 'org-metadata-rest-deploy', deprecated: false });
322
322
  options.customConfigMeta = [...customConfigMeta, orgRestDeploy];
323
- super(options);
323
+ return super.create(options);
324
324
  }
325
325
  getPropertyMeta(key) {
326
326
  const match = this.getAllowedProperties().find((element) => key === element.key);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/core",
3
- "version": "3.15.4",
3
+ "version": "3.15.5",
4
4
  "description": "Core libraries to interact with SFDX projects, orgs, and APIs.",
5
5
  "main": "lib/exported",
6
6
  "types": "lib/exported.d.ts",