@dereekb/date 11.1.8 → 12.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/date",
3
- "version": "11.1.8",
3
+ "version": "12.0.1",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./src/index.d.ts",
@@ -17,15 +17,16 @@
17
17
  },
18
18
  "peerDependencies": {
19
19
  "@dereekb/util": "*",
20
+ "date-fns": "^3.0.0",
21
+ "date-fns-tz": "^3.0.0",
20
22
  "class-transformer": "^0.5.1",
21
23
  "class-validator": "^0.14.0",
22
- "date-fns": "^2.30.0",
23
- "rxjs": "^7.5.0",
24
- "date-fns-tz": "^2.0.0",
24
+ "rxjs": "^7.4.0",
25
25
  "rrule": "git+https://git@github.com/dereekb/rrule#2b13b1ea881059ba2ecfec380e12ef244ef54570",
26
26
  "@vvo/tzdb": "^6.0.0"
27
27
  },
28
28
  "dependencies": {},
29
29
  "module": "./index.esm.js",
30
- "main": "./index.cjs.js"
31
- }
30
+ "main": "./index.cjs.js",
31
+ "types": "./index.esm.d.ts"
32
+ }
@@ -10,7 +10,7 @@ export declare enum DateCellScheduleDayCode {
10
10
  * Special no-op/unused code
11
11
  */
12
12
  NONE = 0,
13
- SUNDAY = 1,
13
+ SUNDAY = 1,// Day.SUNDAY + 1
14
14
  MONDAY = 2,
15
15
  TUESDAY = 3,
16
16
  WEDNESDAY = 4,
@@ -139,7 +139,7 @@ export declare function formatToMonthDayString(date?: Date): ISO8601DayString;
139
139
  export declare function formatToDateString(date: Date): string;
140
140
  export declare const dateTimeStringFormat = "h:mm a";
141
141
  export declare function formatToTimeString(date: Date): string;
142
- export declare const dateShortDateAndTimeStringFormat: string;
142
+ export declare const dateShortDateAndTimeStringFormat = "MM/dd/yyyy h:mm a";
143
143
  export declare function formatToShortDateAndTimeString(date: Date): string;
144
144
  export declare function formatToTimeAndDurationString(start: Date, end: Date): string;
145
145
  export declare function formatStartedEndedDistanceString({ start, end }: DateRange): string;
@@ -295,7 +295,7 @@ export declare function isDateRangeInDateRangeFunction<T extends Partial<DateRan
295
295
  /**
296
296
  * Returns true if the input DateRange overlaps the configured DateRange in any way.
297
297
  */
298
- export type DateRangeOverlapsDateRangeFunction<T extends DateRange = DateRange> = ((dateRange: DateRange) => boolean) & DateRangeFunctionDateRangeRef<T>;
298
+ export type DateRangeOverlapsDateRangeFunction<T extends DateRange = DateRange> = ((dateRange: DateRangeStart & Partial<DateRange>) => boolean) & DateRangeFunctionDateRangeRef<T>;
299
299
  export declare function dateRangeOverlapsDateRange(compareDateRange: DateRange, dateRange: DateRange): boolean;
300
300
  /**
301
301
  * Creates an DateRangeOverlapsDateRangeFunction