-
Notifications
You must be signed in to change notification settings - Fork 110
Figure out the best deprecation pattern for Laravel 8.0 #217
Comments
Actually, stopping releasing would not bother me. The used version would be still usable, without problem. However, if you want to keep a bridge, we can just require the illuminate/collection in the package, and extends the laravel classes in this ones, with a deprecation notice? |
Yah, that's what I was suggesting in my final paragraph. I wonder if that would give some authors an easier transition--and that way they could also more slowly deprecate their reliance on Collect, instead of requiring everyone to upgrade to Laravel 8. |
OK, I thought aliasing the classes. I'm thinking of what could be the difference, and the benefit of keeping the bridge. If release stops, nothing will change for an existing project, because the tag will protect them. BUT if the final project have conflict version with Laravel 8, the conflict will occur the same if we require So, if I'm not wrong, updating from And this could be a problem! |
So, Valet currently requires this: Is there an easy solution for requiring "^Collect 6.0 OR collect ^7.0 OR illuminate/collection ^8.0"? I figured there wasn't, so we would basically give folks the ability to bump their requirements to "collect ^6.0 || ^7.0 || ^8.0" immediately, then spend the entire 6 months of the 8.0 release timeline preparing to move their product over to 8.0 and excluding their new releases from using Collect (and therefore from being used on pre-8.0 projects). |
Yeah, actually it can be a good compromise. But this shows us an unexpected issue of creating an illuminate/collection which is used by default in laravel. You can't use anymore the last collections methods in an old laravel project... Don't know if we could do something about that. 🤔 |
My current thinking about the deprecation strategy: Give folks that depend on The goal: Tasks right now:
Tasks soon-ish:
Tasks in one year:
|
This is awesome, thanks @mattstauffer! I have a package out right now requiring this, so I really appreciate the |
Glad to hear it @stevebauman!! |
laravel/framework#32478
Taylor's opened a PR to extract Collections from Support (🥳), so Collect won't be needed.
The simplest thing we could do is to just stop releasing after 8.0.
But I'm curious whether package authors who rely on Collect would prefer we make 8.x a bridge version so it's not a sudden deprecation, and whether, if we did that, we should have it continue to be a full split like it is, or if we could just require the Illuminate Collection package and then alias it to Tighten and then call it a day?
The text was updated successfully, but these errors were encountered: