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

chore(deps-dev): Update veewee/xml requirement from ^2.6 to ^3.0 #95

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 15, 2024

Updates the requirements on veewee/xml to permit the latest version.

Release notes

Sourced from veewee/xml's releases.

Version 3.0.0

What's Changed

Breaking changes

This new version introduces 1 breaking change in the Reader component:

Reader

Instead of providing the results as a string, this string are now wrapped with a MatchingNode. This allows us to also provide information like the matched NodeSequence and some shortcut functions for converting this XML into a DOM Document or decoded version of the XML.

If you are using the Reader of v2, you will have to change your implementation to support the MatchingNode instead of the string result from previous version.

An example:

use VeeWee\Xml\Dom\Configurator;
use VeeWee\Xml\Reader\Signal;
use function VeeWee\Xml\Reader\Matcher\element_name;
use function VeeWee\Xml\Reader\Matcher\sequence;
$xml = <<<XML
<container xmlns="http://symfony.com/schema/dic/services" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/services https://symfony.com/schema/dic/services/services-1.0.xsd">
<services>
<service id="service_container" class="Symfony\Component\DependencyInjection\ContainerInterface" public="true" synthetic="true"/>
<service id="kernel" class="TicketSwap\Kernel" public="true" synthetic="true" autoconfigure="true">
<tag xmlns="http://symfony.com/schema/dic/tag-1" name="controller.service_arguments">1</tag>
<tag xmlns="http://symfony.com/schema/dic/tag-2"  name="routing.route_loader">2</tag>
</service>
</services>
</container>
XML;
$reader = VeeWee\Xml\Reader\Reader::fromXmlString($xml);
$signal = new Signal();
foreach ($reader->provide(element_name('tag'), $signal) as $tag) {
// New result of the reader is now a DTO that contains both the XML and node sequence.
var_dump(
// This is the previous matched XML string
$tag->xml(),
// Contains a match function so that you can run a secondary matcher on the result.
// Can be handy if you are matching on multiple paths in one read for example.
$tag->matches(sequence(
</tr></table>

... (truncated)

Commits
  • 90affd5 Merge pull request #68 from veewee/drop-deprecations
  • d102ab0 Improve opcode cachability for autoloading
  • bb3ff4e Drop deprecations
  • 1770824 Merge pull request #66 from veewee/reader-improvements
  • 143c565 Merge pull request #67 from veewee/shortcut-functions
  • eaba15b Add stringify and document element shortcuts to XML Document
  • 54bb7ec Add reader MatchingNode results and a signal to stop reading
  • 3172e96 Merge pull request #65 from veewee/writer-improvements
  • e85cb58 Improve writer implementation
  • 78a4ba4 Merge pull request #63 from veewee/php83
  • Additional commits viewable in compare view

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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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)

Updates the requirements on [veewee/xml](https://github.com/veewee/xml) to permit the latest version.
- [Release notes](https://github.com/veewee/xml/releases)
- [Commits](veewee/xml@2.6.0...3.0.0)

---
updated-dependencies:
- dependency-name: veewee/xml
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies php Pull requests that update Php code labels Jan 15, 2024
Copy link
Contributor Author

dependabot bot commented on behalf of github Jan 30, 2024

Superseded by #96.

@dependabot dependabot bot closed this Jan 30, 2024
@dependabot dependabot bot deleted the dependabot/composer/veewee/xml-tw-3.0 branch January 30, 2024 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies php Pull requests that update Php code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants