Skip to content

Commit

Permalink
Version Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed May 2, 2024
1 parent 75beba0 commit e01c2ed
Show file tree
Hide file tree
Showing 8 changed files with 58 additions and 66 deletions.
5 changes: 0 additions & 5 deletions .changeset/gentle-comics-relate.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/heavy-fireants-cheer.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pretty-bottles-complain.md

This file was deleted.

23 changes: 0 additions & 23 deletions .changeset/quick-rockets-act.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/swift-pears-drum.md

This file was deleted.

22 changes: 0 additions & 22 deletions .changeset/wild-comics-arrive.md

This file was deleted.

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

## 1.16.0

### Minor Changes

- [#333](https://github.com/neo4j/cypher-builder/pull/333) [`2593296`](https://github.com/neo4j/cypher-builder/commit/2593296b885715a944bb2dcf79074babcccfa4bc) Thanks [@mjfwebb](https://github.com/mjfwebb)! - Adds support for genai function `genai.vector.encode()` and procedure ` genai.vector.encodeBatch()`

- [#328](https://github.com/neo4j/cypher-builder/pull/328) [`628ec62`](https://github.com/neo4j/cypher-builder/commit/628ec6238d19ae3835c6223be70e2fb00b4171ff) Thanks [@mjfwebb](https://github.com/mjfwebb)! - Adds support for vector index functions `db.index.vector.queryNodes()` and ` db.index.vector.queryRelationships()`

- [#310](https://github.com/neo4j/cypher-builder/pull/310) [`13fd317`](https://github.com/neo4j/cypher-builder/commit/13fd31777c6873f615d2f333cbbaabb90f7aaba5) Thanks [@angrykoala](https://github.com/angrykoala)! - Add support for arbitrary variables in Patterns instead of only Node and Relationship:

### Patch Changes

- [#310](https://github.com/neo4j/cypher-builder/pull/310) [`13fd317`](https://github.com/neo4j/cypher-builder/commit/13fd31777c6873f615d2f333cbbaabb90f7aaba5) Thanks [@angrykoala](https://github.com/angrykoala)! - The following methods in `Pattern` class and chains are deprecated:

- `withoutLabels`
- `withoutVariable`
- `withProperties`
- `getVariables`
- `withoutType`
- `withDirection`
- `withLength`

Instead, these properties should be passed as an object, for example:

```js
const a = new Cypher.Variable();
const rel = new Cypher.Variable();
const b = new Cypher.Variable();

const pattern = new Cypher.Pattern(a, { labels: ["Movie"] })
.related(rel, { type: "ACTED_IN" })
.to(b);
```

- [#310](https://github.com/neo4j/cypher-builder/pull/310) [`98a8b2f`](https://github.com/neo4j/cypher-builder/commit/98a8b2f32ef79d98c49fc5d448f9a637abd4ed60) Thanks [@angrykoala](https://github.com/angrykoala)! - Deprecate using Node directly on Match, Create and Merge clauses. Use a Pattern instead

- [#310](https://github.com/neo4j/cypher-builder/pull/310) [`7574aee`](https://github.com/neo4j/cypher-builder/commit/7574aee5e3263e79afb617bff4ee16f0d8a33aa2) Thanks [@angrykoala](https://github.com/angrykoala)! - Deprecate setting up labels and types in Node and Relationship. The following examples are now deprecated:

```js
new Cypher.Node({ labels: ["Movie"] });
```

```js
new Cypher.Relationship({ type: "ACTED_IN" });
```

Instead, Nodes and Relationships should be created without parameters. Labels and types should be set in a Pattern:

```js
const n = new Cypher.Node();
const r = new Cypher.Relationship();

const pattern = new Cypher.Pattern(n, { labels: ["Movie"] })
.related(r, { type: "ACTED_IN" })
.to();
```

## 1.15.0

### Minor 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.15.0",
"version": "1.16.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 e01c2ed

Please sign in to comment.