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

@wordpress/deprecated

Package Overview
Dependencies
Maintainers
10
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wordpress/deprecated - npm Package Compare versions

Comparing version 2.2.0 to 2.3.0

8

package.json
{
"name": "@wordpress/deprecated",
"version": "2.2.0",
"version": "2.3.0",
"description": "Deprecation utility for WordPress.",

@@ -24,4 +24,4 @@ "author": "The WordPress Contributors",

"dependencies": {
"@babel/runtime": "^7.3.1",
"@wordpress/hooks": "^2.2.0"
"@babel/runtime": "^7.4.4",
"@wordpress/hooks": "^2.3.0"
},

@@ -31,3 +31,3 @@ "publishConfig": {

},
"gitHead": "1e024a20a20369af7bc9720a676fdd3837a3a105"
"gitHead": "87f92f8f58a14a58b44beff0919734c546b3b975"
}

@@ -35,9 +35,7 @@ # Deprecated

### default
<a name="default" href="#default">#</a> **default**
[src/index.js#L39-L78](src/index.js#L39-L78)
Logs a message to notify developers about a deprecated feature.
**Usage**
_Usage_

@@ -57,22 +55,20 @@ ```js

**Parameters**
_Parameters_
- **feature** `string`: Name of the deprecated feature.
- **options** `?Object`: Personalisation options
- **options.version** `?string`: Version in which the feature will be removed.
- **options.alternative** `?string`: Feature to use instead
- **options.plugin** `?string`: Plugin name if it's a plugin feature
- **options.link** `?string`: Link to documentation
- **options.hint** `?string`: Additional message to help transition away from the deprecated feature.
- _feature_ `string`: Name of the deprecated feature.
- _options_ `?Object`: Personalisation options
- _options.version_ `?string`: Version in which the feature will be removed.
- _options.alternative_ `?string`: Feature to use instead
- _options.plugin_ `?string`: Plugin name if it's a plugin feature
- _options.link_ `?string`: Link to documentation
- _options.hint_ `?string`: Additional message to help transition away from the deprecated feature.
### logged
<a name="logged" href="#logged">#</a> **logged**
[src/index.js#L12-L12](src/index.js#L12-L12)
Object map tracking messages which have been logged, for use in ensuring a
message is only logged once.
**Type**
_Type_
`Object`
- `Object`

@@ -79,0 +75,0 @@

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