diff --git a/WagoUI_Libraries/LibAddonProfiles/modules/ElvUI.lua b/WagoUI_Libraries/LibAddonProfiles/modules/ElvUI.lua index 3fb176d..ab26e97 100644 --- a/WagoUI_Libraries/LibAddonProfiles/modules/ElvUI.lua +++ b/WagoUI_Libraries/LibAddonProfiles/modules/ElvUI.lua @@ -2,13 +2,13 @@ local _, loadingAddonNamespace = ... ---@type LibAddonProfilesPrivate local private = loadingAddonNamespace.GetLibAddonProfilesInternal and loadingAddonNamespace:GetLibAddonProfilesInternal() if (not private) then return end -local EXPORT_PREFIX = "!E1!" +local EXPORT_PREFIX = "!E2!" ---@type LibAddonProfilesModule local m = { moduleName = "ElvUI", wagoId = "tukui--2", - oldestSupported = "v13.76", + oldestSupported = "v15.19", addonNames = { "ElvUI", "ElvUI_Libraries", "ElvUI_Options" }, conflictingAddons = { "Bartender4", "ShadowedUnitFrames", "ShadowedUF_Options", "PitBull4" }, icon = C_AddOns.GetAddOnMetadata("ElvUI", "IconTexture"), diff --git a/WagoUI_Libraries/LibAddonProfiles/modules/ElvUIAuraFilters.lua b/WagoUI_Libraries/LibAddonProfiles/modules/ElvUIAuraFilters.lua index 836d0d7..960444d 100644 --- a/WagoUI_Libraries/LibAddonProfiles/modules/ElvUIAuraFilters.lua +++ b/WagoUI_Libraries/LibAddonProfiles/modules/ElvUIAuraFilters.lua @@ -2,12 +2,12 @@ local _, loadingAddonNamespace = ... ---@type LibAddonProfilesPrivate local private = loadingAddonNamespace.GetLibAddonProfilesInternal and loadingAddonNamespace:GetLibAddonProfilesInternal() if (not private) then return end -local EXPORT_PREFIX = "!E1!" +local EXPORT_PREFIX = "!E2!" ---@type LibAddonProfilesModule local m = { moduleName = "ElvUI Aura Filters", - oldestSupported = "v13.76", + oldestSupported = "v15.19", addonNames = { "ElvUI", "ElvUI_Libraries", "ElvUI_Options" }, icon = C_AddOns.GetAddOnMetadata("ElvUI", "IconTexture"), slash = "/ec", diff --git a/WagoUI_Libraries/LibAddonProfiles/modules/ElvUIGlobal.lua b/WagoUI_Libraries/LibAddonProfiles/modules/ElvUIGlobal.lua index 6dfbd24..29753fd 100644 --- a/WagoUI_Libraries/LibAddonProfiles/modules/ElvUIGlobal.lua +++ b/WagoUI_Libraries/LibAddonProfiles/modules/ElvUIGlobal.lua @@ -2,12 +2,12 @@ local _, loadingAddonNamespace = ... ---@type LibAddonProfilesPrivate local private = loadingAddonNamespace.GetLibAddonProfilesInternal and loadingAddonNamespace:GetLibAddonProfilesInternal() if (not private) then return end -local EXPORT_PREFIX = "!E1!" +local EXPORT_PREFIX = "!E2!" ---@type LibAddonProfilesModule local m = { moduleName = "ElvUI Account Settings", - oldestSupported = "v13.76", + oldestSupported = "v15.19", addonNames = { "ElvUI", "ElvUI_Libraries", "ElvUI_Options" }, icon = C_AddOns.GetAddOnMetadata("ElvUI", "IconTexture"), slash = "/ec", diff --git a/WagoUI_Libraries/LibAddonProfiles/modules/ElvUIPrivate.lua b/WagoUI_Libraries/LibAddonProfiles/modules/ElvUIPrivate.lua index b93a0da..a6cc8b4 100644 --- a/WagoUI_Libraries/LibAddonProfiles/modules/ElvUIPrivate.lua +++ b/WagoUI_Libraries/LibAddonProfiles/modules/ElvUIPrivate.lua @@ -2,12 +2,12 @@ local _, loadingAddonNamespace = ... ---@type LibAddonProfilesPrivate local private = loadingAddonNamespace.GetLibAddonProfilesInternal and loadingAddonNamespace:GetLibAddonProfilesInternal() if (not private) then return end -local EXPORT_PREFIX = "!E1!" +local EXPORT_PREFIX = "!E2!" ---@type LibAddonProfilesModule local m = { moduleName = "ElvUI Private Profile", - oldestSupported = "v13.76", + oldestSupported = "v15.19", addonNames = { "ElvUI", "ElvUI_Libraries", "ElvUI_Options" }, icon = C_AddOns.GetAddOnMetadata("ElvUI", "IconTexture"), slash = "/ec", @@ -103,18 +103,13 @@ local m = { profileData = E:FilterTableFromBlacklist(profileData, D.blacklistedKeys.private) if not profileData or (profileData and type(profileData) ~= 'table') then return end - local profileExport - local serialString = D:Serialize(profileData) + local serialString = C_EncodingUtil.SerializeCBOR(profileData) local success, exportString = pcall(D.CreateProfileExport, D, 'private', profileKey, serialString) - if not success then - return - end - local LibDeflate = LibStub:GetLibrary("LibDeflateAsync") - local compressedData = LibDeflate:CompressDeflate(exportString, { level = 5 }) - local printableString = LibDeflate:EncodeForPrint(compressedData) - profileExport = printableString and format('%s%s', EXPORT_PREFIX, printableString) or nil + if not success then return end - return profileExport + local compressedData = C_EncodingUtil.CompressString(exportString, Enum.CompressionMethod.Deflate or 0, Enum.CompressionLevel.Default or 0) + local printableString = C_EncodingUtil.EncodeBase64(compressedData) + return printableString and format('%s%s', EXPORT_PREFIX, printableString) or nil end, areProfileStringsEqual = function(self, profileStringA, profileStringB, tableA, tableB) if not profileStringA or not profileStringB then