Problem/Motivation
This module needs to be updated to Drupal 10 compatible. (It's a test dependency of Views Data Export among other things.)
Issue fork csv_serialization-3280951
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
jhedstromComment #4
berdirLeft some comments on the MR
Comment #5
jhedstromComment #6
berdir> I just removed the type hint rather than force php 8 for now...
That, sadly, means that it won't be D10 compatible. But with the moved D10 date, we can probably simply what until its ok-ish to rely on PHP8? official EOL of PHP 7.4 is next year though. Up to the maintainer to decide on that.
Comment #7
jhedstromOh, I forgot about that lol. I'm fine either way.
Comment #8
jhedstromActually, each module doesn't need to mark php version (so long as it isn't relying on those features specifically.) The
mixinchange is optional, so I think this could still technically be D10 compatible as-is?Comment #9
berdirI don't think it's optional, the Symfony 6 validator interface requires it and without it, it's a fatal error? I had the same problem in ERR, even tricks like two different classes with dynamic PHP/symfony version checks are impossible to pull off, php lint check breaks tests.
Comment #10
jhedstromAh, I was thinking it was optional based on this deprecation notice on the latest 10.x:
Comment #11
berdirOh, that's probably a different interface then. Fine if that's a deprecation for Symfony 7/D11 then, agreed.
Comment #12
grasmash commentedSince this drops Drupal 8 compatibility, we should create a new major version for it.
Comment #15
grasmash commentedCreated 3.x branch and merged there.
Comment #16
berdir> Since this drops Drupal 8 compatibility, we should create a new major version for it.
Upping the min version does not require a new major version per se, that is allowed with semver, as long as your own API doesn't change.
The return types are somewhat of an edge case though, you could say that these plugins are an API of this module and can be subclassed, so it would be an API change (core explicitly excludes plugins classes in the BC policy though).
Your call as maintainer though, personally I try to avoid new major versions as much as possible due to the extra amount of work both for you as maintainer, users and maintainers of modules depending on it. That said, if you go with that, we could make 3.x either require PHP 8 or D10 and do the mixed return type as well so it doesn't have to change again.
Comment #18
juc1 commentedhi is there any news on a D10 version?
Comment #19
m.stentaWe are also interested in a Drupal 10 compatible release for the farmOS distribution, and this module is one of the few dependencies we are waiting on: #3330490: Update Drupal core to 10.x in farmOS
Comment #20
m.stentaOh wait - the 3.x branch does not currently work, because of this line in
composer.json: https://git.drupalcode.org/project/csv_serialization/-/blob/3.x/composer...Composer will not install it:
Do we need a followup issue for this? Or perhaps there is one already?
Comment #21
m.stentaAh disregard... I just found #3294354: 3.x composer.json was not updated to require D9/10.
Linking it here for future explorers. :-)