@neo4j/cypher-builder
Advanced tools
Comparing version 1.7.3 to 1.7.4
@@ -23,3 +23,7 @@ import type { CypherEnvironment } from "../Environment"; | ||
constructor(pattern: NodeRef | Pattern); | ||
/** | ||
* @deprecated Use {@link onCreateSet} instead | ||
*/ | ||
onCreate(...onCreateParams: OnCreateParam[]): this; | ||
onCreateSet(...onCreateParams: OnCreateParam[]): this; | ||
/** Add a {@link Merge} clause | ||
@@ -26,0 +30,0 @@ * @see [Cypher Documentation](https://neo4j.com/docs/cypher-manual/current/clauses/merge/) |
@@ -56,2 +56,5 @@ "use strict"; | ||
} | ||
/** | ||
* @deprecated Use {@link onCreateSet} instead | ||
*/ | ||
onCreate(...onCreateParams) { | ||
@@ -61,2 +64,6 @@ this.onCreateClause.addParams(...onCreateParams); | ||
} | ||
onCreateSet(...onCreateParams) { | ||
this.onCreateClause.addParams(...onCreateParams); | ||
return this; | ||
} | ||
merge(clauseOrPattern) { | ||
@@ -80,3 +87,3 @@ if (clauseOrPattern instanceof Merge_1) { | ||
const nextClause = this.compileNextClause(env); | ||
return `${mergeStr}${setCypher}${onCreateCypher}${removeCypher}${deleteCypher}${nextClause}`; | ||
return `${mergeStr}${onCreateCypher}${setCypher}${removeCypher}${deleteCypher}${nextClause}`; | ||
} | ||
@@ -83,0 +90,0 @@ }; |
@@ -15,3 +15,3 @@ import type { CypherEnvironment } from "../Environment"; | ||
* @group Other | ||
* @deprecated use {@link Raw} instead | ||
* @deprecated Use {@link Raw} instead | ||
*/ | ||
@@ -18,0 +18,0 @@ export declare class RawCypher extends Raw { |
@@ -58,3 +58,3 @@ "use strict"; | ||
* @group Other | ||
* @deprecated use {@link Raw} instead | ||
* @deprecated Use {@link Raw} instead | ||
*/ | ||
@@ -61,0 +61,0 @@ class RawCypher extends Raw { |
@@ -41,3 +41,3 @@ "use strict"; | ||
return new CypherFunctions_1.CypherFunction("apoc.date.convertFormat", [ | ||
__1.default.toString(temporalParam), | ||
__1.default.toString(temporalParam), // NOTE: should this be `toString` by default? | ||
new __1.default.Literal(currentFormat), | ||
@@ -44,0 +44,0 @@ new __1.default.Literal(convertTo), |
{ | ||
"name": "@neo4j/cypher-builder", | ||
"version": "1.7.3", | ||
"version": "1.7.4", | ||
"description": "A programmatic API for building Cypher queries for Neo4j", | ||
@@ -60,4 +60,4 @@ "exports": "./dist/index.js", | ||
"typedoc": "^0.25.2", | ||
"typescript": "^5.1.6" | ||
"typescript": "^5.3.2" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
386597
9447