|
4 | 4 |
|
5 | 5 | ### π₯ Breaking Changes (upgrade difficulty: π’ LOW) |
6 | 6 |
|
| 7 | +* Deprecated `HoistBase.withSpan()` and the `FetchOptions.span` / `loadSpec` fields, in favor of |
| 8 | + the `Runner` chain (`runner().span()`) and the new `CallContext` argument to fetch methods (see |
| 9 | + below for more details). Both log a warning and are scheduled for removal in v88. |
| 10 | +* Upgraded `CodeInput` to CodeMirror v6 (upgraded from v5). |
| 11 | + * Removed `editorProps` prop - most use cases now supported via first-class `CodeInput` props |
| 12 | + such as `readonly`, `language`, `lineNumbers`, and `lineWrapping`. |
| 13 | + * Replaced the `mode` prop with `language`. See |
| 14 | + [language-data](https://github.com/codemirror/language-data/blob/main/src/language-data.ts) |
| 15 | + for valid language strings (aliases and names are both accepted). |
| 16 | +* Redesigned `FileChooser`, moving configuration from component props to the `FileChooserModel` |
| 17 | + constructor config and adding a fully customizable display API. |
| 18 | + * Options such as `accept` and the file-size limits are now set on `FileChooserModel` rather |
| 19 | + than as `FileChooser` props. |
| 20 | + * Renamed `maxSize` / `minSize` to `maxFileSize` / `minFileSize`. |
| 21 | + * Removed `enableMulti` / `enableAddMulti` - use `maxFiles` (set to `1` for single-file |
| 22 | + selection). |
| 23 | + * Removed `targetText` and `showFileGrid` - customize via the new `emptyDisplay` / `fileDisplay` |
| 24 | + content props. The default `fileDisplay` is a file grid, or a compact card with replace / |
| 25 | + remove actions when `maxFiles` is 1. |
7 | 26 | * `DashContainerModel` no longer persists per-view `icon` in its layout state, aligning with |
8 | 27 | `DashCanvasModel`. Icons now always come from the `DashViewSpec`. Apps that set |
9 | 28 | `DashViewModel.icon` at runtime still see it render, but the override is no longer saved. |
10 | 29 | * Removed the `serializeIcon()` / `deserializeIcon()` helpers from `@xh/hoist/icon`, which |
11 | 30 | existed only to support the above. |
12 | | -* `FileChooser.accept` now takes a react-dropzone `Accept` object keyed by MIME type |
13 | | - (e.g. `{'application/pdf': ['.pdf']}`) rather than an extension string or string array. See the |
14 | | - [react-dropzone docs](https://react-dropzone.js.org/#section-accepting-specific-file-types) |
15 | | - for the new format. |
16 | 31 |
|
17 | | -### π Bug Fixes |
| 32 | +### π New Features |
18 | 33 |
|
19 | | -* Chart right-to-left "zoom out" gesture now activates for charts configured with the modern |
20 | | - `chart.zooming.type = 'x'` Highcharts option, in addition to the legacy `chart.zoomType = 'x'`. |
| 34 | +* `FileChooser` gained extensive new capabilities as part of its redesign: a `maxFiles` limit, |
| 35 | + fully customizable `emptyDisplay` / `fileDisplay` content, `onFileAccepted` / `onFileRejected` |
| 36 | + callbacks, configurable rejection toasts, `maskOnDrag` / `maskOnDisabled` options, and a |
| 37 | + programmatic `openFileBrowser()` method. In multi-file mode a persistent drop target sits |
| 38 | + alongside the grid - placement set via the `dropTargetPlacement` prop (`left`, `top`, or |
| 39 | + `hidden`) - so users can keep adding files until the limit is reached. |
| 40 | +* Added the `Runner` API - a fluent builder (via `HoistBase.runner()`) that composes spanning, |
| 41 | + logging, activity tracking, metrics, and task-linking around async work and fetch calls. It |
| 42 | + threads a shared `CallContext` (trace + load state) across call boundaries, which fetch methods |
| 43 | + now accept as an optional argument. |
| 44 | +* Added a client-side `MetricsService` (`XH.metricsService`) for recording timers and counters, |
| 45 | + batched to the server's Micrometer registry. Recording requires `hoist-core >= 40.0.1`. |
| 46 | +* Trace spans can now chain onto a remote `traceparent` received off-channel (e.g. a WebSocket, |
| 47 | + SSE, or queue message), in addition to a local parent span. |
21 | 48 | * Desktop `DateInput` now supports a `commitOnChange` prop (default `true`). Set to `false` to |
22 | 49 | defer parsing and value commit until blur, Enter, or picker selection. Useful when configuring |
23 | 50 | `parseStrings` such that one format is a prefix of another (e.g. `MM/DD/YY` and `MM/DD/YYYY`), |
24 | 51 | where the eager default would reformat the user's text mid-typing. |
| 52 | + |
| 53 | +### π Bug Fixes |
| 54 | + |
| 55 | +* Updated the chart right-to-left "zoom out" gesture to activate for charts configured with the |
| 56 | + modern `chart.zooming.type` Highcharts option, in addition to the legacy `chart.zoomType`. |
| 57 | +* Improved desktop `Select` to no longer hijack `Home`/`End` keys, allowing native caret movement in |
| 58 | + the input. See [#3930](https://github.com/xh/hoist-react/issues/3930). |
25 | 59 | * Fixed `GridFilter` column header values tab crashing with a duplicate-ID error when re-opened |
26 | 60 | for a `tags`-typed field with an active filter. |
27 | | -* Desktop `Select` no longer hijacks `Home`/`End` keys, allowing native caret movement in the |
28 | | - input. See [#3930](https://github.com/xh/hoist-react/issues/3930). |
29 | 61 | * Fixed `RelativeTimestamp` ignoring an explicitly passed `model` prop when resolving its `bind` |
30 | 62 | source - the prop is now honored, falling back to the context model only when unset. |
31 | 63 | * Fixed `UniqueAggregator` permanently caching `null` on grouped cube rows after a diverge β |
32 | 64 | reconverge sequence of child updates; the aggregator now falls back to a sibling re-scan when the |
33 | 65 | cache could be transitioning. |
34 | 66 |
|
| 67 | +### π New Features |
| 68 | + |
| 69 | +* Added `pathPrefix` to `PersistOptions` - an inheritable prefix prepended to the resolved `path`, |
| 70 | + concatenated through `persistOptions()`. Enables hierarchical namespacing of persistence so a |
| 71 | + parent model can scope all descendants (`@persist` properties, `markPersist` calls, child |
| 72 | + `GridModel` / `PanelModel` / etc.) under a single shared key in one backing store. See |
| 73 | + [`docs/persistence.md`](docs/persistence.md#hierarchical-namespacing-with-pathprefix). |
| 74 | +* Added exported `persistOptions()` function for merging one or more `PersistOptions` objects, |
| 75 | + with later arguments overriding earlier ones. Replaces the now-deprecated |
| 76 | + `PersistenceProvider.mergePersistOptions`. |
| 77 | + |
| 78 | +### π€ AI Docs + Tooling |
| 79 | + |
| 80 | +* Added a `hoist-read-doc` MCP tool that reads a full document by exact ID, giving MCP parity with |
| 81 | + the `hoist-docs read` CLI and `hoist-core`'s `hoist-core-read-doc`. |
| 82 | +* The `hoist://docs/{id}` resource now tolerates a dropped `docs/` segment, so |
| 83 | + `hoist://docs/routing.md` resolves the same as the strictly-correct |
| 84 | + `hoist://docs/docs/routing.md`. |
| 85 | +* Added a `hoist-docs ping` CLI subcommand mirroring the `hoist-ping` MCP tool; both now report the |
| 86 | + indexed `@xh/hoist` library version. |
| 87 | +* MCP/CLI symbol JSDoc is no longer truncated at the first `@`-prefixed line inside a fenced code |
| 88 | + block (e.g. an `@observable.ref` in a usage example), recovering example code, "SEE ALSO" lists, |
| 89 | + and trailing prose that were previously dropped. |
| 90 | + |
35 | 91 | ### βοΈ Technical |
36 | 92 |
|
37 | 93 | * Forked unmaintained `golden-layout` 1.5.9 into `kit/golden-layout/`. Removed unused code, ported |
|
47 | 103 |
|
48 | 104 | ### π Libraries |
49 | 105 |
|
50 | | -* ag-Grid `34.x β 35.x`. Apps must bump their `ag-grid-community`, `ag-grid-enterprise`, and |
51 | | - `ag-grid-react` dependencies to `35.x`. See the [AG Grid v35 upgrade guide](https://www.ag-grid.com/javascript-data-grid/upgrading-to-ag-grid-35/); |
52 | | - no Hoist API changes required. |
53 | | -* Removed `golden-layout` and `jquery` (replaced by the forked source above). |
54 | | - * Note, applications with previously required `"jquery": "3.x"` pin in package.json |
55 | | - `resolutions` should now be able to remove that pin. |
| 106 | +* @azure/msal-browser `4.29 β 5.11` |
| 107 | + * Major upgrade with broad architectural changes. Several `system` config properties were |
| 108 | + renamed - notably `iFrameHashTimeout` β `iframeBridgeTimeout`. Apps passing |
| 109 | + `msalClientOptions` to `MsalClient` must review |
| 110 | + the [v4 β v5 migration guide](https://learn.microsoft.com/en-us/entra/msal/javascript/browser/v4-migration). |
| 111 | +* @codemirror `5.x β 6.x` |
| 112 | + * Replaces the v5 monolithic `codemirror` package, with several new direct dependencies now |
| 113 | + managed by hoist-react to maintain all supported functionality. |
| 114 | + * See breaking change note above for `CodeInput` prop changes. |
| 115 | +* ag-grid `34.x β 35.x`. |
| 116 | + * Apps must bump their `ag-grid-community`, `ag-grid-enterprise`, and `ag-grid-react` |
| 117 | + dependencies to `35.x`. See |
| 118 | + the [AG Grid v35 upgrade guide](https://www.ag-grid.com/javascript-data-grid/upgrading-to-ag-grid-35/); |
| 119 | + no Hoist API changes required. |
| 120 | +* golden-layout `removed` |
| 121 | + * Replaced by the forked source as described above |
| 122 | +* jquery `removed` |
| 123 | + * Was included due to golden-layouts consumer, which now no longer needs the library. |
| 124 | + * Apps with previously required `"jquery": "3.x"` pin in package.json `resolutions` should now |
| 125 | + be able to remove that pin. |
| 126 | +* react-dropzone `10.x β 15.x` |
| 127 | + * See the `FileChooser` redesign note under Breaking Changes above. |
| 128 | +* react-select `4.3 β 5.10` |
| 129 | +* react-windowed-select `3.1 β 5.2` |
56 | 130 | * semver `7.7 β 7.8` |
57 | | -* react-select `4.3 β 5.10` and react-windowed-select `3.1 β 5.2`. No app-level API changes. |
58 | | -* react-dropzone `10.x β 15.x`. See breaking change note above for the `FileChooser.accept` prop. |
59 | | -* `@azure/msal-browser` `4.29 β 5.11`. Apps passing `msalClientOptions` to `MsalClient` should |
60 | | - review the [v4 β v5 migration guide](https://learn.microsoft.com/en-us/entra/msal/javascript/browser/v4-migration) |
61 | | - for breaking changes to the underlying MSAL configuration API. |
62 | 131 |
|
63 | 132 | ## 85.0.0 - 2020-04-30 |
64 | 133 |
|
|
0 commit comments