Fixed
Project:
Drupal core
Version:
11.x-dev
Component:
ajax system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
1 Jul 2026 at 15:27 UTC
Updated:
17 Jul 2026 at 12:34 UTC
Jump to comment: Most recent
Comments
Comment #2
sourav_paulWorking on this...
Comment #4
sourav_paulI've attached the deprecation warning messages, got php-stan errors, already resolved that but still got unit test core falures,
It would be great if anyone could lookinto it as I'm busy on projet tasks.
[Used AI]
Comment #5
fathershawnThanks. Your AI missed some deprecations. The notices should link to the CR, not the issue. Updated the branch.
Comment #6
sourav_paulThanks @shawn for rectifing it. still I see some pipeline error, can you please look into it? else I'll look into it later.
Comment #7
fathershawnThanks @sourav_paul! I ran out of time but wanted to push up my progress :)
Comment #8
fathershawnComment #9
quietone commentedSo, we are deprecating some functions in preparation for HTMX 4. The change record title is 'HTMX now used htmx 4, which will not be correct. And I don't see a review of the change record here, so adding that to the remaining tasks.
The deprecation messages have information that should be in the change record. I suggest removing the sentence about the item being removed from htmx 4. That can be in the change record. I made two suggestions in the MR but the idea applies to all the messages.
There are failing tests as well.
Comment #10
fathershawnI am new to the deprecation process, but I made this issue a child of #3555916: Update to htmx 4 and my expectation was that these two issues would be committed together. The CR referenced in the notices is the CR for #3555916: Update to htmx 4 and this issue was intended to track the work to get the notices into 11.x.
It sounds like these notices are too verbose. All the info in the notices is in the referenced CR, so we should simplify them as suggested.
Comment #11
fathershawnComment #12
fathershawnUpdated the messages. Tests still need to be reviewed and adjusted..
Comment #13
macsim commentedA few things :
mainbranch - I changed the target in the issue but I can't do it in the MRComment #14
godotislateThis won't go to main, because the methods are being removed there in #3555916: Update to htmx 4.
In Slack discussion with RMs @catch, @longwave, and @quietone:
Comment #17
fathershawnComment #18
macsim commentedExample of test failures:
Comment #19
quietone commented@fathershawn, thanks for saying that you are new to the deprecation process. I wanted to follow up here sooner, but life got busy again. Briefly, we deprecate things in a minor release and add a change record for the deprecation. Then, in the next major release the update of a dependency is announced in the release notes and not a change record. So, in the case the deprecation is added to 11.5 and then in on the main branch the updated happens as well as the removal of the deprecated code.
The commit of the deprecations is separate from the commit of the update and removal of deprecated code issues. They do not have to happen at the same time. The first will go on the main branch and 11.x. The latter is only for the main branch.
Changing title because this is a deprecation, not just adding notices, and using the more standard form of 'Deprecate ...'
One question. If someone makes the recommended changes that are given in the change record or the migration guide, will it work on the 11.x branch.
edit: correct branches for the commits.
Comment #20
fathershawnThanks @quietone for the guidance! These are breaking changes. HTMX v.4 removes functions, changes names, and so on. Because we are using a factory pattern to generate the necessary attributes and headers, one could use the
DeprecationHelperto write D11 and D12 code.I'll add a note about use of the helper to the CR and link the CR to this issue.
Comment #21
fathershawnThanks @macsim for the note that the failures are uncaught deprecations. That was not easy for me to filter out of the results.
Comment #22
fathershawnAdded
#[IgnoreDeprecations]to the test methods expecting deprecations, following the pattern of other core tests.Comment #23
fathershawnAll tests green
Comment #24
fathershawnComment #25
nicxvan commentedI think this is ready, I read through https://four.htmx.org/docs briefly and I don't see anything that's not addressed in the CR or deprecated here.
Versions look right and the link to the CR is correct.
I did have a question if the https://four.htmx.org/docs#upgrade-checker would work, but I think it only partially works.
It might be worth mentioning the limited application in the CR.
I tweaked some minor formatting on the CR.
Comment #27
longwaveGiven that HTMX 4 has some changes that we can't add forward or backward compatibility for, I think this is the best we can do.
Committed and pushed 33be9650049 to 11.x. main will upgrade directly to HTMX 4 so no point adding the deprecations only to remove them again, and we are too late for 11.4.x.
The change record should be published once we've actually added HTMX 4 to Drupal 12.