@openfin/node-adapter 45.100.27 → 45.100.29

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.
@@ -5261,6 +5261,48 @@ class System extends base_1$m.EmitterBase {
5261
5261
  clearCache(options) {
5262
5262
  return this.wire.sendAction('clear-cache', options).then(() => undefined);
5263
5263
  }
5264
+ /**
5265
+ * Clears only the HTTP cache (browser cache for HTML, CSS, JS, images).
5266
+ * Service workers and other storage data are preserved.
5267
+ *
5268
+ * This is useful when you need to clear stale content without breaking offline functionality.
5269
+ *
5270
+ * @example
5271
+ * ```js
5272
+ * // Clear HTTP cache without affecting service workers
5273
+ * await fin.System.clearHTTPCache();
5274
+ * ```
5275
+ */
5276
+ clearHTTPCache() {
5277
+ return this.wire.sendAction('clear-http-cache').then(() => undefined);
5278
+ }
5279
+ /**
5280
+ * Clears browsing data with granular control over what to clear and which origins to target.
5281
+ *
5282
+ * @param options - Optional configuration for what data to clear
5283
+ *
5284
+ * @example
5285
+ * ```js
5286
+ * // Clear only cookies and localStorage for a specific origin
5287
+ * await fin.System.clearCacheData({
5288
+ * dataTypes: ['cookies', 'localStorage'],
5289
+ * origins: ['http://localhost:8081']
5290
+ * });
5291
+ *
5292
+ * // Clear everything except for a specific origin
5293
+ * await fin.System.clearCacheData({
5294
+ * excludeOrigins: ['http://example.com']
5295
+ * });
5296
+ *
5297
+ * // Clear all service workers across all origins
5298
+ * await fin.System.clearCacheData({
5299
+ * dataTypes: ['serviceWorkers']
5300
+ * });
5301
+ * ```
5302
+ */
5303
+ clearCacheData(options) {
5304
+ return this.wire.sendAction('clear-cache-data', options || {}).then(() => undefined);
5305
+ }
5264
5306
  /**
5265
5307
  * Clears all cached data when OpenFin Runtime exits.
5266
5308
  *
@@ -18394,7 +18436,7 @@ class NodeEnvironment extends BaseEnvironment_1 {
18394
18436
  };
18395
18437
  }
18396
18438
  getAdapterVersionSync() {
18397
- return "45.100.27";
18439
+ return "45.100.29";
18398
18440
  }
18399
18441
  observeBounds(element, onChange) {
18400
18442
  throw new Error('Method not implemented.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/node-adapter",
3
- "version": "45.100.27",
3
+ "version": "45.100.29",
4
4
  "description": "See README.md",
5
5
  "main": "out/node-adapter.js",
6
6
  "types": "out/node-adapter.d.ts",
@@ -24,7 +24,7 @@
24
24
  "author": "OpenFin",
25
25
  "dependencies": {
26
26
  "@types/node": "^20.14.2",
27
- "@openfin/core": "45.100.27",
27
+ "@openfin/core": "45.100.29",
28
28
  "lodash": "^4.17.21",
29
29
  "ws": "^7.3.0"
30
30
  }