diff --git a/core/core.libraries.yml b/core/core.libraries.yml index 4843fd9d96692b4d0089512bd2935e60007609fc..dddcda00123b45d34072d59f4cf205481fb98105 100644 --- a/core/core.libraries.yml +++ b/core/core.libraries.yml @@ -1,18 +1,5 @@ # All libraries are defined in alphabetical order. -backbone: - remote: https://github.com/jashkenas/backbone - version: "1.4.0" - license: - name: MIT - url: https://raw.githubusercontent.com/jashkenas/backbone/1.4.0/LICENSE - gpl-compatible: true - js: - assets/vendor/backbone/backbone-min.js: { weight: -19, minified: true } - dependencies: - - core/underscore - deprecated: The %library_id% asset library is deprecated in Drupal 9.4.0 and will be removed in Drupal 10.0.0. - internal.backbone: # Internal library. Do not depend on it outside core nor add new core usage. # The library will be removed as soon as the following issues are fixed: @@ -1091,17 +1078,6 @@ tabbable.jquery.shim: - core/tabbable - core/jquery -underscore: - remote: https://github.com/jashkenas/underscore - version: "1.13.2" - license: - name: MIT - url: https://raw.githubusercontent.com/jashkenas/underscore/1.13.2/LICENSE - gpl-compatible: true - js: - assets/vendor/underscore/underscore-min.js: { weight: -20, minified: true } - deprecated: The %library_id% asset library is deprecated in Drupal 9.4.0 and will be removed in Drupal 10.0.0. - internal.underscore: # Internal library. Do not depend on it outside core nor add new core usage. # The library will be removed as soon as the following issues are fixed: diff --git a/core/scripts/js/vendor-update.js b/core/scripts/js/vendor-update.js index b7f2a210680cff6f98badd23c8f3f4fd6a3a202b..5dc62deaab4b13606b5743fe48cb909d92684fca 100644 --- a/core/scripts/js/vendor-update.js +++ b/core/scripts/js/vendor-update.js @@ -79,10 +79,6 @@ const assetsFolder = `${coreFolder}/assets/vendor`; library: 'internal.backbone', files: ['backbone.js', 'backbone-min.js', 'backbone-min.map'], }, - // Only used to update the version number of the deprecated library. - { - pack: 'backbone', - }, { pack: 'css.escape', folder: 'css-escape', @@ -179,10 +175,6 @@ const assetsFolder = `${coreFolder}/assets/vendor`; library: 'internal.underscore', files: ['underscore-min.js', 'underscore-min.js.map'], }, - // Only used to update the version number of the deprecated library. - { - pack: 'underscore', - }, { pack: 'loadjs', files: [{ from: 'dist/loadjs.min.js', to: 'loadjs.min.js' }], diff --git a/core/tests/Drupal/KernelTests/Core/Asset/DeprecatedBackboneTest.php b/core/tests/Drupal/KernelTests/Core/Asset/DeprecatedBackboneTest.php deleted file mode 100644 index 1cf562fb5ed90dc6d4295a0779c39bf6e714e76e..0000000000000000000000000000000000000000 --- a/core/tests/Drupal/KernelTests/Core/Asset/DeprecatedBackboneTest.php +++ /dev/null @@ -1,38 +0,0 @@ -<?php - -namespace Drupal\KernelTests\Core\Asset; - -use Drupal\KernelTests\KernelTestBase; - -/** - * Checks the deprecation status of Backbone. - * - * @group Asset - * @group legacy - */ -class DeprecatedBackboneTest extends KernelTestBase { - - /** - * The library discovery service. - * - * @var \Drupal\Core\Asset\LibraryDiscoveryInterface - */ - protected $libraryDiscovery; - - /** - * {@inheritdoc} - */ - protected function setUp():void { - parent::setUp(); - $this->libraryDiscovery = $this->container->get('library.discovery'); - } - - /** - * Tests that the Backbone library is deprecated. - */ - public function testBackboneDeprecation() { - $this->libraryDiscovery->getLibraryByName('core', 'backbone'); - $this->expectDeprecation("The core/backbone asset library is deprecated in Drupal 9.4.0 and will be removed in Drupal 10.0.0."); - } - -}