- Converted async arrow functions to traditional function declarations for consistency
- Updated and to use syntax
- Maintained overall functionality while improving readability and alignment with preferred style
- Resolved calendar merging error where ICAL.js rejected formatted date-time strings by refactoring and initialization to use for accurate timezone conversion.
- Updated and to receive ICAL.Time objects directly, ensuring proper format consistency and timezone handling in event components.
- Updated the handling of start and end dates in the addEventsToCalendar function.
- Added validation checks directly on startDate and endDate to ensure they are valid before updating event properties.
- Improved logging for better traceability of event addition and date handling.
Note: The changes are intended to enhance the handling of date properties, but further testing is required to ensure full functionality.
- transition event processing from ical-generator to ical.js
- add logging for event addition to calendar component
- preserve event details (uid, summary, start, end) in new event components
- replace ical-generator with ical.js for VCALENDAR creation
- add logging for component creation process
- set component metadata (prodid, version, name) using ical.js
- Relocated the expected_output directory to temp_test_calendar for better organization.
- Simplified test structure by consolidating test-related files within the temporary directory.
- Improved clarity and maintainability of test resources.
- Ensured the server is properly closed before executing cleanup.
- Added a delay to allow for the release of any lingering file handles.
- Enhanced the cleanup logic to safely remove the merged calendars directory after tests.
- Prevented potential EBUSY errors during directory removal.
- Updated MERGED_CALENDARS_DIR to use path.join for consistent path resolution.
- Ensured that the directory is correctly set to 'temp_test_calendar' during tests and 'calendar' in production.