Kiatra / ChocolateBar

ChocolateBar is a World of Warcraft addons to display plugins in a bar on top or bottom of your screen
https://www.wowace.com/projects/chocolatebar
18 stars 9 forks source link

[Bug Report] Blizzard API 'GetAddOnMetadata is deprecated #35

Closed Myrroddin closed 3 months ago

Myrroddin commented 6 months ago

What game version did the bug occur in?

Vanilla Classic, Burning Crusade Classic, Wrath of the Lich King Classic, Retail

Troubleshooting

Describe the bug.

GetAddOnMetadata was added to the depreciated list at the beginning of Dragonflight. It has been replaced by C_AddOns.GetAddOnMetadata for all game versions.

I found the depreciated API on line 12 of Options.lua although it may exist elsewhere.

Steps to reproduce.

I have checked if the API C_AddOns exists in all WoW versions, and it does return information. Continuing to use the older GetAddOnMetadata will stop functioning during the pre-patch for The War Within.

Expected behavior.

Replacing outdated APIs before they cease to work and cause further issues.

Errors

No errors yet, but they will come unless the API is updated in ChocolateBar.
muhmiauwau commented 3 months ago

Continuing to use the older GetAddOnMetadata will stop functioning during the pre-patch for The War Within. Actually it will stop working with 11.0.2.

It would be nice if this could be fixed before 11.0.2. goes live. :)

Kiatra commented 3 months ago

Fixed with v3.14