From 3a68dafab248f97234350b61572cc4568d50e74b Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@keylocation.sg>
Date: Sat, 1 Jul 2017 06:02:33 +0200
Subject: [PATCH] fix: drop packageFile.fileName support
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

No longer massages packageFile.fileName -> packageFile.packageFile

BREAKING CHANGE: “fileName” notation no longer supported
---
 lib/workers/repository/upgrades.js       | 5 -----
 test/workers/repository/upgrades.spec.js | 2 +-
 2 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/lib/workers/repository/upgrades.js b/lib/workers/repository/upgrades.js
index 243039e284..cc8cf4a752 100644
--- a/lib/workers/repository/upgrades.js
+++ b/lib/workers/repository/upgrades.js
@@ -63,11 +63,6 @@ function getPackageFileConfig(repoConfig, index) {
   let packageFile = repoConfig.packageFiles[index];
   if (typeof packageFile === 'string') {
     packageFile = { packageFile };
-  } else if (packageFile.fileName) {
-    // Retained deprecated 'fileName' for backwards compatibility
-    // TODO: Remove in renovate 9
-    packageFile.packageFile = packageFile.fileName;
-    delete packageFile.fileName;
   }
   const packageFileConfig = Object.assign({}, repoConfig, packageFile);
   repoConfig.logger.trace({ config: repoConfig }, 'repoConfig');
diff --git a/test/workers/repository/upgrades.spec.js b/test/workers/repository/upgrades.spec.js
index 2a27d13f80..c2daf9ffc7 100644
--- a/test/workers/repository/upgrades.spec.js
+++ b/test/workers/repository/upgrades.spec.js
@@ -35,7 +35,7 @@ describe('workers/repository/upgrades', () => {
           packageFile: 'backend/package.json',
         },
         {
-          fileName: 'frontend/package.json',
+          packageFile: 'frontend/package.json',
         },
       ];
       packageFileWorker.findUpgrades.mockReturnValueOnce(['a']);
-- 
GitLab