From: maggie@tempworks.com Date: Sun, 17 Apr 2016 19:53:36 +0000 (-0500) Subject: update links to direct to guides section X-Git-Tag: 2.14.0~37^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46b7f2bae625f36fa1d43e31afad210dfb0390ae;p=thirdparty%2Fmoment.git update links to direct to guides section --- diff --git a/src/lib/create/from-string.js b/src/lib/create/from-string.js index 6852049f2..f59fe581e 100644 --- a/src/lib/create/from-string.js +++ b/src/lib/create/from-string.js @@ -113,7 +113,7 @@ hooks.createFromInputFallback = deprecate( 'moment construction falls back to js Date. This is ' + 'discouraged and will be removed in upcoming major ' + 'release. Please refer to ' + - 'https://github.com/moment/moment/issues/1407 for more info.', + 'http://momentjs.com/guides/#/warnings/js-date/ for more info.', function (config) { config._d = new Date(config._i + (config._useUTC ? ' UTC' : '')); } diff --git a/src/lib/locale/locales.js b/src/lib/locale/locales.js index 9cf6ef4f7..b4023aa7e 100644 --- a/src/lib/locale/locales.js +++ b/src/lib/locale/locales.js @@ -86,7 +86,8 @@ export function defineLocale (name, config) { deprecateSimple('defineLocaleOverride', 'use moment.updateLocale(localeName, config) to change ' + 'an existing locale. moment.defineLocale(localeName, ' + - 'config) should only be used for creating a new locale'); + 'config) should only be used for creating a new locale ' + + 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.'); config = mergeConfigs(locales[name]._config, config); } else if (config.parentLocale != null) { if (locales[config.parentLocale] != null) { @@ -94,7 +95,7 @@ export function defineLocale (name, config) { } else { // treat as if there is no base config deprecateSimple('parentLocaleUndefined', - 'specified parentLocale is not defined yet'); + 'specified parentLocale is not defined yet. See http://momentjs.com/guides/#/warnings/parent-locale/'); } } locales[name] = new Locale(config); diff --git a/src/lib/moment/add-subtract.js b/src/lib/moment/add-subtract.js index 588153bbe..b9e86a69d 100644 --- a/src/lib/moment/add-subtract.js +++ b/src/lib/moment/add-subtract.js @@ -12,7 +12,8 @@ function createAdder(direction, name) { var dur, tmp; //invert the arguments, but complain about it if (period !== null && !isNaN(+period)) { - deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period).'); + deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period). ' + + 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.'); tmp = val; val = period; period = tmp; } diff --git a/src/lib/moment/min-max.js b/src/lib/moment/min-max.js index 855c8c5a4..d76920a71 100644 --- a/src/lib/moment/min-max.js +++ b/src/lib/moment/min-max.js @@ -4,7 +4,7 @@ import { createLocal } from '../create/local'; import { createInvalid } from '../create/valid'; export var prototypeMin = deprecate( - 'moment().min is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548', + 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/', function () { var other = createLocal.apply(null, arguments); if (this.isValid() && other.isValid()) { @@ -16,7 +16,7 @@ export var prototypeMin = deprecate( ); export var prototypeMax = deprecate( - 'moment().max is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548', + 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/', function () { var other = createLocal.apply(null, arguments); if (this.isValid() && other.isValid()) { diff --git a/src/lib/moment/prototype.js b/src/lib/moment/prototype.js index 7ff40bb82..9832ed524 100644 --- a/src/lib/moment/prototype.js +++ b/src/lib/moment/prototype.js @@ -144,6 +144,6 @@ import { deprecate } from '../utils/deprecate'; proto.dates = deprecate('dates accessor is deprecated. Use date instead.', getSetDayOfMonth); proto.months = deprecate('months accessor is deprecated. Use month instead', getSetMonth); proto.years = deprecate('years accessor is deprecated. Use year instead', getSetYear); -proto.zone = deprecate('moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779', getSetZone); +proto.zone = deprecate('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', getSetZone); export default proto;