@wordpress/date
Advanced tools
Comparing version 3.6.0 to 3.7.0
@@ -7,2 +7,4 @@ /** | ||
import 'moment-timezone/moment-timezone-utils'; | ||
/** @typedef {import('moment').Moment} Moment */ | ||
var WP_ZONE = 'WP'; // Changes made here will likely need to be made in `lib/client-assets.php` as | ||
@@ -157,3 +159,3 @@ // well because it uses the `setSettings()` function to change these settings. | ||
* | ||
* @param {moment.Moment} momentDate Moment instance. | ||
* @param {Moment} momentDate Moment instance. | ||
* | ||
@@ -173,3 +175,3 @@ * @return {string} Formatted date. | ||
* | ||
* @param {moment.Moment} momentDate Moment instance. | ||
* @param {Moment} momentDate Moment instance. | ||
* | ||
@@ -193,3 +195,3 @@ * @return {string} Formatted date. | ||
* | ||
* @param {moment.Moment} momentDate Moment instance. | ||
* @param {Moment} momentDate Moment instance. | ||
* | ||
@@ -206,3 +208,3 @@ * @return {string} Formatted date. | ||
* | ||
* @param {moment.Moment} momentDate Moment instance. | ||
* @param {Moment} momentDate Moment instance. | ||
* | ||
@@ -224,3 +226,3 @@ * @return {string} Formatted date. | ||
* | ||
* @param {moment.Moment} momentDate Moment instance. | ||
* @param {Moment} momentDate Moment instance. | ||
* | ||
@@ -250,3 +252,3 @@ * @return {string} Formatted date. | ||
* | ||
* @param {moment.Moment} momentDate Moment instance. | ||
* @param {Moment} momentDate Moment instance. | ||
* | ||
@@ -265,3 +267,3 @@ * @return {string} Formatted date. | ||
* | ||
* @param {moment.Moment} momentDate Moment instance. | ||
* @param {Moment} momentDate Moment instance. | ||
* | ||
@@ -288,3 +290,3 @@ * @return {string} Formatted date. | ||
* See php.net/date. | ||
* @param {(Date|string|moment.Moment|null)} dateValue Date object or string, | ||
* @param {(Date|string|Moment|null)} dateValue Date object or string, | ||
* parsable by moment.js. | ||
@@ -334,3 +336,3 @@ * | ||
* See php.net/date. | ||
* @param {(Date|string|moment.Moment|null)} dateValue Date object or string, | ||
* @param {(Date|string|Moment|null)} dateValue Date object or string, | ||
* parsable by moment.js. | ||
@@ -352,3 +354,3 @@ * | ||
* See php.net/date. | ||
* @param {(Date|string|moment.Moment|null)} dateValue Date object or string, | ||
* @param {(Date|string|Moment|null)} dateValue Date object or string, | ||
* parsable by moment.js. | ||
@@ -369,3 +371,3 @@ * | ||
* See php.net/date. | ||
* @param {(Date|string|moment.Moment|null)} dateValue Date object or string, | ||
* @param {(Date|string|Moment|null)} dateValue Date object or string, | ||
* parsable by moment.js. | ||
@@ -372,0 +374,0 @@ * @param {boolean} gmt True for GMT/UTC, false for |
@@ -26,2 +26,4 @@ "use strict"; | ||
*/ | ||
/** @typedef {import('moment').Moment} Moment */ | ||
var WP_ZONE = 'WP'; // Changes made here will likely need to be made in `lib/client-assets.php` as | ||
@@ -180,3 +182,3 @@ // well because it uses the `setSettings()` function to change these settings. | ||
* | ||
* @param {moment.Moment} momentDate Moment instance. | ||
* @param {Moment} momentDate Moment instance. | ||
* | ||
@@ -196,3 +198,3 @@ * @return {string} Formatted date. | ||
* | ||
* @param {moment.Moment} momentDate Moment instance. | ||
* @param {Moment} momentDate Moment instance. | ||
* | ||
@@ -216,3 +218,3 @@ * @return {string} Formatted date. | ||
* | ||
* @param {moment.Moment} momentDate Moment instance. | ||
* @param {Moment} momentDate Moment instance. | ||
* | ||
@@ -229,3 +231,3 @@ * @return {string} Formatted date. | ||
* | ||
* @param {moment.Moment} momentDate Moment instance. | ||
* @param {Moment} momentDate Moment instance. | ||
* | ||
@@ -247,3 +249,3 @@ * @return {string} Formatted date. | ||
* | ||
* @param {moment.Moment} momentDate Moment instance. | ||
* @param {Moment} momentDate Moment instance. | ||
* | ||
@@ -273,3 +275,3 @@ * @return {string} Formatted date. | ||
* | ||
* @param {moment.Moment} momentDate Moment instance. | ||
* @param {Moment} momentDate Moment instance. | ||
* | ||
@@ -288,3 +290,3 @@ * @return {string} Formatted date. | ||
* | ||
* @param {moment.Moment} momentDate Moment instance. | ||
* @param {Moment} momentDate Moment instance. | ||
* | ||
@@ -311,3 +313,3 @@ * @return {string} Formatted date. | ||
* See php.net/date. | ||
* @param {(Date|string|moment.Moment|null)} dateValue Date object or string, | ||
* @param {(Date|string|Moment|null)} dateValue Date object or string, | ||
* parsable by moment.js. | ||
@@ -357,3 +359,3 @@ * | ||
* See php.net/date. | ||
* @param {(Date|string|moment.Moment|null)} dateValue Date object or string, | ||
* @param {(Date|string|Moment|null)} dateValue Date object or string, | ||
* parsable by moment.js. | ||
@@ -376,3 +378,3 @@ * | ||
* See php.net/date. | ||
* @param {(Date|string|moment.Moment|null)} dateValue Date object or string, | ||
* @param {(Date|string|Moment|null)} dateValue Date object or string, | ||
* parsable by moment.js. | ||
@@ -394,3 +396,3 @@ * | ||
* See php.net/date. | ||
* @param {(Date|string|moment.Moment|null)} dateValue Date object or string, | ||
* @param {(Date|string|Moment|null)} dateValue Date object or string, | ||
* parsable by moment.js. | ||
@@ -397,0 +399,0 @@ * @param {boolean} gmt True for GMT/UTC, false for |
{ | ||
"name": "@wordpress/date", | ||
"version": "3.6.0", | ||
"version": "3.7.0", | ||
"description": "Date module for WordPress.", | ||
@@ -31,3 +31,3 @@ "author": "The WordPress Contributors", | ||
}, | ||
"gitHead": "52bfe7deb90fe2b6df7f1a0a92f89cc69462a491" | ||
"gitHead": "cc8b3fde75738a15c6152d18458eb5078a620cbe" | ||
} |
@@ -26,3 +26,3 @@ # Date | ||
- _dateFormat_ `string`: PHP-style formatting string. See php.net/date. | ||
- _dateValue_ `(Date|string|moment.Moment|null)`: Date object or string, parsable by moment.js. | ||
- _dateValue_ `(Date|string|Moment|null)`: Date object or string, parsable by moment.js. | ||
@@ -40,3 +40,3 @@ _Returns_ | ||
- _dateFormat_ `string`: PHP-style formatting string. See php.net/date. | ||
- _dateValue_ `(Date|string|moment.Moment|null)`: Date object or string, parsable by moment.js. | ||
- _dateValue_ `(Date|string|Moment|null)`: Date object or string, parsable by moment.js. | ||
- _gmt_ `boolean`: True for GMT/UTC, false for site's timezone. | ||
@@ -55,3 +55,3 @@ | ||
- _dateFormat_ `string`: PHP-style formatting string. See php.net/date. | ||
- _dateValue_ `(Date|string|moment.Moment|null)`: Date object or string, parsable by moment.js. | ||
- _dateValue_ `(Date|string|Moment|null)`: Date object or string, parsable by moment.js. | ||
@@ -81,3 +81,3 @@ _Returns_ | ||
- _dateFormat_ `string`: PHP-style formatting string. See php.net/date. | ||
- _dateValue_ `(Date|string|moment.Moment|null)`: Date object or string, parsable by moment.js. | ||
- _dateValue_ `(Date|string|Moment|null)`: Date object or string, parsable by moment.js. | ||
@@ -84,0 +84,0 @@ _Returns_ |
@@ -8,2 +8,4 @@ /** | ||
/** @typedef {import('moment').Moment} Moment */ | ||
const WP_ZONE = 'WP'; | ||
@@ -149,3 +151,3 @@ | ||
* | ||
* @param {moment.Moment} momentDate Moment instance. | ||
* @param {Moment} momentDate Moment instance. | ||
* | ||
@@ -165,3 +167,3 @@ * @return {string} Formatted date. | ||
* | ||
* @param {moment.Moment} momentDate Moment instance. | ||
* @param {Moment} momentDate Moment instance. | ||
* | ||
@@ -186,3 +188,3 @@ * @return {string} Formatted date. | ||
* | ||
* @param {moment.Moment} momentDate Moment instance. | ||
* @param {Moment} momentDate Moment instance. | ||
* | ||
@@ -199,3 +201,3 @@ * @return {string} Formatted date. | ||
* | ||
* @param {moment.Moment} momentDate Moment instance. | ||
* @param {Moment} momentDate Moment instance. | ||
* | ||
@@ -217,3 +219,3 @@ * @return {string} Formatted date. | ||
* | ||
* @param {moment.Moment} momentDate Moment instance. | ||
* @param {Moment} momentDate Moment instance. | ||
* | ||
@@ -249,3 +251,3 @@ * @return {string} Formatted date. | ||
* | ||
* @param {moment.Moment} momentDate Moment instance. | ||
* @param {Moment} momentDate Moment instance. | ||
* | ||
@@ -263,3 +265,3 @@ * @return {string} Formatted date. | ||
* | ||
* @param {moment.Moment} momentDate Moment instance. | ||
* @param {Moment} momentDate Moment instance. | ||
* | ||
@@ -286,3 +288,3 @@ * @return {string} Formatted date. | ||
* See php.net/date. | ||
* @param {(Date|string|moment.Moment|null)} dateValue Date object or string, | ||
* @param {(Date|string|Moment|null)} dateValue Date object or string, | ||
* parsable by moment.js. | ||
@@ -328,3 +330,3 @@ * | ||
* See php.net/date. | ||
* @param {(Date|string|moment.Moment|null)} dateValue Date object or string, | ||
* @param {(Date|string|Moment|null)} dateValue Date object or string, | ||
* parsable by moment.js. | ||
@@ -345,3 +347,3 @@ * | ||
* See php.net/date. | ||
* @param {(Date|string|moment.Moment|null)} dateValue Date object or string, | ||
* @param {(Date|string|Moment|null)} dateValue Date object or string, | ||
* parsable by moment.js. | ||
@@ -361,3 +363,3 @@ * | ||
* See php.net/date. | ||
* @param {(Date|string|moment.Moment|null)} dateValue Date object or string, | ||
* @param {(Date|string|Moment|null)} dateValue Date object or string, | ||
* parsable by moment.js. | ||
@@ -364,0 +366,0 @@ * @param {boolean} gmt True for GMT/UTC, false for |
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
1191
101485