@hebcal/leyning 8.2.8 → 9.0.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.
Files changed (48) hide show
  1. package/dist/bundle.js +1671 -2132
  2. package/dist/bundle.min.js +2 -2
  3. package/dist/esm/aliyot.json.js +4 -0
  4. package/dist/esm/calculateHaftarahNumVerses.d.ts +1 -0
  5. package/dist/esm/clone.d.ts +12 -0
  6. package/dist/esm/clone.js +32 -0
  7. package/dist/esm/common.d.ts +33 -0
  8. package/dist/esm/common.js +94 -0
  9. package/dist/esm/csv.d.ts +14 -0
  10. package/dist/esm/festival.d.ts +9 -0
  11. package/dist/esm/festival.js +42 -0
  12. package/dist/esm/getLeyningForHoliday.d.ts +17 -0
  13. package/dist/esm/getLeyningForHoliday.js +106 -0
  14. package/dist/esm/getLeyningKeyForEvent.d.ts +9 -0
  15. package/dist/esm/getLeyningKeyForEvent.js +141 -0
  16. package/dist/esm/getLeyningOnDate.d.ts +21 -0
  17. package/dist/esm/getLeyningOnDate.js +134 -0
  18. package/dist/esm/he.po.d.ts +61 -0
  19. package/dist/esm/he.po.js +4 -0
  20. package/dist/esm/holiday-readings.json.js +4 -0
  21. package/dist/esm/index.d.ts +11 -0
  22. package/dist/esm/index.js +12 -0
  23. package/dist/esm/internalTypes.d.ts +20 -0
  24. package/dist/esm/leyning.d.ts +30 -0
  25. package/dist/esm/leyning.js +203 -0
  26. package/dist/esm/locale.d.ts +2 -0
  27. package/dist/esm/locale.js +17 -0
  28. package/dist/esm/numverses.json.js +4 -0
  29. package/dist/esm/specialReadings.d.ts +15 -0
  30. package/dist/esm/specialReadings.js +142 -0
  31. package/dist/esm/summary.d.ts +18 -0
  32. package/dist/esm/summary.js +83 -0
  33. package/dist/esm/types.d.ts +130 -0
  34. package/dist/getLeyningForHoliday.d.ts +1 -1
  35. package/dist/getLeyningKeyForEvent.d.ts +1 -1
  36. package/dist/getLeyningOnDate.d.ts +1 -1
  37. package/dist/he.po.d.ts +61 -0
  38. package/dist/index.cjs +65 -2131
  39. package/dist/index.d.ts +1 -1
  40. package/dist/leyning.d.ts +1 -1
  41. package/dist/locale.d.ts +2 -0
  42. package/dist/specialReadings.d.ts +1 -1
  43. package/package.json +30 -15
  44. package/dist/aliyot.json.d.ts +0 -1570
  45. package/dist/holiday-readings.json.d.ts +0 -2636
  46. package/dist/index.mjs +0 -3005
  47. package/dist/module.d.ts +0 -325
  48. package/dist/numverses.json.d.ts +0 -36
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './types';
2
+ export * from './locale';
2
3
  export * from './common';
3
4
  export * from './summary';
4
5
  export * from './festival';
@@ -7,5 +8,4 @@ export * from './specialReadings';
7
8
  export * from './getLeyningForHoliday';
8
9
  export * from './leyning';
9
10
  export { getLeyningOnDate } from './getLeyningOnDate';
10
- export { writeFullKriyahCsv, writeCsvLines, writeHolidayMincha, StringToBoolMap, getParshaDates, } from './csv';
11
11
  export * from './clone';
package/dist/leyning.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Event } from '@hebcal/core';
1
+ import { Event } from '@hebcal/core/dist/esm/event';
2
2
  import { AliyotMap, Leyning, LeyningNames, ParshaMeta } from './types';
