Skip to content

verso-v1.0.17

Choose a tag to compare

@github-actions github-actions released this 22 Apr 22:47
· 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 export subcommand dispatches a notebook to an IToolbarAction registered with ToolbarPlacement.ExportMenu and writes the produced bytes to disk
  • Options: <input>, --format/-f, --output/-o, --execute/-x, --layout, --theme, --extensions, --list, --list-themes
  • --list and --list-themes enumerate installed export actions and themes for discoverability
  • Action and theme resolution matches DisplayName case-insensitively with ActionId/ThemeId fallback to disambiguate display-name collisions
  • Headless CliToolbarActionContext implements IToolbarActionContext with file-download support, filtered theme resolution, and minimal UI stubs so toolbar actions can run without an editor UI
  • Command name matches the Export toolbar placement surfaced by the editor UI and VS Code extension

Improved: Kernel Initialization Safety

  • Scaffold now uses Lazy<Task> with LazyThreadSafetyMode.ExecutionAndPublication to guarantee a kernel's initialization factory runs at most once, even when WarmUpKernelAsync and ExecuteCellAsync race on startup
  • GetOrCreateInitTask centralizes init-task resolution so warm-up and execute share the same awaitable
  • FakeLanguageKernel gained InitializeDelay and an atomic InitializeCallCount to support deterministic race tests

Improved: Sample Notebooks

  • Stored cell outputs stripped from sample .verso notebooks (sample-csharp, sql/*.verso) to keep samples source-only and reduce repository noise
  • INotebookService, NotebookService, ServerNotebookService, RemoteNotebookService, ExecutionHandler, Scaffold, and the Blazor/Wasm NotebookPage updated to align with source-only sample behavior

Improved: FSharp.Compiler.Service Upgrade

  • Upgraded FSharp.Compiler.Service to 43.12.202
  • FSharpCheckerManager now passes the new transparentCompilerCacheSizes argument
  • FSharpKernel completion/declaration call updated to match the library's changed method signature

Fixed: Variables.Set Overwritten by Stale FSI Bindings

  • FSharpKernel snapshots the variable store before each execution so VariableBridge can detect values set via Variables.Set during user code and avoid overwriting them with stale FSI bindings
  • VariableBridge gained SnapshotStore, WasSetDuringExecution, and a _preExecutionSnapshot field; Reset clears the snapshot

Fixed: F# #r Directive Resolution

  • When a #r path resolves to an existing file, ScriptDirectiveProcessor emits 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