Version 4.0.0
June 29, 2023
Added
- Added missing translations.
Changed
- Updated
league/oauth2-google
to 4.0. - Use
saf33r/oauth2-vimeo
instead ofdukt/oauth2-vimeo
.
Fixed
- Fixed a bug where the plugin couldn’t be uninstalled. (#82)
- Fixed the default
totalVideos
value if thestats
are not present in the Vimeo video response. (#78) - Fixed a bug where the
site
query param was present in the OAuth redirect URI. - Fixed an error when
dukt\videos\helpers\VideosHelper::getVideoThumbnail()
is unable to resolve the thumbnail MIME type. (#71)
Version 3.0.0-beta.1
April 6, 2022
Added
- Initial Craft CMS 4 compatibility.
Version 2.1.0
March 30, 2022
Added
- Added icons for Vimeo uploads, likes, folders, albums and showcases.
- Added icons for YouTube uploads, favorites, and playlists.
- Added support for Vimeo folders and showcases.
Changed
- Allow gateway OAuth settings editing and saving only when
allowAdminChanges
Craft config is enabled. - Videos now uses Vue.js.
Fixed
- Fixed a bug where the field’s video URL value could get lost if the gateway wasn’t available.
Version 2.0.15
May 19, 2021
Added
- Added Vimeo folders support.
- Added collection icon support.
Changed
- Renamed Vimeo’s “Playlists” section to “Showcases”.
- Renamed Vimeo’s “Favorites” to “Likes”.
- The plugin’s icon has been updated.
- Use Vue.js for JavaScript interactions.
Fixed
- Fixed a bug where Vimeo video listing might not be loaded properly when the plugin was unable to find one of the videos’ thumbnail.
Fixed
Version 2.0.14
April 8, 2021
Added
- Added environment variable suggestions support for the OAuth client ID and secret.
- Added a link to the documentation in the OAuth settings for video providers.
Changed
- The
dukt\videos\services\Videos::requestVideoById()
method now takes into account Videos’enableCache
config.
Fixed
- Fixed a bug where the plugin was using a medium quality image for generating thumbnails, resulting in low quality thumbnails. (#48)
Version 2.0.13
February 10, 2021
Changed
- Updated
league/oauth2-client
to 2.5.
Fixed
- Fixed a bug where the environment variables were not being parsed when used for client ID or secret OAuth configuration.
- Fixed a bug where video thumbnails could not be saved due to an issue with Guzzle 7. (#49)
Version 2.0.9
June 3, 2019
Changed
- Updated schema version to 1.0.2.
Version 2.0.8
June 2, 2019
Added
- Added environment variables support for gateways’s OAuth client ID and secret in a project config context. (#18)
Changed
- OAuth tokens are now stored in their own database table instead of being stored in the plugin’s settings. (#14, #21)
Fixed
- Fixed a bug where the YouTube gateway was not explicitly prompting for consent, which could cause the token to be saved without a refresh token.
- Fixed a bug that prevented YouTube thumbnails from working properly for private videos. (#17)
Version 2.0.7
May 15, 2019
Fixed
- Fixed a bug where search keywords were not properly encoded to support emojis when saving a video. (#20)
Version 2.0.6
March 29, 2019
Changed
- Updated
league/oauth2-google
dependency to^3.0
.
Version 2.0.5
March 3, 2019
Fixed
- Fixed a bug where thumbnails for YouTube videos were not cropped properly.
Version 2.0.4
September 10, 2018
Fixed
- Fixed a bug where the Video field was not properly migrated when upgrading from Craft 2 to Craft 3.
Version 2.0.3
September 3, 2018
Fixed
- Fixed a bug where Vimeo videos with custom URLs couldn’t be selected in the explorer.
Version 2.0.2
June 28, 2018
Changed
- Replaced
dukt/oauth2-google
dependency withleague/oauth2-google
. - Removed
dukt\videos\services\Videos::isOauthProviderConfigured()
.
Fixed
- Fixed a bug which prevented the
oauthProviderOptions
config from being set from a config file for some providers and from the plugin’s stored settings for other providers. - Fixed a bug where videos wouldn’t automatically start to play when clicking on the play button.
Version 2.0.1
May 26, 2018
Added
- The videos explorer is now showing a spinner while it’s loading.
Fixed
- Fixed a scrolling bug in the Videos explorer modal.
Version 2.0.0
May 9, 2018
Added
- Show account details on the gateway details page.
- Added
files
to the list of fields requested for a Vimeo video. - Added the ability to double click on a video so select it in a Video field scenario.
Changed
- Removed unused
dukt\videos\base\Gateway::setAuthenticationToken()
method. - Stopped catching exceptions in the
dukt\videos\base\Gateway::hasToken()
method. - Improved exception handling when OAuth callback fails.
Fixed
- Fixed a bug where
dukt\videos\services\Oauth::getTokenData()
could return a string instead of an array. (#7)
Version 2.0.0-beta.7
April 27, 2018
Changed
- Updated dukt/oauth2-vimeo dependency to
^2.0.1
.
Fixed
- Fixed namespacing bug in
dukt\videos\services\Cache
. (#4) - Fixed a bug where the explorer modal’s spinner was not properly positionned.
- Fixed authentication bug with Vimeo.
Version 2.0.0-beta.6
December 17, 2017
Changed
- Updated to require craftcms/cms
^3.0.0-RC1
. - Updated plugin icon.
Fixed
- Fixed layout bug with the video explorer.
Removed
- Removed ununsed mask icon.
Version 2.0.0-beta.5
September 24, 2017
Added
- Added the
registerGatewayTypes
todukt\videos\services\Gateways
, giving plugins a chance to register gateway types (replacinggetVideosGateways()
). - Added
dukt\videos\events\RegisterGatewayTypesEvent
.
Improved
- Now using the
craft\web\twig\variables\CraftVariable
’sinit
event to register Videos’ variable class, replacing the now-deprecateddefineComponents
. - Removed
dukt\videos\Plugin::getVideosGateways()
.
Version 2.0.0-beta.4
September 22, 2017
Changed
- The plugin now requires Craft 3.0.0-beta.27 or above.
Fixed
- Fixed video thumbnails for Craft 3.0.0-beta.27 and above where resource URLs are not supported anymore.
Version 2.0.0-beta.3
August 28, 2017
Fixed
- Fixed
dukt\videos\fields\Video
to usenormalizeValue()
. (#2)
Version 2.0.0-beta.2
August 28, 2017
Added
- Added
dukt\videos\services\Oauth::getTokenData()
.
Improved
- Check that there is an
expires
value before trying to refresh the token indukt\videos\base\Gateway::createTokenFromData()
. - Moved
dukt\videos\base\Gateway::createTokenFromData()
todukt\videos\services\Oauth::createTokenFromData()
. - Renamed
dukt\videos\base\Gateway::getToken()
togetOauthToken()
. - Instantiating video gateways doesn’t require a refreshed token anymore.
- Improved error handling for the settings index page.
- Improved error handling for the gateway details page.
- Replaced
dukt\videos\base\Gateway::parseJson()
withcraft\helpers\Json::decode()
. - Replaced
dukt\videos\fields\Video::prepValue()
withnormalizeValue()
. (#1)
Fixed
- Fixed a bug where
dukt\videos\services\Oauth::getToken()
would crash if the token didn’t exists for the given gateway.
Version 2.0.0-beta.1
August 25, 2017
Added
- Craft 3 compatibility.
- Added
review_link
to the list of fields returned by the Vimeo API for a video. - Added YouTube and Vimeo SVG icons
- Added “Like videos” support for the YouTube gateway.
- Added
dukt\videos\base\Gateway::getJavascriptOrigin()
. - Added
dukt\videos\base\Gateway::getOauthProviderName()
. - Added
dukt\videos\base\Gateway::getRedirectUri()
. - Added
dukt\videos\base\Gateway::getVideosPerPage()
. - Added
dukt\videos\base\GatewayInterface::createOauthProvider()
. - Added
dukt\videos\base\GatewayInterface::getIconAlias()
. - Added
dukt\videos\base\GatewayInterface::getOauthProviderApiConsoleUrl()
. - Added
dukt\videos\base\PluginTrait
. - Added
dukt\videos\errors\ApiResponseException
. - Added
dukt\videos\errors\CollectionParsingException
. - Added
dukt\videos\errors\GatewayMethodNotFoundException
. - Added
dukt\videos\errors\GatewayNotFoundException
. - Added
dukt\videos\errors\JsonParsingException
. - Added
dukt\videos\errors\VideoNotFoundException
. - Added
dukt\videos\models\Settings
. - Added
dukt\videos\web\assets\settings\SettingsAsset
. - Added
dukt\videos\web\assets\videofield\VideoFieldAsset
. - Added
dukt\videos\web\assets\videos\VideosAsset
.
Changed
- OAuth provider options are now using gateway’s handle instead of oauth provider’s handle as a key.
- Removed dependency with
dukt/oauth
- Search support is disabled by default and gateways can enable it by defining a
supportsSearch()
method returningtrue
. - Moved
dukt\videos\controllers\VideosController::actionFieldPreview()
todukt\videos\controllers\ExplorerController::actionFieldPreview()
. - Moved
dukt\videos\controllers\VideosController::actionPlayer()
todukt\videos\controllers\ExplorerController::actionPlayer()
. - Removed
Craft\Videos_InstallController
. - Removed
Craft\VideosController
. - Removed
dukt\videos\models\Settings::$youtubeParameters
. - Renamed
Craft\Videos_CacheService
todukt\videos\services\Cache
. - Renamed
Craft\Videos_CollectionModel
todukt\videos\models\Collection
. - Renamed
Craft\Videos_GatewaysService
todukt\videos\services\Gateways
. - Renamed
Craft\Videos_OauthController
todukt\videos\controllers\OauthController
. - Renamed
Craft\Videos_OauthService
todukt\videos\services\Oauth
. - Renamed
Craft\Videos_SectionModel
todukt\videos\models\Section
. - Renamed
Craft\Videos_SettingsController
todukt\videos\controllers\SettingsController
. - Renamed
Craft\Videos_VideoFieldType
todukt\videos\fields\Video
. - Renamed
Craft\Videos_VideoModel
todukt\videos\models\Video
. - Renamed
Craft\VideosController
todukt\videos\controllers\ExplorerController
. - Renamed
Craft\VideosHelper
todukt\videos\helpers\VideosHelper
. - Renamed
Craft\VideosService
todukt\videos\services\Videos
. - Renamed
Craft\VideosVariable
todukt\videos\web\twig\variables\VideosVariable
. - Renamed
dukt\videos\base\Gateway::apiGet()
toget()
. - Renamed
dukt\videos\base\Gateway::authenticationSetToken()
tosetAuthenticationToken()
. - Renamed
Dukt\Videos\Gateways\BaseGateway
todukt\videos\base\Gateway
. - Renamed
Dukt\Videos\Gateways\IGateway
todukt\videos\base\GatewayInterface
. - Renamed
Dukt\Videos\Gateways\Vimeo
todukt\videos\gateways\Vimeo
. - Renamed
Dukt\Videos\Gateways\Youtube
todukt\videos\gateways\YouTube
.
Fixed
- Fixed a bug where token when not being properly refreshed in
dukt\videos\services\Gateways::loadGateways()
. - Fixed success message when connecting to Vimeo.
- Fixed Vimeo’s console API URL.
- Fixed YouTube’s OAuth provider API console URL.