components/dashboards-web-component/src/utils/WidgetClassRegistry.js
function extendsFromDeprecatedWidgetClassVersion(widgetClass) {
    return Object.getPrototypeOf(widgetClass.prototype).constructor.version !== Widget.version;
}
function extendsFromDeprecatedWidgetClassVersion(widgetClass) {
    return Object.getPrototypeOf(widgetClass.prototype).constructor.version !== Widget.version;
}
function extendsFromDeprecatedWidgetClassVersion ( widgetClass ) { return Object . getPrototypeOf ( widgetClass . prototype ) . constructor . version !== Widget . version ; }
Following is to maintain backward compatibility with SP-4.0.0, SP-4.1.0 
Checks whether given widget class extends from a deprecated version of @wso2-dashboards/widget class.
@param {class} widgetClass class to be checked
@returns {boolean} true if extend from a deprecated version of the Widget class, otherwise false
@private
Following is to maintain backward compatibility with SP - 4 . 0 . 0 SP - 4 . 1 . 0 Checks whether given widget class extends from a deprecated version of