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
+5 -5
View File
@@ -1,12 +1,12 @@
{
"name": "trek-plugin-sdk",
"version": "1.10.1",
"version": "1.10.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "trek-plugin-sdk",
"version": "1.10.1",
"version": "1.10.2",
"license": "MIT",
"dependencies": {
"@clack/prompts": "^1.8.1",
@@ -620,9 +620,9 @@
"license": "MIT"
},
"node_modules/@types/node": {
"version": "26.6.10",
"resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.10.tgz",
"integrity": "sha512-WJuPHoGB8WNQuTksNF7SOQpnH02PXeDYz4iueWbBT6/hTWnShY5F3T/hoJA3fY9+uYReDZ7pyTKKx83jQa7aGg==",
"version": "26.6.11",
"resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.11.tgz",
"integrity": "sha512-uUyQ2XLEz+EXh34lmS3GhKrkqn/8FU7KUiKRpk347At2bmnMVWss45yz8b4FG/tUtmV1tV/+TVkITItPROyeeQ==",
"dev": true,
"license": "MIT",
"dependencies": {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "trek-plugin-sdk",
"version": "1.10.1",
"version": "1.10.2",
"description": "SDK for building TREK plugins: types, definePlugin, a mock host, manifest validation, and the create-trek-plugin / trek-plugin CLIs.",
"type": "module",
"license": "MIT",
+9 -5
View File
@@ -4,22 +4,26 @@
// The SDK ships no lucide dependency of its own (it is a dependency-light CLI), so
// the name list is a checked-in snapshot rather than a runtime lookup — same shape
// as KNOWN_ADDONS in src/manifest.ts.
import { writeFileSync } from 'node:fs';
import { readFileSync, writeFileSync } from 'node:fs';
import { createRequire } from 'node:module';
import { fileURLToPath } from 'node:url';
import { fileURLToPath, pathToFileURL } from 'node:url';
import { dirname, join } from 'node:path';
const here = dirname(fileURLToPath(import.meta.url));
const require = createRequire(join(here, '..', '..', 'package.json'));
const dynamicIconImports = require('lucide-react/dynamicIconImports.js');
const iconsByKebabName = dynamicIconImports.default ?? dynamicIconImports;
const { default: iconsByKebabName } = await import(
pathToFileURL(require.resolve('lucide-react/dynamicIconImports')).href
);
const { version } = require('lucide-react/package.json');
const legacyIcons = JSON.parse(readFileSync(
new URL('../../client/src/components/shared/legacy-lucide-icons.json', import.meta.url), 'utf8',
));
const toPascalCase = (kebab) =>
kebab.split('-').map((part) => part[0].toUpperCase() + part.slice(1)).join('');
const names = Object.keys(iconsByKebabName).map(toPascalCase).sort();
const names = [...new Set([...Object.keys(iconsByKebabName).map(toPascalCase), ...Object.keys(legacyIcons)])].sort();
const source = `// GENERATED — do not edit by hand.
// Snapshot of every lucide icon name (lucide-react ${version}), used by
File diff suppressed because it is too large Load Diff