From 9cf72a121fbcff0b2e5a6427b381754a596d7e8e Mon Sep 17 00:00:00 2001 From: Anton Shchekota Date: Mon, 3 Feb 2020 11:28:30 +0300 Subject: [PATCH] fix(server): createPreprocessor was removed BREAKING CHANGE: Deprecated createPreprocessor removed, karma-browserify < 7 version doesn't work --- lib/preprocessor.js | 9 --------- package-lock.json | 6 +++--- package.json | 2 +- 3 files changed, 4 insertions(+), 13 deletions(-) diff --git a/lib/preprocessor.js b/lib/preprocessor.js index 7b9051814..b69ec36da 100644 --- a/lib/preprocessor.js +++ b/lib/preprocessor.js @@ -135,14 +135,5 @@ function createPriorityPreprocessor (config = {}, preprocessorPriority, basePath } } -// Deprecated API -function createPreprocessor (preprocessors, basePath, injector) { - console.log('Deprecated private createPreprocessor() API') - const preprocessorPriority = injector.get('config.preprocessor_priority') - return createPriorityPreprocessor(preprocessors, preprocessorPriority, basePath, injector) -} -createPreprocessor.$inject = ['config.preprocessors', 'config.basePath', 'injector'] -exports.createPreprocessor = createPreprocessor - createPriorityPreprocessor.$inject = ['config.preprocessors', 'config.preprocessor_priority', 'config.basePath', 'injector'] exports.createPriorityPreprocessor = createPriorityPreprocessor diff --git a/package-lock.json b/package-lock.json index 1d3089f57..a9c36c423 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6019,9 +6019,9 @@ "dev": true }, "karma-browserify": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/karma-browserify/-/karma-browserify-6.1.0.tgz", - "integrity": "sha512-FWOuATeil6dbm2nwWIbSFG0Ad8w3PcuBNs05zcqnMiuXEdwos/o6B26HF+NcYwTt3o7LTOGWiuXK9cuuhoPeaw==", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/karma-browserify/-/karma-browserify-7.0.0.tgz", + "integrity": "sha512-SLgh1dmF2eZEj3glrmTD2CMJRGZwEiKA6k2hBr2+2JDC4JMU1dlsvBKpV66Lvi/tbj3H9qA+Vl/FdIcfPRrJpA==", "dev": true, "requires": { "convert-source-map": "^1.1.3", diff --git a/package.json b/package.json index f0fa1d647..08a4ba0ec 100644 --- a/package.json +++ b/package.json @@ -447,7 +447,7 @@ "http2": "^3.3.6", "husky": "^4.0.3", "jasmine-core": "^3.4.0", - "karma-browserify": "^6.0.0", + "karma-browserify": "^7.0.0", "karma-browserstack-launcher": "^1.5.0", "karma-chai": "^0.1.0", "karma-chrome-launcher": "^2.2.0",