Skip to content
Comvi

Compatibility

View .md

Every range comes from the published package’s peerDependencies and engines. Versions outside these ranges are unsupported.

All @comvi/* packages share one release cadence and are versioned in lockstep, so install matching versions across the set.

The packages are ESM-only: "type": "module" and a single ES-module build. Consume them with import or any modern bundler (Vite, webpack 5, esbuild, Rollup, Rspack, Next). One subpath is the exception: @comvi/next/plugin also ships a CommonJS build, because a next.config.js is loaded with require() and that is where withComvi goes. Every other entry across the twelve packages is import-only. The CDN UMD build (@comvi/core on unpkg/jsDelivr) is a separate global bundle and stays loadable from a <script> tag.

Package Peer dependency Supported range
@comvi/vue vue ^3.0.0
@comvi/react react ^18.0.0 || ^19.0.0
@comvi/next next ^15.0.0 || ^16.0.0
@comvi/next react ^18.2.0 || ^19.0.0
@comvi/nuxt nuxt ^3.0.0 || ^4.0.0
@comvi/solid solid-js ^1.8.0
@comvi/svelte svelte ^5.3.0

@comvi/react needs React 18+ for the native useSyncExternalStore. @comvi/next needs the App Router (Next 15 or 16) and a React version with Server Components. @comvi/svelte is Svelte 5-only, with a floor of 5.3.0: the <T> component wraps each rendered handler in a <svelte:boundary>, which landed in Svelte 5.3, so a throwing component degrades to its inner text instead of taking the tree down. @comvi/nuxt supports Nuxt 3 and Nuxt 4.

@comvi/core is a plain dependency of every binding rather than a peer, so installing @comvi/react installs the matching core.

Nine of the twelve published packages pull in nothing that is not Comvi’s own. The three that do are listed in full here, because “zero dependencies” is a claim worth being able to check.

Package Runtime dependencies
@comvi/core none
@comvi/plugin-fetch-loader, @comvi/plugin-locale-detector, @comvi/plugin-in-context-editor none
@comvi/vite-plugin none
@comvi/react, @comvi/vue, @comvi/svelte, @comvi/solid @comvi/core
@comvi/next @comvi/core, @comvi/react, server-only
@comvi/nuxt @comvi/core, @comvi/vue, @nuxt/kit, h3
@comvi/cli commander, eventsource

server-only is Vercel’s build-time marker that makes a Client Component importing a server module fail the build. @nuxt/kit and h3 are Nuxt’s own module-authoring and HTTP packages, which a Nuxt app already has. @comvi/cli is a development tool: it runs in your terminal and in CI, and nothing it depends on reaches your application bundle.

This table counts runtime dependencies only. Peer dependencies are the framework your app already supplies, and they are in Framework bindings and Core and plugins.

Package Peer dependency Supported range
@comvi/core none no peer deps (framework-agnostic)
@comvi/plugin-fetch-loader @comvi/core the @comvi/core from the same release
@comvi/plugin-locale-detector @comvi/core the @comvi/core from the same release
@comvi/plugin-in-context-editor @comvi/core the @comvi/core from the same release

The three plugin packages declare @comvi/core as a peer and nothing else, and they have no runtime dependencies of their own. Install core and plugins from the same release.

@comvi/plugin-in-context-editor bundles its own Vue 3 UI; Vue is a build-time dependency of that package, not something your app has to have.

The Comvi browser extension needs @comvi/core 0.6.0 or newer on the page, with .use(devtools()) on the i18n instance: devtools() installs the loader the extension calls to bring the editor onto the page. On an older core the extension finds the instance but cannot load the editor, and its popup says so. Upgrade the site before the extension: a 0.5.0 extension activates the editor it bundles on a 0.6.0 page, while a 0.6.0 extension has no editor of its own. A site that sends a Content Security Policy has to allow https://cdn.jsdelivr.net in script-src; style-src needs no change in current browsers. Under Trusted Types the site also needs a default policy whose createScriptURL accepts the editor URL, and vue in its trusted-types directive. See The browser extension.

Package Peer dependency Supported range Node
@comvi/cli none none >=22
@comvi/vite-plugin vite ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 >=22

@comvi/cli and @comvi/vite-plugin bundle the same type emitter at build time, so they share the same Node floor. The Vite plugin works with the Vite version your framework bundles (Vue, SolidJS, Svelte/SvelteKit, Astro).

Package Requirement
@comvi/core, all framework bindings, all plugin packages Node >=20
@comvi/cli, @comvi/vite-plugin Node >=22
Building the @comvi/* packages from source Node >=22.0.0, pnpm >=9.0.0

The runtime floor is Node 20; Node 18 is out of range for the whole set.

The build tooling (comvi pull / comvi push / comvi typegen, and the Vite plugin that runs typegen for you) needs Node 22 or newer on the machine that runs the CLI or the dev server. The deployed runtime only needs Node 20.

The published declarations need TypeScript 5.0+: they use const type parameters and export type *, which older compilers cannot parse. Set moduleResolution to bundler, node16 or nodenext: entries such as @comvi/core/icu and @comvi/next/server exist only in each package’s exports map, which the older node resolution does not read. There is no TypeScript peer dependency; the generated *.d.ts files are plain ambient declarations. Typed keys are on Type-check translation keys.