Repository navigation
verso-v1.0.19
·
130 commits
to main
since this release
Release adding cell execution cancellation (Stop), persisted per-cell view state with a built-in Clear Output toolbar action, image rendering in presentation and dashboard layouts, smarter NuGet resolution with transitive dependency tracking and provider auto-resolve, plus a fix that stops auto-running cells when switching to the presentation layout.
Thanks to @eosfor for contributing PRs #49, #50, and #52 in this release.
New: Cell Execution Cancellation
- New
CancelCellAsynconINotebookService;RemoteNotebookServiceroutes via RPC andServerNotebookServicecancels through aCancellationTokenSource - Stop button replaces Run on cells whose language exposes cancellation;
OnCancelCellis wired through Dashboard, Grid, Cell, and the WASM and Blazor Server notebook pages ExecutionPipelinesurfaces cancellation as a cancelledExecutionResult;ExecutionHandlertreats cancellation as a normal cancelled outcome rather than an error- Language DTOs carry a
SupportsCancellationflag so the UI only renders Stop where it works; certain runners (the Jint JS runner) are marked non-cancellable - Jint JS runner timeout reduced to 15 seconds with adjusted error messages
- CSS for the stop button;
CellTestsupdated to assert Stop is enabled during execution, falling back to checking a disabled Run for kernels without cancellation support
New: Persisted Cell View State and Clear Output Action
- New
CellViewStateMetadatakeys persist per-cell input-collapse state and output-visibility state in cell metadata - Host protocol round-trips metadata changes through notebook DTOs, so view state survives reload; both
ServerNotebookServiceandRemoteNotebookServiceupdate metadata through their respective local and remote paths - New built-in
ClearCellOutputActiontoolbar action removes the selected cell's output through a host-level code path - Host tests cover metadata round-tripping and clear-output behavior; the Blazor.Shared test fake gains the new cell view state methods
New: Cell Visibility Metadata Renamed and Migrated
- Metadata key renamed from
verso:visibilitytoverso:ui.layoutVisibility; the constant lives in a newCellLayoutVisibilityMetadatatype used by the property provider, resolver, remote service, and docs LegacyMetadataMigratorruns at notebook open inNotebookHandlerand rewrites the legacy key so older.versofiles keep loading; legacy key is scheduled for removal in 1.0.22- Tests for the migrator added; existing tests updated to the new key
New: Image Outputs in Presentation and Dashboard Layouts
PresentationView.razor,DashboardCell.razor, and the HTML-producingPresentationLayoutnow renderimage/*MIME types as<img>data URIs, matching the regular cell renderer- Existing HTML, Markdown, plain text, and fallback MIME handling is preserved
- Ordinal MIME matching is used for the image prefix check
Improved: NuGet Resolution and Provider Auto-Resolve
#!sql-connectautomatically resolves a NuGet-based provider when an explicit provider is given but not already loaded; inner exception chains are walked for clearer error reportingCSharpKernelalways re-publishes the cumulative set of NuGet assembly paths so later magic commands can locate assemblies even after intervening non-#rcells- "Installed Packages" feedback now surfaces transitive dependencies alongside direct references
- Runtime assembly loading prefers exact package-version candidates; a private isolation
AssemblyLoadContextis used as a fallback when TPA or version conflicts occur;unixis added as an RID fallback on macOS NuGetPackageResolverrecords the full transitive (id, version) result set, extracts platform-specific managed assets fromruntimes/{rid}/lib/{tfm}/(overwriting thelib/stubs), registers package directories after extraction, and limits framework-package skipping to the core runtime meta-packages- Cache schema suffix bumped; tests updated to accept the new cache root layout
Improved: Extensions Directory Loading
- New
NotebookServiceOptionshost-level singleton carries the optionalExtensionsDirectorypath ServerNotebookServicecentralizes loading inLoadExtensionsAsync(built-ins first, then the optional directory) and replaces repeated directLoadBuiltIncallsBlazorHostBuilderregisters the options using the CLI--extensionspath so the in-processExtensionHostmirrors the other extension-loading entry points
Improved: Cell Display Properties and UI
CellPropertiesPanelsubscribes toOnNotebookChanged(with corrected subscription scoping) and refreshes viaLoadSectionsAsyncwhen the notebook changesCellDisplayPropertyProviderbuilds the field list incrementally, only exposes input-collapse fields for code cells (SupportsInputCollapse), and simplifies preview-style normalization and persistencePropertyFieldComponentcheckbox handling usesIsToggleCheckedto supportbool,JsonElement, and string boolean valuesCell.razoraction button titles drop the hardcoded "Export" prefix- Unit test added to ensure input fields are omitted for non-code cells
Improved: Shared Panel Title Mapping
- New
Verso.Blazor.Shared.Models.PanelDisplayNames.Forreplaces duplicated private methods in the WASM and ComponentsNotebookPage.razor - Preserves the special-case mapping ("properties" produces "CELL PROPERTIES") and falls back to
ToUpperInvariantfor unknown ids - Unit tests cover known panels, the properties special case, and the fallback path
Improved: Preview Styles for Cell Source and Outputs
- New
.verso-cell-source-previewprovides a bordered, rounded container for collapsed input previews - New
.verso-cell-output-summarystyles the dashed "N output(s) hidden" summary box .verso-cell-outputs--previewand.verso-cell-rendered-input--previewuse-webkit-line-clampfor text and error previews and cap rendered HTML output at 160 pixels- Uses existing CSS variables so previews honor theming
Improved: Host stderr Log Severities
- Lines from the host prefixed with
[Verso]are treated as informational (logged at info, prefix stripped); untagged stderr is logged at warning rather than error - Reduces noisy error logs on routine notebook open while still surfacing likely unhandled exceptions appropriately
Fixed: Auto-Run on Presentation Layout Switch
- Both WASM and Blazor Server
NotebookPageno longer callHandleRunAll()when the active layout becomespresentation - Existing outputs remain visible; cells execute only on explicit Run or Run All actions
- Presentation layout rendering is otherwise unchanged
Fixed: Trailing Newline in PlainTextRenderer
PlainTextRendererstrips trailing CR and LF from cell output viaTrimEnd('\r', '\n')before clipping, so bordered output panels no longer end with an empty row- Internal blank lines authored by the cell are preserved