Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package spicetify-cli for openSUSE:Factory 
checked in at 2024-09-30 15:38:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/spicetify-cli (Old)
 and      /work/SRC/openSUSE:Factory/.spicetify-cli.new.29891 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "spicetify-cli"

Mon Sep 30 15:38:54 2024 rev:2 rq:1204514 version:2.38.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/spicetify-cli/spicetify-cli.changes      
2024-09-12 16:57:24.839491196 +0200
+++ /work/SRC/openSUSE:Factory/.spicetify-cli.new.29891/spicetify-cli.changes   
2024-09-30 15:39:08.989894597 +0200
@@ -1,0 +2,9 @@
+Sat Sep 28 14:54:38 UTC 2024 - jan.kuzi...@suse.com
+
+- Update to version 2.38.4:
+  * fix(preprocess): add new regex to catch variable names for context menu
+  * chore(sidebarConfig): change how msg is shown
+  * fix(new-releases): use hardcoded `queryArtistDiscographyAll` def (#3166)
+  * fix(apply): check for old global navbar existence
+
+-------------------------------------------------------------------

Old:
----
  cli-2.38.3.obscpio

New:
----
  cli-2.38.4.obscpio

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ spicetify-cli.spec ++++++
--- /var/tmp/diff_new_pack.SmOMyD/_old  2024-09-30 15:39:10.821970906 +0200
+++ /var/tmp/diff_new_pack.SmOMyD/_new  2024-09-30 15:39:10.829971239 +0200
@@ -15,10 +15,11 @@
 # Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
+
 %define sname cli
 %define binname spicetify
 Name:           spicetify-cli
-Version:        2.38.3
+Version:        2.38.4
 Release:        0
 Summary:        Command-line tool to customize Spotify client
 License:        LGPL-2.1-or-later
@@ -26,8 +27,8 @@
 Source0:        %{sname}-%{version}.tar.zst
 Source1:        vendor.tar.gz
 BuildRequires:  golang-packaging
-BuildRequires:  golang(API) >= 1.21
 BuildRequires:  zstd
+BuildRequires:  golang(API) >= 1.21
 
 %description
 Command-line tool to customize the official Spotify client

++++++ _service ++++++
--- /var/tmp/diff_new_pack.SmOMyD/_old  2024-09-30 15:39:11.093982235 +0200
+++ /var/tmp/diff_new_pack.SmOMyD/_new  2024-09-30 15:39:11.133983901 +0200
@@ -3,7 +3,7 @@
     <param name="url">https://github.com/spicetify/cli</param>
     <param name="scm">git</param>
     <param name="exclude">.git</param>
-    <param name="revision">v2.38.3</param>
+    <param name="revision">v2.38.4</param>
     <param name="versionformat">@PARENT_TAG@</param>
     <param name="changesgenerate">enable</param>
     <param name="versionrewrite-pattern">v(.*)</param>

++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.SmOMyD/_old  2024-09-30 15:39:11.321991733 +0200
+++ /var/tmp/diff_new_pack.SmOMyD/_new  2024-09-30 15:39:11.345992732 +0200
@@ -1,6 +1,6 @@
 <servicedata>
 <service name="tar_scm">
                 <param name="url">https://github.com/spicetify/cli</param>
-              <param 
name="changesrevision">ae905881c00ac6594651fa540197fd36f756f399</param></service></servicedata>
+              <param 
name="changesrevision">8e1926d2994c01e71dc32f666eef12675b0f2102</param></service></servicedata>
 (No newline at EOF)
 

++++++ cli-2.38.3.obscpio -> cli-2.38.4.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cli-2.38.3/CustomApps/lyrics-plus/style.css 
new/cli-2.38.4/CustomApps/lyrics-plus/style.css
--- old/cli-2.38.3/CustomApps/lyrics-plus/style.css     2024-09-10 
21:42:37.000000000 +0200
+++ new/cli-2.38.4/CustomApps/lyrics-plus/style.css     2024-09-27 
20:46:51.000000000 +0200
@@ -65,14 +65,14 @@
 
 .lyrics-lyricsContainer-Loading {
        align-self: center;
-       grid-area: 1/1/-1/-1;
+       grid-area: 1 / 1 / -1 / -1;
 }
 
 .lyrics-lyricsContainer-LyricsUnavailablePage {
        align-items: center;
        color: var(--lyrics-color-inactive);
        display: flex;
-       grid-area: 1/1/-1/-1;
+       grid-area: 1 / 1 / -1 / -1;
        height: 100%;
        justify-content: center;
        padding: 20px;
@@ -82,7 +82,7 @@
 }
 
 .lyrics-lyricsContainer-UnsyncedLyricsPage {
-       grid-area: 1/1/-1/-1;
+       grid-area: 1 / 1 / -1 / -1;
        grid-template-rows: 1fr 20px;
        user-select: text;
        text-align: var(--lyrics-align-text);
@@ -100,7 +100,7 @@
 
 .lyrics-lyricsContainer-SyncedLyricsPage {
        display: grid;
-       grid-area: 1/1/-1/-1;
+       grid-area: 1 / 1 / -1 / -1;
        grid-template-rows: 1fr 30px;
        overflow: hidden;
        text-align: var(--lyrics-align-text);
@@ -110,14 +110,14 @@
 .lyrics-lyricsContainer-LyricsBackground {
        background-color: var(--lyrics-color-background);
        background-image: var(--lyrics-background-noise);
-       grid-area: 1/1/-1/-1;
+       grid-area: 1 / 1 / -1 / -1;
        transition: background-color 0.25s ease-out;
 }
 
 .lyrics-lyricsContainer-Provider {
        align-self: end;
        color: var(--lyrics-color-inactive);
-       grid-area: 2/1/-1/-1;
+       grid-area: 2 / 1 / -1 / -1;
        justify-self: stretch;
        height: 25px;
        overflow: hidden;
@@ -129,7 +129,7 @@
 
 .lyrics-lyricsContainer-SyncedLyrics {
        --lyrics-line-height: calc(4px + var(--lyrics-font-size));
-       grid-area: 1/1/-2/-1;
+       grid-area: 1 / 1 / -2 / -1;
        height: 0;
 }
 
@@ -308,11 +308,13 @@
 
 .lyrics-lyricsContainer-Karaoke-Word {
        color: var(--lyrics-color-inactive);
-       background-image: linear-gradient(to right,
+       background-image: linear-gradient(
+               to right,
                var(--lyrics-color-active),
                var(--lyrics-color-active) 45%,
                var(--lyrics-color-inactive) 55%,
-               var(--lyrics-color-inactive));
+               var(--lyrics-color-inactive)
+       );
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-size: 225% 100%;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cli-2.38.3/CustomApps/new-releases/index.js 
new/cli-2.38.4/CustomApps/new-releases/index.js
--- old/cli-2.38.3/CustomApps/new-releases/index.js     2024-09-10 
21:42:37.000000000 +0200
+++ new/cli-2.38.4/CustomApps/new-releases/index.js     2024-09-27 
20:46:51.000000000 +0200
@@ -290,13 +290,20 @@
 }
 
 async function getArtistEverything(artist) {
-       const { queryArtistDiscographyAll } = Spicetify.GraphQL.Definitions;
-       const { data, errors } = await 
Spicetify.GraphQL.Request(queryArtistDiscographyAll, {
-               uri: artist.uri,
-               offset: 0,
-               // Limit 100 since GraphQL has resource limit
-               limit: 100,
-       });
+       const { data, errors } = await Spicetify.GraphQL.Request(
+               {
+                       name: "queryArtistDiscographyAll",
+                       operation: "query",
+                       sha256Hash: 
"9380995a9d4663cbcb5113fef3c6aabf70ae6d407ba61793fd01e2a1dd6929b0",
+                       value: null,
+               },
+               {
+                       uri: artist.uri,
+                       offset: 0,
+                       // Limit 100 since GraphQL has resource limit
+                       limit: 100,
+               }
+       );
        if (errors) throw errors;
 
        const releases = data?.artistUnion.discography.all.items.flatMap((r) => 
r.releases.items);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cli-2.38.3/CustomApps/new-releases/style.css 
new/cli-2.38.4/CustomApps/new-releases/style.css
--- old/cli-2.38.3/CustomApps/new-releases/style.css    2024-09-10 
21:42:37.000000000 +0200
+++ new/cli-2.38.4/CustomApps/new-releases/style.css    2024-09-27 
20:46:51.000000000 +0200
@@ -152,9 +152,7 @@
        width: 28px;
        visibility: hidden;
        opacity: 0;
-       transition:
-               visibility 0s,
-               opacity 0.3s ease;
+       transition: visibility 0s, opacity 0.3s ease;
 }
 
 .main-card-closeButton:active {
@@ -167,9 +165,7 @@
 .main-card-card:hover .main-card-closeButton {
        visibility: visible;
        opacity: 1;
-       transition:
-               visibility 0s,
-               opacity 0.3s ease;
+       transition: visibility 0s, opacity 0.3s ease;
 }
 
 .new-releases-header + .main-gridContainer-gridContainer {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cli-2.38.3/jsHelper/sidebarConfig.js 
new/cli-2.38.4/jsHelper/sidebarConfig.js
--- old/cli-2.38.3/jsHelper/sidebarConfig.js    2024-09-10 21:42:37.000000000 
+0200
+++ new/cli-2.38.4/jsHelper/sidebarConfig.js    2024-09-27 20:46:51.000000000 
+0200
@@ -166,13 +166,26 @@
        (async () => {
                await new Promise((res) => 
Spicetify.Events.webpackLoaded.on(res));
                if (document.querySelector(".Root__globalNav")) {
-                       Spicetify.showNotification(
-                               "Sidebar config is not supported on global 
navbar. Please disable it with `spicetify config sidebar_config 0` command.",
-                               false,
-                               7000
-                       );
+                       
Spicetify.Snackbar?.enqueueCustomSnackbar("sidebar-config", {
+                               keyPrefix: "sidebar-config",
+                               autoHideDuration: 7500,
+                               children: 
Spicetify.ReactComponent.Snackbar.wrapper({
+                                       children: 
Spicetify.ReactComponent.Snackbar.simpleLayout({
+                                               center: 
Spicetify.React.createElement("div", {
+                                                       
dangerouslySetInnerHTML: {
+                                                               __html:
+                                                                       
"Sidebar config is not supported when Global Navbar is enabled. In Powershell, 
please run <code>spicetify config sidebar_config 0</code> command and then 
re-apply spicetify with <code>spicetify apply</code>.",
+                                                       },
+                                                       style: {
+                                                               "text-size": 
"12px",
+                                                       },
+                                               }),
+                                       }),
+                               }),
+                       });
                        isGlobalNavbar = true;
                }
+
                if (!isGlobalNavbar) {
                        new Spicetify.Menu.Item(
                                "Sidebar config",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cli-2.38.3/src/apply/apply.go 
new/cli-2.38.4/src/apply/apply.go
--- old/cli-2.38.3/src/apply/apply.go   2024-09-10 21:42:37.000000000 +0200
+++ new/cli-2.38.4/src/apply/apply.go   2024-09-27 20:46:51.000000000 +0200
@@ -333,14 +333,17 @@
        }
 
        // Global Navbar <= 1.2.45
+       globalNavBarMatch := utils.FindMatch(str, 
`(,[a-zA-Z_\$][\w\$]*===(?:[a-zA-Z_\$][\w\$]*\.){2}HOME_NEXT_TO_NAVIGATION&&.+?)\]`)
        utils.ReplaceOnce(&str, 
`(,[a-zA-Z_\$][\w\$]*===(?:[a-zA-Z_\$][\w\$]*\.){2}HOME_NEXT_TO_NAVIGATION&&.+?)\]`,
 func(submatches ...string) string {
                return fmt.Sprintf("%s,Spicetify._renderNavLinks([%s], true)]", 
submatches[1], appNameArray)
        })
 
        // Global Navbar >= 1.2.46
-       utils.ReplaceOnce(&str, 
`("global-nav-bar".*?)(\(0,\s*[a-zA-Z_\$][\w\$]*\.jsx\))(\(\s*\w+,\s*\{\s*className:\w*\s*\}\s*\))`,
 func(submatches ...string) string {
-               return fmt.Sprintf("%s[%s%s,Spicetify._renderNavLinks([%s], 
true)].flat()", submatches[1], submatches[2], submatches[3], appNameArray)
-       })
+       if len(globalNavBarMatch) == 0 {
+               utils.ReplaceOnce(&str, 
`("global-nav-bar".*?)(\(0,\s*[a-zA-Z_\$][\w\$]*\.jsx\))(\(\s*\w+,\s*\{\s*className:\w*\s*\}\s*\))`,
 func(submatches ...string) string {
+                       return 
fmt.Sprintf("%s[%s%s,Spicetify._renderNavLinks([%s], true)].flat()", 
submatches[1], submatches[2], submatches[3], appNameArray)
+               })
+       }
 
        return str
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cli-2.38.3/src/preprocess/preprocess.go 
new/cli-2.38.4/src/preprocess/preprocess.go
--- old/cli-2.38.3/src/preprocess/preprocess.go 2024-09-10 21:42:37.000000000 
+0200
+++ new/cli-2.38.4/src/preprocess/preprocess.go 2024-09-27 20:46:51.000000000 
+0200
@@ -564,15 +564,20 @@
        croppedInput := utils.FindFirstMatch(input, `.*value:"contextmenu"`)[0]
        react := utils.FindLastMatch(croppedInput, 
`([a-zA-Z_\$][\w\$]*)\.useRef`)[1]
        candicates := utils.FindLastMatch(croppedInput, 
`\(\{[^}]*menu:([a-zA-Z_\$][\w\$]*),[^}]*trigger:([a-zA-Z_\$][\w\$]*),[^}]*triggerRef:([a-zA-Z_\$][\w\$]*)`)
+       oldCandicates := utils.FindLastMatch(croppedInput, 
`([a-zA-Z_\$][\w\$]*)=[\w_$]+\.menu[^}]*,([a-zA-Z_\$][\w\$]*)=[\w_$]+\.trigger[^}]*,([a-zA-Z_\$][\w\$]*)=[\w_$]+\.triggerRef`)
        var menu, trigger, target string
-       if len(candicates) == 0 {
-               menu = "e.menu"
-               trigger = "e.trigger"
-               target = "e.triggerRef"
-       } else {
+       if len(oldCandicates) != 0 {
+               menu = oldCandicates[1]
+               trigger = oldCandicates[2]
+               target = oldCandicates[3]
+       } else if len(candicates) != 0 {
                menu = candicates[1]
                trigger = candicates[2]
                target = candicates[3]
+       } else {
+               menu = "e.menu"
+               trigger = "e.trigger"
+               target = "e.triggerRef"
        }
 
        utils.Replace(&input, 
`\(0,([\w_$]+)\.jsx\)\([\w_$]+\.[\w_$]+,\{value:"contextmenu"[^\}]+\}\)\}\)`, 
func(submatches ...string) string {

++++++ cli.obsinfo ++++++
--- /var/tmp/diff_new_pack.SmOMyD/_old  2024-09-30 15:39:12.154026388 +0200
+++ /var/tmp/diff_new_pack.SmOMyD/_new  2024-09-30 15:39:12.186027721 +0200
@@ -1,5 +1,5 @@
 name: cli
-version: 2.38.3
-mtime: 1725997357
-commit: ae905881c00ac6594651fa540197fd36f756f399
+version: 2.38.4
+mtime: 1727462811
+commit: 8e1926d2994c01e71dc32f666eef12675b0f2102
 

++++++ vendor.tar.gz ++++++

Reply via email to