@openfin/remote-adapter 45.101.1 → 45.200.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.
@@ -2150,6 +2150,10 @@ class BrowserEnvironment extends BaseEnvironment {
2150
2150
  observeBounds(element, onChange) {
2151
2151
  throw new Error('Method not implemented.');
2152
2152
  }
2153
+ onBFCacheRestore(listener) {
2154
+ // Generic browser contexts do not participate in bfcache restoration handling.
2155
+ return () => undefined;
2156
+ }
2153
2157
  layoutAllowedInContext(_fin) {
2154
2158
  return false;
2155
2159
  }
@@ -7287,6 +7291,15 @@ class Transport extends events.EventEmitter {
7287
7291
  const { uuid, name } = config;
7288
7292
  const entityType = this.environment.getCurrentEntityType();
7289
7293
  this.me = getBaseMe(entityType, uuid, name);
7294
+ // Registered here rather than per-caller so that a restoration is logged exactly once,
7295
+ // however many parts of the adapter go on to subscribe.
7296
+ this.environment.onBFCacheRestore(async () => {
7297
+ await this.sendAction('write-to-log', {
7298
+ level: 'verbose',
7299
+ message: `Page restored from the back/forward cache for ${uuid}/${name}`,
7300
+ target: {}
7301
+ });
7302
+ });
7290
7303
  }
7291
7304
  getFin() {
7292
7305
  if (!__classPrivateFieldGet$k(this, _Transport_fin, "f")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/remote-adapter",
3
- "version": "45.101.1",
3
+ "version": "45.200.1",
4
4
  "description": "Establish intermachine runtime connections using webRTC.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "private": false,
@@ -16,7 +16,7 @@
16
16
  "dependencies": {
17
17
  "es-toolkit": "^1.39.3",
18
18
  "tslib": "2.8.1",
19
- "@openfin/core": "45.101.1"
19
+ "@openfin/core": "45.200.1"
20
20
  },
21
21
  "scripts": {
22
22
  "prebuild": "rimraf ./out",