From 91c40a0bf0a3923ab9f91b82dcd479c25486235a Mon Sep 17 00:00:00 2001 From: xzyfer Date: Tue, 3 Apr 2018 23:34:52 +1000 Subject: [PATCH] Remove deprecated process.sass API --- lib/index.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/lib/index.js b/lib/index.js index 2e83c8d2b..10062803e 100644 --- a/lib/index.js +++ b/lib/index.js @@ -456,21 +456,3 @@ module.exports.types = binding.types; module.exports.TRUE = binding.types.Boolean.TRUE; module.exports.FALSE = binding.types.Boolean.FALSE; module.exports.NULL = binding.types.Null.NULL; - -/** - * Polyfill the old API - * - * TODO: remove for 4.0 - */ - -function processSassDeprecationMessage() { - console.log('Deprecation warning: `process.sass` is an undocumented internal that will be removed in future versions of Node Sass.'); -} - -process.sass = process.sass || { - get versionInfo() { processSassDeprecationMessage(); return module.exports.info; }, - get binaryName() { processSassDeprecationMessage(); return sass.getBinaryName(); }, - get binaryUrl() { processSassDeprecationMessage(); return sass.getBinaryUrl(); }, - get binaryPath() { processSassDeprecationMessage(); return sass.getBinaryPath(); }, - get getBinaryPath() { processSassDeprecationMessage(); return sass.getBinaryPath; }, -};