From d941ef31c578dde1df49eb5b7cf8a2fecff2f07c Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Thu, 20 Oct 2022 17:34:35 +0000
Subject: [PATCH] chore(deps): update dependency type-fest to v3 (#18429)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
---
 lib/config/types.ts                      | 4 ++--
 lib/modules/datasource/index.ts          | 2 +-
 lib/modules/datasource/types.ts          | 4 ++--
 lib/modules/manager/npm/extract/types.ts | 5 ++---
 package.json                             | 2 +-
 yarn.lock                                | 8 ++++----
 6 files changed, 12 insertions(+), 13 deletions(-)

diff --git a/lib/config/types.ts b/lib/config/types.ts
index b7a97fb51d..21f6f50559 100644
--- a/lib/config/types.ts
+++ b/lib/config/types.ts
@@ -229,7 +229,7 @@ export interface RenovateConfig
   prHourlyLimit?: number;
 
   defaultRegistryUrls?: string[];
-  registryUrls?: string[];
+  registryUrls?: string[] | null;
 
   repoIsOnboarded?: boolean;
   repoIsActivated?: boolean;
@@ -309,7 +309,7 @@ export interface PackageRule
   matchSourceUrlPrefixes?: string[];
   matchSourceUrls?: string[];
   matchUpdateTypes?: UpdateType[];
-  registryUrls?: string[];
+  registryUrls?: string[] | null;
 }
 
 export interface ValidationMessage {
diff --git a/lib/modules/datasource/index.ts b/lib/modules/datasource/index.ts
index 7cba3f147d..3863378d2c 100644
--- a/lib/modules/datasource/index.ts
+++ b/lib/modules/datasource/index.ts
@@ -190,7 +190,7 @@ function massageRegistryUrls(registryUrls: string[]): string[] {
 function resolveRegistryUrls(
   datasource: DatasourceApi,
   defaultRegistryUrls: string[] | undefined,
-  registryUrls: string[] | undefined,
+  registryUrls: string[] | undefined | null,
   additionalRegistryUrls: string[] | undefined
 ): string[] {
   if (!datasource.customRegistrySupport) {
diff --git a/lib/modules/datasource/types.ts b/lib/modules/datasource/types.ts
index 054a68e64d..c9a9677b06 100644
--- a/lib/modules/datasource/types.ts
+++ b/lib/modules/datasource/types.ts
@@ -5,7 +5,7 @@ export interface GetDigestInputConfig {
   packageName?: string;
   depName: string;
   defaultRegistryUrls?: string[];
-  registryUrls?: string[];
+  registryUrls?: string[] | null;
   additionalRegistryUrls?: string[];
   currentValue?: string;
   currentDigest?: string;
@@ -27,7 +27,7 @@ export interface GetReleasesConfig {
 export interface GetPkgReleasesConfig {
   npmrc?: string;
   defaultRegistryUrls?: string[];
-  registryUrls?: string[];
+  registryUrls?: string[] | null;
   additionalRegistryUrls?: string[];
   datasource: string;
   depName: string;
diff --git a/lib/modules/manager/npm/extract/types.ts b/lib/modules/manager/npm/extract/types.ts
index 0312418f4e..babf9b658f 100644
--- a/lib/modules/manager/npm/extract/types.ts
+++ b/lib/modules/manager/npm/extract/types.ts
@@ -6,16 +6,15 @@ export type DependenciesMeta = Record<
   { optional: boolean; built: boolean; unplugged: boolean }
 >;
 
-export interface NpmPackage extends PackageJson {
+export type NpmPackage = PackageJson & {
   renovate?: unknown;
   _from?: any;
   _args?: any;
   _id?: any;
   dependenciesMeta?: DependenciesMeta;
-  packageManager?: string;
   overrides?: OverrideDependency;
   volta?: PackageJson.Dependency;
-}
+};
 
 export type LockFileEntry = Record<
   string,
diff --git a/package.json b/package.json
index d4102f83e9..49cd6e462c 100644
--- a/package.json
+++ b/package.json
@@ -306,7 +306,7 @@
     "tmp-promise": "3.0.3",
     "ts-jest": "29.0.3",
     "ts-node": "10.9.1",
-    "type-fest": "2.19.0",
+    "type-fest": "3.1.0",
     "typescript": "4.8.4",
     "unified": "9.2.2"
   },
diff --git a/yarn.lock b/yarn.lock
index 9d2e462455..e6761b167a 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -9235,10 +9235,10 @@ type-detect@4.0.8, type-detect@^4.0.8:
   resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c"
   integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==
 
-type-fest@2.19.0:
-  version "2.19.0"
-  resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-2.19.0.tgz#88068015bb33036a598b952e55e9311a60fd3a9b"
-  integrity sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==
+type-fest@3.1.0:
+  version "3.1.0"
+  resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-3.1.0.tgz#157b74044d9c27fd796b9c6aa46eae6658b1e9b8"
+  integrity sha512-StmrZmK3eD9mDF9Vt7UhqthrDSk66O9iYl5t5a0TSoVkHjl0XZx/xuc/BRz4urAXXGHOY5OLsE0RdJFIApSFmw==
 
 type-fest@^0.13.1:
   version "0.13.1"
-- 
GitLab