@dereekb/date 13.6.17 → 13.7.0

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/index.cjs.js CHANGED
@@ -7293,6 +7293,9 @@ var DATE_CELL_SCHEDULE_ENCODED_WEEK_REGEX = /^[0-9]{0,9}$/;
7293
7293
  /**
7294
7294
  * Converts a minMaxDateRange Date or index to a day index. For Date inputs, extracts the calendar day
7295
7295
  * from the system timezone as an ISO8601 day string to avoid cross-timezone day boundary issues.
7296
+ *
7297
+ * @param input - A Date or numeric day index to convert.
7298
+ * @returns The corresponding zero-based day cell index relative to the schedule start.
7296
7299
  */ function _minMaxDateRangeDateOrIndexToIndex(input) {
7297
7300
  var result;
7298
7301
  if (typeof input === 'number') {
@@ -7821,6 +7824,9 @@ function _object_spread_props$5(target, source) {
7821
7824
  */ var DURATION_COMPONENT_REGEX = /(\d+(?:\.\d+)?)\s*(w|wk|weeks?|d|days?|h|hr|hours?|m(?!s)|min|minutes?|s|sec|seconds?|ms|milliseconds?)/gi;
7822
7825
  /**
7823
7826
  * Maps parsed unit strings to their canonical TimeUnit value.
7827
+ *
7828
+ * @param unitStr - The raw unit string from a parsed duration component (e.g., 'hr', 'minutes', 'ms').
7829
+ * @returns The canonical {@link TimeUnit} corresponding to the input string.
7824
7830
  */ function normalizeUnitString(unitStr) {
7825
7831
  var lower = unitStr.toLowerCase();
7826
7832
  if (lower === 'ms' || lower === 'milliseconds' || lower === 'millisecond') {
package/index.esm.js CHANGED
@@ -7292,6 +7292,9 @@ var DATE_CELL_SCHEDULE_ENCODED_WEEK_REGEX = /^[0-9]{0,9}$/;
7292
7292
  /**
7293
7293
  * Converts a minMaxDateRange Date or index to a day index. For Date inputs, extracts the calendar day
7294
7294
  * from the system timezone as an ISO8601 day string to avoid cross-timezone day boundary issues.
7295
+ *
7296
+ * @param input - A Date or numeric day index to convert.
7297
+ * @returns The corresponding zero-based day cell index relative to the schedule start.
7295
7298
  */ function _minMaxDateRangeDateOrIndexToIndex(input) {
7296
7299
  var result;
7297
7300
  if (typeof input === 'number') {
@@ -7820,6 +7823,9 @@ function _object_spread_props$5(target, source) {
7820
7823
  */ var DURATION_COMPONENT_REGEX = /(\d+(?:\.\d+)?)\s*(w|wk|weeks?|d|days?|h|hr|hours?|m(?!s)|min|minutes?|s|sec|seconds?|ms|milliseconds?)/gi;
7821
7824
  /**
7822
7825
  * Maps parsed unit strings to their canonical TimeUnit value.
7826
+ *
7827
+ * @param unitStr - The raw unit string from a parsed duration component (e.g., 'hr', 'minutes', 'ms').
7828
+ * @returns The canonical {@link TimeUnit} corresponding to the input string.
7823
7829
  */ function normalizeUnitString(unitStr) {
7824
7830
  var lower = unitStr.toLowerCase();
7825
7831
  if (lower === 'ms' || lower === 'milliseconds' || lower === 'millisecond') {
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@dereekb/date",
3
- "version": "13.6.17",
3
+ "version": "13.7.0",
4
4
  "peerDependencies": {
5
- "@dereekb/model": "13.6.17",
6
- "@dereekb/rxjs": "13.6.17",
7
- "@dereekb/util": "13.6.17",
5
+ "@dereekb/model": "13.7.0",
6
+ "@dereekb/rxjs": "13.7.0",
7
+ "@dereekb/util": "13.7.0",
8
8
  "@vvo/tzdb": "^6.0.0",
9
9
  "arktype": "^2.2.0",
10
10
  "date-fns": "^4.0.0",
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "dependencies": {},
16
16
  "devDependencies": {
17
- "@dereekb/rxjs": "13.6.17"
17
+ "@dereekb/rxjs": "13.7.0"
18
18
  },
19
19
  "exports": {
20
20
  "./package.json": "./package.json",