From 9618075b9ccbdb5f0ebfc60a0477fec588b6ce9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Saquetim?= <1108771+megothss@users.noreply.github.com> Date: Thu, 19 Dec 2024 15:28:01 -0300 Subject: [PATCH] DEV: Remove the deprecation of `includePostAttributes` (#30381) --- .../javascripts/discourse/app/lib/plugin-api.gjs | 11 +---------- docs/CHANGELOG-JAVASCRIPT-PLUGIN-API.md | 4 ++++ 2 files changed, 5 insertions(+), 10 deletions(-) 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.