From 5357f0175e0c31c4f27ec3ba4072a4eb37774eac Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Thu, 1 Aug 2024 14:29:45 +0200 Subject: [PATCH] DEV: moves version to the top (#28190) The version is a very important info of the file and it's currently lost in the middle of the file. I think it makes sense to have it at the top. --- .../javascripts/discourse/app/lib/plugin-api.gjs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/assets/javascripts/discourse/app/lib/plugin-api.gjs b/app/assets/javascripts/discourse/app/lib/plugin-api.gjs index 8bb9829c5a0..371908c9868 100644 --- a/app/assets/javascripts/discourse/app/lib/plugin-api.gjs +++ b/app/assets/javascripts/discourse/app/lib/plugin-api.gjs @@ -1,3 +1,10 @@ +// If you add any methods to the API ensure you bump up the version number +// based on Semantic Versioning 2.0.0. Please update the changelog at +// docs/CHANGELOG-JAVASCRIPT-PLUGIN-API.md whenever you change the version +// using the format described at https://keepachangelog.com/en/1.0.0/. + +export const PLUGIN_API_VERSION = "1.35.0"; + import $ from "jquery"; import { h } from "virtual-dom"; import { addBulkDropdownButton } from "discourse/components/bulk-select-topics-dropdown"; @@ -151,13 +158,6 @@ import { addImageWrapperButton } from "discourse-markdown-it/features/image-cont import { CUSTOM_USER_SEARCH_OPTIONS } from "select-kit/components/user-chooser"; import { modifySelectKit } from "select-kit/mixins/plugin-api"; -// If you add any methods to the API ensure you bump up the version number -// based on Semantic Versioning 2.0.0. Please update the changelog at -// docs/CHANGELOG-JAVASCRIPT-PLUGIN-API.md whenever you change the version -// using the format described at https://keepachangelog.com/en/1.0.0/. - -export const PLUGIN_API_VERSION = "1.35.0"; - const DEPRECATED_HEADER_WIDGETS = [ "header", "site-header",