@salesforce/source-tracking 0.5.0 → 0.5.1

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.5.1](https://github.com/forcedotcom/source-tracking/compare/v0.5.0...v0.5.1) (2021-12-03)
6
+
7
+ ### Bug Fixes
8
+
9
+ - support addressable child types ([8251095](https://github.com/forcedotcom/source-tracking/commit/82510955ba8ffe4a2e7e5411973795da3671d01e))
10
+
5
11
  ## [0.5.0](https://github.com/forcedotcom/source-tracking/compare/v0.4.4...v0.5.0) (2021-12-02)
6
12
 
7
13
  ### ⚠ BREAKING CHANGES
@@ -518,11 +518,15 @@ class SourceTracking extends kit_1.AsyncCreatable {
518
518
  return results;
519
519
  }
520
520
  registrySupportsType(type) {
521
- if (this.registry.findType((metadataType) => metadataType.name === type)) {
521
+ try {
522
+ // this must use getTypeByName because findType doesn't support addressable child types (ex: customField!)
523
+ this.registry.getTypeByName(type);
522
524
  return true;
523
525
  }
524
- process.emitWarning(`Unable to find type ${type} in registry`);
525
- return false;
526
+ catch (e) {
527
+ process.emitWarning(`Unable to find type ${type} in registry`);
528
+ return false;
529
+ }
526
530
  }
527
531
  /**
528
532
  * uses SDR to translate remote metadata records into local file paths
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/source-tracking",
3
3
  "description": "API for tracking local and remote Salesforce metadata changes",
4
- "version": "0.5.0",
4
+ "version": "0.5.1",
5
5
  "author": "Salesforce",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "lib/index.js",