@xh/hoist 76.0.0-SNAPSHOT.1758212424281 → 76.0.0-SNAPSHOT.1758217044052

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
@@ -3,8 +3,10 @@
3
3
  ## 76.0.0-SNAPSHOT - unreleased
4
4
 
5
5
  ### 💥 Breaking Changes (upgrade difficulty: 🟢 LOW - upgrade to Hoist Core, change to Tab constructor)
6
- * The constructor for `TabModel` has changed to take its owning container as a second argument.
6
+ * The constructor for `TabModel` has changed to take its owning container as a second argument.
7
7
  (Most applications do not create `TabModels` directly, but it is possible.)
8
+ * `checkVersion` and related methods' import path has changed. Update imports from
9
+ `@xh/hoist/utils/js/VersionUtils` to `@xh/hoist/utils/version`; (Unlikely to affect most apps.)
8
10
 
9
11
  ### 🎁 New Features
10
12
 
@@ -40,7 +40,8 @@ import {
40
40
  TrackService,
41
41
  WebSocketService
42
42
  } from '@xh/hoist/svc';
43
- import {checkMinVersion, createSingleton, throwIf} from '@xh/hoist/utils/js';
43
+ import {checkMinVersion} from '@xh/hoist/utils/version';
44
+ import {createSingleton, throwIf} from '@xh/hoist/utils/js';
44
45
  import {compact, isEmpty} from 'lodash';
45
46
  import {AboutDialogModel} from './AboutDialogModel';
46
47
  import {BannerSourceModel} from './BannerSourceModel';
@@ -2,7 +2,7 @@ import { RouterModel } from '@xh/hoist/appcontainer/RouterModel';
2
2
  import { HoistAuthModel } from '@xh/hoist/core/HoistAuthModel';
3
3
  import { Store } from '@xh/hoist/data';
4
4
  import { AlertBannerService, AutoRefreshService, ChangelogService, ConfigService, EnvironmentService, FetchOptions, FetchService, GridAutosizeService, GridExportService, IdentityService, IdleService, InspectorService, JsonBlobService, LocalStorageService, PrefService, SessionStorageService, TrackService, WebSocketService, ClientHealthService } from '@xh/hoist/svc';
5
- import { type LogLevel } from '@xh/hoist/utils/log';
5
+ import type { LogLevel } from './types/Types';
6
6
  import { Router, State } from 'router5';
7
7
  import { CancelFn } from 'router5/types/types/base';
8
8
  import { SetOptional } from 'type-fest';
@@ -66,3 +66,13 @@ export type PageState =
66
66
  * The page is in the process of being unloaded by the browser (this is a terminal state x_x).
67
67
  */
68
68
  | 'terminated';
69
+ /** Severity Level for log statement */
70
+ export type LogLevel = 'error' | 'warn' | 'info' | 'debug';
71
+ /** Object identifying the source of log statement. Typically, a javascript class */
72
+ export type LogSource = string | {
73
+ displayName: string;
74
+ } | {
75
+ constructor: {
76
+ name: string;
77
+ };
78
+ };
@@ -1,5 +1,4 @@
1
- import { Thunkable } from '@xh/hoist/core';
2
- import { type LogSource } from '@xh/hoist/utils/log';
1
+ import type { Thunkable, LogSource } from '@xh/hoist/core';
3
2
  /**
4
3
  * Get a cached value on an object, creating it if it does not yet exist.
5
4
  *
@@ -3,4 +3,3 @@ export * from './LangUtils';
3
3
  export * from './Decorators';
4
4
  export * from './DomUtils';
5
5
  export * from './TestUtils';
6
- export * from './VersionUtils';
@@ -1,4 +1,4 @@
1
- import { Some } from '@xh/hoist/core';
1
+ import type { Some, LogLevel, LogSource } from '@xh/hoist/core';
2
2
  /**
3
3
  * Utility functions providing managed, structured logging to Hoist apps.
4
4
  *
@@ -12,16 +12,6 @@ import { Some } from '@xh/hoist/core';
12
12
  * memory impacts that might result from verbose debug logging. This can be adjusted by calling
13
13
  * XH.logLevel from the console.
14
14
  */
