From a2713fa7c7555f5d19a4ffed2afb673396ddba18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rge=20N=C3=A6ss?= Date: Wed, 13 Sep 2017 13:01:35 +0200 Subject: [PATCH] [schema] Add link to deprecation warning --- packages/@sanity/base/src/schema/types/deprecatedDate.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/@sanity/base/src/schema/types/deprecatedDate.js b/packages/@sanity/base/src/schema/types/deprecatedDate.js index a7e9a98828bb..2a7ef7f62740 100644 --- a/packages/@sanity/base/src/schema/types/deprecatedDate.js +++ b/packages/@sanity/base/src/schema/types/deprecatedDate.js @@ -1,10 +1,15 @@ import richDate from './richDate' +import generateHelpUrl from '@sanity/generate-help-url' let hasWarned = false export default Object.assign({}, richDate, { get name() { if (!hasWarned) { - console.warn('Heads up! The `date` type has been renamed to `richDate`. Please update your schema') + // eslint-disable-next-line no-console + console.warn( + 'Heads up! The `date` type has been renamed to `richDate`. Please update your schema. See %s for more info.', + generateHelpUrl('migrate-to-rich-date') + ) hasWarned = true } return 'date'