chore(deps): update npm packages and adapt major upgrades

Resolve the MikroORM packages together and use the dispatcher adapter with older built-in fetch implementations. Preserve existing Lucide names and regenerate the Studio and SDK catalogs.
This commit is contained in:
Maurice
2026-12-01 13:32:28 +01:00
parent a14b6a61e6
commit 7f4ece2e6f
29 changed files with 2660 additions and 1016 deletions
@@ -26,7 +26,10 @@ import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
* hour on the strength of a model setting.
*/
const { AgentMock } = vi.hoisted(() => ({ AgentMock: vi.fn() }));
vi.mock('undici', () => ({ Agent: AgentMock }));
vi.mock('undici', async (importOriginal) => ({
...(await importOriginal<typeof import('undici')>()),
Agent: AgentMock,
}));
vi.mock('dns/promises', () => ({ default: { lookup: vi.fn() }, lookup: vi.fn() }));
+2 -1
View File
@@ -11,7 +11,8 @@ const built = vi.hoisted(() => ({
closed: [] as unknown[],
}));
vi.mock('undici', () => ({
vi.mock('undici', async (importOriginal) => ({
...(await importOriginal<typeof import('undici')>()),
Agent: class {
constructor(readonly opts: unknown) {
built.agents.push(opts);
@@ -21,7 +21,10 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
* for a hung host and read whatever size the host sent back into memory.
*/
const { AgentMock } = vi.hoisted(() => ({ AgentMock: vi.fn() }));
vi.mock('undici', () => ({ Agent: AgentMock }));
vi.mock('undici', async (importOriginal) => ({
...(await importOriginal<typeof import('undici')>()),
Agent: AgentMock,
}));
vi.mock('dns/promises', () => ({ default: { lookup: vi.fn() }, lookup: vi.fn() }));
+2 -1
View File
@@ -20,7 +20,8 @@ vi.mock('dns/promises', () => ({
}));
// Mock undici Agent so we can inspect the connect.lookup option
vi.mock('undici', () => ({
vi.mock('undici', async (importOriginal) => ({
...(await importOriginal<typeof import('undici')>()),
Agent: class MockAgent {
options: any;
constructor(opts: any) {