Repository: opossum-tool/OpossumUI
Pull request #2662 (2024-09-06 01:14:35)

chore(deps): update dependency @faker-js/faker to v9
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@faker-js/faker](https://redirect.github.com/faker-js/faker) | [`^8.4.1` -> `^9.0.0`](https://renovatebot.com/diffs/npm/@faker-js%2ffaker/8.4.1/9.0.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@faker-js%2ffaker/9.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@faker-js%2ffaker/9.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@faker-js%2ffaker/8.4.1/9.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@faker-js%2ffaker/8.4.1/9.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>faker-js/faker (@&#8203;faker-js/faker)</summary>

### [`v9.0.0`](https://redirect.github.com/faker-js/faker/blob/HEAD/CHANGELOG.md#900-2024-09-02)

[Compare Source](https://redirect.github.com/faker-js/faker/compare/v8.4.1...v9.0.0)

No noteworthy changes to [9.0.0-rc.1](https://redirect.github.com/faker-js/faker/blob/next/CHANGELOG.md#900-rc1-2024-08-19)

For those upgrading from earlier versions, please refer to our [Migration Guide](https://v9.fakerjs.dev/guide/upgrading.html) for detailed instructions.

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/opossum-tool/OpossumUI).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC41OS4yIiwidXBkYXRlZEluVmVyIjoiMzguNTkuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19-->


renovate[bot]: ### Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

 ⚠️ **Warning**: custom changes will be lost.

Patch:
diff --git a/package.json b/package.json
index f3abf1dd..553dbf8b 100644
--- a/package.json
+++ b/package.json
@@ -50,7 +50,7 @@
     "@commitlint/types": "^19.0.3",
     "@eslint/compat": "^1.1.1",
     "@eslint/js": "^9.10.0",
-    "@faker-js/faker": "^8.4.1",
+    "@faker-js/faker": "^9.0.0",
     "@playwright/test": "^1.47.0",
     "@tanstack/eslint-plugin-query": "^5.53.0",
     "@testing-library/dom": "^10.4.0",
diff --git a/yarn.lock b/yarn.lock
index 7a1779e2..5d79b84f 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2266,10 +2266,10 @@ __metadata:
   languageName: node
   linkType: hard
 
-"@faker-js/faker@npm:^8.4.1":
-  version: 8.4.1
-  resolution: "@faker-js/faker@npm:8.4.1"
-  checksum: 10/5983c2ea64f26055ad6648de748878e11ebe2fb751e3c7435ae141cdffabc2dccfe4c4f49da69a3d2add71e21b415c683ac5fba196fab0d5ed6779fbec436c80
+"@faker-js/faker@npm:^9.0.0":
+  version: 9.0.0
+  resolution: "@faker-js/faker@npm:9.0.0"
+  checksum: 10/aedd68affd27065450da3c19a0ea3050e6a16078e7d591faf38402e572dd555f5ae6b402d26456eceb6b793c44b8f83ea7b48804d1fcb841610acd4988c41f91
   languageName: node
   linkType: hard
 
@@ -10166,7 +10166,7 @@ __metadata:
     "@emotion/styled": "npm:^11.13.0"
     "@eslint/compat": "npm:^1.1.1"
     "@eslint/js": "npm:^9.10.0"
-    "@faker-js/faker": "npm:^8.4.1"
+    "@faker-js/faker": "npm:^9.0.0"
     "@fontsource-variable/karla": "npm:^5.0.22"
     "@mui/icons-material": "npm:^6.0.2"
     "@mui/material": "npm:^6.0.2"


Test patch:
diff --git a/src/testing/Faker.ts b/src/testing/Faker.ts
index 9d7b0b83..b74f2698 100644
--- a/src/testing/Faker.ts
+++ b/src/testing/Faker.ts
@@ -372,7 +372,9 @@ class PackageSearchModule {
     props: Partial<VersionsResponse> = {},
   ): VersionsResponse {
     return {
-      versions: faker.helpers.multiple(PackageSearchModule.versionResponse),
+      versions: faker.helpers.multiple(() =>
+        PackageSearchModule.versionResponse(),
+      ),
       ...props,
     };
   }
@@ -464,7 +466,7 @@ class PackageSearchModule {
 
   public static links(props: Partial<Links> = {}): Links {
     return {
-      origins: faker.helpers.multiple(faker.internet.url),
+      origins: faker.helpers.multiple(() => faker.internet.url()),
       homepage: faker.internet.url(),
       repo: faker.internet.url(),
       issues: faker.internet.url(),