Skip to content

[Dependabot] Update rawr/cross-data-providers requirement from 2.4.0 to 3.0.0 #1218

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

Closed

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 26, 2025

Updates the requirements on rawr/cross-data-providers to permit the latest version.

Release notes

Sourced from rawr/cross-data-providers's releases.

New editing features

In march this years, we started rewriting the library, inspired by one of our contributors pull requests: t-regx/phpunit-data-provider#54. As always, it appeared to be a weekend job, but took 5 months. We had 3 iterations of revamps of the library, swaping features, checking what works and what doesn't. The orginal gist of the library stays the same of course - seamless usage of PhpUnit data providers, but now with super powers.

This is what we came up with:

DataProvider::list() DataProvider::join() DataProvider::zip() DataProvider::cross() DataProvider::pairs() DataProvider::of() DataProvider::tuples() DataProvider::dictionary()

Additionally: all DataProvider accepts iterable, properly names each row, always preserves duplicates, differentiates between types (int 4 and string "4") and uses helpful exception messages

The changes are released as 3.0.0 and can be used right away.

We're excited to see how the new library will be used!

Migration from previous version

To use version 3.0.0, migrating from 2.4.0 or earlier:

  • Library namespace changed from \TRegx\DataProvider\ to \TRegx\PhpUnit\DataProviders\ .
  • Change \TRegx\DataProvider\DataProviders::cross() to \TRegx\PhpUnit\DataProviders\DataProvider::cross().
  • Change \TRegx\DataProvider\CrossDataProviders::cross() to \TRegx\PhpUnit\DataProviders\DataProvider::cross().
  • Change your data providers return type from array to iterable or \TRegx\PhpUnit\DataProviders\DataProvider.
  • Removed \TRegx\DataProvider\CrossDataProviders::builder(), use \TRegx\PhpUnit\DataProviders\DataProvider::cross() instead.
Commits
  • da2295a Publish package as "rawr/phpunit-data-provider"
  • 3c891f3 Add #[\ReturnTypeWillChange] to Iterator in tests
  • bb9911f Add .gitattributes
  • f401aba Accept duplicate keys in input iterable
  • 940d809 Include current type in exception message
  • a6ca76f Reindex second column when the first column is shorter
  • ff5bba2 Throw IrregularDataProviderException for jagged data providers
  • 856a73a Nested data providers are being invoked only once
  • b04cb2f .cross() associates sequential keys separately for each column
  • bdf9bd4 Format similar keys distinctly
  • 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 [rawr/cross-data-providers](https://github.com/t-regx/CrossDataProviders) to permit the latest version.
- [Release notes](https://github.com/t-regx/CrossDataProviders/releases)
- [Commits](t-regx/phpunit-data-provider@2.4.0...3.0.0)

---
updated-dependencies:
- dependency-name: rawr/cross-data-providers
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file php Pull requests that update Php code labels Mar 26, 2025
@coveralls
Copy link

Coverage Status

coverage: 52.82%. remained the same
when pulling b6aac94 on dependabot/composer/rawr/cross-data-providers-3.0.0
into 8104f52 on main.

@JakeQZ
Copy link
Contributor

JakeQZ commented Mar 26, 2025

Version 3.0 is not compatible.

@JakeQZ JakeQZ closed this Mar 26, 2025
Copy link
Contributor Author

dependabot bot commented on behalf of github Mar 26, 2025

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the dependabot/composer/rawr/cross-data-providers-3.0.0 branch March 26, 2025 16:42
@sabberworm
Copy link
Contributor

@dependabot ignore this major version

Copy link
Contributor Author

dependabot bot commented on behalf of github Mar 27, 2025

OK, I won't notify you about version 3.x.x again, unless you re-open this PR.

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.

3 participants