3
3
  /**
4
4
  * Transliterated English and Hebrew names of this parsha
@@ -0,0 +1,2 @@
1
+ import { Locale } from '@hebcal/core/dist/esm/locale';
2
+ export { Locale };
@@ -1,4 +1,4 @@
1
- import { HDate } from '@hebcal/core';
1
+ import { HDate } from '@hebcal/hdate';
2
2
  import { AliyotMap, SpecialReading } from './types';
3
3
  /**
4
4
  * Determines if the regular parashat haShavua coincides with an event that requires
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hebcal/leyning",
3
- "version": "8.2.8",
3
+ "version": "9.0.0",
4
4
  "author": "Michael J. Radwin (https://github.com/mjradwin)",
5
5
  "keywords": [
6
6
  "hebcal",
@@ -20,9 +20,12 @@
20
20
  "module": "./dist/index.mjs",
21
21
  "type": "module",
22
22
  "exports": {
23
- "import": "./dist/index.mjs",
24
- "require": "./dist/index.cjs",
25
- "types": "./dist/module.d.ts"
23
+ ".": {
24
+ "import": "./dist/esm/index.js",
25
+ "require": "./dist/index.cjs",
26
+ "types": "./dist/esm/index.d.ts"
27
+ },
28
+ "./dist/esm/*": "./dist/esm/*.js"
26
29
  },
27
30
  "repository": {
28
31
  "type": "git",
@@ -31,7 +34,7 @@
31
34
  "bugs": {
32
35
  "url": "https://github.com/hebcal/hebcal-leyning/issues"
33
36
  },
34
- "typings": "dist/module.d.ts",
37
+ "typings": "dist/es/index.d.ts",
35
38
  "files": [
36
39
  "dist",
37
40
  "bin"
@@ -40,13 +43,16 @@
40
43
  "leyning-csv": "bin/leyning-csv"
41
44
  },
42
45
  "dependencies": {
43
- "@hebcal/core": "^5.5.2",
44
- "tslib": "^2.8.0"
46
+ "@hebcal/core": "^5.7.6",
47
+ "@hebcal/hdate": "^0.11.6",
48
+ "tslib": "^2.8.1"
45
49
  },
46
50
  "scripts": {
51
+ "po2json": "node ./po2json.cjs po/he.po",
52
+ "size-demo:rollup": "rollup -c size-demo/rollup.config.ts --configPlugin typescript",
53
+ "size-demo": "npm run build && npm run size-demo:rollup",
47
54
  "build:rollup": "rollup -c",
48
- "build:json2js": "for f in src/*.json; do echo 'export default' > $f.ts && cat $f >> $f.ts; done",
49
- "build": "npm run build:json2js && npm run build:rollup",
55
+ "build": "npm run po2json && npm run build:rollup",
50
56
  "prepublish": "npm run build",
51
57
  "docs": "typedoc",
52
58
  "pretest": "npm run build",
@@ -57,6 +63,11 @@
57
63
  "fix": "gts fix"
58
64
  },
59
65
  "license": "BSD-2-Clause",
66
+ "overrides": {
67
+ "babel-plugin-ttag@1.8.16": {
68
+ "babel-plugin-macros": "3.1.0"
69
+ }
70
+ },
60
71
  "devDependencies": {
61
72
  "@babel/preset-env": "^7.26.0",
62
73
  "@babel/preset-typescript": "^7.26.0",
@@ -66,13 +77,17 @@
66
77
  "@rollup/plugin-terser": "^0.4.4",
67
78
  "@rollup/plugin-typescript": "^12.1.1",
68
79
  "@types/jest": "^29.5.14",
69
- "@types/node": "^22.8.4",
70
- "gts": "^6.0.2",
80
+ "@types/node": "^22.9.0",
81
+ "gts": "^5.3.1",
71
82
  "jest": "^29.7.0",
72
- "rollup": "^4.24.3",
73
- "rollup-plugin-dts": "^6.1.1",
83
+ "rollup": "^4.24.4",
84
+ "@rollup/plugin-babel": "^6.0.4",
85
+ "pretty-bytes": "^6.1.1",
86
+ "rollup-plugin-bundle-size": "^1.0.3",
87
+ "rollup-plugin-visualizer": "^5.12.0",
74
88
  "ts-jest": "^29.2.5",
75
- "typedoc": "^0.26.10",
89
+ "ttag-cli": "^1.10.12",
90
+ "typedoc": "^0.26.11",
76
91
  "typescript": "^5.6.3"
77
92
  }
78
- }
93
+ }