Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump eluceo/ical from 0.16.1 to 2.9.0 #62

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Dec 26, 2022

Bumps eluceo/ical from 0.16.1 to 2.9.0.

Release notes

Sourced from eluceo/ical's releases.

2.9.0

Changed

  • Add missing return types and missing template annotations #472
  • Added @implements IteratorAggregate<Event> to \Eluceo\iCal\Domain\Collection\Events
  • Added @implements IteratorAggregate<ContentLine> to \Eluceo\iCal\Presentation\Component
  • Added @return Traversable<ContentLine> to \Eluceo\iCal\Presentation\Component::getIterator
  • Fix EmailAddress value object: do not url encode email addresses #479

2.8.0

Added

  • Support chaining of Calendar.setPublishedTTL() #452
  • Support PHP 8.2 #470

2.7.0

Added

  • Support X-PUBLISHED-TTL property on calendars #413

2.6.0

Added

  • Support status property on events #422
  • Support categories property on events #421

2.5.1

Fixed

  • Deprecation message occuring on an OOTB Symfony 5.4 on PHP 7.4 #382

2.5.0

Added

  • Support PHP 8.1

2.4.0

Added

  • Support symfony/deprecation-contracts version 3 #354
  • Event Attendee property #333

Fixed

  • PHPStan complains about wrongly typed hinted constructor argument of Calendar class. #281

2.3.0

Added

  • Event URL property #314

... (truncated)

Changelog

Sourced from eluceo/ical's changelog.

[2.9.0] - 2022-12-23

Changed

  • Add missing return types and missing template annotations #472
    • Added @implements IteratorAggregate<Event> to \Eluceo\iCal\Domain\Collection\Events
    • Added @implements IteratorAggregate<ContentLine> to \Eluceo\iCal\Presentation\Component
    • Added @return Traversable<ContentLine> to \Eluceo\iCal\Presentation\Component::getIterator
  • Fix EmailAddress value object: do not url encode email addresses #479

[2.8.0] - 2022-12-22

Added

  • Support chaining of Calendar::setPublishedTTL() #452
  • Support PHP 8.2 #470

[2.7.0] - 2022-06-21

Added

  • Support X-PUBLISHED-TTL property on calendars #413

[2.6.0] - 2022-06-17

Added

  • Support status property on events #422
  • Support categories property on events #421

[2.5.1] - 2022-04-26

Fixed

  • Deprecation message occuring on an OOTB Symfony 5.4 on PHP 7.4 #382

[2.5.0] - 2022-02-13

Added

  • Support PHP 8.1

[2.4.0] - 2021-12-13

Added

  • Support symfony/deprecation-contracts version 3 #354
  • Event Attendee property #333

Fixed

... (truncated)

Upgrade guide

Sourced from eluceo/ical's upgrade guide.

Upgrade from 0.16.* to 2.0

The fundamental change in version 2 two is the separation between presentation and domain layers.

This library was created with the goal that the user should know as little as possible about the iCal standard and still be able to create usable iCal files.

Example Upgrade

Given you have the following Code from version 0.16.*:

$vEvent = new \Eluceo\iCal\Component\Event();
$vEvent
->setDtStart(new \DateTime('2012-12-24'))
->setDtEnd(new \DateTime('2012-12-24'))
->setNoTime(true)
->setSummary('Christmas')
;
$vCalendar = new \Eluceo\iCal\Component\Calendar('www.example.com');
$vCalendar->addComponent($vEvent);
header('Content-Type: text/calendar; charset=utf-8');
header('Content-Disposition: attachment; filename="cal.ics"');
echo $vCalendar->render();

The code will be structured very similar. In version 0.16.*, the event could be sent to output directly. In contrast, in version 2, the domain object must first be passed to a factory that creates the iCal presentation.

The above code will look like the following after upgrading to version 2.

// 1. Create Event domain entity
$event = (new Eluceo\iCal\Domain\Entity\Event())
    ->setSummary('Christmas Eve')
    ->setDescription('Lorem Ipsum Dolor...')
    ->setOccurrence(
        new Eluceo\iCal\Domain\ValueObject\SingleDay(
            new Eluceo\iCal\Domain\ValueObject\Date(
                \DateTimeImmutable::createFromFormat('Y-m-d', '2012-12-24')
            )
        )
    );
// 2. Create Calendar domain entity
$calendar = new Eluceo\iCal\Domain\Entity\Calendar([$event]);
</tr></table>

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [eluceo/ical](https://github.com/markuspoerschke/iCal) from 0.16.1 to 2.9.0.
- [Release notes](https://github.com/markuspoerschke/iCal/releases)
- [Changelog](https://github.com/markuspoerschke/iCal/blob/2.x/CHANGELOG.md)
- [Upgrade guide](https://github.com/markuspoerschke/iCal/blob/2.x/UPGRADE.md)
- [Commits](markuspoerschke/iCal@0.16.1...2.9.0)

---
updated-dependencies:
- dependency-name: eluceo/ical
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file php Pull requests that update Php code labels Dec 26, 2022
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Jan 18, 2023

Superseded by #64.

@dependabot dependabot bot closed this Jan 18, 2023
@dependabot dependabot bot deleted the dependabot/composer/eluceo/ical-2.9.0 branch January 18, 2023 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file php Pull requests that update Php code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants