@openfin/remote-adapter 45.100.27 → 45.100.30

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.
@@ -8034,6 +8034,48 @@ class System extends base_1$h.EmitterBase {
8034
8034
  clearCache(options) {
8035
8035
  return this.wire.sendAction('clear-cache', options).then(() => undefined);
8036
8036
  }
8037
+ /**
8038
+ * Clears only the HTTP cache (browser cache for HTML, CSS, JS, images).
8039
+ * Service workers and other storage data are preserved.
8040
+ *
8041
+ * This is useful when you need to clear stale content without breaking offline functionality.
8042
+ *
8043
+ * @example
8044
+ * ```js
8045
+ * // Clear HTTP cache without affecting service workers
8046
+ * await fin.System.clearHTTPCache();
8047
+ * ```
8048
+ */
8049
+ clearHTTPCache() {
8050
+ return this.wire.sendAction('clear-http-cache').then(() => undefined);
8051
+ }
8052
+ /**
8053
+ * Clears browsing data with granular control over what to clear and which origins to target.
8054
+ *
8055
+ * @param options - Optional configuration for what data to clear
8056
+ *
8057
+ * @example
8058
+ * ```js
8059
+ * // Clear only cookies and localStorage for a specific origin
8060
+ * await fin.System.clearCacheData({
8061
+ * dataTypes: ['cookies', 'localStorage'],
8062
+ * origins: ['http://localhost:8081']
8063
+ * });
8064
+ *
8065
+ * // Clear everything except for a specific origin
8066
+ * await fin.System.clearCacheData({
8067
+ * excludeOrigins: ['http://example.com']
8068
+ * });
8069
+ *
8070
+ * // Clear all service workers across all origins
8071
+ * await fin.System.clearCacheData({
8072
+ * dataTypes: ['serviceWorkers']
8073
+ * });
8074
+ * ```
8075
+ */
8076
+ clearCacheData(options) {
8077
+ return this.wire.sendAction('clear-cache-data', options || {}).then(() => undefined);
8078
+ }
8037
8079
  /**
8038
8080
  * Clears all cached data when OpenFin Runtime exits.
8039
8081
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/remote-adapter",
3
- "version": "45.100.27",
3
+ "version": "45.100.30",
4
4
  "description": "Establish intermachine runtime connections using webRTC.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "private": false,
@@ -20,6 +20,6 @@
20
20
  "author": "OpenFin",
21
21
  "dependencies": {
22
22
  "lodash": "^4.17.21",
23
- "@openfin/core": "45.100.27"
23
+ "@openfin/core": "45.100.30"
24
24
  }
25
25
  }