Repository navigation
Pre-release 4.2.111 → 4.2.110 — task 2.16 mail swap (illuminate/mail v13) - #83
Merged
Merged
Conversation
This was referenced Sep 30, 2026
agissept
force-pushed
the
pre-release/4.2.111
branch
from
September 30, 2026 10:37
6fdd45c to
a5cd00d
Compare
Move illuminate/mail from replace to require ^13 and delete the fork's Mail tree (Mailer, Message, SentMessage, MailServiceProvider, Log/Array transports), which v13 ships under the same names. illuminate/mail v13 depends only on components already swapped (container, contracts, support, collections, macroable, conditionable), so it can go before the foundation flip. Fork glue: - Core aliases mirror v13's mail cluster: mail.manager -> MailManager / Contracts\Mail\Factory, mailer -> Contracts\Mail\Mailer / MailQueue. SendQueuedMailable resolves the Factory contract, and the Mail facade resolves 'mail.manager' (the fork provider used to alias it to 'mailer'). - The worker registers a Mailer macro for 'mailer@handleQueuedMessage', so mail jobs queued by the fork's Mail::queue() before the deploy still send. Registered only when queue:work is built. The app's L4.2-style mail config (mail.driver, host, port, from, ...) keeps working through MailManager's own BC path. v13 drops mail.pretend, the 'mailer.sending' string event (now MessageSending), string message builders and queueing anything but a Mailable. Tests: the vendored Mail tests are deleted; tests/Mail/MailForkBridgeTest covers the aliases, the legacy config, a Mailable on the sync queue, the worker-only macro and a pre-swap queued mail payload. The Auth broker test builds the v13 Mailer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0169SsatCE8LhaTsQTPiGtVo
The deleted fork Mail tree held the last pagination_getters match (1 -> 0). Regenerate with ci/convergence-ratchet.sh --init src. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0169SsatCE8LhaTsQTPiGtVo
agissept
force-pushed
the
pre-release/4.2.111
branch
from
October 1, 2026 06:33
a5cd00d to
0a1912d
Compare
agissept
marked this pull request as ready for review
October 1, 2026 06:33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Task 2.16 — mail swap (illuminate/mail v13)
Moves
illuminate/mailfromreplacetorequire ^13(v13.34.0) and deletes the fork's Mail tree. Stacks on #82.This departs from the plan. MIGRATION-TASKS has 2.16 add
Mailable/PendingMail/SendQueuedMailableinto the fork and swap mail later with foundation and auth in 4.5. Instead, this swaps mail on its own now, the same way the 4.3 per-unit swaps were done. That works becauseilluminate/mailv13 needs only:league/commonmarkandtijsverkoyen/css-to-inline-styles.It needs nothing from foundation or auth. After this, 4.5 is left with foundation, auth and exception.
Fork glue
mail.manager→MailManager,Contracts\Mail\Factory.mailer→Contracts\Mail\Mailer,Contracts\Mail\MailQueue.SendQueuedMailable::handle()resolves the Factory contract, so a queued Mailable fails without it.mail.manager; the fork provider used to alias that tomailer.Mail::queue()pushedmailer@handleQueuedMessagejobs, and v13'sMailerhas no such method.Mailermacro with that name, so jobs already on the queue still send after the deploy.queue:workis built, in the same place as 4.2.109's exception-handler adapter.MailManagerstill reads the L4.2 layout (mail.driverplus top-levelhost/port/from/…) through its own backwards-compatibility path.What changes for callers (handled in the app pair)
Mail::queue()andlater()accept only a Mailable; anything else throws "Only mailables may be queued".mail.pretendis gone; thelogdriver replaces it.mailer.sendingstring event becomesIlluminate\Mail\Events\MessageSending(plusMessageSent).Mail::send($view, $data, 'Class'), which calledClass::mail()) is no longer supported; closures still are.Mail::send()returns?SentMessage, andfailures()/isPretending()are gone.Deleted
src/Illuminate/Mail: Mailer, Message, SentMessage, MailServiceProvider,Transport\{Log,Array}Transportandcomposer.json. v13 ships the same classes.tests/Mail/{MailMailerTest,MailMessageTest}.Tests
tests/Mail/MailForkBridgeTesthas 5 tests:from;mailer@handleQueuedMessageformat drains in the worker.AuthPasswordBrokerTestbuilds the v13Mailer.pagination_gettersgoes from 1 to 0 (its last match was in the fork Mail tree), and the baseline is regenerated.Verification
composer validateOK;composer.json(with rector) resolves: illuminate/mail v13.34.0, symfony/mailer v7.4.19;src/.feature/platform/framework-4.2.111-rc1), with vendor installed exactly from its lock and a local SMTP sink on127.0.0.1:1025(deck's mail catcher address):TechnicalProblemMailerBoringTest,FatalErrorNotificationTest,InviteDevelopersTest(5) andBeanstalkdQueueBoringTestagainst a real worker (3): green.from.mailer@handleQueuedMessageformat is delivered with its view data;ViewMailis delivered to both recipients.artisan dailytask:notifydelivers both pending-task mails.Asia/Jakartatimezone andmax_connections).Deploy notes
SendQueuedMailablejobs that 4.2.111 queues, while a 4.2.111 worker runs both formats.MAIL_PRETEND=trueenvironments: the app pair maps it to thelogdriver.Tag
4.2.111on6fdd45c0is not pushed; tag pushes are refused for this session.🤖 Generated with Claude Code
https://claude.ai/code/session_0169SsatCE8LhaTsQTPiGtVo