-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate integrations #403
Comments
@westonruter Can you please share how we are planning to deprecate the integrations? Are we completely removing them in this version or just adding a deprecating notice for now. If we are just going to add a message then this is just a matter of adding /**
* Load service worker integrations.
*
* @since 0.2.0
* @deprecated 0.7 Support for Integrations will be removed in a future version.
* @codeCoverageIgnore
*
* @param WP_Service_Worker_Scripts $scripts Instance to register service worker behavior with.
*/
function pwa_load_service_worker_integrations( WP_Service_Worker_Scripts $scripts ) {
_deprecated_function( __FUNCTION__, '0.7', );
if ( ! current_theme_supports( 'service_worker' ) ) {
return;
}
/** WordPress Service Worker Integration Functions */
require_once PWA_PLUGIN_DIR . '/integrations/functions.php';
pwa_register_service_worker_integrations( $scripts );
} If you have some different ideas with integrations deprecation then please let me know. |
@westonruter Any update on this one? |
Perhaps to start with we should add console.warn( "The X integration in the PWA plugin is deprecated and no longer being considered for WordPress core inclusion." ); That would probably be a good first step as a soft-deprecation. |
As noted in the Service Worker wiki page section on Integrations:
The integrations were largely experimental and in practice they've not been used 20% (as they are only usable via code opt-in) to warrant being part of the plugin itself for core merge.
The text was updated successfully, but these errors were encountered: