]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
update links to direct to guides section
authormaggie@tempworks.com <maggie@tempworks.com>
Sun, 17 Apr 2016 19:53:36 +0000 (14:53 -0500)
committerIskren Chernev <iskren.chernev@gmail.com>
Tue, 14 Jun 2016 08:55:49 +0000 (01:55 -0700)
src/lib/create/from-string.js
src/lib/locale/locales.js
src/lib/moment/add-subtract.js
src/lib/moment/min-max.js
src/lib/moment/prototype.js

index 6852049f2a5734c1e95cdf569d63023fd8f9ad0a..f59fe581e3d14ebed2e856e1f40848b7179aef7b 100644 (file)
@@ -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' : ''));
     }
index 9cf6ef4f7027ebca3eefc1929944904ed5f5e283..b4023aa7ed7033db73476046dc960a008e5d2cf4 100644 (file)
@@ -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);
index 588153bbee7295bfc3a94959753590177a008f9c..b9e86a69d2a86c3e4e041c1c98874e99e50d9108 100644 (file)
@@ -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;
         }
 
index 855c8c5a46a4f383588d22632440002b94e90fdb..d76920a7124127255f16e37f74bcacb1eb49d4cc 100644 (file)
@@ -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()) {
index 7ff40bb82129d0213349b1cc0bcc3b6767319276..9832ed5248605903bc17cfb99adea1d1518464c9 100644 (file)
@@ -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;