@ethlete/query 6.0.0-next.35 → 6.0.0-next.36
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,11 @@
|
|
|
1
1
|
# @ethlete/query
|
|
2
2
|
|
|
3
|
+
## 6.0.0-next.36
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#3056](https://github.com/ethlete-io/ethdk/pull/3056) [`3595aa0`](https://github.com/ethlete-io/ethdk/commit/3595aa0e847afcd23b294027fc5daaceb8fcf0f2) Thanks [@github-actions](https://github.com/apps/github-actions)! - A tab that adopts its session from another tab now reports it as a token seed, so its secure queries and anything else waiting on a login no longer wait forever.
|
|
8
|
+
|
|
3
9
|
## 6.0.0-next.35
|
|
4
10
|
|
|
5
11
|
### Major Changes
|
|
@@ -4885,6 +4885,7 @@ const createBearerAuthProviderImpl = (config) => {
|
|
|
4885
4885
|
queryClient,
|
|
4886
4886
|
name: config.name,
|
|
4887
4887
|
applyTokens,
|
|
4888
|
+
setTokens,
|
|
4888
4889
|
logout,
|
|
4889
4890
|
sessionEndCause: sessionEndCause.asReadonly(),
|
|
4890
4891
|
});
|
|
@@ -5663,9 +5664,15 @@ const setupMultiTabSync = (config, context) => {
|
|
|
5663
5664
|
const refresh = decryptToken(message.refreshToken);
|
|
5664
5665
|
if (!access || !refresh)
|
|
5665
5666
|
return;
|
|
5667
|
+
const isNewSession = !context.accessToken();
|
|
5666
5668
|
lastSyncedState = tokenState(access, refresh);
|
|
5667
5669
|
hadTokens = true;
|
|
5668
|
-
|
|
5670
|
+
if (isNewSession) {
|
|
5671
|
+
context.setTokens(access, refresh);
|
|
5672
|
+
}
|
|
5673
|
+
else {
|
|
5674
|
+
context.applyTokens(access, refresh);
|
|
5675
|
+
}
|
|
5669
5676
|
settleAdoption();
|
|
5670
5677
|
};
|
|
5671
5678
|
let adoptionTimeout;
|
|
@@ -5797,6 +5804,7 @@ const withBearerAuthMultiTabSync = (config = {}) => {
|
|
|
5797
5804
|
name: context.name,
|
|
5798
5805
|
isLeader: () => isLeaderRef(),
|
|
5799
5806
|
applyTokens: context.applyTokens,
|
|
5807
|
+
setTokens: context.setTokens,
|
|
5800
5808
|
logout: context.logout,
|
|
5801
5809
|
});
|
|
5802
5810
|
if (config.leaderElection === false) {
|
|
@@ -7446,7 +7454,7 @@ const armQueryDevtoolsOverrideTransfer = (recorder, ops) => {
|
|
|
7446
7454
|
|
|
7447
7455
|
// Generated from package.json by tools/scripts/generate-version.js - do not edit.
|
|
7448
7456
|
/** The version of `@ethlete/query` this build was cut from. */
|
|
7449
|
-
const QUERY_VERSION = '6.0.0-next.
|
|
7457
|
+
const QUERY_VERSION = '6.0.0-next.36';
|
|
7450
7458
|
|
|
7451
7459
|
/** How deep a schema is expanded before a nested branch is given up on. */
|
|
7452
7460
|
const MAX_DEPTH = 12;
|