翻译:长风云Drupal开发团队
原文:https://www.drupal.org/project/drupal/releases/11.2.0-rc1
一、Drupal11.2.0-rc1发布说明
Drupal 11.2.0-rc1是Drupal 11下一个次要版本(功能版本)的候选版本。不推荐在生产站点安装候选版本,但它们作用在于进行广泛的测试,为即将到来的稳定版本做准备。
此次要版本提供了改进和新功能。它不会破坏公共API的向后兼容性(BC)。内部API和实验模块可能会发生变化。如果是这样,贡献和自定义模块和主题可能需要更新。这是根据Drupal核心的向后兼容性和实验模块策略。
此版本可能包括字符串更改和添加。翻译人员可以在localize.drupal.org上查看最新的翻译状态。
Drupal 11.2.x包含新功能,应该是新网站开发的目标。Drupal 11.1.x将继续提供安全支持,直到2025年12月。
二、Drupal11.2.0-rc1的重要变化
1、Drupal核心现在需要Symfony v7.3.0。
PostCSS及其插件已更新到最新版本,不再需要@nest关键字,也不再使用rgba()。Drupal保持2021嵌套行为,以避免在整个CSS中添加:is()选择器。有关详细信息,请参阅PostCSS嵌套插件文档。
Stylelint和Stylelint配置标准也已更新到最新版本。最值得注意的是,CSS rgb()函数比等效的rgba()函数更受欢迎。Drupal核心样式表已经更新,以适应这些变化的标准。
Coder已更新到最新版本。以下Drupal编码标准规则发生了变化:
Drupal.CSS.ClassDefinitionNameSpacing 和 Drupal.CSS.ColourDefinition已被删除,因为Coder不再负责CSS编码标准。
Drupal.Strings.UnnecessaryStringConcat已替换为Generic.Strings.UnnecessaryStringConcat。
Squiz.WhiteSpace.LanguageConstructSpacing已替换为Generic.WhiteSpace.LanguageConstructSpacing
MySource.Debug.DebugCode已被删除。
CKEditor5从v44.0.0更新到v45.2.0,其中包括许多改进和错误修复。如果您与CKEditor有任何自定义集成,请参阅v45发行说明以了解重大更改。如果您使用的是提供的CKEditor5图标集,则图标已被重命名。Drupal为这一特定更改添加了图标名称向后兼容层。
Composer已将其对justinrainbow/json模式包的最低要求提高到版本6,因此,Drupal核心的锁文件和元包现在也将此开发依赖关系固定到版本6。使用此软件包的模块应阅读版本6升级说明,因为有重大更改。如果你的贡献或自定义项目依赖于旧版本的justinrainbow/json模式,你应该在composer.json中声明与6.x分支的冲突。
三、已知问题
此版本被错误地标记为11.x开发分支,而不是11.2.x版本分支,因此它包含了少量在最终11.2.0版本中不会出现的更改。最值得注意的是,它包含了实验性的Symfony Mailer模块,该模块不会包含在Drupal 11.2.0中。
四、自Drupal 11.2.0-beta1以来的所有更改
Issue #3526142 by mondrake, xjm: Update PHPStan to 2.1.17
Issue #3529504 by acbramley, cmlara, nicxvan: Fix phpstan errors in UpdatePathTestTrait
Issue #3528998 by grimreaper, larowlan, pdureau, xjm, wim leers, catch, penyaskito: Follow-up: SDC `enum` props should have translatable labels: use `meta:enum`
Issue #3527142 by andypost, catch, longwave, xjm: Update Composer and development dependencies for 11.2.0
Issue #3522406 by quietone, longwave, klausi, bbrala: Update Coder to 8.3.30
Issue #3523018 by godotislate, longwave, quietone, xjm, catch, salmonek, smustgrave: Update CKEditor 5 to 45.2.0
Issue #3528680 by godotislate, xjm, longwave: Update to Symfony 7.3.0
Issue #3523705 by amateescu, rkoller, poker10: InvalidComponentException when workspaces ui is installed
Issue #3518273 by bbrala, wim leers, phenaproxima: The ConfigExists validation constraint should support dynamic type expressions
Issue #3493070 by penyaskito, griffynh, wim leers, longwave, pdureau, effulgentsia, xjm, phenaproxima, mradcliffe, danielveza, lauriii, catch: SDC `enum` props should have translatable labels: use `meta:enum`
Issue #3526266 by mherchel, finnsky, andy-blum: Navigation top bar should utilize Drupal.displace()
Issue #3527518 by phenaproxima, tim.plunkett: Package Manager's direct-write mode still tries to check for rsync
Issue #3527314 by amateescu: Stop creating a "Stage" workspace by default on module installation
Issue #3519766 by amateescu: WorkspacesHtmlEntityFormController builds entity forms twice
Issue #3429849 by longwave, andypost, spokje: Make doctrine/lexer:^3.0 compatible with \Drupal\Component\Annotation\Doctrine
Issue #3521953 by tom konda, smustgrave, quietone: Existence check for JavaScript object and it's property across multi-lines can replace with optional chaining
Issue #3526180 by mherchel, godotislate: Regression: Drupal.displace() not working on new Navigation module in 11.2
Issue #3523078 by sd9121, longwave, godotislate, mherchel: Update prettier/PostCSS/stylelint for 11.2
Issue #3255804 by godotislate, longwave, berdir, alexpott, catch, andypost, smustgrave: Hidden dependency on block_content in layout_builder
Issue #3255804 by godotislate, longwave, berdir, alexpott, catch, andypost, smustgrave: Hidden dependency on block_content in layout_builder
Issue #3518917 by penyaskito: Invalid service alias for backend_overridable services in some cases when default_backend is set
Issue #3483996 by kentr, kim.pepper, godotislate, acbramley: Remove lazy declaration and proxy class for cron and use service closure instead
Issue #3524547 by thejimbirch, ishani patel, quietone: Navigation module's help text should not link to the contrib module
Revert "Issue #3515093 by sandip, catch, smustgrave: Olivero table.css should be in its own library and #attached to tables"
Issue #3514197 by donquixote, acbramley, nicxvan, godotislate, longwave: ModuleHandler::resetImplementations should reset all properties with hook implementations
Issue #3527053 by nod_, phenaproxima: Random failure: "Drupal.contextual.ContextualModelView is not a constructor"
Issue #3094817 by nicxvan, quietone, prudloff: Add a SECURITY.md explaining how to report security vulnerabilities properly
Revert "Issue #3497431 by mondrake, catch, larowlan, godotislate: Deprecate TestDiscovery test file scanning, use PHPUnit API instead"
Issue #3521327 by avpaderno: The insecure examples code does not include delimiters for strings
Issue #3523629 by znerol, longwave: Update config schema for Symfony 7.3 mailer security improvements
Issue #3514881 by prudloff: timezone.js calls the system.timezone route with a date parameter that is never used
Issue #3522969 by annmarysruthy: Deprecate BrowserTestBase::getOptions()
Issue #3517024 by acbramley: Convert ckEditor5EditorHeightTest to WebDriver test
Issue #3522970 by longwave, smustgrave: Remove unused BrowserTestBase::$originalContainer
Issue #3526251 by prudloff: Incorrect type for #access in RenderElementBase documentation
Issue #3515774 by prudloff, smustgrave: Cache tags added by hook_block_view_BASE_BLOCK_ID_alter are ignored on blocks that implement MainContentBlockPluginInterface or TitleBlockPluginInterface
Issue #3523649 by znerol: Extract testUriHost from UuidValidatorTest into its own class
Issue #3526117 by phenaproxima: Conflict with Project Browser <2.1 and Automatic Updates <4
Issue #3520750 by alexpott: Use a transaction PoDatabaseWriter to improve performance
Issue #3524613: Add Cristina Chumillas as UX Manager, Emma Horrell as provisional UX Manager to Drupal core
Issue #3526690 by cilefen, xmacinfo, andypost, grimreaper, mstrelan: Call to undefined function Drupal\system\Plugin\ImageToolkit\imageavif()
Issue #3525388 by acbramley: Trigger a deprecation when using \Drupal\Core\Render\Renderer::addCacheableDependency with a non CacheableDependencyInterface $dependency
Issue #3497431 by mondrake, catch, larowlan, godotislate: Deprecate TestDiscovery test file scanning, use PHPUnit API instead
Revert "Issue #3497431 by mondrake, catch, larowlan, godotislate: Deprecate TestDiscovery test file scanning, use PHPUnit API instead"
Issue #3497431 by mondrake, catch, larowlan, godotislate: Deprecate TestDiscovery test file scanning, use PHPUnit API instead
Issue #3497701 by mstrelan, spokje, catch, quietone: [random test failure] PackageUpdateTest::testPackageUpdate