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.
Files changed (52) hide show
  1. package/dist/flowquery.min.js +1 -1
  2. package/dist/parsing/functions/coalesce.d.ts +0 -1
  3. package/dist/parsing/functions/coalesce.d.ts.map +1 -1
  4. package/dist/parsing/functions/coalesce.js +0 -1
  5. package/dist/parsing/functions/coalesce.js.map +1 -1
  6. package/dist/parsing/functions/date.d.ts +0 -2
  7. package/dist/parsing/functions/date.d.ts.map +1 -1
  8. package/dist/parsing/functions/date.js +0 -2
  9. package/dist/parsing/functions/date.js.map +1 -1
  10. package/dist/parsing/functions/datetime.d.ts +0 -2
  11. package/dist/parsing/functions/datetime.d.ts.map +1 -1
  12. package/dist/parsing/functions/datetime.js +0 -2
  13. package/dist/parsing/functions/datetime.js.map +1 -1
  14. package/dist/parsing/functions/localdatetime.d.ts +0 -2
  15. package/dist/parsing/functions/localdatetime.d.ts.map +1 -1
  16. package/dist/parsing/functions/localdatetime.js +0 -2
  17. package/dist/parsing/functions/localdatetime.js.map +1 -1
  18. package/dist/parsing/functions/localtime.d.ts +0 -2
  19. package/dist/parsing/functions/localtime.d.ts.map +1 -1
  20. package/dist/parsing/functions/localtime.js +0 -2
  21. package/dist/parsing/functions/localtime.js.map +1 -1
  22. package/dist/parsing/functions/temporal_utils.js +1 -1
  23. package/dist/parsing/functions/time.d.ts +0 -2
  24. package/dist/parsing/functions/time.d.ts.map +1 -1
  25. package/dist/parsing/functions/time.js +0 -2
  26. package/dist/parsing/functions/time.js.map +1 -1
  27. package/dist/parsing/functions/timestamp.d.ts +0 -2
  28. package/dist/parsing/functions/timestamp.d.ts.map +1 -1
  29. package/dist/parsing/functions/timestamp.js +1 -4
  30. package/dist/parsing/functions/timestamp.js.map +1 -1
  31. package/docs/flowquery.min.js +1 -1
  32. package/flowquery-py/pyproject.toml +1 -1
  33. package/flowquery-py/src/parsing/functions/coalesce.py +1 -2
  34. package/flowquery-py/src/parsing/functions/date_.py +0 -2
  35. package/flowquery-py/src/parsing/functions/datetime_.py +0 -2
  36. package/flowquery-py/src/parsing/functions/localdatetime.py +0 -2
  37. package/flowquery-py/src/parsing/functions/localtime.py +0 -2
  38. package/flowquery-py/src/parsing/functions/temporal_utils.py +1 -1
  39. package/flowquery-py/src/parsing/functions/time_.py +0 -2
  40. package/flowquery-py/src/parsing/functions/timestamp.py +1 -3
  41. package/flowquery-py/tests/compute/test_runner.py +2 -2
  42. package/flowquery-vscode/flowQueryEngine/flowquery.min.js +1 -1
  43. package/package.json +1 -1
  44. package/src/parsing/functions/coalesce.ts +0 -1
  45. package/src/parsing/functions/date.ts +0 -2
  46. package/src/parsing/functions/datetime.ts +0 -2
  47. package/src/parsing/functions/localdatetime.ts +0 -2
  48. package/src/parsing/functions/localtime.ts +0 -2
  49. package/src/parsing/functions/temporal_utils.ts +1 -1
  50. package/src/parsing/functions/time.ts +0 -2
  51. package/src/parsing/functions/timestamp.ts +1 -5
  52. package/tests/compute/runner.test.ts +2 -2
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "flowquery"
3
- version = "1.0.26"
3
+ version = "1.0.27"
4
4
  description = "A declarative query language for data processing pipelines"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -22,7 +22,6 @@ class Coalesce(Function):
22
22
  """Coalesce function.
23
23
 
24
24
  Returns the first non-null value from a list of expressions.
25
- Equivalent to Neo4j's coalesce() function.
26
25
  """
27
26
 
28
27
  def __init__(self) -> None:
@@ -37,7 +36,7 @@ class Coalesce(Function):
37
36
  try:
