@sprucelabs/calendar-utils 30.0.56 → 30.0.57

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,5 +3,5 @@ import { ErrorOptions as ISpruceErrorOptions } from "@sprucelabs/error";
3
3
  export interface InvalidTimezoneNameErrorOptions extends SpruceErrors.CalendarUtils.InvalidTimezoneName, ISpruceErrorOptions {
4
4
  code: 'INVALID_TIMEZONE_NAME';
5
5
  }
6
- declare type ErrorOptions = InvalidTimezoneNameErrorOptions;
6
+ type ErrorOptions = InvalidTimezoneNameErrorOptions;
7
7
  export default ErrorOptions;
@@ -3,5 +3,5 @@ import { ErrorOptions as ISpruceErrorOptions } from "@sprucelabs/error";
3
3
  export interface InvalidTimezoneNameErrorOptions extends SpruceErrors.CalendarUtils.InvalidTimezoneName, ISpruceErrorOptions {
4
4
  code: 'INVALID_TIMEZONE_NAME';
5
5
  }
6
- declare type ErrorOptions = InvalidTimezoneNameErrorOptions;
6
+ type ErrorOptions = InvalidTimezoneNameErrorOptions;
7
7
  export default ErrorOptions;
@@ -26,5 +26,5 @@ declare const localeContract: {
26
26
  };
27
27
  };
28
28
  };
29
- declare type LocaleContract = typeof localeContract;
29
+ type LocaleContract = typeof localeContract;
30
30
  export {};
@@ -2,7 +2,7 @@ import { timezoneChoices } from '@sprucelabs/spruce-core-schemas';
2
2
  import { SpruceSchemas } from "./../.spruce/schemas/schemas.types";
3
3
  import LocaleImpl from '../locales/Locale';
4
4
  import dateUtil from '../utilities/date.utility';
5
- declare type D = typeof dateUtil;
5
+ type D = typeof dateUtil;
6
6
  /**
7
7
  * @deprecated DateUtils -> DateUtil
8
8
  */
@@ -10,12 +10,12 @@ export interface DateUtils extends D {
10
10
  }
11
11
  export interface DateUtil extends D {
12
12
  }
