Repository navigation
verso-v1.0.17
·
152 commits
to main
since this release
Release adding a new CLI command for headless exports via toolbar actions, safer kernel initialization under concurrent warm-up/execute, an FSharp.Compiler.Service dependency bump, and fixes around F# variable preservation and script directive resolution.
New: verso export Command
- New
exportsubcommand dispatches a notebook to anIToolbarActionregistered withToolbarPlacement.ExportMenuand writes the produced bytes to disk - Options:
<input>,--format/-f,--output/-o,--execute/-x,--layout,--theme,--extensions,--list,--list-themes --listand--list-themesenumerate installed export actions and themes for discoverability- Action and theme resolution matches
DisplayNamecase-insensitively withActionId/ThemeIdfallback to disambiguate display-name collisions - Headless
CliToolbarActionContextimplementsIToolbarActionContextwith file-download support, filtered theme resolution, and minimal UI stubs so toolbar actions can run without an editor UI - Command name matches the
Exporttoolbar placement surfaced by the editor UI and VS Code extension
Improved: Kernel Initialization Safety
Scaffoldnow usesLazy<Task>withLazyThreadSafetyMode.ExecutionAndPublicationto guarantee a kernel's initialization factory runs at most once, even whenWarmUpKernelAsyncandExecuteCellAsyncrace on startupGetOrCreateInitTaskcentralizes init-task resolution so warm-up and execute share the same awaitableFakeLanguageKernelgainedInitializeDelayand an atomicInitializeCallCountto support deterministic race tests
Improved: Sample Notebooks
- Stored cell outputs stripped from sample
.versonotebooks (sample-csharp,sql/*.verso) to keep samples source-only and reduce repository noise INotebookService,NotebookService,ServerNotebookService,RemoteNotebookService,ExecutionHandler,Scaffold, and the Blazor/WasmNotebookPageupdated to align with source-only sample behavior
Improved: FSharp.Compiler.Service Upgrade
- Upgraded
FSharp.Compiler.Serviceto 43.12.202 FSharpCheckerManagernow passes the newtransparentCompilerCacheSizesargumentFSharpKernelcompletion/declaration call updated to match the library's changed method signature
Fixed: Variables.Set Overwritten by Stale FSI Bindings
FSharpKernelsnapshots the variable store before each execution soVariableBridgecan detect values set viaVariables.Setduring user code and avoid overwriting them with stale FSI bindingsVariableBridgegainedSnapshotStore,WasSetDuringExecution, and a_preExecutionSnapshotfield;Resetclears the snapshot
Fixed: F# #r Directive Resolution
- When a
#rpath resolves to an existing file,ScriptDirectiveProcessoremits a resolved absolute path and records it for later reuse - Bare filenames that cannot be resolved locally and have no directory components are left unchanged so FSI can resolve them via its include paths
- Missing paths that include directories keep the resolved absolute path so FSI produces clearer error context