@fibery/expression-utils 16.0.1 → 16.0.2

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.
@@ -3,8 +3,8 @@ import { dateToDateTimeIntervalLookup, monthAgoDateParamPlaceholder, monthAgoSta
3
3
  import { dateTimeOrDateTimeRangeExpressionPlaceholder, getParamPlaceholder } from "./pattern-match-placeholders.js";
4
4
  import { isRecord } from "@fibery/helpers/src/_";
5
5
  import isString from "lodash/isString.js";
6
+ import { deepEqual } from "@fibery/helpers/src/equal";
6
7
  import findKey from "lodash/findKey.js";
7
- import isEqual from "lodash/isEqual.js";
8
8
  //#region src/filter-expression/operator-utils.ts
9
9
  const isDateTime = (dateString) => dateString.length === 24 || dateString.length === 10;
10
10
  const NO_VALUE = void 0;
@@ -163,7 +163,7 @@ const matchWithinOperator = (pattern, where, params, typeObject) => {
163
163
  if (matchSuccess && isExpressionPatternMatch(firstFieldMatch) && isParamPatternMatch(firstParamMatch) && isExpressionPatternMatch(secondFieldMatch) && isParamPatternMatch(secondParamMatch)) {
164
164
  const firstFieldValue = firstFieldMatch.value;
165
165
  const secondFieldValue = secondFieldMatch.value;
166
- if (isEqual(firstFieldValue, secondFieldValue)) return {
166
+ if (deepEqual(firstFieldValue, secondFieldValue)) return {
167
167
  matchSuccess,
168
168
  expression: firstFieldValue,
169
169
  value: {
@@ -9,8 +9,8 @@ import { mapValues } from "@fibery/helpers/src/_";
9
9
  import isString from "lodash/isString.js";
10
10
  import last from "lodash/last.js";
11
11
  import { validate } from "uuid";
12
+ import { deepEqual } from "@fibery/helpers/src/equal";
12
13
  import findKey from "lodash/findKey.js";
13
- import isEqual from "lodash/isEqual.js";
14
14
  import uniq from "lodash/uniq.js";
15
15
  //#region src/filter-expression/operators.ts
16
16
  var operators_exports = /* @__PURE__ */ __exportAll({
@@ -906,7 +906,7 @@ const operatorDateTimeIs = {
906
906
  getParamPlaceholder()
907
907
  ]
908
908
  ], typeObject);
909
- if (matchSuccess && isExpressionPatternMatch(firstFieldMatch) && isParamPatternMatch(firstParamMatch) && isExpressionPatternMatch(secondFieldMatch) && isParamPatternMatch(secondParamMatch) && isEqual(firstFieldMatch.value, secondFieldMatch.value)) {
909
+ if (matchSuccess && isExpressionPatternMatch(firstFieldMatch) && isParamPatternMatch(firstParamMatch) && isExpressionPatternMatch(secondFieldMatch) && isParamPatternMatch(secondParamMatch) && deepEqual(firstFieldMatch.value, secondFieldMatch.value)) {
910
910
  const firstParamValue = firstParamMatch.value;
911
911
  const secondParamValue = secondParamMatch.value;
912
912
  if (typeof firstParamValue === "string" && typeof secondParamValue === "string" && paramsPlaceholdersLookup[firstParamValue] && paramsPlaceholdersLookup[secondParamValue]) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fibery/expression-utils",
3
- "version": "16.0.1",
3
+ "version": "16.0.2",
4
4
  "description": "utils for working with fibery api expressions",
5
5
  "license": "UNLICENSED",
6
6
  "files": [
@@ -28,9 +28,9 @@
28
28
  "lodash": "4.17.21",
29
29
  "moment": "2.31.0",
30
30
  "uuid": "11.1.0",
31
- "@fibery/helpers": "4.1.1"
31
+ "@fibery/helpers": "4.1.2"
32
32
  },
33
33
  "peerDependencies": {
34
- "@fibery/schema": "12.0.2"
34
+ "@fibery/schema": "13.0.0"
35
35
  }
36
36
  }