13
- export declare type CalendarEvent = SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
14
- export declare type DayOfWeek = NonNullable<CalendarEvent['daysOfWeek']>[number];
15
- export declare type TimezoneChoices = typeof timezoneChoices;
16
- export declare type TimezoneName = TimezoneChoices[number]['value'];
17
- export declare type Locale = Pick<LocaleImpl, 'on' | 'getZoneName' | 'offsetMinutesToZoneName' | 'getTimezoneOffsetMinutes' | 'setTimezoneOffsetMinutes' | 'setZoneName' | 'zoneNameToOffsetMinutes'>;
18
- export declare type SorterCalendarEvent = {
13
+ export type CalendarEvent = SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
14
+ export type DayOfWeek = NonNullable<CalendarEvent['daysOfWeek']>[number];
15
+ export type TimezoneChoices = typeof timezoneChoices;
16
+ export type TimezoneName = TimezoneChoices[number]['value'];
17
+ export type Locale = Pick<LocaleImpl, 'on' | 'getZoneName' | 'offsetMinutesToZoneName' | 'getTimezoneOffsetMinutes' | 'setTimezoneOffsetMinutes' | 'setZoneName' | 'zoneNameToOffsetMinutes'>;
18
+ export type SorterCalendarEvent = {
19
19
  id: string;
20
20
  groupId?: string;
21
21
  startDateTimeMs: number;
@@ -18,7 +18,7 @@ export default class PeopleSorter {
18
18
  private get people();
19
19
  private get events();
20
20
  }
21
- export declare type Person = {
21
+ export type Person = {
22
22
  id: string;
23
23
  casualName: string;
24
24
  };
@@ -8,7 +8,7 @@ export interface IDate {
8
8
  second?: number;
9
9
  milliseconds?: number;
10
10
  }
11
- export declare type DateUnit = 'days' | 'weeks' | 'months' | 'years' | 'minutes';
11
+ export type DateUnit = 'days' | 'weeks' | 'months' | 'years' | 'minutes';
12
12
  declare const dateUtil: {
13
13
  eventDaysOfWeek: {
14
14
  sun: string;
@@ -26,5 +26,5 @@ declare const localeContract: {
26
26
  };
27
27
  };
28
28
  };
29
- declare type LocaleContract = typeof localeContract;
29
+ type LocaleContract = typeof localeContract;
30
30
  export {};
@@ -2,7 +2,7 @@ import { timezoneChoices } from '@sprucelabs/spruce-core-schemas';
2
2
  import { SpruceSchemas } from "./../.spruce/schemas/schemas.types";
3
3
  import LocaleImpl from '../locales/Locale';
4
4
  import dateUtil from '../utilities/date.utility';
5
- declare type D = typeof dateUtil;
5
+ type D = typeof dateUtil;
6
6
  /**
7
7
  * @deprecated DateUtils -> DateUtil
8
8
  */
@@ -10,12 +10,12 @@ export interface DateUtils extends D {
10
10
  }
11
11
  export interface DateUtil extends D {
12
12
  }
13
- export declare type CalendarEvent = SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
14
- export declare type DayOfWeek = NonNullable<CalendarEvent['daysOfWeek']>[number];
15
- export declare type TimezoneChoices = typeof timezoneChoices;
16
- export declare type TimezoneName = TimezoneChoices[number]['value'];
17
- export declare type Locale = Pick<LocaleImpl, 'on' | 'getZoneName' | 'offsetMinutesToZoneName' | 'getTimezoneOffsetMinutes' | 'setTimezoneOffsetMinutes' | 'setZoneName' | 'zoneNameToOffsetMinutes'>;
18
- export declare type SorterCalendarEvent = {
13
+ export type CalendarEvent = SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
14
+ export type DayOfWeek = NonNullable<CalendarEvent['daysOfWeek']>[number];
15
+ export type TimezoneChoices = typeof timezoneChoices;
16
+ export type TimezoneName = TimezoneChoices[number]['value'];
17
+ export type Locale = Pick<LocaleImpl, 'on' | 'getZoneName' | 'offsetMinutesToZoneName' | 'getTimezoneOffsetMinutes' | 'setTimezoneOffsetMinutes' | 'setZoneName' | 'zoneNameToOffsetMinutes'>;
18
+ export type SorterCalendarEvent = {
19
19
  id: string;
20
20
  groupId?: string;
21
21
  startDateTimeMs: number;
@@ -18,7 +18,7 @@ export default class PeopleSorter {
18
18
  private get people();
19
19
  private get events();
20
20
  }
21
- export declare type Person = {
21
+ export type Person = {
22
22
  id: string;
23
23
  casualName: string;
24
24
  };
@@ -8,7 +8,7 @@ export interface IDate {
8
8
  second?: number;
9
9
  milliseconds?: number;
10
10
  }
11
- export declare type DateUnit = 'days' | 'weeks' | 'months' | 'years' | 'minutes';
11
+ export type DateUnit = 'days' | 'weeks' | 'months' | 'years' | 'minutes';
12
12
  declare const dateUtil: {
13
13
  eventDaysOfWeek: {
14
14
  sun: string;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "30.0.56",
6
+ "version": "30.0.57",
7
7
  "files": [
8
8
  "build/**/*",
9
9
  "!build/__tests__",
@@ -65,24 +65,24 @@
65
65
  "watch.rebuild": "yarn clean.all && yarn && yarn watch.build.dev"
66
66
  },
67
67
  "dependencies": {
68
- "@sprucelabs/error": "^5.0.540",
68
+ "@sprucelabs/error": "^5.0.541",
69
69
  "@sprucelabs/mercury-event-emitter": "^34.0.49",
70
- "@sprucelabs/mercury-types": "^37.0.58",
71
- "@sprucelabs/schema": "^28.5.66",
72
- "@sprucelabs/spruce-core-schemas": "^35.1.55",
73
- "@sprucelabs/spruce-event-utils": "^29.1.58",
70
+ "@sprucelabs/mercury-types": "^37.0.59",
71
+ "@sprucelabs/schema": "^28.5.68",
72
+ "@sprucelabs/spruce-core-schemas": "^35.1.57",
73
+ "@sprucelabs/spruce-event-utils": "^29.1.59",
74
74
  "date-fns": "^2.29.3",
75
75
  "date-fns-tz": "^1.3.7",
76
76
  "lodash": "^4.17.21",
77
77
  "rrule": "^2.7.1"
78
78
  },
79
79
  "devDependencies": {
80
- "@sprucelabs/esm-postbuild": "^2.0.31",
81
- "@sprucelabs/jest-json-reporter": "^6.0.519",
82
- "@sprucelabs/resolve-path-aliases": "^1.1.129",
80
+ "@sprucelabs/esm-postbuild": "^2.0.32",
81
+ "@sprucelabs/jest-json-reporter": "^6.0.520",
82
+ "@sprucelabs/resolve-path-aliases": "^1.1.130",
83
83
  "@sprucelabs/semantic-release": "^4.0.8",
84
- "@sprucelabs/test": "^7.7.386",
85
- "@sprucelabs/test-utils": "^3.2.54",
84
+ "@sprucelabs/test": "^7.7.387",
85
+ "@sprucelabs/test-utils": "^3.2.56",
86
86
  "@types/lodash": "^4.14.189",
87
87
  "@types/node": "^18.11.9",
88
88
  "chokidar-cli": "^3.0.0",
@@ -95,7 +95,7 @@
95
95
  "ts-node": "^10.9.1",
96
96
  "tsc-watch": "^5.0.3",
97
97
  "tsconfig-paths": "^4.1.0",
98
- "typescript": "^4.8.4",
98
+ "typescript": "^4.9.3",
99
99
  "yarn-upgrade-all": "^0.7.1"
100
100
  },
101
101
  "jest": {