@wordpress/warning
Advanced tools
Comparing version 3.0.1 to 3.1.0
@@ -13,3 +13,3 @@ /** | ||
* | ||
* @param {string} message Message to show in the warning. | ||
* @param message Message to show in the warning. | ||
* | ||
@@ -16,0 +16,0 @@ * @example |
/** | ||
* Object map tracking messages which have been logged, for use in ensuring a | ||
* message is only logged once. | ||
* | ||
* @type {Set<string>} | ||
*/ | ||
export const logged = new Set(); | ||
//# sourceMappingURL=utils.js.map |
/** | ||
* Shows a warning with `message` if environment is not `production`. | ||
* | ||
* @param {string} message Message to show in the warning. | ||
* @param message Message to show in the warning. | ||
* | ||
@@ -6,0 +6,0 @@ * @example |
/** | ||
* Object map tracking messages which have been logged, for use in ensuring a | ||
* message is only logged once. | ||
* | ||
* @type {Set<string>} | ||
*/ | ||
export const logged: Set<string>; | ||
export declare const logged: Set<string>; | ||
//# sourceMappingURL=utils.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
* | ||
* @param {string} message Message to show in the warning. | ||
* @param message Message to show in the warning. | ||
* | ||
@@ -23,0 +23,0 @@ * @example |
@@ -10,6 +10,4 @@ "use strict"; | ||
* message is only logged once. | ||
* | ||
* @type {Set<string>} | ||
*/ | ||
const logged = exports.logged = new Set(); | ||
//# sourceMappingURL=utils.js.map |
@@ -5,2 +5,8 @@ <!-- Learn how to maintain this file at https://github.com/WordPress/gutenberg/tree/HEAD/packages#maintaining-changelogs. --> | ||
## 3.1.0 (2024-06-15) | ||
### Internal | ||
- Refactor to TypeScript ([#62557](https://github.com/WordPress/gutenberg/pull/62557)). | ||
## 3.0.0 (2024-05-31) | ||
@@ -151,1 +157,2 @@ | ||
Initial release. | ||
{ | ||
"name": "@wordpress/warning", | ||
"version": "3.0.1", | ||
"version": "3.1.0", | ||
"description": "Warning utility for WordPress.", | ||
@@ -33,3 +33,3 @@ "author": "The WordPress Contributors", | ||
}, | ||
"gitHead": "0e973525f7787401b5a544e0727774d52a78639f" | ||
"gitHead": "66d3bf12e67d16deddc4b4a9ec42e1d0bed3479a" | ||
} |
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
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
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
70423
379