@amedia/user 1.8.0 → 1.8.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @amedia/user
2
2
 
3
+ ## 1.8.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1309](https://github.com/amedia/amedia-user-js/pull/1309) [`05602cd`](https://github.com/amedia/amedia-user-js/commit/05602cd919628e86605f41ec0d4d8d7d2f5bbf74) Thanks [@hennikul](https://github.com/hennikul)! - Check `data-aid-uuid` once per page load. Later refreshes of the reader, on
8
+ window focus or while polling for access, no longer compare the page, so a page
9
+ left open no longer reloads each time the two-minute guard expires, and markup a
10
+ lazy include inserts afterwards is not compared. The error logged when a page is
11
+ still wrong after the reload now gives `foreignElements`: the path from `body` to
12
+ each mismatched element, with ids, classes and sibling positions. Before reloading, the
13
+ reason and the same paths go to the browser console with `console.info`.
14
+
3
15
  ## 1.8.0
4
16
 
5
17
  ### Minor Changes
package/README.md CHANGED
@@ -213,6 +213,11 @@ the various services.
213
213
 
214
214
  You should check the state object for potential emergency modes and act accordingly.
215
215
 
216
+ A reader can become logged in after you were told they are logged out: FedCM logs them in on the page without
217
+ navigating, and the module then refreshes the reader from aID. There is no separate login event. Subscribers are called
218
+ again and end with `state.isLoggedIn: true`; a resolved `.fetch()` never hears about it. On the way, `state` may briefly
219
+ lack `isLoggedIn` because the refresh clears it — treat that as "not known yet", not as logged out.
220
+
216
221
  Should you wish to end your subscription, just call the returned function from `subscribe`.
217
222
 
218
223
  #### Fetching all the data at once (no re-renders)
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "url": "git+https://github.com/amedia/amedia-user-js.git"
7
7
  },
8
8
  "author": "Amedia Produkt og Teknologi AS (https://amedia.no)",
9
- "version": "1.8.0",
9
+ "version": "1.8.1",
10
10
  "type": "module",
11
11
  "exports": {
12
12
  ".": {