From 6022f4d1f8003616f0c5ee5fc68833c9af6e5a08 Mon Sep 17 00:00:00 2001 From: KMchaudhary Date: Wed, 11 Nov 2026 16:42:42 +0530 Subject: [PATCH] Bump version to 2.9.0 and add the v2.9.0 changelog Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 7 +++++++ README.md | 2 +- godam.php | 4 ++-- inc/classes/class-blocks.php | 2 +- inc/classes/class-pages.php | 2 +- .../layers/class-layer-type-registry.php | 14 +++++++------- inc/classes/shortcodes/class-godam-player.php | 2 +- inc/helpers/layer-functions.php | 10 +++++----- package-lock.json | 4 ++-- package.json | 2 +- readme.txt | 17 ++++++++--------- 11 files changed, 36 insertions(+), 30 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 18a601dec..eb677ad66 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog # +## v2.9.0 (November XX, 2026) ## + +- Feat: Developers can now build their own layer types for GoDAM videos and images with the Layer API: describe the layer in a `layer.json` file and register it from PHP, the video editor and the front end, the way blocks are built. Custom layers appear in the "Add layer" menu and render in the player and the GoDAM Image block. +- Tweak: A layer's front-end script now loads only on pages that show that kind of layer, instead of on every page with a GoDAM video. +- Tweak: GoDAM's own layers (CTA, forms, hotspots, polls and ads) now run on the Layer API. Layers you already added keep working as before. +- Tweak: The old add-on layer hooks (`godam_video_editor_layer_options`, `godam_video_editor_layer_components`, `godam_player_render_layer` and the `window.godamLayer*` globals) are deprecated and will be removed in 2.11.0. They keep working until then, with a deprecation notice. + ## v2.8.1 (November 11, 2026) ## - Fix: Security fixes. diff --git a/README.md b/README.md index 9efc88dd4..7aa1ae4d4 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Tested up to: 7.1 Requires PHP: 7.4 -Stable tag: 2.8.1 +Stable tag: 2.9.0 License: [GPLv2 or later](http://www.gnu.org/licenses/gpl-2.0.html) diff --git a/godam.php b/godam.php index 8a5717a33..97fa39676 100644 --- a/godam.php +++ b/godam.php @@ -3,7 +3,7 @@ * Plugin Name: GoDAM * Plugin URI: https://godam.io * Description: Seamlessly manage and deliver your media assets directly from the cloud-based media management. Store assets efficiently, stream them via a CDN, and enhance your website's performance and user experience. Featuring adaptive bit rate streaming, adding interactive layers in videos, and taking full advantage of a digital asset management solution within WordPress. - * Version: 2.8.1 + * Version: 2.9.0 * Requires at least: 6.5 * Requires PHP: 7.4 * Text Domain: godam @@ -43,7 +43,7 @@ /** * The version of the plugin */ - define( 'RTGODAM_VERSION', '2.8.1' ); + define( 'RTGODAM_VERSION', '2.9.0' ); } if ( ! defined( 'RTGODAM_API_BASE' ) ) { diff --git a/inc/classes/class-blocks.php b/inc/classes/class-blocks.php index 97824c87a..1cd3afb81 100644 --- a/inc/classes/class-blocks.php +++ b/inc/classes/class-blocks.php @@ -46,7 +46,7 @@ public function setup_hooks() { * `enqueue_block_assets`, not those of the editor window. On the front end * the block loads them itself, only for the layers it shows. * - * @since n.e.x.t + * @since 2.9.0 * * @return void */ diff --git a/inc/classes/class-pages.php b/inc/classes/class-pages.php index bf3aaf771..ea753ade9 100644 --- a/inc/classes/class-pages.php +++ b/inc/classes/class-pages.php @@ -1580,7 +1580,7 @@ private function get_layer_entries_url( $layer ) { * (`window.godam.layers`). The video editor depends on it, and so can an * add-on's editor script that registers its own layer types. * - * @since n.e.x.t + * @since 2.9.0 * * @return void */ diff --git a/inc/classes/layers/class-layer-type-registry.php b/inc/classes/layers/class-layer-type-registry.php index 7ad1c7c35..91edf2608 100644 --- a/inc/classes/layers/class-layer-type-registry.php +++ b/inc/classes/layers/class-layer-type-registry.php @@ -98,7 +98,7 @@ public function fire_init() { /** * Fires when layer types should register. Call `godam_register_layer_type()` here. * - * @since n.e.x.t + * @since 2.9.0 */ do_action( 'godam_init' ); } @@ -130,7 +130,7 @@ public function register( $path_or_metadata, $args = array() ) { /** * Filters a layer type's metadata before it registers. * - * @since n.e.x.t + * @since 2.9.0 * * @param array $metadata Metadata from `layer.json`. */ @@ -377,7 +377,7 @@ public function render( $layer, $instance_id, $context = array() ) { * The deprecation is reported before output is buffered, so a notice printed * under `WP_DEBUG` goes to the page rather than into the layer's markup. * - * @since n.e.x.t + * @since 2.9.0 * * @param array $layer Saved layer. * @param string $instance_id Player instance id. @@ -567,7 +567,7 @@ public function enqueue_view_scripts_for_media( $media = null ) { * For the block editor canvas, an iframe that gets the styles enqueued on * `enqueue_block_assets` but not the editor window's scripts. * - * @since n.e.x.t + * @since 2.9.0 * * @param string|null $media `video`, `image`, or null for any. * @return void @@ -676,7 +676,7 @@ private function register_scripts( $type, $key, $extra_deps ) { * `layer.json`. A `*-rtl.css` beside the file (as `@wordpress/scripts` builds * it) replaces it on right-to-left sites. * - * @since n.e.x.t + * @since 2.9.0 * * @param array $type Layer type. * @param string $key `style`, `viewStyle` or `editorStyle`. @@ -765,7 +765,7 @@ private function is_godam_file( $file ) { * then without one, so a translation the text domain already has for the * same string, say from the add-on's editor script, is used too. * - * @since n.e.x.t + * @since 2.9.0 * * @param string|array $schema Context, or the schema of an array of settings. * @param mixed $settings Metadata, or part of it. @@ -855,7 +855,7 @@ private function read_metadata( $path ) { */ private function notice( $method, $message ) { if ( function_exists( '_doing_it_wrong' ) ) { - _doing_it_wrong( esc_html( __CLASS__ . '::' . $method ), esc_html( $message ), 'n.e.x.t' ); + _doing_it_wrong( esc_html( __CLASS__ . '::' . $method ), esc_html( $message ), '2.9.0' ); } } } diff --git a/inc/classes/shortcodes/class-godam-player.php b/inc/classes/shortcodes/class-godam-player.php index 5e8aedac6..1c240fd07 100644 --- a/inc/classes/shortcodes/class-godam-player.php +++ b/inc/classes/shortcodes/class-godam-player.php @@ -53,7 +53,7 @@ final protected function __construct() { * `godam/image` block's `godam-player-style` out of the canvas, and every * add-on stylesheet that depends on it, such as the Woo product hotspot's. * - * @since n.e.x.t + * @since 2.9.0 * * @return void */ diff --git a/inc/helpers/layer-functions.php b/inc/helpers/layer-functions.php index 4a2f54788..993a071ed 100644 --- a/inc/helpers/layer-functions.php +++ b/inc/helpers/layer-functions.php @@ -22,7 +22,7 @@ /** * Register a layer type. Call it on the `godam_init` action. * - * @since n.e.x.t + * @since 2.9.0 * * @param string|array $path_or_metadata Path to a `layer.json` (or its folder), or the metadata array. * @param array $args `render_callback`, `is_available`, `should_render`, `variations`. @@ -35,7 +35,7 @@ function godam_register_layer_type( $path_or_metadata, $args = array() ) { /** * Remove a layer type. * - * @since n.e.x.t + * @since 2.9.0 * * @param string $name Layer type name. * @return array|false The removed type, or false. @@ -47,7 +47,7 @@ function godam_unregister_layer_type( $name ) { /** * A registered layer type. * - * @since n.e.x.t + * @since 2.9.0 * * @param string $name Layer type name. * @return array|null The type. @@ -59,7 +59,7 @@ function godam_get_layer_type( $name ) { /** * Add a variation to a layer type, e.g. a form provider to `form`. * - * @since n.e.x.t + * @since 2.9.0 * * @param string $name Layer type name. * @param array $variation `name`, `title`, `render_callback`, `is_available`, `dependency_key`. @@ -72,7 +72,7 @@ function godam_register_layer_variation( $name, $variation ) { /** * The container markup for one saved layer. * - * @since n.e.x.t + * @since 2.9.0 * * @param array $layer Saved layer. * @param string $instance_id Player instance id. diff --git a/package-lock.json b/package-lock.json index d3d32b46c..115aed2cd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "godam", - "version": "2.8.1", + "version": "2.9.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "godam", - "version": "2.8.1", + "version": "2.9.0", "license": "GPL-2.0-or-later", "dependencies": { "@dnd-kit/core": "^6.3.1", diff --git a/package.json b/package.json index c6a2b6bd3..4a11a3646 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "godam", - "version": "2.8.1", + "version": "2.9.0", "description": "A WordPress plugin to manage digital assets", "private": true, "author": "rtCamp", diff --git a/readme.txt b/readme.txt index ca9b5ba60..743f6fce4 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: video hosting, vimeo, lms, online courses, lifterlms Requires at least: 6.5 Tested up to: 7.1 Requires PHP: 7.4 -Stable tag: 2.8.1 +Stable tag: 2.9.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -273,6 +273,13 @@ If your banner does not support the WP Consent API, add `add_filter( 'godam_visi == Changelog == += v2.9.0 (November XX, 2026) = + +- Feat: Developers can now build their own layer types for GoDAM videos and images with the Layer API: describe the layer in a `layer.json` file and register it from PHP, the video editor and the front end, the way blocks are built. Custom layers appear in the "Add layer" menu and render in the player and the GoDAM Image block. +- Tweak: A layer's front-end script now loads only on pages that show that kind of layer, instead of on every page with a GoDAM video. +- Tweak: GoDAM's own layers (CTA, forms, hotspots, polls and ads) now run on the Layer API. Layers you already added keep working as before. +- Tweak: The old add-on layer hooks (`godam_video_editor_layer_options`, `godam_video_editor_layer_components`, `godam_player_render_layer` and the `window.godamLayer*` globals) are deprecated and will be removed in 2.11.0. They keep working until then, with a deprecation notice. + = v2.8.1 (November 11, 2026) = - Fix: Security fixes. @@ -288,14 +295,6 @@ If your banner does not support the WP Consent API, add `add_filter( 'godam_visi - Fix: GoDAM elements no longer cause deprecation notices with WPBakery 9.1. - Fix: Security fixes. -= v2.7.0 (November 5, 2026) = - -- Feat: Videos can now pause or mute when they scroll out of view, move to another slide, or sit in a closed tab or popup. Turn it on in GoDAM > Settings > Video Player. It is off by default, and each GoDAM Video block, widget or shortcode can override it. -- Feat: Developers can pause all GoDAM videos from their own code, for example when a carousel changes slide. -- Tweak: Authors see analytics only for the videos they can edit. -- Tweak: Time a video plays muted while out of view no longer counts as watched in analytics. -- Fix: Security fixes. - == External Services == This plugin relies on third-party services to provide specific features. Below is a detailed explanation of the external services used, what data is sent, and under what conditions.