Skip to content

A platform for community discussion. Free, open, simple.

DEV: Remove the deprecation of `includePostAttributes` (#30381)

Sérgio Saquetim9618075b9ccb
diff --git a/app/assets/javascripts/discourse/app/lib/plugin-api.gjs b/app/assets/javascripts/discourse/app/lib/plugin-api.gjs
index 7a2497b4ac2..7616d06eb48 100644
--- a/app/assets/javascripts/discourse/app/lib/plugin-api.gjs
+++ b/app/assets/javascripts/discourse/app/lib/plugin-api.gjs
@@ -3,7 +3,7 @@
// 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.39.1";
+export const PLUGIN_API_VERSION = "1.39.2";
import $ from "jquery";
import { h } from "virtual-dom";
@@ -823,15 +823,6 @@ class PluginApi {
*
**/
includePostAttributes(...attributes) {
- deprecated(
- "`api.includePostAttributes` has been deprecated. Use api.addTrackedPostProperties instead.",
- {
- id: "discourse.api.include-post-attributes",
- since: "v3.4.0.beta3-dev",
- dropFrom: "v3.5.0",
- }
- );
-
includeAttributes(...attributes);
}
diff --git a/docs/CHANGELOG-JAVASCRIPT-PLUGIN-API.md b/docs/CHANGELOG-JAVASCRIPT-PLUGIN-API.md
index 1f720332d46..623745a74e0 100644
--- a/docs/CHANGELOG-JAVASCRIPT-PLUGIN-API.md
+++ b/docs/CHANGELOG-JAVASCRIPT-PLUGIN-API.md
@@ -7,6 +7,10 @@ in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## [1.39.2] - 2024-12-19
+
+- Removed the deprecation of `includePostAttributes` for now.
+
## [1.39.1] - 2024-12-18
- Renamed `addTrackedPostProperty` to `addTrackedPostProperties` to allow plugins/TCs to add multiple new tracked properties to the post model.