Skip to content

Commit

Permalink
Merge pull request #414 from neo4j/changeset-release/main
Browse files Browse the repository at this point in the history
Release new version - changesets
  • Loading branch information
angrykoala authored Oct 7, 2024
2 parents 687585b + 9eb36db commit 7e4b769
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 38 deletions.
21 changes: 0 additions & 21 deletions .changeset/forty-chefs-glow.md

This file was deleted.

16 changes: 0 additions & 16 deletions .changeset/rude-gorillas-add.md

This file was deleted.

35 changes: 35 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,40 @@
# @neo4j/cypher-builder

## 1.21.0

### Minor Changes

- [#413](https://github.com/neo4j/cypher-builder/pull/413) [`0f2dfe6`](https://github.com/neo4j/cypher-builder/commit/0f2dfe67a2d4386e6a565791f6a952c0e51c6b8b) Thanks [@angrykoala](https://github.com/angrykoala)! - Add support for SHORTEST keyword in match and its variations:

- `.shortest(k)`
- `.shortestGroups(k)`
- `.allShortest`
- `.any`

For example:

```js
new Cypher.Match(pattern).shortest(2).return(node);
```

```cypher
MATCH ALL SHORTEST (this0:Movie)-[this1]->(this2:Person)
RETURN this0
```

- [#419](https://github.com/neo4j/cypher-builder/pull/419) [`c7dd297`](https://github.com/neo4j/cypher-builder/commit/c7dd29779bc70bf09a2ae442dfa211c13a39415a) Thanks [@angrykoala](https://github.com/angrykoala)! - Add support for labels in set and remove:

```js
const movie = new Cypher.Node();
const clause = new Cypher.Match(new Cypher.Pattern(movie)).set(movie.label("NewLabel"));
```

```cypher
MATCH (this0)
SET
this0:NewLabel
```

## 1.20.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@neo4j/cypher-builder",
"version": "1.20.1",
"version": "1.21.0",
"description": "A programmatic API for building Cypher queries for Neo4j",
"exports": "./dist/index.js",
"main": "./dist/index.js",
Expand Down

0 comments on commit 7e4b769

Please sign in to comment.