@react-querybuilder/datetime 8.6.2 → 8.7.1

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/README.md CHANGED
@@ -1,9 +1,5 @@
1
1
  ## @react-querybuilder/datetime
2
2
 
3
- > [!NOTE]
4
- >
5
- > This package is experimental and its API is not guaranteed to be stable.
6
-
7
3
  Augments [react-querybuilder](https://npmjs.com/package/react-querybuilder) with enhanced date/time functionality.
8
4
 
9
5
  To see this in action, check out the [`react-querybuilder` demo](https://react-querybuilder.js.org/demo#datetime=true) with the "date/time" option enabled.
@@ -86,25 +86,25 @@ type FnDateArrayOfDates = (a: DateOrString, b: DateOrString[]) => boolean;
86
86
  type FnDateDateDate = (a: DateOrString, b: DateOrString, c: DateOrString) => boolean;
87
87
  export type RQBJsonLogicDateTimeOperations = {
88
88
  /** Determines if the first date is after the second date. */
89
- dateAfter: FnDateDate
89
+ dateAfter: FnDateDate;
90
90
  /** Determines if the first date is before the second date. */
91
- dateBefore: FnDateDate
91
+ dateBefore: FnDateDate;
92
92
  /** Determines if the second date is between the first and third dates (inclusive). */
93
- dateBetween: FnDateDateDate
93
+ dateBetween: FnDateDateDate;
94
94
  /** Determines if the first date is one of the values in the array of dates. */
95
- dateIn: FnDateArrayOfDates
95
+ dateIn: FnDateArrayOfDates;
96
96
  /** Determines if the second date is not between the first and third dates. */
97
- dateNotBetween: FnDateDateDate
97
+ dateNotBetween: FnDateDateDate;
98
98
  /** Determines if the first date is not one of the values in the array of dates. */
99
- dateNotIn: FnDateArrayOfDates
99
+ dateNotIn: FnDateArrayOfDates;
100
100
  /** Determines if the first date is not the same as the second date. */
101
- dateNotOn: FnDateDate
101
+ dateNotOn: FnDateDate;
102
102
  /** Determines if the first date is the same as the second date (at the level of least precision between the two). */
103
- dateOn: FnDateDate
103
+ dateOn: FnDateDate;
104
104
  /** Determines if the first date is either the same as the second date or after it. */
105
- dateOnOrAfter: FnDateDate
105
+ dateOnOrAfter: FnDateDate;
106
106
  /** Determines if the first date is either the same as the second date or before it. */
107
- dateOnOrBefore: FnDateDate
107
+ dateOnOrBefore: FnDateDate;
108
108
  };
109
109
  export type IsDateFieldFunction = (...[rule, opts]: Parameters<RuleProcessor>) => boolean;
110
110
  export type IsDateField = IsDateFieldFunction | Record<string, unknown> | Record<string, unknown>[] | boolean | undefined;
@@ -86,25 +86,25 @@ type FnDateArrayOfDates = (a: DateOrString, b: DateOrString[]) => boolean;
86
86
  type FnDateDateDate = (a: DateOrString, b: DateOrString, c: DateOrString) => boolean;
87
87
  export type RQBJsonLogicDateTimeOperations = {
88
88
  /** Determines if the first date is after the second date. */
89
- dateAfter: FnDateDate
89
+ dateAfter: FnDateDate;
90
90
  /** Determines if the first date is before the second date. */
91
- dateBefore: FnDateDate
91
+ dateBefore: FnDateDate;
92
92
  /** Determines if the second date is between the first and third dates (inclusive). */
93
- dateBetween: FnDateDateDate
93
+ dateBetween: FnDateDateDate;
94
94
  /** Determines if the first date is one of the values in the array of dates. */
95
- dateIn: FnDateArrayOfDates
95
+ dateIn: FnDateArrayOfDates;
96
96
  /** Determines if the second date is not between the first and third dates. */
97
- dateNotBetween: FnDateDateDate
97
+ dateNotBetween: FnDateDateDate;
98
98
  /** Determines if the first date is not one of the values in the array of dates. */
99
- dateNotIn: FnDateArrayOfDates
99
+ dateNotIn: FnDateArrayOfDates;
100
100
  /** Determines if the first date is not the same as the second date. */
101
- dateNotOn: FnDateDate
101
+ dateNotOn: FnDateDate;
102
102
  /** Determines if the first date is the same as the second date (at the level of least precision between the two). */
103
- dateOn: FnDateDate
103
+ dateOn: FnDateDate;
104
104
  /** Determines if the first date is either the same as the second date or after it. */
105
- dateOnOrAfter: FnDateDate
105
+ dateOnOrAfter: FnDateDate;
106
106
  /** Determines if the first date is either the same as the second date or before it. */
107
- dateOnOrBefore: FnDateDate
107
+ dateOnOrBefore: FnDateDate;
108
108
  };
109
109
  export type IsDateFieldFunction = (...[rule, opts]: Parameters<RuleProcessor>) => boolean;
110
110
  export type IsDateField = IsDateFieldFunction | Record<string, unknown> | Record<string, unknown>[] | boolean | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@react-querybuilder/datetime",
3
3
  "description": "Date/time features for react-querybuilder",
4
- "version": "8.6.2",
4
+ "version": "8.7.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -87,24 +87,24 @@
87
87
  },
88
88
  "devDependencies": {
89
89
  "@date-fns/tz": "^1.2.0",
90
- "@electric-sql/pglite": "^0.3.0",
90
+ "@electric-sql/pglite": "^0.3.3",
91
91
  "@testing-library/dom": "^10.4.0",
92
92
  "@testing-library/react": "^16.3.0",
93
- "@testing-library/user-event": "14.6.1",
93
+ "@testing-library/user-event": "14.5.2",
94
94
  "@types/luxon": "^3.6.2",
95
- "@types/react": "^19.1.2",
96
- "@vitejs/plugin-react": "^4.4.1",
95
+ "@types/react": "^19.1.6",
96
+ "@vitejs/plugin-react": "^4.5.1",
97
97
  "date-fns": "^4.1.0",
98
98
  "dayjs": "^1.11.13",
99
99
  "json-logic-js": "^2.0.5",
100
100
  "jsonata": "^2.0.6",
101
101
  "luxon": "^3.6.1",
102
102
  "mongodb-memory-server-core": "^10.1.4",
103
- "mongoose": "^8.14.1",
103
+ "mongoose": "^8.15.1",
104
104
  "react": "^19.1.0",
105
105
  "react-dom": "^19.1.0",
106
- "react-querybuilder": "8.6.2",
107
- "rollup-plugin-visualizer": "^5.14.0",
106
+ "react-querybuilder": "8.7.1",
107
+ "rollup-plugin-visualizer": "^6.0.3",
108
108
  "typescript": "^5.8.3",
109
109
  "vite": "^6.3.5"
110
110
  },
@@ -113,7 +113,7 @@
113
113
  "dayjs": "^1.11.13",
114
114
  "luxon": "^3.5.0",
115
115
  "react": ">=18",
116
- "react-querybuilder": "8.6.2"
116
+ "react-querybuilder": "8.7.1"
117
117
  },
118
118
  "peerDependenciesMeta": {
119
119
  "date-fns": {
@@ -126,5 +126,5 @@
126
126
  "optional": true
127
127
  }
128
128
  },
129
- "gitHead": "79e58867be8766b07f1b48ac21a19eece8e84212"
129
+ "gitHead": "a83bfef9b4e76c2c0aac631d83715cd8a87c168c"
130
130
  }