From 2c55df0f51a419f8dc22d23e6fc0bbfdaad9ea94 Mon Sep 17 00:00:00 2001
From: Naveen Valecha <29342-naveenvalecha@users.noreply.drupalcode.org>
Date: Mon, 17 Jun 2024 16:00:01 +0000
Subject: [PATCH] Issue #3449034 by naveenvalecha: Drupal 11 compatibility
 fixes for recombee

---
 .gitlab-ci.yml         | 48 +-----------------------------------------
 composer.json          |  3 ++-
 recombee.info.yml      |  3 ++-
 recombee.libraries.yml |  2 +-
 4 files changed, 6 insertions(+), 50 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f83e577..8268095 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -48,51 +48,5 @@ include:
 ################
 variables:
   SKIP_ESLINT: '1'
+  RUN_JOB_UPGRADE_STATUS: '1'
   _CSPELL_WORDS: 'Morpht, morpht, recomm, recommid, recomms'
-
-
-###################################################################################
-#
-#                                        *                                      
-#                                       /(                                      
-#                                      ((((,                                    
-#                                    /(((((((                                   
-#                                   ((((((((((*                                 
-#                                ,(((((((((((((((                               
-#                              ,(((((((((((((((((((                             
-#                            ((((((((((((((((((((((((*                          
-#                         *(((((((((((((((((((((((((((((                        
-#                       ((((((((((((((((((((((((((((((((((*                     
-#                    *((((((((((((((((((  .((((((((((((((((((                   
-#                  ((((((((((((((((((.       /(((((((((((((((((*                
-#                /(((((((((((((((((            .(((((((((((((((((,              
-#             ,((((((((((((((((((                 ((((((((((((((((((            
-#           .((((((((((((((((((((                   .(((((((((((((((((          
-#          (((((((((((((((((((((((                     ((((((((((((((((/        
-#        (((((((((((((((((((((((((((/                    ,(((((((((((((((*      
-#      .((((((((((((((/  /(((((((((((((.                   ,(((((((((((((((     
-#     *((((((((((((((      ,(((((((((((((/                   *((((((((((((((.   
-#    ((((((((((((((,          /(((((((((((((.                  ((((((((((((((,  
-#   (((((((((((((/              ,(((((((((((((*                 ,(((((((((((((, 
-#  *(((((((((((((                .(((((((((((((((                ,((((((((((((( 
-#  ((((((((((((/                /((((((((((((((((((.              ,((((((((((((/
-# (((((((((((((              *(((((((((((((((((((((((*             *((((((((((((
-# (((((((((((((            ,(((((((((((((..(((((((((((((           *((((((((((((
-# ((((((((((((,          /((((((((((((*      /((((((((((((/         ((((((((((((
-# (((((((((((((        /((((((((((((/          (((((((((((((*       ((((((((((((
-# (((((((((((((/     /((((((((((((               ,((((((((((((,    *((((((((((((
-#  ((((((((((((((  *(((((((((((/                   *((((((((((((.  ((((((((((((/
-#  *((((((((((((((((((((((((((,                      /((((((((((((((((((((((((( 
-#   (((((((((((((((((((((((((                         ((((((((((((((((((((((((, 
-#   .(((((((((((((((((((((((/                         ,(((((((((((((((((((((((  
-#     ((((((((((((((((((((((/                         ,(((((((((((((((((((((/   
-#      *(((((((((((((((((((((                         (((((((((((((((((((((,    
-#       ,(((((((((((((((((((((,                      ((((((((((((((((((((/      
-#         ,(((((((((((((((((((((*                  /((((((((((((((((((((        
-#            ((((((((((((((((((((((,           ,/((((((((((((((((((((,          
-#              ,(((((((((((((((((((((((((((((((((((((((((((((((((((             
-#                 .(((((((((((((((((((((((((((((((((((((((((((((                
-#                     .((((((((((((((((((((((((((((((((((((,.                   
-#                          .,(((((((((((((((((((((((((.           
-#     
-###################################################################################
diff --git a/composer.json b/composer.json
index 81af53e..de06a85 100644
--- a/composer.json
+++ b/composer.json
@@ -2,13 +2,14 @@
   "name": "drupal/recombee",
   "description": "Provides configurable recommendation blocks with Recombee results.",
   "type": "drupal-module",
-  "license": "GPL-2.0+",
+  "license": "GPL-2.0-or-later",
   "homepage": "https://www.drupal.org/project/recombee",
   "support": {
     "issues": "https://www.drupal.org/project/issues/recombee",
     "source": "https://github.com/morpht/recombee"
   },
   "require": {
+    "drupal/js_cookie": "^1.0",
     "drupal/json_template": "^1.0"
   }
 }
diff --git a/recombee.info.yml b/recombee.info.yml
index fba77d7..059bcc6 100644
--- a/recombee.info.yml
+++ b/recombee.info.yml
@@ -1,8 +1,9 @@
 name: Recombee
 type: module
 description: Provides configurable recommendation blocks with Recombee results.
-core_version_requirement: ^9.5 || ^10
+core_version_requirement: ^9.5 || ^10 || ^11
 package: Search
 configure: recombee.settings
 dependencies:
+  - js_cookie:js_cookie
   - json_template:json_template
diff --git a/recombee.libraries.yml b/recombee.libraries.yml
index e8d7fad..b08d8af 100644
--- a/recombee.libraries.yml
+++ b/recombee.libraries.yml
@@ -16,7 +16,7 @@ properties:
     js/recombee.properties.js: {}
   dependencies:
     - core/jquery
-    - core/js-cookie
+    - js_cookie/js-cookie
 
 tracker:
   js:
-- 
GitLab