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
+12 -12
View File
@@ -66,14 +66,14 @@
"dependencies": {
"@aws-lite/client": "^0.24.1",
"@aws-lite/s3": "^0.2.7",
"@mikro-orm/cli": "^7.2.12",
"@mikro-orm/core": "^7.2.12",
"@mikro-orm/migrations": "^7.2.12",
"@mikro-orm/cli": "^7.2.13",
"@mikro-orm/core": "^7.2.13",
"@mikro-orm/migrations": "^7.2.13",
"@mikro-orm/nestjs": "^7.1.0",
"@mikro-orm/postgresql": "^7.2.12",
"@mikro-orm/seeder": "^7.2.12",
"@mikro-orm/sql": "^7.2.12",
"@mikro-orm/sqlite": "^7.2.12",
"@mikro-orm/postgresql": "^7.2.13",
"@mikro-orm/seeder": "^7.2.13",
"@mikro-orm/sql": "^7.2.13",
"@mikro-orm/sqlite": "^7.2.13",
"@modelcontextprotocol/sdk": "^1.32.2",
"@nestjs/common": "^11.2.12",
"@nestjs/config": "^4.0.4",
@@ -98,7 +98,7 @@
"fast-xml-parser": "^5.12.1",
"helmet": "^8.3.0",
"imapflow": "^1.0.0",
"jimp": "^1.7.0",
"jimp": "^2.2.0",
"json5": "^2.2.3",
"jsonwebtoken": "^9.0.3",
"kysely": "^0.29.9",
@@ -117,16 +117,16 @@
"tsx": "^4.23.15",
"typescript": "^6.0.3",
"tz-lookup": "^6.1.25",
"undici": "^7.30.1",
"undici": "^8.13.1",
"unzipper": "^0.12.5",
"uuid": "^14.0.3",
"ws": "^8.23.0",
"ws": "^8.23.1",
"zod": "^4.6.7"
},
"devDependencies": {
"@aws-lite/s3-types": "^0.2.8",
"@eslint/js": "^10.0.1",
"@mikro-orm/entity-generator": "^7.2.12",
"@mikro-orm/entity-generator": "^7.2.13",
"@nestjs/testing": "^11.2.12",
"@swc/core": "^1.16.22",
"@trivago/prettier-plugin-sort-imports": "^6.0.3",
@@ -149,7 +149,7 @@
"@vitest/coverage-istanbul": "^5.1.2",
"eslint": "^9.39.5",
"eslint-config-flat-gitignore": "^2.4.0",
"eslint-config-prettier": "^10.1.8",
"eslint-config-prettier": "^10.1.9",
"polylabel": "^2.0.1",
"prettier": "^3.10.1",
"prettier-plugin-organize-imports": "^4.3.0",
+6 -3
View File
@@ -2,7 +2,7 @@ import { readEnv } from '../app-config';
import { embeddedTransitionIpv4, expandIpv6 } from './ipv6';
import dns from 'node:dns/promises';
import { Agent, ProxyAgent, type Dispatcher } from 'undici';
import { Agent, Dispatcher1Wrapper, ProxyAgent, type Dispatcher } from 'undici';
// Frozen at import on purpose (legacy timing; tests reload the module to change it).
const ALLOW_INTERNAL_NETWORK = readEnv().net.allowInternalNetwork;
@@ -700,8 +700,8 @@ export function createOutboundDispatcher(
): Dispatcher {
const proxy = proxyFor(url);
const keepAliveMs = reuseConnections ? KEPT_ALIVE_MS : undefined;
const create = (): Dispatcher =>
proxy
const create = (): Dispatcher => {
const dispatcher = proxy
? new ProxyAgent({
uri: proxy,
requestTls: { rejectUnauthorized },
@@ -709,6 +709,9 @@ export function createOutboundDispatcher(
...(keepAliveMs ? { keepAliveTimeout: keepAliveMs } : {}),
})
: createPinnedDispatcher(resolved, rejectUnauthorized, responseTimeoutMs, headersTimeoutMs, keepAliveMs);
// Node's built-in fetch uses the dispatcher v1 handler contract until Undici 8.
return Number.parseInt(process.versions.undici ?? '', 10) < 8 ? new Dispatcher1Wrapper(dispatcher) : dispatcher;
};
if (!reuseConnections) return create();
// Through a proxy the proxy connects, so the addresses play no part in what the dispatcher does.
const addresses = proxy ? [] : typeof resolved === 'string' ? [resolved] : [...resolved];
@@ -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) {