Skip to content

Fix EnhancedCalendar.getEventsInRange breaking parent API contract #36

@thedhanawada

Description

@thedhanawada

Bug

EnhancedCalendar.getEventsInRange() overrides the parent Calendar.getEventsInRange() and changes the return type from synchronous Event[] to async plain objects. This is a Liskov Substitution violation — callers expecting the parent API get broken behavior.

Expected

Maintain the same return type and behavior as the parent class. If async is needed, use a different method name.

Location

core/integration/EnhancedCalendar.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    phase:0-foundationImmediate fixes and test infrastructurepriority:highImportant for next milestonetype:bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions