Skip to content

v1.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 20 Nov 09:20
· 190 commits to main since this release

Release notes

Highlights

  • Relate.Net — a new .NET client — C#, F# and Visual Basic code can now embed Relate (.NET 8+), over the same C ABI every other client wraps: disposable databases, connections and transactions, typed parameters, graph and temporal values, result metadata and structured errors; the native library is built and tested on Linux, macOS and Windows. Example:

    using var db = RelateDatabase.Open("./graph");
    using var conn = db.Connect();
    
    conn.Query("CREATE (p:Person {name: $name, born: $born})",
        new { name = "Ada", born = new DateOnly(1815, 12, 10) });
    
    var person = conn.Query("MATCH (p:Person) RETURN p")[0];
    Console.WriteLine(person.Get<string>("name")); // Ada
  • More Cypher runs exactly as Neo4j writes it — a dozen spellings that used to fail now plan and run, so queries ported from Neo4j stop dying on syntax:

    • Backtick-quoted and whitespace-separated parameter spellings — $`p 1` and $ p2 — and a constraint, index or database literally named null (#512, #514)
    • Redundant parentheses no longer change a projection's meaning — WITH (n), RETURN DISTINCT(n.p1) ORDER BY n.p1 (#518)
    • Label expressions parse in every node pattern, including WHERE (a:L1|L2)<-[:R]-(b) and a pattern comprehension's leading node (#553)
    • Pattern expressions in SET values and quantifier filters — SET n.p1 = EXISTS((n)-[:R]->(:L2)) (#555, #566)
    • Property access on an aggregation result — RETURN max(n.p1).p2 folds the aggregate first, then reads the property (#556)
    • A filtered comprehension's map expression may be a map projection ([n IN nodes(p) WHERE n:L1 | n{.p1}]), and a type predicate before the | leaves the pipe to the map separator (#554, #564)
    • USING RANGE INDEX and USING TEXT INDEX hints parse and validate like USING INDEX, and \uXXXX unicode escapes work between tokens and in identifiers (#552, #565)
  • Aggregations read your indexes, not your whole label — two full-label scans are gone, and results are identical:

    • MATCH (n:L) RETURN n.p, count(*) — and the min, max and count(n.p) forms over one labeled property — answers from the existing index on that label and property; the measured group-by benchmark query drops from 17.3 ms to 6.2 ms
    • An aggregation grouped by a relationship property, with a selective predicate on the start node, seeks its start nodes and walks only their edges — 16.0 ms to 1.0 ms on the measured graph (#560)
  • Large stores reopen 2.66× faster — a checkpoint reopen now decodes across all CPU cores and installs rows in bounded slices, so the measured benchmark store reopens in 461 ms instead of 1225 ms, and peak restore memory is the larger of rows or graph rather than both stacked.

Changes by area

Performance & memory

  • Restored stores over-allocate less: capacity grows by 1.5× steps where that is smaller than the old doubling, and memory accounting charges the actual reservation — worst-case slack drops from under 2× to under 1.5×
  • A fixed-length pattern fed by two or more rows no longer falls back to the slow row-by-row walk, whose trail enumeration goes exponential on dense cyclic graphs

Cypher language & conformance

  • EXPLAIN warns (01N60) when a statement references a parameter the caller did not supply — one notification names every undefined parameter; PROFILE and plain execution keep their existing refusal (#550)
  • EXPLAIN/PROFILE plan trees show display-only child steps under an index-seek MATCH — the seek plus one Expand step per hop — in the CLI's plan table and in the structured plans that Bolt, HTTP and the CLI's machine modes return; execution is unchanged (#478)
  • EXPLAIN of a very long clause chain (about 250 chained clauses) no longer panics; the nesting-depth cap that still guards runtime data values is untouched (#567)

Storage & durability

  • A store's engine sidecar directory is .relate/ now, not .cypherlite/: opening an older store read-write adopts it in place — one directory rename, run only after every other open check passes — while a read-only open refuses until that one writable pass has run; the lock and writer-marker file names are unchanged

Agent-friendliness

  • Mistral Vibe joins the agent catalog: a machine with ~/.vibe gets a vibe: row in relate skill list, relate skill install --agent vibe writes the skill to ~/.vibe/skills/relate, with relate skill check drift detection and the relate upgrade refresh treating it like every other agent (#528)

Packaging & compliance

  • The Java client is published to Maven Central — automatically with every release, with a dry-run mode that rehearses the publish without uploading

Internal

  • Plus this release's internal maintenance pull requests — no user-facing change; the complete list is in the full changelog below.

What's Changed

  • fix(bolt): docker smoke expects the snake_case MCP tool names (ADR-0447) by @oskarhane in #516
  • fix(clients): repair the Maven Central natives gate and turn the publish on by default by @oskarhane in #519
  • perf(executor): index-backed grouped and extremum aggregates over a labeled property (LABS-855, ADR-0611) by @jexp in #479
  • fix(cypher): accept backtick-quoted and whitespace-separated parameter names (LABS-1602, LABS-1612) by @oskarhane in #512
  • fix(cypher): accept null as a constraint name (LABS-1614) by @oskarhane in #514
  • fix(cypher): classify parenthesized projection items like their unparenthesized forms (LABS-1615, LABS-1616) by @oskarhane in #518
  • refactor(executor): the shortest-route fan, anchor and class-walk consolidations (LABS-1722, LABS-1766, LABS-1754, LABS-1673, LABS-1733) by @jexp in #499
  • perf(executor): dense id-slot reservation takes the smaller of a 1.5 ladder and the doubling (LABS-1281, ADR-0617) by @jexp in #513
  • docs(agents): the PR cycle as the contract, the flip as the agent's own signal by @jexp in #525
  • feat(parser): decode source-level \uXXXX unicode escapes in whitespace and identifier text (LABS-1805, ADR-0619) by @jexp in #521
  • perf(executor): the frontier rung serves a multi-row driving table (LABS-1108) by @jexp in #522
  • ci(release): publish the Java client with every release and rehearse the profile (ADR-0620) by @jexp in #524
  • refactor(executor): the shortest-route anchor/selector consolidations (LABS-1706, LABS-1708, LABS-1768, LABS-1415, LABS-614) by @jexp in #497
  • feat(plan): fused virtual children for an index-seek MATCH in EXPLAIN/PROFILE by @jexp in #478
  • perf(executor): concurrent checkpoint reopen — parallel decode and bulk install (LABS-1814) by @jexp in #523
  • feat(skill): add Mistral Vibe to the agent catalog (LABS-1819) by @oskarhane in #528
  • refactor(executor): one clause-run scaffold for both frontier entries, and the distinct-endpoint shapes split (LABS-1108) by @jexp in #526
  • ci: bump the pinned opencode installer from 2.0.12 to 2.3.0 by @oskarhane in #533
  • ci(release-notes): the PR corpus, fixed area groups and the changelog placement guard (ADR-0618) by @oskarhane in #515
  • docs(changelog): move the misfiled 1.1.0 entries into [1.1.0] and record what merged since (ADR-0618) by @oskarhane in #531
  • refactor(executor): the frontier kernels follow-ups (LABS-1074, LABS-1156, LABS-1466, LABS-1488, LABS-1631, LABS-1645) by @jexp in #508
  • chore(deps): roll up the 13 open dependabot bumps; port the fs4 lock calls to 1.x by @jexp in #530
  • refactor(executor): the plan-token leftovers, one unresolved-name constructor, interner split, one key dispatch in prop (LABS-1264) by @jexp in #507
  • perf(executor): walk-count fold admits target filters, chain count takes undirected hops, counter-struct macro (LABS-1348, LABS-1384, LABS-1671) by @jexp in #509
  • refactor(executor): kernels and eval follow-ups (LABS-1554, LABS-1666, LABS-1715, LABS-1377, LABS-1411, LABS-678) by @jexp in #506
  • docs(python): relate-db is on PyPI — install from the index first (LABS-1829) by @jexp in #549
  • feat(dotnet): adopt the contributed .NET client (#410) by @jexp in #551
  • fix(storage): the engine sidecar directory is .relate/, adopted from .cypherlite/ at the first writable open (ADR-0623) by @jexp in #529
  • feat(adr): the decision record becomes a queryable markdown vault (ADR-0621) by @oskarhane in #548
  • chore(deps): roll up the 14 open dependabot bumps by @jexp in #558
  • perf(executor): the one-hop fold's start scan reads the WHERE's seeks (LABS-1838) by @oskarhane in #560
  • chore(changelog): entries arrive as .changes/ fragments collected at the release cut (ADR-0627, LABS-1840) by @oskarhane in #562
  • feat(notifications): the 01N60 parameter-missing warning by @jexp in #550
  • fix(cypher): accept USING RANGE INDEX hints (LABS-1607) by @oskarhane in #552
  • fix(cypher): accept label expressions in WHERE pattern predicates and pattern comprehensions (LABS-1603, LABS-1604) by @oskarhane in #553
  • fix(cypher): accept map projections as a filtered comprehension's map expression (LABS-1605) by @oskarhane in #554
  • fix(cypher): allow pattern expressions in SET values (LABS-1609) by @oskarhane in #555
  • fix(cypher): allow property access on aggregation results (LABS-1611) by @oskarhane in #556
  • fix(cypher): leave an ambiguous trailing pipe to the comprehension's map separator after a type predicate (LABS-1606) by @oskarhane in #564
  • fix(cypher): accept USING TEXT INDEX hints (LABS-1608) by @oskarhane in #565
  • fix(cypher): allow pattern predicates inside quantifier filters in projections (LABS-1610) by @oskarhane in #566
  • fix(plan-wire): the plan wire conversion no longer rides the value-nesting depth cap (LABS-1613) by @oskarhane in #567
  • chore(scripts): catch REL8-### ticket ids like LABS-### in reference checks by @oskarhane in #569

Full Changelog: v1.1.0...v1.2.0