15
- /** Severity Level for log statement */
16
- export type LogLevel = 'error' | 'warn' | 'info' | 'debug';
17
- /** Object identifying the source of log statement. Typically, a javascript class */
18
- export type LogSource = string | {
19
- displayName: string;
20
- } | {
21
- constructor: {
22
- name: string;
23
- };
24
- };
25
15
  /**
26
16
  * Current minimum severity for Hoist log utils (default 'info').
27
17
  * Messages logged via managed Hoist log utils with lower severity will be ignored.
@@ -0,0 +1 @@
1
+ export * from './VersionUtils';
package/core/HoistBase.ts CHANGED
@@ -14,14 +14,7 @@ import {
14
14
  when as mobxWhen
15
15
  } from '@xh/hoist/mobx';
16
16
  import {getOrCreate, throwIf} from '@xh/hoist/utils/js';
17
- import {
18
- logDebug,
19
- logError,
20
- logInfo,
21
- logWarn,
22
- withDebug,
23
- withInfo
24
- } from '@xh/hoist/utils/log/LogUtils';
17
+ import {logDebug, logError, logInfo, logWarn, withDebug, withInfo} from '@xh/hoist/utils/log';
25
18
  import {
26
19
  debounce as lodashDebounce,
27
20
  isFunction,
package/core/XH.ts CHANGED
@@ -31,7 +31,8 @@ import {
31
31
  WebSocketService,
32
32
  ClientHealthService
33
33
  } from '@xh/hoist/svc';
34
- import {getLogLevel, setLogLevel, type LogLevel} from '@xh/hoist/utils/log';
34
+ import type {LogLevel} from './types/Types';
35
+ import {getLogLevel, setLogLevel} from '@xh/hoist/utils/log';
35
36
  import {camelCase, flatten, isString, uniqueId} from 'lodash';
36
37
  import {Router, State} from 'router5';
37
38
  import {CancelFn} from 'router5/types/types/base';
@@ -86,3 +86,9 @@ export type PageState =
86
86
  * The page is in the process of being unloaded by the browser (this is a terminal state x_x).
87
87
  */
88
88
  | 'terminated';
89
+
90
+ /** Severity Level for log statement */
91
+ export type LogLevel = 'error' | 'warn' | 'info' | 'debug';
92
+
93
+ /** Object identifying the source of log statement. Typically, a javascript class */
94
+ export type LogSource = string | {displayName: string} | {constructor: {name: string}};
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  import {logError} from '@xh/hoist/utils/log';
9
- import {checkVersion} from '@xh/hoist/utils/js/VersionUtils';
9
+ import {checkVersion} from '@xh/hoist/utils/version';
10
10
 
11
11
  /**
12
12
  * The exports below are ag-Grid components provided at runtime by applications.
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  import {logError} from '@xh/hoist/utils/log';
9
- import {checkVersion} from '@xh/hoist/utils/js/VersionUtils';
9
+ import {checkVersion} from '@xh/hoist/utils/version';
10
10
 
11
11
  export let Highcharts = null;
12
12
 
package/mobx/overrides.ts CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  observable,
14
14
  runInAction
15
15
  } from 'mobx';
16
- import {logError} from '@xh/hoist/utils/log/LogUtils';
16
+ import {logError} from '@xh/hoist/utils/log';
17
17
 
18
18
  /**
19
19
  * An enhanced version of the native mobx makeObservable.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "76.0.0-SNAPSHOT.1758212424281",
3
+ "version": "76.0.0-SNAPSHOT.1758217044052",
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",
@@ -8,7 +8,7 @@ import {HoistService, XH} from '@xh/hoist/core';
8
8
  // @ts-ignore
9
9
  import jsonFromMarkdown from '@xh/app-changelog.json';
10
10
  import {action, makeObservable, observable} from '@xh/hoist/mobx';
11
- import {checkMinVersion} from '@xh/hoist/utils/js';
11
+ import {checkMinVersion} from '@xh/hoist/utils/version';
12
12
  import {isEmpty, forOwn, includes} from 'lodash';
13
13
 
14
14
  /**
@@ -11,7 +11,8 @@ import {action, makeObservable, observable} from '@xh/hoist/mobx';
11
11
  import hoistPkg from '@xh/hoist/package.json';
12
12
  import {Timer} from '@xh/hoist/utils/async';
13
13
  import {MINUTES, SECONDS} from '@xh/hoist/utils/datetime';
14
- import {checkMaxVersion, checkMinVersion, deepFreeze} from '@xh/hoist/utils/js';
14
+ import {checkMaxVersion, checkMinVersion} from '@xh/hoist/utils/version';
15
+ import {deepFreeze} from '@xh/hoist/utils/js';
15
16
  import {defaults, isFinite} from 'lodash';
16
17
  import mobxPkg from 'mobx/package.json';
17
18
  import {version as reactVersion} from 'react';