diff --git a/package.json b/package.json index 86e33b5..5fcc8c2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hebcal/icalendar", - "version": "4.14.4", + "version": "4.14.5", "author": "Michael J. Radwin (https://github.com/mjradwin)", "keywords": [ "ical", @@ -24,8 +24,8 @@ "url": "https://github.com/hebcal/hebcal-icalendar/issues" }, "dependencies": { - "@hebcal/core": "^3.27.0", - "@hebcal/rest-api": "^3.8.6" + "@hebcal/core": "^3.29.1", + "@hebcal/rest-api": "^3.9.0" }, "scripts": { "build": "rollup -c", diff --git a/src/icalendar.spec.js b/src/icalendar.spec.js index 5095da0..d33ea39 100644 --- a/src/icalendar.spec.js +++ b/src/icalendar.spec.js @@ -243,6 +243,27 @@ test('eventsToIcalendar', async (t) => { t.deepEqual(lines, expected); }); +test('subscribe-suppress-title-years', async (t) => { + const options = { + year: 2026, + month: 2, + sedrot: true, + candlelighting: true, + location: Location.lookup('Hawaii'), + }; + const events = HebrewCalendar.calendar(options); + options.prodid = 'X'; + options.subscribe = '1'; + const ical = await eventsToIcalendar(events, options); + const lines = ical.split('\r\n'); + t.is(findLine(lines, 'X-WR-CALNAME'), 'Hebcal Hawaii'); + + options.subscribe = false; + const ical2 = await eventsToIcalendar(events, options); + const lines2 = ical2.split('\r\n'); + t.is(findLine(lines2, 'X-WR-CALNAME'), 'Hebcal Hawaii February 2026'); +}); + test('eventsToIcalendar-no-vtimezone', async (t) => { const options = { year: 2020,