@cocreate/utils 1.33.4 → 1.33.6

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [1.33.6](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.33.5...v1.33.6) (2024-02-19)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * date comaprison ([f4b2994](https://github.com/CoCreate-app/CoCreate-utils/commit/f4b2994b96a15bcf8216b164b4cc13ce8eec897e))
7
+
8
+ ## [1.33.5](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.33.4...v1.33.5) (2024-02-17)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * continue if specialSelector is empty ([af9a36e](https://github.com/CoCreate-app/CoCreate-utils/commit/af9a36e2d2ae0dcc62195bd8a049a7c0f0cd2901))
14
+
1
15
  ## [1.33.4](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.33.3...v1.33.4) (2024-02-15)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/utils",
3
- "version": "1.33.4",
3
+ "version": "1.33.6",
4
4
  "description": "A simple utils component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "utils",
package/src/index.js CHANGED
@@ -449,6 +449,8 @@
449
449
  // if (!Array.isArray(queriedElement)) {
450
450
  // queriedElement = [queriedElement]
451
451
  // }
452
+ if (!specialSelectors[k])
453
+ continue
452
454
  if (k === 0) {
453
455
  if (type[i] === 'parent')
454
456
  queriedElement = queriedElement.parentElement
@@ -616,6 +618,10 @@
616
618
  return queryMatch({ [property]: getValueFromObject(dataValue, property) }, { [property]: query[key][property] })
617
619
  } else {
618
620
  let queryValue = query[key][property]
621
+ if (isValidDate(queryValue) && isValidDate(dataValue)) {
622
+ queryValue = new Date(queryValue)
623
+ dataValue = new Date(dataValue)
624
+ }
619
625
  let queryStatus = false
620
626
  switch (property) {
621
627
  case '$eq':