@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 +3 -1
- package/appcontainer/AppContainerModel.ts +2 -1
- package/build/types/core/XH.d.ts +1 -1
- package/build/types/core/types/Types.d.ts +10 -0
- package/build/types/utils/js/LangUtils.d.ts +1 -2
- package/build/types/utils/js/index.d.ts +0 -1
- package/build/types/utils/log/LogUtils.d.ts +1 -11
- package/build/types/utils/version/index.d.ts +1 -0
- package/core/HoistBase.ts +1 -8
- package/core/XH.ts +2 -1
- package/core/types/Types.ts +6 -0
- package/kit/ag-grid/index.ts +1 -1
- package/kit/highcharts/index.ts +1 -1
- package/mobx/overrides.ts +1 -1
- package/package.json +1 -1
- package/svc/ChangelogService.ts +1 -1
- package/svc/EnvironmentService.ts +2 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/utils/js/Decorators.ts +1 -1
- package/utils/js/LangUtils.ts +1 -2
- package/utils/js/index.ts +0 -1
- package/utils/log/LogUtils.ts +11 -9
- package/utils/version/index.ts +8 -0
- /package/build/types/utils/{js → version}/VersionUtils.d.ts +0 -0
- /package/utils/{js → version}/VersionUtils.ts +0 -0
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
|
-
*
|
|
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
|
|
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';
|
package/build/types/core/XH.d.ts
CHANGED
|
@@ -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 {
|
|
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,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
|
|
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';
|
package/core/types/Types.ts
CHANGED
|
@@ -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}};
|
package/kit/ag-grid/index.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import {logError} from '@xh/hoist/utils/log';
|
|
9
|
-
import {checkVersion} from '@xh/hoist/utils/
|
|
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.
|
package/kit/highcharts/index.ts
CHANGED
package/mobx/overrides.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xh/hoist",
|
|
3
|
-
"version": "76.0.0-SNAPSHOT.
|
|
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",
|
package/svc/ChangelogService.ts
CHANGED
|
@@ -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/
|
|
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
|
|
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';
|