diff --git a/.changeset/silver-pugs-greet.md b/.changeset/silver-pugs-greet.md deleted file mode 100644 index 5d2b524e..00000000 --- a/.changeset/silver-pugs-greet.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -"@neo4j/cypher-builder": patch ---- - -Add support for patterns in `size()` for Neo4j 4 - -```js -const pattern = new Cypher.Pattern(new Cypher.Node()).related().to(); -const cypherFunction = Cypher.size(pattern); -``` - -```cypher -size((this0)-[this1]->(this2)) -``` diff --git a/CHANGELOG.md b/CHANGELOG.md index 80a15f0e..c4e10abc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # @neo4j/cypher-builder +## 1.22.2 + +### Patch Changes + +- [#437](https://github.com/neo4j/cypher-builder/pull/437) [`fa520b8`](https://github.com/neo4j/cypher-builder/commit/fa520b81d8e9723fe34482616f44ef7624dcf978) Thanks [@angrykoala](https://github.com/angrykoala)! - Add support for patterns in `size()` for Neo4j 4 + + ```js + const pattern = new Cypher.Pattern(new Cypher.Node()).related().to(); + const cypherFunction = Cypher.size(pattern); + ``` + + ```cypher + size((this0)-[this1]->(this2)) + ``` + ## 1.22.1 ### Patch Changes diff --git a/package.json b/package.json index 28adcda2..e2b9cfdf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@neo4j/cypher-builder", - "version": "1.22.1", + "version": "1.22.2", "description": "A programmatic API for building Cypher queries for Neo4j", "exports": "./dist/index.js", "main": "./dist/index.js",