@salesforce/core
Advanced tools
Comparing version 8.3.0 to 8.4.0
@@ -48,2 +48,4 @@ import { Dictionary, JsonMap, Nullable, Optional } from '@salesforce/ts-types'; | ||
read(): Promise<ProjectJson>; | ||
/** force a reread of the project contents if you know they may have been modified */ | ||
refreshSync(): SfProjectJson; | ||
readSync(): ProjectJson; | ||
@@ -159,2 +161,8 @@ write(): Promise<ProjectJson>; | ||
/** | ||
* Clear the cache to force reading from disk. | ||
* | ||
* *NOTE: Only call this method if you must and you know what you are doing.* | ||
*/ | ||
static clearInstances(): void; | ||
/** | ||
* Get a Project from a given path or from the working directory. | ||
@@ -161,0 +169,0 @@ * |
@@ -87,2 +87,7 @@ "use strict"; | ||
} | ||
/** force a reread of the project contents if you know they may have been modified */ | ||
refreshSync() { | ||
super.readSync(false, true); | ||
return this; | ||
} | ||
readSync() { | ||
@@ -344,2 +349,10 @@ const contents = super.readSync(); | ||
/** | ||
* Clear the cache to force reading from disk. | ||
* | ||
* *NOTE: Only call this method if you must and you know what you are doing.* | ||
*/ | ||
static clearInstances() { | ||
SfProject.instances.clear(); | ||
} | ||
/** | ||
* Get a Project from a given path or from the working directory. | ||
@@ -346,0 +359,0 @@ * |
@@ -537,4 +537,3 @@ "use strict"; | ||
stateAggregator_1.StateAggregator.clearInstance(); | ||
// @ts-expect-error accessing a private property | ||
sfProject_1.SfProject.instances.clear(); | ||
sfProject_1.SfProject.clearInstances(); | ||
// Allow each test to have their own config aggregator | ||
@@ -541,0 +540,0 @@ // @ts-ignore clear for testing. |
{ | ||
"name": "@salesforce/core", | ||
"version": "8.3.0", | ||
"version": "8.4.0", | ||
"description": "Core libraries to interact with SFDX projects, orgs, and APIs.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1044481
22220