flowquery 1.0.36 → 1.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/flowquery.min.js +1 -1
- package/dist/parsing/functions/coalesce.d.ts +0 -1
- package/dist/parsing/functions/coalesce.d.ts.map +1 -1
- package/dist/parsing/functions/coalesce.js +0 -1
- package/dist/parsing/functions/coalesce.js.map +1 -1
- package/dist/parsing/functions/date.d.ts +0 -2
- package/dist/parsing/functions/date.d.ts.map +1 -1
- package/dist/parsing/functions/date.js +0 -2
- package/dist/parsing/functions/date.js.map +1 -1
- package/dist/parsing/functions/datetime.d.ts +0 -2
- package/dist/parsing/functions/datetime.d.ts.map +1 -1
- package/dist/parsing/functions/datetime.js +0 -2
- package/dist/parsing/functions/datetime.js.map +1 -1
- package/dist/parsing/functions/localdatetime.d.ts +0 -2
- package/dist/parsing/functions/localdatetime.d.ts.map +1 -1
- package/dist/parsing/functions/localdatetime.js +0 -2
- package/dist/parsing/functions/localdatetime.js.map +1 -1
- package/dist/parsing/functions/localtime.d.ts +0 -2
- package/dist/parsing/functions/localtime.d.ts.map +1 -1
- package/dist/parsing/functions/localtime.js +0 -2
- package/dist/parsing/functions/localtime.js.map +1 -1
- package/dist/parsing/functions/temporal_utils.js +1 -1
- package/dist/parsing/functions/time.d.ts +0 -2
- package/dist/parsing/functions/time.d.ts.map +1 -1
- package/dist/parsing/functions/time.js +0 -2
- package/dist/parsing/functions/time.js.map +1 -1
- package/dist/parsing/functions/timestamp.d.ts +0 -2
- package/dist/parsing/functions/timestamp.d.ts.map +1 -1
- package/dist/parsing/functions/timestamp.js +1 -4
- package/dist/parsing/functions/timestamp.js.map +1 -1
- package/docs/flowquery.min.js +1 -1
- package/flowquery-py/pyproject.toml +1 -1
- package/flowquery-py/src/parsing/functions/coalesce.py +1 -2
- package/flowquery-py/src/parsing/functions/date_.py +0 -2
- package/flowquery-py/src/parsing/functions/datetime_.py +0 -2
- package/flowquery-py/src/parsing/functions/localdatetime.py +0 -2
- package/flowquery-py/src/parsing/functions/localtime.py +0 -2
- package/flowquery-py/src/parsing/functions/temporal_utils.py +1 -1
- package/flowquery-py/src/parsing/functions/time_.py +0 -2
- package/flowquery-py/src/parsing/functions/timestamp.py +1 -3
- package/flowquery-py/tests/compute/test_runner.py +2 -2
- package/flowquery-vscode/flowQueryEngine/flowquery.min.js +1 -1
- package/package.json +1 -1
- package/src/parsing/functions/coalesce.ts +0 -1
- package/src/parsing/functions/date.ts +0 -2
- package/src/parsing/functions/datetime.ts +0 -2
- package/src/parsing/functions/localdatetime.ts +0 -2
- package/src/parsing/functions/localtime.ts +0 -2
- package/src/parsing/functions/temporal_utils.ts +1 -1
- package/src/parsing/functions/time.ts +0 -2
- package/src/parsing/functions/timestamp.ts +1 -5
- package/tests/compute/runner.test.ts +2 -2
package/package.json
CHANGED
|
@@ -8,8 +8,6 @@ import { buildDateObject, parseTemporalArg } from "./temporal_utils";
|
|
|
8
8
|
* When called with a string argument, parses it as an ISO 8601 date.
|
|
9
9
|
* When called with a map argument, constructs a date from components.
|
|
10
10
|
*
|
|
11
|
-
* Equivalent to Neo4j's date() function.
|
|
12
|
-
*
|
|
13
11
|
* @example
|
|
14
12
|
* ```
|
|
15
13
|
* RETURN date() AS today
|
|
@@ -8,8 +8,6 @@ import { buildDatetimeObject, parseTemporalArg } from "./temporal_utils";
|
|
|
8
8
|
* When called with a string argument, parses it as an ISO 8601 datetime.
|
|
9
9
|
* When called with a map argument, constructs a datetime from components.
|
|
10
10
|
*
|
|
11
|
-
* Equivalent to Neo4j's datetime() function.
|
|
12
|
-
*
|
|
13
11
|
* @example
|
|
14
12
|
* ```
|
|
15
13
|
* RETURN datetime() AS now
|
|
@@ -8,8 +8,6 @@ import { buildDatetimeObject, parseTemporalArg } from "./temporal_utils";
|
|
|
8
8
|
* When called with a string argument, parses it as an ISO 8601 datetime.
|
|
9
9
|
* When called with a map argument, constructs a datetime from components.
|
|
10
10
|
*
|
|
11
|
-
* Equivalent to Neo4j's localdatetime() function.
|
|
12
|
-
*
|
|
13
11
|
* @example
|
|
14
12
|
* ```
|
|
15
13
|
* RETURN localdatetime() AS now
|
|
@@ -7,8 +7,6 @@ import { buildTimeObject, parseTemporalArg } from "./temporal_utils";
|
|
|
7
7
|
* When called with no arguments, returns the current local time.
|
|
8
8
|
* When called with a string argument, parses it.
|
|
9
9
|
*
|
|
10
|
-
* Equivalent to Neo4j's localtime() function.
|
|
11
|
-
*
|
|
12
10
|
* @example
|
|
13
11
|
* ```
|
|
14
12
|
* RETURN localtime() AS now
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* Computes the ISO day of the week (1 = Monday, 7 = Sunday)
|
|
9
|
+
* Computes the ISO day of the week (1 = Monday, 7 = Sunday).
|
|
10
10
|
*/
|
|
11
11
|
function isoDayOfWeek(d: Date): number {
|
|
12
12
|
const jsDay = d.getDay(); // 0 = Sunday, 6 = Saturday
|
|
@@ -7,8 +7,6 @@ import { buildTimeObject, parseTemporalArg } from "./temporal_utils";
|
|
|
7
7
|
* When called with no arguments, returns the current UTC time.
|
|
8
8
|
* When called with a string argument, parses it as an ISO 8601 time.
|
|
9
9
|
*
|
|
10
|
-
* Equivalent to Neo4j's time() function.
|
|
11
|
-
*
|
|
12
10
|
* @example
|
|
13
11
|
* ```
|
|
14
12
|
* RETURN time() AS now
|
|
@@ -4,17 +4,13 @@ import { FunctionDef } from "./function_metadata";
|
|
|
4
4
|
/**
|
|
5
5
|
* Returns the number of milliseconds since the Unix epoch (1970-01-01T00:00:00Z).
|
|
6
6
|
*
|
|
7
|
-
* Equivalent to Neo4j's timestamp() function.
|
|
8
|
-
*
|
|
9
7
|
* @example
|
|
10
8
|
* ```
|
|
11
9
|
* RETURN timestamp() AS ts
|
|
12
10
|
* ```
|
|
13
11
|
*/
|
|
14
12
|
@FunctionDef({
|
|
15
|
-
description:
|
|
16
|
-
"Returns the number of milliseconds since the Unix epoch (1970-01-01T00:00:00Z). " +
|
|
17
|
-
"Equivalent to Neo4j's timestamp() function.",
|
|
13
|
+
description: "Returns the number of milliseconds since the Unix epoch (1970-01-01T00:00:00Z).",
|
|
18
14
|
category: "scalar",
|
|
19
15
|
parameters: [],
|
|
20
16
|
output: {
|
|
@@ -2039,7 +2039,7 @@ test("Test optional match property access on null node returns null", async () =
|
|
|
2039
2039
|
RETURN record.left_id as left_id, record.right_id as right_id
|
|
2040
2040
|
}
|
|
2041
2041
|
`).run();
|
|
2042
|
-
// When accessing b.name and b is null (no match), should return null
|
|
2042
|
+
// When accessing b.name and b is null (no match), should return null
|
|
2043
2043
|
const match = new Runner(`
|
|
2044
2044
|
MATCH (a:Person)
|
|
2045
2045
|
OPTIONAL MATCH (a)-[:KNOWS]->(b:Person)
|
|
@@ -3246,7 +3246,7 @@ test("Test coalesce with property access", async () => {
|
|
|
3246
3246
|
});
|
|
3247
3247
|
|
|
3248
3248
|
// ============================================================
|
|
3249
|
-
// Temporal / Time Functions
|
|
3249
|
+
// Temporal / Time Functions
|
|
3250
3250
|
// ============================================================
|
|
3251
3251
|
|
|
3252
3252
|
test("Test datetime() returns current datetime object", async () => {
|