إصدار واجهة برمجة التطبيقات Plugin

Where do I find which versions of discourse support which plugin api version. Currently I am using pluginapi v 0.8 because I found it in discourse theme guide. But I haven’t been able to locate plugin api versions and their link with discourse versions.

3 إعجابات

@Usman_Shahid

Not sure if this is the best way, but perhaps you can look at the plugin-api.js file (line 89) where the version number is listed:

const PLUGIN_API_VERSION = “0.12.3”

and compare that number across different commits of Discourse?

إعجاب واحد (1)

Thank you that’s very helpful

إعجاب واحد (1)

يبدو أن الملف الحالي للإصدار الذي أستخدمه (3.2.0) موجود هنا:

هذه طريقة غامضة جدًا للعثور على إصدار واجهة برمجة التطبيقات (API) الذي يُفترض أن نستخدمه.

تجربتي حتى الآن إذا أخطأت في ذلك هي أن البرنامج النصي يفشل في التحميل بصمت.