diff --git a/core/core.libraries.yml b/core/core.libraries.yml index 4843fd9d9669..dddcda00123b 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 b7f2a210680c..5dc62deaab4b 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 1cf562fb5ed9..000000000000 --- a/core/tests/Drupal/KernelTests/Core/Asset/DeprecatedBackboneTest.php +++ /dev/null @@ -1,38 +0,0 @@ -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."); - } - -}