@@ -404,19 +404,38 @@ module.exports = {
404404 }
405405 return internalDeepEqual ( a , b ) ;
406406 } ,
407- isNull,
408- isNullOrUndefined,
409- isNumber,
410- isString,
411- isSymbol,
412- isUndefined,
413- isRegExp : types . isRegExp ,
414- isObject,
415- isDate : types . isDate ,
416- isError,
417- isFunction,
418- isPrimitive,
419- log,
407+ isNull : deprecate ( isNull ,
408+ 'The `util.isNull` API is deprecated. Please use `arg === null` instead.' ,
409+ 'DEP0050' ) ,
410+ isNullOrUndefined : deprecate ( isNullOrUndefined ,
411+ 'The `util.isNullOrUndefined` API is deprecated. ' +
412+ 'Please use `arg === null || arg === undefined` instead.' ,
413+ 'DEP0051' ) ,
414+ isNumber : deprecate ( isNumber ,
415+ 'The `util.isNumber` API is deprecated. Please use `typeof arg === "number"` instead.' ,
416+ 'DEP0052' ) ,
417+ isString : deprecate ( isString ,
418+ 'The `util.isString` API is deprecated. Please use `typeof arg === "string"` instead.' ,
419+ 'DEP0056' ) ,
420+ isSymbol : deprecate ( isSymbol ,
421+ 'The `util.isSymbol` API is deprecated. Please use `arg === "symbol"` instead.' ,
422+ 'DEP0057' ) ,
423+ isUndefined : deprecate ( isUndefined ,
424+ 'The `util.isUndefined` API is deprecated. Please use `arg === undefined` instead.' ,
425+ 'DEP0058' ) ,
426+ isRegExp : deprecate ( types . isRegExp ,
427+ 'The `util.isRegExp` API is deprecated. Please use `arg instanceof RegExp` instead.' ,
428+ 'DEP0055' ) ,
429+ isObject : deprecate ( isObject ,
430+ 'The `util.isObject` API is deprecated. Please use `typeof arg === "object"` instead.' ,
431+ 'DEP0053' ) ,
432+ isDate : deprecate ( types . isDate ,
433+ 'The `util.isDate` API is deprecated. Please use `arg instanceof Error` instead.' ,
434+ 'DEP0047' ) ,
435+ isError : deprecate ( isError , 'The `util.isError API is deprecated.' , 'DEP0048' ) ,
436+ isFunction : deprecate ( isFunction , 'The `util.isFunction API is deprecated.' , 'DEP0049' ) ,
437+ isPrimitive : deprecate ( isPrimitive , 'The `util.isPrimitive API is deprecated.' , 'DEP0054' ) ,
438+ log : deprecate ( log , 'The `util.log API is deprecated.' , 'DEP0059' ) ,
420439 promisify,
421440 stripVTControlCharacters,
422441 toUSVString,
0 commit comments