Skip to content

Commit 4efbaf3

Browse files
authored
Merge pull request #521 from neo4j/changeset-release/main
Release new version - changesets
2 parents 93dfed4 + 305843e commit 4efbaf3

File tree

5 files changed

+44
-47
lines changed

5 files changed

+44
-47
lines changed

.changeset/few-tires-own.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

.changeset/stale-lands-repeat.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

.changeset/wild-eyes-play.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,48 @@
11
# @neo4j/cypher-builder
22

3+
## 2.5.0
4+
5+
### Minor Changes
6+
7+
- [#515](https://github.com/neo4j/cypher-builder/pull/515) [`5f95867`](https://github.com/neo4j/cypher-builder/commit/5f958678d17047575098478cebe9f61a24ed2973) Thanks [@angrykoala](https://github.com/angrykoala)! - Add support for concatenation operator (`||`) with `Cypher.concat`
8+
9+
```js
10+
Cypher.concat(new Cypher.Literal("Hello"), new Cypher.Literal("World!"));
11+
```
12+
13+
```cypher
14+
("Hello" || "World!")
15+
```
16+
17+
This is functionally equivalent to `Cypher.plus` with uses the operator `+` instead.
18+
19+
### Patch Changes
20+
21+
- [#517](https://github.com/neo4j/cypher-builder/pull/517) [`a5a0d83`](https://github.com/neo4j/cypher-builder/commit/a5a0d8366f63889c098e78e475613c8d6348b4a0) Thanks [@angrykoala](https://github.com/angrykoala)! - Deprecate `.children` from `CompositeClause` generated from `utils.concat` with no replacement.
22+
23+
The clauses generated by `utils.concat` provide a public property `.children` that exposes the internals of the CompositeClause as well as the internal type `CypherASTNode`:
24+
25+
```js
26+
const query = Cypher.utils.concat(clause, returnClause);
27+
const children = query.children; // Has 2 elements of type CypherASTNode
28+
```
29+
30+
Using this method as part of query building can lead to incorrect behaviour and it is generally a bad practice.
31+
32+
- [#518](https://github.com/neo4j/cypher-builder/pull/518) [`a48f9ed`](https://github.com/neo4j/cypher-builder/commit/a48f9ed65cc4778f2906318ed01908af86091920) Thanks [@angrykoala](https://github.com/angrykoala)! - Explicitly exports some types that were used or returned by public functions and methods:
33+
34+
- `CallInTransactionOptions`
35+
- `ForeachClauses`
36+
- `PartialPattern`
37+
- `LiteralValue`
38+
- `ListIndex`
39+
- `DeleteInput`
40+
- `NodePatternOptions`
41+
- `RelationshipPatternOptions`
42+
- `YieldProjectionColumn`
43+
44+
Some methods and internal types have also been changed to better reflect the exposed types and avoid using internal types in public API
45+
346
## 2.4.1
447

548
### Patch Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@neo4j/cypher-builder",
3-
"version": "2.4.1",
3+
"version": "2.5.0",
44
"description": "A programmatic API for building Cypher queries for Neo4j",
55
"exports": "./dist/index.js",
66
"main": "./dist/index.js",

0 commit comments

Comments
 (0)