Skip to content

Commit 315de05

Browse files
authored
Merge branch '3-dev' into remove-import-with
2 parents c3fc3f4 + 5d4d689 commit 315de05

File tree

15 files changed

+37
-216
lines changed

15 files changed

+37
-216
lines changed

.changeset/all-signs-live.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@neo4j/cypher-builder": major
3+
---
4+
5+
Remove type `Cypher.Operation` in favor of `Cypher.Expr`

.changeset/floppy-llamas-teach.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
"@neo4j/cypher-builder": major
3+
---
4+
5+
Remove method `.children` from concat clauses:
6+
7+
```js
8+
const query = Cypher.utils.concat(clause1, clause2);
9+
query.children; // No longer supported
10+
```

.changeset/thin-radios-poke.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"@neo4j/cypher-builder": major
3+
---
4+
5+
Remove functions deprecated in Cypher 5:
6+
7+
- `distance` in favor of `point.distance`
8+
- `id` in favor of `elementId`

.github/workflows/cla-assistant.yml

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

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
fetch-depth: 0
2626
persist-credentials: false
2727

28-
- name: Setup Node.js 16.x
28+
- name: Setup Node.js
2929
uses: actions/setup-node@v4
3030
with:
3131
node-version: lts/*

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ name: Test
22

33
on:
44
push:
5-
branches: ["main"]
5+
branches: ["main", "*.x", "*-dev"]
66
pull_request:
7-
branches: ["main"]
7+
branches: ["main", "*.x", "*-dev"]
88

99
jobs:
1010
test:
1111
runs-on: ubuntu-latest
1212

1313
strategy:
1414
matrix:
15-
node-version: [16.x, latest]
15+
node-version: [20.x, latest]
1616

1717
steps:
1818
- uses: actions/checkout@v5

CONTRIBUTING.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,11 @@ export function abs(expr: Expr): CypherFunction {}
5555

5656
- `tsdoc.json` Defines the tsdoc shcema
5757
- `typedoc.json` Configures the tool typedoc
58+
59+
## Branches
60+
61+
These are the branches conventions on the repo:
62+
63+
- `main` The main branch, this is the latest release version
64+
- `*.x` The cutoff of an older major version (e.g. `2.x`)
65+
- `*-dev` development of a new major version

src/Cypher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export type { PathAssign } from "./pattern/PathAssign";
190190
export type { InputArgument } from "./procedures/CypherProcedure";
191191
export type { Yield, YieldProjectionColumn } from "./procedures/Yield";
192192
export type { Label } from "./references/Label";
193-
export type { CypherResult, Expr, NormalizationType, Operation, Predicate } from "./types";
193+
export type { CypherResult, Expr, NormalizationType, Predicate } from "./types";
194194

195195
/**
196196
* Utility functions

src/clauses/utils/concat.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,6 @@ export class CompositeClause extends Clause {
5151
return this._children.length === 0;
5252
}
5353

54-
/** @deprecated Children from a composite clause should not be accessed as this will lead to unexpected behaviour */
55-
public get children(): Array<CypherASTNode> {
56-
return this._children;
57-
}
58-
5954
/** @internal */
6055
public getCypher(env: CypherEnvironment): string {
6156
// NOTE: importWithCypher used to pass down import WITH to UNION clauses

src/expressions/functions/scalar.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ describe("Scalar Functions", () => {
3131

3232
// 1 parameter functions
3333
test.each([
34-
"id",
3534
"elementId",
3635
"endNode",
3736
"size",

0 commit comments

Comments
 (0)