
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

| Package | deprecated |
| Description | Tool for deprecating things |
| Node Version | >= 0.9 |
var oldfn = function(a,b) {
return a+b;
};
// returns a new wrapper function that logs the deprecated function once
var somefn = deprecated.method('dont use this anymore', console.log, oldfn);
var someobj = {};
// set up a getter/set for field that logs deprecated message once
deprecated.field('dont use this anymore', console.log, someobj, 'a', 123);
console.log(someobj.a); // 123
The 'util-deprecate' package provides a similar functionality to 'deprecated' by allowing developers to mark functions as deprecated. It is a lightweight utility that provides a simple way to issue deprecation warnings. Compared to 'deprecated', 'util-deprecate' is more focused on simplicity and ease of use.
The 'depd' package is another alternative for deprecating functions and methods. It provides a more advanced and flexible way to handle deprecations, including the ability to track deprecation warnings and customize the warning messages. 'depd' offers more features and customization options compared to 'deprecated'.
FAQs
Tool for deprecating things
The npm package deprecated receives a total of 103,653 weekly downloads. As such, deprecated popularity was classified as popular.
We found that deprecated demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

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.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.