Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

chore(frontend/deps): Bump @faker-js/faker from 9.9.0 to 10.0.0 in /autogpt_platform/frontend (#10806)

dependabot[bot]e68b873bcf13
diff --git a/autogpt_platform/frontend/package.json b/autogpt_platform/frontend/package.json
index c279af4807..fd9e1504b0 100644
--- a/autogpt_platform/frontend/package.json
+++ b/autogpt_platform/frontend/package.json
@@ -25,7 +25,7 @@
"defaults"
],
"dependencies": {
- "@faker-js/faker": "9.9.0",
+ "@faker-js/faker": "10.0.0",
"@hookform/resolvers": "5.2.1",
"@next/third-parties": "15.4.6",
"@phosphor-icons/react": "2.1.10",
diff --git a/autogpt_platform/frontend/pnpm-lock.yaml b/autogpt_platform/frontend/pnpm-lock.yaml
index dc0d63d1b4..f9896f8f76 100644
--- a/autogpt_platform/frontend/pnpm-lock.yaml
+++ b/autogpt_platform/frontend/pnpm-lock.yaml
@@ -9,8 +9,8 @@ importers:
.:
dependencies:
'@faker-js/faker':
- specifier: 9.9.0
- version: 9.9.0
+ specifier: 10.0.0
+ version: 10.0.0
'@hookform/resolvers':
specifier: 5.2.1
@@ -1183,9 +1183,9 @@ packages:
'@exodus/[email protected]':
resolution: {integrity: sha512-5Aap/GaRupgNx/feGBwLLTVv8OQFfv3pq2lPRzPg9R+IOBnDgghTGW7l7EuVXOvg5cc/xSAlRW8rBrjIC3Nvqw==}
- '@faker-js/[email protected]':
- resolution: {integrity: sha512-OEl393iCOoo/z8bMezRlJu+GlRGlsKbUAN7jKB6LhnKoqKve5DXRpalbItIIcwnCjs1k/FOPjFzcA6Qn+H+YbA==}
- engines: {node: '>=18.0.0', npm: '>=9.0.0'}
+ '@faker-js/[email protected]':
+ resolution: {integrity: sha512-UollFEUkVXutsaP+Vndjxar40Gs5JL2HeLcl8xO1QAjJgOdhc3OmBFWyEylS+RddWaaBiAzH+5/17PLQJwDiLw==}
+ engines: {node: ^20.19.0 || ^22.13.0 || ^23.5.0 || >=24.0.0, npm: '>=10'}
'@floating-ui/[email protected]':
resolution: {integrity: sha512-sGnvb5dmrJaKEZ+LDIpguvdX3bDlEllmv4/ClQ9awcmCZrlx5jQyyMWFM5kBI+EyNOCDDiKk8il0zeuX3Zlg/w==}
@@ -8447,7 +8447,7 @@ snapshots:
'@exodus/[email protected]': {}
- '@faker-js/[email protected]': {}
+ '@faker-js/[email protected]': {}
'@floating-ui/[email protected]':
dependencies:
diff --git a/autogpt_platform/frontend/src/tests/signup.spec.ts b/autogpt_platform/frontend/src/tests/signup.spec.ts
index 0d94c9b93f..6767da0b3a 100644
--- a/autogpt_platform/frontend/src/tests/signup.spec.ts
+++ b/autogpt_platform/frontend/src/tests/signup.spec.ts
@@ -60,7 +60,7 @@ test("user can signup with custom credentials", async ({ page }) => {
try {
const customEmail = generateTestEmail();
- const customPassword = generateTestPassword();
+ const customPassword = await generateTestPassword();
const testUser = await signupTestUser(page, customEmail, customPassword);
@@ -82,7 +82,7 @@ test("user can signup with existing email handling", async ({
}) => {
try {
const testEmail = generateTestEmail();
- const testPassword = generateTestPassword();
+ const testPassword = await generateTestPassword();
// First signup
const firstUser = await signupTestUser(page, testEmail, testPassword);
diff --git a/autogpt_platform/frontend/src/tests/utils/auth.ts b/autogpt_platform/frontend/src/tests/utils/auth.ts
index d3efdaf05e..c3a076f034 100644
--- a/autogpt_platform/frontend/src/tests/utils/auth.ts
+++ b/autogpt_platform/frontend/src/tests/utils/auth.ts
@@ -1,4 +1,3 @@
-import { faker } from "@faker-js/faker";
import fs from "fs";
import path from "path";
import { signupTestUser } from "./signup";
@@ -22,6 +21,7 @@ export async function createTestUser(
password?: string,
ignoreOnboarding: boolean = true,
): Promise<TestUser> {
+ const { faker } = await import("@faker-js/faker");
const userEmail = email || faker.internet.email();
const userPassword = password || faker.internet.password({ length: 12 });
diff --git a/autogpt_platform/frontend/src/tests/utils/signup.ts b/autogpt_platform/frontend/src/tests/utils/signup.ts
index ab8e8be0b1..67241b15fe 100644
--- a/autogpt_platform/frontend/src/tests/utils/signup.ts
+++ b/autogpt_platform/frontend/src/tests/utils/signup.ts
@@ -1,4 +1,3 @@
-import { faker } from "@faker-js/faker";
import { TestUser } from "./auth";
import { getSelectors } from "./selectors";
import { isVisible } from "./assertion";
@@ -11,6 +10,7 @@ export async function signupTestUser(
ignoreOnboarding: boolean = true,
withAgent: boolean = false,
): Promise<TestUser> {
+ const { faker } = await import("@faker-js/faker");
const userEmail = email || faker.internet.email();
const userPassword = password || faker.internet.password({ length: 12 });
@@ -152,6 +152,7 @@ export function generateTestEmail(): string {
return `test.${Date.now()}.${Math.random().toString(36).substring(7)}@example.com`;
}
-export function generateTestPassword(): string {
+export async function generateTestPassword(): Promise<string> {
+ const { faker } = await import("@faker-js/faker");
return faker.internet.password({ length: 12 });
}