Skip to content
.md

Compatibility

These docs describe @dcupl/core 2.4 and @dcupl/cli 2.1, the releases npm installs by default (the latest tag). This page collects the requirements that change with a release; every other page links here instead of repeating them.

Requirements

Requirement Supported
Node.js 20.19+ or 22.12+, or any later major (check with node -v)
TypeScript 5.4 or later
Browsers Current evergreen browsers (Chrome, Edge, Firefox, Safari): the packages ship ES2022 JavaScript

Node.js

The SDK, the CLI and the tutorials' Vite setups are documented for Node.js 20.19+ on Node 20, or 22.12+ on Node 22; later majors work too. On an older version the CLI installs but every command fails on startup, see Node version too old. The loader uses the global fetch that Node.js provides.

TypeScript

The public types use NoInfer, which TypeScript added in 5.4. An older compiler can't resolve NoInfer in the @dcupl/* type declarations. The packages are tested with "module": "NodeNext" and "strict": true; see TypeScript for the setup.

Browsers and servers

The packages are compiled to ES2022 and published as ES modules and CommonJS, so they work with import and require(), with any bundler, and in current evergreen browsers. Browsers without ES2022 support need your bundler to transpile @dcupl/* to an older target. For a page without a build step, the @dcupl/bundle script build is described under Script tag. The same packages run on a server (Node.js, SSR); see Node.js server and SSR.

Frameworks

The SDK doesn't depend on a UI framework: it is plain TypeScript, and you call it from your components. These guides build the same kind of filtered product list in each stack:

Framework Guide Starter project
React Building with React none
Vue Building with Vue none
Angular Building with Angular dcupl-ng-starter
Next.js, App Router Building with Next.js none
Nuxt none dcupl-nuxt-starter

The Angular guide uses signals and works without zone.js. The Next.js guide renders on the server with the filters from the URL and then filters in the browser.

Use the same version for every @dcupl/* package

Use the same version for every @dcupl/* package. The packages require each other in exactly their own version: @dcupl/core depends on exactly its own version of @dcupl/common, and @dcupl/loader and @dcupl/connect on exactly their own versions of @dcupl/core and @dcupl/common.

Install and update them together:

npm install @dcupl/core@<version> @dcupl/loader@<version>

The install commands in these docs pin the major version (npm install @dcupl/core@2), so they install the newest 2.x release, the major these docs describe, also after a newer major is published.

If you list @dcupl/common yourself, pin it to the same version. Common mistakes shows the symptom of a mismatch. Changes between major versions are in the migration guide; for the CLI see Upgrading from 1.3.

The CLI and the core in your project

The CLI has its own version line: CLI 2.1 belongs to SDK 2. It brings its own @dcupl/core, @dcupl/common and @dcupl/loader, pinned to one exact version per CLI release, and installs them with the CLI, not into your project. dcupl version prints the versions it bundles. Commands that load your project, such as dcupl app, run on that bundled core.

The same-version rule above applies to the @dcupl/* packages in your project's package.json. The CLI's bundled core doesn't count, so your project can be on another 2.x release than the CLI. If a query behaves differently in dcupl app than in your app, compare the core version dcupl version prints with the one in your package.json, and update the side that is behind.