From cf8cdb3ce9adb09e98dafe7f443cac36afd333f8 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 92f105d7c..fc45d891c 100644 --- a/lib/index.js +++ b/lib/index.js @@ -457,21 +457,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; }, -};