Skip to content

API Stability ​

This document defines the stability guarantees for Verter's public APIs during the beta period and beyond.

Versioning Policy ​

Verter follows semver with pre-release qualifiers:

  • alpha.x — no stability guarantees; APIs may change without notice
  • beta.x — APIs listed as Stable below will not break without a changelog entry and at least one beta release of deprecation notice. Experimental APIs may still change freely.
  • rc.x / stable — all Stable APIs follow strict semver; breaking changes require a major version bump

Stable APIs ​

These APIs are considered stable as of beta.1. Breaking changes will be documented in the changelog with migration guidance.

@verter/unplugin Options ​

The bundler plugin options passed to verter():

OptionTypeStatus
include / excludestring | RegExp | (string | RegExp)[]Stable
compilerresolved vue/compiler-sfc moduleStable
rootstringStable
compileProfile{ filename, target, mode }Stable

.verterrc.json Schema ​

The project-level configuration file format:

FieldStatus
lint.enabledStable
lint.presetStable ("essential", "recommended", "all", "off")
lint.rulesStable (rule names and severity values)

VS Code Settings ​

SettingStatus
verter.lint.enabledStable
verter.lint.presetStable
verter.lint.rulesStable
verter.typeProviderStable ("auto", "tsgo", "tsserver", "off")
verter.viteConfig.enabledStable
verter.viteConfig.trustedFilesStable

Diagnostic Rule Names ​

All ~186 lint rule names (e.g., no-v-html, unused-css-selector) are stable identifiers. Rules may be added in minor releases but existing rule names will not be renamed or removed without a deprecation period.

Comment Directives ​

The inline suppression syntax is stable:

  • <!-- @verter:disable [rule] -->
  • <!-- @verter:enable [rule] -->
  • <!-- @verter:disable-next-line [rule] -->
  • <!-- @verter:ignore-start --> / <!-- @verter:ignore-end -->
  • <!-- @verter:level rule severity -->

LSP Custom Methods ​

MethodStatus
$/verter/getVirtualFilesStable
$/verter/getAnalysisStable
$/verter/getRouteTreeStable
$/verter/heartbeatStable (subscription)
$/verter/tsgoLimitationStable (notification)
$/verter/viteConfigTrustRequiredStable (notification)

Recurring server notifications are subscriptions: the server sends $/verter/heartbeat and $/verter/carrierStoreChanged only to a client whose initializationOptions.subscriptions sets heartbeat: true / carrierStoreChanged: true. A client that relied on receiving the heartbeat unasked must now declare the subscription at initialize: the VS Code extension declares both in packages/vue-vscode/src/extension.ts, and every other client (Lapce, Neovim, JetBrains, custom) that consumes either notification must opt in the same way.

carrierStoreFill: true is the negotiated demand half of that contract, also default-off: a client that runs a consumer over the durable carrier store (the VS Code extension wiring its own TypeScript service over the store) declares it once at initialize, and it is the one signal that starts workspace work without a request — when the serving tier has a carrier publisher (the editor-owned plugin route, managed tsserver, managed TSGO), the init's own arming gate starts the same idempotent workspace scan a request's demand uses; a tier with no publisher treats it as inert. No warm-up request is involved, and no scan message is ever sent back on this subscription — its fulfilment is observed through the carrierStoreChanged pings above.

The workspace scan is likewise not started at initialized, didOpen or didChange on any other path; it starts on the first request that needs the complete workspace inventory:

  • references/rename that need the complete carrier frontier fail closed until the frontier is built;
  • workspace/symbol, $/verter/getProjectOverview, $/verter/getRouteTree, $/verter/getComponentParents and global-CSS-class definition/references answer LSP RequestFailed (-32803, retryable) until the scan has settled — never a successful complete-empty answer built from the files the session happened to open;
  • auto-import completion (enabled with semantic analysis) keeps its local items and marks the list isIncomplete until the inventory is built.

Document-local requests (hover, diagnostics, document-local completion) never wait on or start the scan. $/verter/typeProviderSyncComplete no longer implies a scanned workspace; a client that needs the complete inventory demands it with one of the requests above and retries on -32803, or subscribes the carrierStoreFill demand and lets the init arm the scan. The standalone MCP server owns its own host and tracked-files-only inventory.

The pre-release $/verter/applyStyleOverrides method was removed by the sealed block-content cutover. The LSP does not accept processor-produced bytes; bundler and host integrations use applyBlockOverrides with block, revision, artifact, basis, source-space, and hash stamps.

Native Host API (@verter/native) ​

MethodStatus
new VerterHost(config)Stable
host.upsert(request)Stable
host.resolve(rawId)Stable
host.getVirtualFile(query)Stable
host.listVirtualFiles(canonicalId)Stable
host.remove(canonicalOrAlias)Stable
host.applyBlockOverrides(request)Stable

Experimental APIs ​

These features are behind opt-in flags and may change or be removed in any release without prior notice.

FeatureSettingDescription
Strict Slotsverter.experimental.strictSlotsType-checks slot children against defineSlots() signatures
Conditional Root Narrowingverter.experimental.conditionalRootNarrowingNarrows component root element type based on prop values
Expose Bindings Testingverter.experimental.exposeBindingsTestingVue: test importers get VTU-style testing API (*.vue.__verter_test.ts). Svelte: no testing virtual file (public surface only). See Experimental.

@verter/component-meta/compat (Volar Drop-in) ​

APIStatus
createChecker(tsconfig, options?)Stable
createCheckerByJson(root, config, options?)Stable
checker.getComponentMeta(filePath)Stable
checker.getComponentMetaBatch(filePaths)Experimental (opt-in Verter extension)
checker.getExportNames(filePath)Stable
checker.updateFile(path, content)Stable
checker.deleteFile(path)Stable
checker.reload() / clearCache()Stable
PropertyMeta shapeStable (matches Volar)
PropertyMetaSchema shapeStable (matches Volar)
MetaCheckerOptionsStable
VolarComponentMeta._verterExperimental (opt-in Verter extension)

checker.getComponentMetaBatch(filePaths) is experimental because Volar's ComponentMetaChecker has no batch method; like _verter, it is a Verter-only extension rather than a Volar-parity API.

Internal / Unstable ​

The following are explicitly not part of the public API and may change at any time:

  • Generated TSX/JSX output format (IDE codegen path)
  • Generated VDOM/Vapor render function output format
  • Internal host data structures (FileAnalysisSnapshot, CompileSlot, etc.)
  • verter_semantic crate types (used by diagnostics/actions, not published)
  • MCP server tool schemas (still evolving)
  • WASM binding API (@verter/wasm) — mirrors native but not independently versioned
  • @verter/component-meta type IR — schema still stabilizing

Deprecation Process ​

  1. The API is marked @deprecated in source and documentation
  2. A warning is logged/shown when the deprecated API is used
  3. The deprecated API is removed in the next beta or minor release
  4. The changelog includes migration instructions

Released under the MIT License.