colombian-holidays 1.7.7 → 1.8.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
@@ -19,7 +19,7 @@ npm install colombian-holidays
19
19
 
20
20
  The module exports a single function to get all the holidays for a given year, returning an array with the holidays for the requested year.
21
21
 
22
- The `year` should be between 1984 and 4099.
22
+ The `year` should be between 1583 and 4099.
23
23
 
24
24
  ### CommonJS
25
25
 
@@ -66,23 +66,71 @@ The content of the `colombianHolidays2015` variable will be the following array:
66
66
  ```
67
67
  <!-- prettier-ignore-end -->
68
68
 
69
+ You can opt-in to have the function return native JavaScript dates instead of strings for the `date` and `celebrationDate` properties by using the `returnNativeDate` option:
70
+
71
+ <!-- prettier-ignore-start -->
72
+
73
+ ```js
74
+ const colombianHolidays2015 = colombianHolidays(2015, { returnNativeDate });
75
+ ```
76
+
69
77
  If the year is omitted, by default the function will return the holidays for the current year:
70
78
 
71
79
  ```js
72
80
  const currentYearHolidays = colombianHolidays();
73
81
  ```
74
82
 
75
- ### TypeScript
83
+ ## Utils
76
84
 
77
- The module is written in TypeScript and type definitions files are included.
85
+ The package provides two helper functions which can be imported from `lib/utils`:
86
+
87
+ ### isHoliday
78
88
 
79
- ## Contributing
89
+ Returns true if the given date is a colombian holiday, otherwise returns false.
80
90
 
81
- Contributions, issues and feature requests are welcome!
91
+ ```js
92
+ import { isHoliday } from 'colombian-holidays/lib/utils/isHoliday`
93
+
94
+ const date = new Date("2018-01-01T05:00:00.000Z")
82
95
 
