@medplum/core 2.0.19 → 2.0.20

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.
@@ -11,7 +11,7 @@ import { encodeBase64 } from './base64.mjs';
11
11
 
12
12
  // PKCE auth based on:
13
13
  // https://aws.amazon.com/blogs/security/how-to-add-authentication-single-page-web-application-with-amazon-cognito-oauth2-implementation/
14
- const MEDPLUM_VERSION = "2.0.19-40e6e27d" ;
14
+ const MEDPLUM_VERSION = "2.0.20-effeb76c" ;
15
15
  const DEFAULT_BASE_URL = 'https://api.medplum.com/';
16
16
  const DEFAULT_RESOURCE_CACHE_SIZE = 1000;
17
17
  const DEFAULT_CACHE_TIME = 60000; // 60 seconds
@@ -182,6 +182,13 @@ class MedplumClient extends EventTarget {
182
182
  url = url.toString();
183
183
  this.requestCache?.delete(url);
184
184
  }
185
+ /**
186
+ * Invalidates all cached values and flushes the cache.
187
+ * @category Caching
188
+ */
189
+ invalidateAll() {
190
+ this.requestCache?.clear();
191
+ }
185
192
  /**
186
193
  * Invalidates all cached search results or cached requests for the given resourceType.
187
194
  * @category Caching