@wordpress/private-apis
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -36,3 +36,3 @@ /** | ||
*/ | ||
const requiredConsent = 'I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.'; | ||
const requiredConsent = 'I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.'; | ||
@@ -39,0 +39,0 @@ /** @type {boolean} */ |
@@ -45,3 +45,3 @@ "use strict"; | ||
*/ | ||
const requiredConsent = 'I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.'; | ||
const requiredConsent = 'I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.'; | ||
@@ -48,0 +48,0 @@ /** @type {boolean} */ |
{ | ||
"name": "@wordpress/private-apis", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Internal experimental APIs for WordPress core.", | ||
@@ -37,3 +37,3 @@ "author": "The WordPress Contributors", | ||
}, | ||
"gitHead": "0e973525f7787401b5a544e0727774d52a78639f" | ||
"gitHead": "a68c6b5ef53956cccf4961d53d79b6af7e00ae60" | ||
} |
@@ -15,3 +15,3 @@ # Private APIs | ||
__dangerousOptInToUnstableAPIsOnlyForCoreModules( | ||
'I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.', | ||
'I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.', | ||
'@wordpress/block-editor' // Name of the package calling __dangerousOptInToUnstableAPIsOnlyForCoreModules, | ||
@@ -26,3 +26,3 @@ // (not the name of the package whose APIs you want to access) | ||
1. The first argument must exactly match the required consent string: `'I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.'`. | ||
1. The first argument must exactly match the required consent string: `'I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.'`. | ||
2. The second argument must be a known `@wordpress` package that hasn't yet opted into `@wordpress/private-apis` | ||
@@ -125,1 +125,2 @@ | ||
2. I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress. | ||
3. I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress. |
@@ -59,3 +59,3 @@ /** | ||
const requiredConsent = | ||
'I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.'; | ||
'I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.'; | ||
@@ -62,0 +62,0 @@ /** @type {boolean} */ |
@@ -19,3 +19,3 @@ /** | ||
const requiredConsent = | ||
'I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.'; | ||
'I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.'; | ||
@@ -22,0 +22,0 @@ describe( '__dangerousOptInToUnstableAPIsOnlyForCoreModules', () => { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
112817
124