83
- ## Show your support
96
+ if (isHoliday(date)) {
97
+ console.log('it is a colombian holiday');
98
+ } else {
99
+ console.log('it is NOT a colombian holiday');
100
+ }
101
+ ```
84
102
 
85
- Give a ⭐️ if you like this project!
103
+ ### holidaysWithinInterval
104
+
105
+ Returns an with the colombian holidays within two dates:
106
+
107
+ ```js
108
+ import { holidaysWithinInterval } from 'colombian-holidays/lib/utils/holidaysWithinInterval`
109
+
110
+ const start = new Date("2021-01-01");
111
+ const end = new Date("2021-01-11");
112
+ const holidays = holidaysWithinInterval({ start, end });
113
+ /*
114
+ [
115
+ {
116
+ celebrationDate: "2021-01-01",
117
+ date: "2021-01-01",
118
+ name: "Año Nuevo",
119
+ nextMonday: false,
120
+ },
121
+ {
122
+ celebrationDate: "2021-01-11",
123
+ date: "2021-01-06",
124
+ name: "Reyes Magos",
125
+ nextMonday: true,
126
+ },
127
+ ]
128
+ */
129
+ ```
130
+
131
+ ### TypeScript
132
+
133
+ The module is written in TypeScript and type definitions files are included.
86
134
 
87
135
  ## License
88
136
 
package/lib/helpers.d.ts CHANGED
@@ -1,3 +1,4 @@
1
- import { Holiday, ColombianHoliday } from './types';
1
+ import type { Holiday, ColombianHoliday } from "./types";
2
+ export declare const NEW_HOLIDAY_SCHEMA_START_YEAR = 1984;
2
3
  declare function getHoliday(holiday: Holiday, year: number): ColombianHoliday;
3
4
  export default getHoliday;
package/lib/helpers.js CHANGED
@@ -3,7 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.NEW_HOLIDAY_SCHEMA_START_YEAR = void 0;
6
7
  const pascua_1 = __importDefault(require("pascua"));
8
+ // 1984 is the year when the current holidays scheme is enforced
9
+ // http://www.alcaldiabogota.gov.co/sisjur/normas/Norma1.jsp?i=4954
10
+ exports.NEW_HOLIDAY_SCHEMA_START_YEAR = 1984;
7
11
  function getNextDayOfWeek(date, dayOfWeek) {
8
12
  const resultDate = new Date(date);
9
13
  resultDate.setDate(date.getDate() + ((7 + dayOfWeek - date.getDay()) % 7));
@@ -14,32 +18,32 @@ function getNextMonday(date) {
14
18
  return getNextDayOfWeek(date, MONDAY);
15
19
  }
16
20
  function isEasterHoliday(holiday) {
17
- return 'offset' in holiday;
21
+ return "offset" in holiday;
18
22
  }
19
23
  function getHolidayDate(holiday, year) {
20
24
  if (isEasterHoliday(holiday)) {
21
25
  const { month, day } = (0, pascua_1.default)(year);
22
26
  return new Date(year, month - 1, day + holiday.offset);
23
27
  }
24
- const [month, day] = holiday.date.split('-');
28
+ const [month, day] = holiday.date.split("-");
25
29
  return new Date(year, Number(month) - 1, Number(day));
26
30
  }
27
31
  function formatDate(date) {
28
32
  const year = date.getFullYear();
29
- const month = String(date.getMonth() + 1).padStart(2, '0');
30
- const day = String(date.getDate()).padStart(2, '0');
33
+ const month = String(date.getMonth() + 1).padStart(2, "0");
34
+ const day = String(date.getDate()).padStart(2, "0");
31
35
  return `${year}-${month}-${day}`;
32
36
  }
33
37
  function getHoliday(holiday, year) {
34
38
  const holidayDate = getHolidayDate(holiday, year);
35
- const celebrationDate = holiday.nextMonday
39
+ const celebrationDate = year >= exports.NEW_HOLIDAY_SCHEMA_START_YEAR && holiday.nextMonday
36
40
  ? getNextMonday(holidayDate)
37
41
  : holidayDate;
38
42
  return {
39
43
  date: formatDate(holidayDate),
40
44
  celebrationDate: formatDate(celebrationDate),
41
45
  name: holiday.name,
42
- nextMonday: holiday.nextMonday,
46
+ nextMonday: year >= exports.NEW_HOLIDAY_SCHEMA_START_YEAR && holiday.nextMonday,
43
47
  };
44
48
  }
45
49
  exports.default = getHoliday;
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../src/helpers.ts"],"names":[],"mappings":";;;;;AAAA,oDAA4B;AAG5B,SAAS,gBAAgB,CAAC,IAAU,EAAE,SAAiB;IACrD,MAAM,UAAU,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC;IAClC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAC3E,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,SAAS,aAAa,CAAC,IAAU;IAC/B,MAAM,MAAM,GAAG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import type { DateHoliday, EasterHoliday } from "./types";
2
2
  declare const _default: (DateHoliday | EasterHoliday)[];
3
3
  export default _default;
package/lib/holidays.js CHANGED
@@ -1,19 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const dateHolidays = [
4
- { date: '01-01', name: 'Año Nuevo', nextMonday: false },
5
- { date: '05-01', name: 'Día del Trabajo', nextMonday: false },
6
- { date: '07-20', name: 'Grito de la Independencia', nextMonday: false },
7
- { date: '08-07', name: 'Batalla de Boyacá', nextMonday: false },
8
- { date: '12-08', name: 'Inmaculada Concepción', nextMonday: false },
9
- { date: '12-25', name: 'Navidad', nextMonday: false },
10
- { date: '01-06', name: 'Reyes Magos', nextMonday: true },
11
- { date: '03-19', name: 'San José', nextMonday: true },
12
- { date: '06-29', name: 'San Pedro y San Pablo', nextMonday: true },
13
- { date: '08-15', name: 'Asunción de la Virgen', nextMonday: true },
14
- { date: '10-12', name: 'Día de la Raza', nextMonday: true },
15
- { date: '11-01', name: 'Todos los Santos', nextMonday: true },
16
- { date: '11-11', name: 'Independencia de Cartagena', nextMonday: true },
4
+ { date: "01-01", name: "Año Nuevo", nextMonday: false },
5
+ { date: "05-01", name: "Día del Trabajo", nextMonday: false },
6
+ { date: "07-20", name: "Grito de la Independencia", nextMonday: false },
7
+ { date: "08-07", name: "Batalla de Boyacá", nextMonday: false },
8
+ { date: "12-08", name: "Inmaculada Concepción", nextMonday: false },
9
+ { date: "12-25", name: "Navidad", nextMonday: false },
10
+ { date: "01-06", name: "Reyes Magos", nextMonday: true },
11
+ { date: "03-19", name: "San José", nextMonday: true },
12
+ { date: "06-29", name: "San Pedro y San Pablo", nextMonday: true },
13
+ { date: "08-15", name: "Asunción de la Virgen", nextMonday: true },
14
+ { date: "10-12", name: "Día de la Raza", nextMonday: true },
15
+ { date: "11-01", name: "Todos los Santos", nextMonday: true },
16
+ { date: "11-11", name: "Independencia de Cartagena", nextMonday: true },
17
17
  ];
18
18
  // We could simplify the calculation by setting the offset to match Monday.
19
19
  // For example, the date for the 'Corpus Christi' is 60 days after Easter
@@ -22,11 +22,11 @@ const dateHolidays = [
22
22
  // and then get the next monday instead of directly using 64 as the offset.
23
23
  // https://www.alcaldiabogota.gov.co/sisjur/normas/Norma1.jsp?i=4954
24
24
  const easterHolidays = [
25
- { offset: -3, name: 'Jueves Santo', nextMonday: false },
26
- { offset: -2, name: 'Viernes Santo', nextMonday: false },
27
- { offset: 39, name: 'Ascensión del Señor', nextMonday: true },
28
- { offset: 60, name: 'Corpus Christi', nextMonday: true },
29
- { offset: 68, name: 'Sagrado Corazón de Jesús', nextMonday: true },
25
+ { offset: -3, name: "Jueves Santo", nextMonday: false },
26
+ { offset: -2, name: "Viernes Santo", nextMonday: false },
27
+ { offset: 39, name: "Ascensión del Señor", nextMonday: true },
28
+ { offset: 60, name: "Corpus Christi", nextMonday: true },
29
+ { offset: 68, name: "Sagrado Corazón de Jesús", nextMonday: true },
30
30
  ];
31
31
  exports.default = [...dateHolidays, ...easterHolidays];
32
32
  //# sourceMappingURL=holidays.js.map
package/lib/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ColombianHoliday } from "./types";
2
- export declare const FIRST_HOLIDAY_YEAR = 1984;
2
+ export declare const FIRST_HOLIDAY_YEAR = 1583;
3
3
  export declare const LAST_HOLIDAY_YEAR = 4099;
4
4
  declare function colombianHolidays(year?: number): ColombianHoliday[];
5
5
  export default colombianHolidays;
package/lib/index.js CHANGED
@@ -6,10 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.LAST_HOLIDAY_YEAR = exports.FIRST_HOLIDAY_YEAR = void 0;
7
7
  const helpers_1 = __importDefault(require("./helpers"));
8
8
  const holidays_1 = __importDefault(require("./holidays"));
9
- // 1984 is the year when the current holidays scheme is enforced
10
- // http://www.alcaldiabogota.gov.co/sisjur/normas/Norma1.jsp?i=4954
11
- exports.FIRST_HOLIDAY_YEAR = 1984;
12
- // The pascua package calculates Easter until 4099.
9
+ // pascua package year limits
10
+ exports.FIRST_HOLIDAY_YEAR = 1583;
13
11
  exports.LAST_HOLIDAY_YEAR = 4099;
14
12
  function colombianHolidays(year = new Date().getFullYear()) {
15
13
  if (year < exports.FIRST_HOLIDAY_YEAR || year > exports.LAST_HOLIDAY_YEAR) {
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,wDAAmC;AACnC,0DAAkC;AAGlC,gEAAgE;AAChE,mEAAmE;AACtD,QAAA,kBAAkB,GAAG,IAAI,CAAC;AAEvC,mDAAmD;AACtC,QAAA,iBAAiB,GAAG,IAAI,CAAC;AAEtC,SAAS,iBAAiB,CACxB,OAAe,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;IAEvC,IAAI,IAAI,GAAG,0BAAkB,IAAI,IAAI,GAAG,yBAAiB,EAAE;QACzD,MAAM,IAAI,KAAK,CACb,8BAA8B,0BAAkB,QAAQ,yBAAiB,EAAE,CAC5E,CAAC;KACH;IAED,OAAO,kBAAQ;SACZ,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,IAAA,iBAAU,EAAC,OAAO,EAAE,IAAI,CAAC,CAAC;SAC3C,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC;AACxE,CAAC;AAED,kBAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,wDAAmC;AACnC,0DAAkC;AAGlC,6BAA6B;AAChB,QAAA,kBAAkB,GAAG,IAAI,CAAC;AAC1B,QAAA,iBAAiB,GAAG,IAAI,CAAC;AAEtC,SAAS,iBAAiB,CACxB,OAAe,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;IAEvC,IAAI,IAAI,GAAG,0BAAkB,IAAI,IAAI,GAAG,yBAAiB,EAAE;QACzD,MAAM,IAAI,KAAK,CACb,8BAA8B,0BAAkB,QAAQ,yBAAiB,EAAE,CAC5E,CAAC;KACH;IAED,OAAO,kBAAQ;SACZ,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,IAAA,iBAAU,EAAC,OAAO,EAAE,IAAI,CAAC,CAAC;SAC3C,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC;AACxE,CAAC;AAED,kBAAe,iBAAiB,CAAC"}
package/lib/types.d.ts CHANGED
@@ -12,4 +12,4 @@ export interface ColombianHoliday extends BasicHoliday {
12
12
  date: string;
13
13
  celebrationDate: string;
14
14
  }
15
- export declare type Holiday = DateHoliday | EasterHoliday;
15
+ export type Holiday = DateHoliday | EasterHoliday;
package/lib/utils.d.ts ADDED
@@ -0,0 +1 @@
1
+ export declare function isHoliday(date: Date): boolean;
package/lib/utils.js ADDED
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.isHoliday = void 0;
7
+ const _1 = __importDefault(require("."));
8
+ function isHoliday(date) {
9
+ return (0, _1.default)(date.getUTCFullYear()).some(({ celebrationDate }) => {
10
+ const d = new Date(celebrationDate);
11
+ return (d.getUTCDate() === date.getUTCDate() &&
12
+ d.getUTCMonth() === date.getUTCMonth() &&
13
+ d.getUTCFullYear() === date.getUTCFullYear());
14
+ });
15
+ }
16
+ exports.isHoliday = isHoliday;
17
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;;;;AAAA,yCAAkC;AAElC,SAAgB,SAAS,CAAC,IAAU;IAClC,OAAO,IAAA,UAAiB,EAAC,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC,IAAI,CAClD,CAAC,EAAE,eAAe,EAAE,EAAE,EAAE;QACtB,MAAM,CAAC,GAAG,IAAI,IAAI,CAAC,eAAe,CAAC,CAAC;QACpC,OAAO,CACL,CAAC,CAAC,UAAU,EAAE,KAAK,IAAI,CAAC,UAAU,EAAE;YACpC,CAAC,CAAC,WAAW,EAAE,KAAK,IAAI,CAAC,WAAW,EAAE;YACtC,CAAC,CAAC,cAAc,EAAE,KAAK,IAAI,CAAC,cAAc,EAAE,CAC7C,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC;AAXD,8BAWC"}
package/package.json CHANGED
@@ -1,21 +1,19 @@
1
1
  {
2
2
  "name": "colombian-holidays",
3
- "version": "1.7.7",
3
+ "version": "1.8.1",
4
4
  "description": "Colombian holidays",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
7
7
  "format": "prettier --write .",
8
8
  "lint": "eslint . --ext .ts --fix",
9
9
  "test": "jest --coverage",
10
- "build": "tsc",
11
- "postinstall": "git config core.hooksPath .githooks || true",
12
- "prepare": "git config core.hooksPath .githooks || true"
10
+ "build": "tsc"
13
11
  },
14
12
  "license": "MIT",
15
13
  "bugs": {
16
14
  "url": "https://github.com/MauricioRobayo/colombian-holidays/issues"
17
15
  },
18
- "homepage": "https://www.mauriciorobayo.com/colombian-holidays",
16
+ "homepage": "https://github.com/MauricioRobayo/colombian-holidays",
19
17
  "author": "Mauricio Robayo <rfmajo@gmail.com> (https://www.mauriciorobayo.com)",
20
18
  "keywords": [
21
19
  "Colombian holidays",
@@ -25,16 +23,12 @@
25
23
  "Holidays"
26
24
  ],
27
25
  "devDependencies": {
28
- "@commitlint/cli": "^16.2.4",
29
- "@commitlint/config-conventional": "^16.2.4",
30
26
  "@types/jest": "^27.4.1",
31
27
  "@typescript-eslint/eslint-plugin": "^5.21.0",
32
28
  "@typescript-eslint/parser": "^5.21.0",
33
29
  "eslint": "^8.14.0",
34
30
  "jest": "^27.0.1",
35
- "lint-staged": "^12.4.1",
36
31
  "prettier": "^2.6.2",
37
- "semantic-release": "^19.0.2",
38
32
  "timezone-mock": "^1.3.1",
39
33
  "ts-jest": "^27.1.4",
40
34
  "typescript": "^4.6.4"
@@ -49,20 +43,6 @@
49
43
  "type": "git",
50
44
  "url": "https://github.com/MauricioRobayo/colombian-holidays.git"
51
45
  },
52
- "lint-staged": {
53
- "src/**/*.js": [
54
- "eslint --fix",
55
- "jest --bail --findRelatedTests"
56
- ],
57
- "**/*.{ts,md}": [
58
- "prettier --write"
59
- ]
60
- },
61
- "commitlint": {
62
- "extends": [
63
- "@commitlint/config-conventional"
64
- ]
65
- },
66
46
  "release": {
67
47
  "branches": [
68
48
  "main"