# Changelog

What changed for you in each dcupl release, newest first. The SDK and the CLI name the version on npm `latest`; the Console, the REST APIs and workflows are updated for every project at once. [Compatibility](/sdk/compatibility) lists the versions these docs describe and what they need.

## 2026-11-19

The new dcupl.com is live, and SDK 2.2.3 makes a partial `update()` give the same result as a fresh `init()`.

### SDK 2.2.3

- **Breaking:** range groups of the `group` aggregation count `from <= value < to`, and a group with only `from` or only `to` is open-ended; before, both bounds were exclusive and required. Counts change in `aggregate`, pivot `values` and groupBy `aggregates`, and in REST API queries that use them.
- After a partial `update()`, results match a fresh `init()`: auto-created items, filters and facets on resolved, grouped and query references, derived values over other derived values, the `origin` column and the error groups.
- `init()` gives auto-created items their resolved references whatever order the models are processed in.
- `find` on a `date` attribute: a `Date` matches its instant, a regex tests the ISO 8601 form, and `null` is an `InvalidDateValue` error.
- Conditions and `aggregate` range bounds on a `date` attribute accept ISO 8601 strings; a string that is no date is an error.
- A query group that carries `operator` instead of `groupType` fails with an error instead of running as AND.
- `fn.facets` takes `skipKeys: true` to answer the counts without listing every item key.
- `index: true` on an expression property builds an index, so `eq` and `in` on it no longer scan every item.
- Faster updates: a one-row `data.update()`, `data.upsert()` or `data.remove()` no longer takes longer as the model grows.
- A facet on a dotted path (`product.brand.country`) keeps no copy of the list, so it needs less memory.
- Group aggregations count each value of an array attribute: an item with `tags: ["new", "sale"]` is in the `sale` group, where before every array counted as not found.
- The quality report flags a value that loses a leading zero (`"06112"` loaded as 6112) on an `int` or `float` property as Lossy Data Coercion; the loaded value does not change.

### CLI 2.0.5

- **Breaking:** with `--json`, the first line of a failed `dcupl workflow run` or `workflow test` is the run, with the error under `error`: a script that read `.message` reads `.error.message`.
- `dcupl app query --help` and `dcupl app fn --help` name the built-in query operators with examples, and an unknown verb lists the verbs its group has.
- `dcupl app fn aggregate --bins` takes negative bounds.
- A query group that carries `operator` instead of `groupType` is no longer run as AND.
- `dcupl generate model` names the best key candidate, and a failed `dcupl workflow run` or `workflow test` prints its execution id and the trace of every node.
- `dcupl init --name` stops when the folder exists and is not empty, and `dcupl files push` refuses a Windows-1252 text file with the command that converts it.
- A request the dcupl API answers with 429 is retried after its `Retry-After` wait.
- `dcupl app` and `dcupl validate` load and query projects with SDK 2.2.3.

### Console

- Insight-widget histograms count every value: the largest value on the last bucket edge is no longer dropped.
- A new scoped API key starts with read access to `dcupl.lc.json`, `data/public/**` and `models/public/**`, and the form warns about patterns that open a whole folder.
- The date filter names the accepted forms when a value is no date, instead of matching nothing without a word.
- Moving or renaming a file in the file tree updates its resource URLs in `dcupl.lc.json`.
- A request over the rate limit shows "Too many requests" with the wait; a read with a short wait is retried up to twice, a change is never sent again.
- The MCP switch in the REST API form shows as soon as MCP is turned on for the project.

### REST APIs and MCP

- Queries run on SDK 2.2: a query group that carries `operator` instead of `groupType` answers 400 instead of running as AND.
- The MCP `facet` and `pivot` tools accept the plain option shapes agents try first.
- Each instance’s Swagger UI and its MCP guide ask for facet counts with `skipKeys: true`.
- When dcupl updates the service, the requests in flight are answered before it stops.

### Workflows

- `_csv.validate()` and `_csv.headers()` in script nodes read quoted fields with line breaks the way `_csv.toJSON()` does.
- A request header with a sensitive name is redacted wherever a workflow shows its headers, also when its value is filled at run time; run logs and run traces carry no credentials.

### dcupl.com

- The new dcupl.com is live.

### Docs

- The SDK pages document ISO 8601 strings in `date` conditions, the bounds of range groups, the `fn.facets` option `skipKeys`, and the order in which a model split over several files is merged.

## 2026-11-12: dcupl 2.0

dcupl 2.0 goes live: SDK 2.1 and CLI 2.0 on npm `latest`, the new Console, REST APIs with MCP where it is turned on, and these docs.

### SDK 2.1.0

- **Breaking:** the query API is reworked: lists use `addCondition()`, `setCondition()` and `removeCondition()`, and the types are `DcuplQuery`, `DcuplQueryGroup` and `DcuplGlobalQueryOptions`. The [migration guide](/sdk/guides/migration) covers the move from 1.x.
- Queries follow references several levels deep (`customer.address.city`) in filters, facets, aggregations, pivots and suggestions, and reach through multi-valued references with `items[*].property`.
- The new `in` operator matches any value of a list.
- Initialization is faster, and the query cache and indices have a size limit (`performance.cache.maxSize`), so a long-running process no longer grows without bound.
- Sealed mode (`performance.retainStagedData: false` or `dcupl.seal()`) drops the raw rows after the build and saves memory for instances that load once and never update.
- Scripts can answer HTTP requests in the new `endpoint` mode, and `scripting.enabled: false` runs no script at all.
- Data problems are easier to find: undeclared CSV columns are reported as `UnknownColumn`, and `NonUniqueKey` and `UndefinedValue` errors carry details.
- Booleans follow one strict rule (`true`, `false`, `1` and `0`); any other value is a `WrongDataType` error.
- `autoGenerateProperties` takes `{ deep: true }` or `{ sampleSize: N }`, and zero-padded values such as `"06112"` stay strings.
- Lists no longer answer with results from before an update.

### CLI 2.0.1

- **Breaking:** Node.js 20.19+ or 22.12+ is required.
- **Breaking:** `dcupl test` is removed; `dcupl generate test` still scaffolds test files.
- **Breaking:** `dcupl serve` listens on 127.0.0.1 only; pass `--host` to let other machines connect.
- **Breaking:** unknown flags and commands fail with exit code 1, and scripts read the version with `dcupl --version --json`.
- New commands: `dcupl app` queries a project locally, plus `dcupl workflow`, `dcupl config`, `dcupl schemas`, `dcupl validate` and `dcupl generate workflow` / `generate api`.
- `dcupl files push`, `files pull` and `files versions` replace the `files:*` commands, which are deprecated.
- `dcupl config set` and `config get` manage the credentials; `DCUPL_API_KEY`, `DCUPL_PROJECT_ID` and a workspace `.env` are read too.

### Console

- The new Console runs at console.dcupl.com; the account menu still opens the previous one.
- An application runs on SDK 1 or 2, picked in its run settings, and a badge shows which one runs.
- A Run panel next to the file editor runs a script against the loaded project before you deploy it, in `endpoint`, `script`, `operator` and `sort` modes.
- REST API templates have an Endpoints section for scripted endpoints where they are turned on for the project.
- New projects are private by default, and the getting-started snippets show the project’s read-only key.
- Moving or renaming a file onto a name that is already taken is refused and changes nothing.

### REST APIs and MCP

- Query, aggregate, facet, pivot, metadata and suggest options are checked against one schema: MCP answers a wrong option with the issues, a wrong condition names the valid operators, and a request without an options object answers 400 instead of 500.
- MCP is turned on per REST API template (`mcp: { enabled: true }`); each instance then has a guide resource with its models, attributes and examples, and every scripted endpoint becomes an MCP tool.
- Scripts and loader code run isolated from the service and its credentials, and API keys stay out of logs.
- Answers that need an API key are no longer cached as public.
- An instance whose model build fails no longer starts with partial data; its status and logs carry the reason.

### Workflows

- Workflows run on SDK 2.1.
- Authentication headers of request nodes are stored encrypted, and workflow status, history and event streams answer credentials as `[redacted]`.
- A scheduled workflow no longer runs twice while dcupl updates its workflow service.
- A workflow that runs out of memory answers HTTP 507 with `MemoryLimitError`.
- The Git files node makes one commit per item and pushes without `--force`.
- CSV export quotes fields as RFC 4180 describes.

### Docs

- docs.dcupl.com serves these docs; links to the old `/docs/...` pages lead to the matching new pages.
