@hebcal/core 4.0.0 → 4.0.2

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/hebcal.d.ts CHANGED
@@ -126,10 +126,12 @@ declare module '@hebcal/core' {
126
126
  * Renders this Hebrew date as a translated or transliterated string,
127
127
  * including ordinal e.g. `'15th of Cheshvan, 5769'`.
128
128
  * @param [locale] Optional locale name (defaults to active locale).
129
+ * @param [showYear] Display year (defaults to `true`).
129
130
  */
130
- render(locale?: string): number;
131
+ render(locale?: string, showYear?: boolean): number;
131
132
  /**
132
133
  * Renders this Hebrew date in Hebrew gematriya, regardless of locale.
134
+ * @param [suppressNikud] suppress nekudot (defaults to `false`).
133
135
  */
134
136
  renderGematriya(suppressNikud?: boolean): string;
135
137
 
@@ -982,6 +984,7 @@ declare module '@hebcal/core' {
982
984
  constructor(date: HDate, desc: string, mask: number, eventTime: Date, location: Location, linkedEvent?: Event);
983
985
  render(locale?: string): string;
984
986
  renderBrief(locale?: string): string;
987
+ getCategories(): string[];
985
988
  readonly eventTime: Date;
986
989
  readonly location: Location;
987
990
  readonly eventTimeStr: string;
@@ -1011,6 +1014,7 @@ declare module '@hebcal/core' {
1011
1014
  url(): string;
1012
1015
  urlDateSuffix(): string;
1013
1016
  getEmoji(): string;
1017
+ getCategories(): string[];
1014
1018
  readonly cholHaMoedDay?: number;
1015
1019
  readonly startEvent?: TimedEvent;
1016
1020
  readonly endEvent?: TimedEvent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hebcal/core",
3
- "version": "4.0.0",
3
+ "version": "4.0.2",
4
4
  "author": "Michael J. Radwin (https://github.com/mjradwin)",
5
5
  "contributors": [
6
6
  "Eyal Schachter (https://github.com/Scimonster)",
@@ -67,24 +67,24 @@
67
67
  "verbose": true
68
68
  },
69
69
  "devDependencies": {
70
- "@babel/core": "^7.21.4",
71
- "@babel/preset-env": "^7.21.4",
70
+ "@babel/core": "^7.21.8",
71
+ "@babel/preset-env": "^7.21.5",
72
72
  "@babel/register": "^7.21.0",
73
73
  "@hebcal/solar-calc": "^1.1.2",
74
74
  "@rollup/plugin-babel": "^6.0.3",
75
- "@rollup/plugin-commonjs": "^24.1.0",
75
+ "@rollup/plugin-commonjs": "^25.0.0",
76
76
  "@rollup/plugin-json": "^6.0.0",
77
77
  "@rollup/plugin-node-resolve": "^15.0.2",
78
78
  "@rollup/plugin-terser": "^0.4.1",
79
79
  "ava": "^5.2.0",
80
80
  "codecov": "^3.8.3",
81
- "core-js": "^3.30.1",
82
- "eslint": "^8.39.0",
81
+ "core-js": "^3.30.2",
82
+ "eslint": "^8.40.0",
83
83
  "eslint-config-google": "^0.14.0",
84
84
  "jsdoc": "^4.0.2",
85
85
  "jsdoc-to-markdown": "^8.0.0",
86
86
  "nyc": "^15.1.0",
87
- "rollup": "^3.21.0",
87
+ "rollup": "^3.21.7",
88
88
  "ttag-cli": "^1.10.5"
89
89
  }
90
90
  }