@nyamsprod@phpc.social
@nyamsprod@phpc.social avatar

nyamsprod

@nyamsprod@phpc.social

Software developer. Creator of PHP centric package like league/csv and league/uri. Sponsor me at github.com/sponsors/nyamsprod

This profile is from a federated server and may be incomplete. Browse more on the original instance.

nyamsprod, to php
@nyamsprod@phpc.social avatar

I have a question regarding dependencies and semver for maintainers. let's say I have package B which depends on package A.

If I move a class from package A to package B does this constitute a BC break for A and B or only for A ?

nyamsprod,
@nyamsprod@phpc.social avatar

@cam I think 99% of the people using package B are not even aware package A exists 😅

nyamsprod,
@nyamsprod@phpc.social avatar

@cam thought about it but these are Interfaces otherwise I would have copy/paste and add a suffix and be done with it 😜

nyamsprod,
@nyamsprod@phpc.social avatar

@wouterj true it was a mistake of mine when I changed the architecture from horizontal to vertical dependencies I should have also move the interfaces at that moment 🤷

nyamsprod,
@nyamsprod@phpc.social avatar

@kboyd @cam if you do that then you make package A dependent of package B which is not what you want ... the end goal is to reduce package B dependencies to package A not to enforce tight coupling

nyamsprod,
@nyamsprod@phpc.social avatar

@alessandrolai I have an easy way out I can bump package A to the next major and keep B in it's current version and move the class there effectively embracing the BC break BUT it makes my monorepo ugly to work with until I bump package B to the same version as package A and I need in the meantime fin a good git-split tool able to handle 2 majors release ... that's the complex part

nyamsprod, (edited ) to php
@nyamsprod@phpc.social avatar

I know that ship has already sailed but it would have been nice if the spread operator on iterable did follow the semantic of iterator_to_array with the preserve keys argument being true

For context: https://3v4l.org/AKEbB

nyamsprod,
@nyamsprod@phpc.social avatar

@zimzat I get the reasoning behind but would have been "cool" nice to have the iterator_to_array behaviour when working with iterator it seems more appropriate

nyamsprod, to random
@nyamsprod@phpc.social avatar

league/csv 9.16.0 relesed with an improved query builder for CSV https://github.com/thephpleague/csv/releases/tag/9.16.0

I also added a smal blog post about the status of the library where it comes from and where it is right now

https://nyamsprod.com/blog/modernizing-leaguecsv-api/

nyamsprod, to random French
@nyamsprod@phpc.social avatar

@derickr @Girgias I have updated my Draft RFC for base32_encode/base32_decode. Let me know what you think about the new proposal.
https://gist.github.com/nyamsprod/8a5cf21c136952a46ec8836f29738c82

nyamsprod,
@nyamsprod@phpc.social avatar

@derickr @Girgias yes I saw it been a bit busy with work related tasks. Will continue on the implementation next week if all settles down a bit

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • mdbf
  • magazineikmin
  • tacticalgear
  • thenastyranch
  • ethstaker
  • rosin
  • love
  • Youngstown
  • slotface
  • ngwrru68w68
  • kavyap
  • osvaldo12
  • DreamBathrooms
  • Leos
  • everett
  • InstantRegret
  • cubers
  • modclub
  • tester
  • khanakhh
  • GTA5RPClips
  • cisconetworking
  • Durango
  • normalnudes
  • provamag3
  • anitta
  • JUstTest
  • All magazines