Improved
2.0-alpha.1
What's Changed
- ICS: allow PRODID customization by @alies-dev
- Use native types, finalize classes by @alies-dev in https://github.com/spatie/calendar-links/pull/171
- Bump min PHP version to 8.1 by @alies-dev in https://github.com/spatie/calendar-links/pull/171
- Privatize more methods and properties by @alies-dev in https://github.com/spatie/calendar-links/pull/189
BC breaks
API changes:
Link::create(...)doesn't have a 4th parameter to declare event as a full-day. Instead, useLink::createAllDay(...)
If you extended classes from the package or used non-private members directly, these BC changes may be breaking for you:
- REMOVED: Method
Spatie\CalendarLinks\Link#__get()was removed - CHANGED: Type of property
Spatie\CalendarLinks\Link#$titlechanged from having no type to string - CHANGED: Type of property
Spatie\CalendarLinks\Link#$fromchanged from having no type toDateTimeImmutable - CHANGED: Type of property
Spatie\CalendarLinks\Link#$tochanged from having no type toDateTimeImmutable - CHANGED: Type of property
Spatie\CalendarLinks\Link#$descriptionchanged from having no type to string - CHANGED: Property
Spatie\CalendarLinks\Link#$descriptionchanged default value from NULL to '' - CHANGED: Type of property
Spatie\CalendarLinks\Link#$allDaychanged from having no type to bool - CHANGED: Type of property
Spatie\CalendarLinks\Link#$addresschanged from having no type to string - CHANGED: Property
Spatie\CalendarLinks\Link#$addresschanged default value from NULL to '' - CHANGED: Method
__construct()of classSpatie\CalendarLinks\Linkbecame final - CHANGED: The return type of
Spatie\CalendarLinks\Link::create()changed from no type to static - CHANGED: The return type of
Spatie\CalendarLinks\Link::createAllDay()changed from self to the non-covariant static - CHANGED: The return type of
Spatie\CalendarLinks\Link::createAllDay()changed from self to static - CHANGED: Parameter 1 of
Spatie\CalendarLinks\Link::createAllDay()changed name from fromDate to from - CHANGED: The return type of
Spatie\CalendarLinks\Link#description()changed from no type to static - CHANGED: The return type of
Spatie\CalendarLinks\Link#address()changed from no type to static - REMOVED: Method
Spatie\CalendarLinks\Exceptions\InvalidLink::invalidDateRange()was removed - REMOVED: Property
Spatie\CalendarLinks\Generators\Yahoo#$dateFormatwas removed - REMOVED: Property
Spatie\CalendarLinks\Generators\Yahoo#$dateTimeFormatwas removed - CHANGED: Class
Spatie\CalendarLinks\Generators\WebOfficebecame final - REMOVED: Constant
Spatie\CalendarLinks\Generators\WebOffice::BASE_URLwas removed - REMOVED: Property
Spatie\CalendarLinks\Generators\BaseOutlook#$dateFormatwas removed - REMOVED: Property
Spatie\CalendarLinks\Generators\BaseOutlook#$dateTimeFormatwas removed - REMOVED: Property
Spatie\CalendarLinks\Generators\BaseOutlook#$urlParameterswas removed - CHANGED: Constant
Spatie\CalendarLinks\Generators\WebOffice::BASE_URLvisibility reduced from protected to private - CHANGED: Method baseUrl() of class
Spatie\CalendarLinks\Generators\WebOfficevisibility reduced from public to protected - CHANGED: Type of property
Spatie\CalendarLinks\Generators\Ics#$dateFormatchanged from having no type to string - CHANGED: Type of property
Spatie\CalendarLinks\Generators\Ics#$dateTimeFormatchanged from having no type to string - CHANGED: Type of property
Spatie\CalendarLinks\Generators\Ics#$optionschanged from having no type to array - REMOVED: Property
Spatie\CalendarLinks\Generators\BaseOutlook#$dateFormatwas removed - REMOVED: Property
Spatie\CalendarLinks\Generators\BaseOutlook#$dateTimeFormatwas removed - CHANGED: Method baseUrl() of class
Spatie\CalendarLinks\Generators\BaseOutlookvisibility reduced from public to protected - CHANGED: Class
Spatie\CalendarLinks\Generators\WebOutlookbecame final - REMOVED: Constant
Spatie\CalendarLinks\Generators\WebOutlook::BASE_URLwas removed - REMOVED: Property
Spatie\CalendarLinks\Generators\BaseOutlook#$dateFormatwas removed - REMOVED: Property
Spatie\CalendarLinks\Generators\BaseOutlook#$dateTimeFormatwas removed - REMOVED: Property
Spatie\CalendarLinks\Generators\BaseOutlook#$urlParameterswas removed - CHANGED: Constant
Spatie\CalendarLinks\Generators\WebOutlook::BASE_URLvisibility reduced from protected to private - CHANGED: Method baseUrl() of class
Spatie\CalendarLinks\Generators\WebOutlookvisibility reduced from public to protected - REMOVED: Property
Spatie\CalendarLinks\Generators\Google#$dateFormatwas removed - REMOVED: Property
Spatie\CalendarLinks\Generators\Google#$dateTimeFormatwas removed
Full Changelog: https://github.com/spatie/calendar-links/compare/1.11.0...2.0-alpha.1