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 lists the versions these docs describe and what they need.
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
groupaggregation countfrom <= value < to, and a group with onlyfromor onlytois open-ended; before, both bounds were exclusive and required. Counts change inaggregate, pivotvaluesand groupByaggregates, and in REST API queries that use them. - After a partial
update(), results match a freshinit(): auto-created items, filters and facets on resolved, grouped and query references, derived values over other derived values, theorigincolumn and the error groups. init()gives auto-created items their resolved references whatever order the models are processed in.findon adateattribute: aDatematches its instant, a regex tests the ISO 8601 form, andnullis anInvalidDateValueerror.- Conditions and
aggregaterange bounds on adateattribute accept ISO 8601 strings; a string that is no date is an error. - A query group that carries
operatorinstead ofgroupTypefails with an error instead of running as AND. fn.facetstakesskipKeys: trueto answer the counts without listing every item key.index: trueon an expression property builds an index, soeqandinon it no longer scan every item.- Faster updates: a one-row
data.update(),data.upsert()ordata.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 thesalegroup, where before every array counted as not found. - The quality report flags a value that loses a leading zero (
"06112"loaded as 6112) on anintorfloatproperty as Lossy Data Coercion; the loaded value does not change.
CLI 2.0.5
- Breaking: with
--json, the first line of a faileddcupl workflow runorworkflow testis the run, with the error undererror: a script that read.messagereads.error.message. dcupl app query --helpanddcupl app fn --helpname the built-in query operators with examples, and an unknown verb lists the verbs its group has.dcupl app fn aggregate --binstakes negative bounds.- A query group that carries
operatorinstead ofgroupTypeis no longer run as AND. dcupl generate modelnames the best key candidate, and a faileddcupl workflow runorworkflow testprints its execution id and the trace of every node.dcupl init --namestops when the folder exists and is not empty, anddcupl files pushrefuses a Windows-1252 text file with the command that converts it.- A request the dcupl API answers with 429 is retried after its
Retry-Afterwait. dcupl appanddcupl validateload 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/**andmodels/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
operatorinstead ofgroupTypeanswers 400 instead of running as AND. - The MCP
facetandpivottools 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
dateconditions, the bounds of range groups, thefn.facetsoptionskipKeys, and the order in which a model split over several files is merged.
: 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()andremoveCondition(), and the types areDcuplQuery,DcuplQueryGroupandDcuplGlobalQueryOptions. The migration guide 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 withitems[*].property. - The new
inoperator 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: falseordcupl.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
endpointmode, andscripting.enabled: falseruns no script at all. - Data problems are easier to find: undeclared CSV columns are reported as
UnknownColumn, andNonUniqueKeyandUndefinedValueerrors carry details. - Booleans follow one strict rule (
true,false,1and0); any other value is aWrongDataTypeerror. autoGeneratePropertiestakes{ 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 testis removed;dcupl generate teststill scaffolds test files. - Breaking:
dcupl servelistens on 127.0.0.1 only; pass--hostto 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 appqueries a project locally, plusdcupl workflow,dcupl config,dcupl schemas,dcupl validateanddcupl generate workflow/generate api. dcupl files push,files pullandfiles versionsreplace thefiles:*commands, which are deprecated.dcupl config setandconfig getmanage the credentials;DCUPL_API_KEY,DCUPL_PROJECT_IDand a workspace.envare 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,operatorandsortmodes. - 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.