@sanity/schema
Advanced tools
Comparing version 0.117.0-alpha.c32e5de9 to 0.117.0-alpha.ccd15003
@@ -9,6 +9,2 @@ 'use strict'; | ||
var _generateHelpUrl = require('@sanity/generate-help-url'); | ||
var _generateHelpUrl2 = _interopRequireDefault(_generateHelpUrl); | ||
var _types = require('./types'); | ||
@@ -20,8 +16,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
var hasWarned = false; | ||
function compileRegistry(schemaDef) { | ||
@@ -51,9 +43,2 @@ var registry = Object.assign(Object.create(null), types); | ||
function extendMember(memberDef) { | ||
if (memberDef.type === 'date') { | ||
if (!hasWarned) { | ||
// 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.', (0, _generateHelpUrl2.default)('migrate-to-rich-date')); | ||
hasWarned = true; | ||
} | ||
} | ||
ensure(memberDef.type); | ||
@@ -60,0 +45,0 @@ return registry[memberDef.type].extend(memberDef, extendMember).get(); |
@@ -34,2 +34,20 @@ 'use strict'; | ||
var _datetime = require('./datetime'); | ||
Object.defineProperty(exports, 'datetime', { | ||
enumerable: true, | ||
get: function get() { | ||
return _datetime.DateTimeType; | ||
} | ||
}); | ||
var _date = require('./date'); | ||
Object.defineProperty(exports, 'date', { | ||
enumerable: true, | ||
get: function get() { | ||
return _date.DateType; | ||
} | ||
}); | ||
var _boolean = require('./boolean'); | ||
@@ -36,0 +54,0 @@ |
{ | ||
"name": "@sanity/schema", | ||
"version": "0.117.0-alpha.c32e5de9", | ||
"version": "0.117.0-alpha.ccd15003", | ||
"description": "", | ||
@@ -35,3 +35,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@sanity/generate-help-url": "0.117.0-alpha.c32e5de9", | ||
"@sanity/generate-help-url": "0.117.0-alpha.ccd15003", | ||
"arrify": "^1.0.1", | ||
@@ -38,0 +38,0 @@ "lodash": "^4.17.4" |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
234805
52
5495
0
+ Added@sanity/generate-help-url@0.117.0-alpha.ccd15003(transitive)
- Removed@sanity/generate-help-url@0.117.0-alpha.c32e5de9(transitive)