38
37
  val = child.value()
39
38
  except (KeyError, AttributeError):
40
- # Treat missing properties/keys as null, matching Neo4j behavior
39
+ # Treat missing properties/keys as null
41
40
  val = None
42
41
  if val is not None:
43
42
  return val
@@ -42,8 +42,6 @@ class DateFunction(Function):
42
42
  Returns a date value (no time component).
43
43
  When called with no arguments, returns the current date.
44
44
  When called with a string argument, parses it as an ISO 8601 date.
45
-
46
- Equivalent to Neo4j's date() function.
47
45
  """
48
46
 
49
47
  def __init__(self) -> None:
@@ -43,8 +43,6 @@ class Datetime(Function):
43
43
  When called with no arguments, returns the current UTC datetime.
44
44
  When called with a string argument, parses it as an ISO 8601 datetime.
45
45
  When called with a map argument, constructs a datetime from components.
46
-
47
- Equivalent to Neo4j's datetime() function.
48
46
  """
49
47
 
50
48
  def __init__(self) -> None:
@@ -41,8 +41,6 @@ class LocalDatetime(Function):
41
41
  Returns a local datetime value (date + time, no timezone offset).
42
42
  When called with no arguments, returns the current local datetime.
43
43
  When called with a string argument, parses it as an ISO 8601 datetime.
44
-
45
- Equivalent to Neo4j's localdatetime() function.
46
44
  """
47
45
 
48
46
  def __init__(self) -> None:
@@ -38,8 +38,6 @@ class LocalTime(Function):
38
38
  Returns a local time value (no timezone offset).
39
39
  When called with no arguments, returns the current local time.
40
40
  When called with a string argument, parses it.
41
-
42
- Equivalent to Neo4j's localtime() function.
43
41
  """
44
42
 
45
43
  def __init__(self) -> None:
@@ -9,7 +9,7 @@ from typing import Any, Dict
9
9
 
10
10
 
11
11
  def iso_day_of_week(d: date) -> int:
12
- """Computes the ISO day of the week (1 = Monday, 7 = Sunday) matching Neo4j convention."""
12
+ """Computes the ISO day of the week (1 = Monday, 7 = Sunday)."""
13
13
  return d.isoweekday()
14
14
 
15
15
 
@@ -38,8 +38,6 @@ class Time(Function):
38
38
  Returns a time value (with timezone offset awareness).
39
39
  When called with no arguments, returns the current UTC time.
40
40
  When called with a string argument, parses it.
41
-
42
- Equivalent to Neo4j's time() function.
43
41
  """
44
42
 
45
43
  def __init__(self) -> None:
@@ -9,8 +9,7 @@ from .function_metadata import FunctionDef
9
9
 
10
10
  @FunctionDef({
11
11
  "description": (
12
- "Returns the number of milliseconds since the Unix epoch (1970-01-01T00:00:00Z). "
13
- "Equivalent to Neo4j's timestamp() function."
12
+ "Returns the number of milliseconds since the Unix epoch (1970-01-01T00:00:00Z)."
14
13
  ),
15
14
  "category": "scalar",
16
15
  "parameters": [],
@@ -28,7 +27,6 @@ class Timestamp(Function):
28
27
  """Timestamp function.
29
28
 
30
29
  Returns the number of milliseconds since the Unix epoch (1970-01-01T00:00:00Z).
31
- Equivalent to Neo4j's timestamp() function.
32
30
  """
33
31
 
34
32
  def __init__(self) -> None:
@@ -2232,7 +2232,7 @@ class TestRunner:
2232
2232
  }
2233
2233
  """
2234
2234
  ).run()
2235
- # When accessing b.name and b is null (no match), should return null like Neo4j
2235
+ # When accessing b.name and b is null (no match), should return null
2236
2236
  match = Runner(
2237
2237
  """
2238
2238
  MATCH (a:OptPropPerson)
@@ -3427,7 +3427,7 @@ class TestRunner:
3427
3427
  assert results[0] == {"result": "Alice"}
3428
3428
 
3429
3429
  # ============================================================
3430
- # Temporal / Time Functions (Neo4j-style)
3430
+ # Temporal / Time Functions
3431
3431
  # ============================================================
3432
3432
 
3433
3433
  @pytest.mark.asyncio