Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wordpress/deprecated

Package Overview
Dependencies
Maintainers
23
Versions
160
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wordpress/deprecated

Deprecation utility for WordPress.

  • 4.14.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
106K
increased by0.25%
Maintainers
23
Weekly downloads
 
Created

What is @wordpress/deprecated?

@wordpress/deprecated is a utility package used in WordPress development to handle deprecated features. It provides a way to mark functions, methods, or other features as deprecated, allowing developers to notify users of the deprecation and suggest alternatives.

What are @wordpress/deprecated's main functionalities?

Marking a function as deprecated

This feature allows developers to mark a function as deprecated. The `deprecated` function is called with the name of the deprecated function, the version since it is deprecated, an alternative function, and the plugin name. This helps in notifying users about the deprecation and suggesting an alternative.

const deprecated = require('@wordpress/deprecated');

function oldFunction() {
  deprecated('oldFunction', {
    version: '1.0.0',
    alternative: 'newFunction',
    plugin: 'my-plugin'
  });
  // Function logic
}

Other packages similar to @wordpress/deprecated

Keywords

FAQs

Package last updated on 11 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc