Support Windows Timezones#193
Merged
Merged
Conversation
…ocess VEVENTS if ical-node throws a "TypeError: N.startsWith is not a function" error
|
Caution Review failedThe pull request is closed. WalkthroughAdds a timezone update script and npm entry, introduces ICS preprocessing to map Windows to IANA timezones with retry-on-error parsing, generates mapping artifacts, and adds extensive tests validating Microsoft timezone handling and mapping coverage. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Caller
participant ICS as parseIcs
participant NodeIcal as node-ical.parseICS
participant Pre as Preprocessor (Windows→IANA)
Caller->>ICS: parseIcs(ics)
ICS->>NodeIcal: parseICS(ics)
alt Parse succeeds
NodeIcal-->>ICS: events
ICS-->>Caller: events
else TypeError with TZID (e.g., tz.startsWith)
ICS->>Pre: preprocess(ics) // rewrite Windows TZIDs to IANA
Pre-->>ICS: ics'
ICS->>NodeIcal: parseICS(ics')
alt Retry succeeds
NodeIcal-->>ICS: events
ICS-->>Caller: events
else Retry fails
ICS-->>Caller: throw combined error
end
else Other errors
ICS-->>Caller: rethrow error
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (3)
📒 Files selected for processing (4)
Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#192 - Add a task to down Official Unicode CLDR Mappings. Use them to pre-process VEVENTS if ical-node throws a "TypeError: N.startsWith is not a function" error
Summary by CodeRabbit
New Features
Bug Fixes
Tests
Chores