@xh/hoist 73.0.0-SNAPSHOT.1741808956502 → 73.0.0-SNAPSHOT.1741879126273

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,15 +1,17 @@
1
1
  # Changelog
2
2
 
3
- ## v73.0.0-SNAPSHOT - unreleased
3
+ ## v72.2.0 - 2025-03-13
4
4
 
5
5
  ### 🎁 New Features
6
-
7
6
  * Modified `TabContainerModel` to make more methods `protected`, improving extensibility for
8
7
  advanced use-cases.
9
8
  * Enhanced `XH.reloadApp` with new argument to clear query parameters before loading.
10
9
  * Enhanced exception handling in `FetchService` to capture messages returned as raw strings, or
11
10
  without explicit names.
12
11
  * Added dedicated columns to the Admin Console "Client Errors" tab for error names and messages.
12
+ * `BaseOAuthClient` has been enhanced to allow `lazy` loading of Access Tokens, and also made more
13
+ robust such that Access Tokens that fail to load will never prevent the client from
14
+ initialization.
13
15
 
14
16
  ### 🐞 Bug Fixes
15
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "73.0.0-SNAPSHOT.1741808956502",
3
+ "version": "73.0.0-SNAPSHOT.1741879126273",
4
4
  "description": "Hoist add-on for building and deploying React Applications.",
5
5
  "repository": "github:xh/hoist-react",
6
6
  "homepage": "https://xh.io",
@@ -14,7 +14,7 @@ import {AccessTokenSpec, TokenMap} from './Types';
14
14
  import {Timer} from '@xh/hoist/utils/async';
15
15
  import {MINUTES, olderThan, ONE_MINUTE, SECONDS} from '@xh/hoist/utils/datetime';
16
16
  import {isJSON, throwIf} from '@xh/hoist/utils/js';
17
- import {find, forEach, isEmpty, isObject, keys, pickBy, toPairs, union} from 'lodash';
17
+ import {find, forEach, isEmpty, isObject, keys, map, pickBy, union} from 'lodash';
18
18
  import ShortUniqueId from 'short-unique-id';
19
19
 
20
20
  export type LoginMethod = 'REDIRECT' | 'POPUP';
@@ -319,7 +319,7 @@ export abstract class BaseOAuthClient<
319
319
  ret: TokenMap = {};
320
320
 
321
321
  await Promise.allSettled(
322
- toPairs(accessSpecs).map(async ([key, spec]) => {
322
+ map(accessSpecs, async (spec, key) => {
323
323
  try {
324
324
  ret[key] = await this.fetchAccessTokenAsync(spec, useCache);
325
325
  } catch (e) {