From 1a7638313aacb194bf305e858df08034f5b7cbec Mon Sep 17 00:00:00 2001 From: Hong Minhee Date: Wed, 14 Jan 2026 17:59:10 +0900 Subject: [PATCH] Update fedify init to use @fedify/vocab package After https://github.com/fedify-dev/fedify/pull/517 extracted vocabulary classes into the separate @fedify/vocab package, projects created by fedify init were missing the @fedify/vocab dependency and importing Person from the wrong package. This commit fixes the issue by: - Adding @fedify/vocab to the default dependencies in getDependencies() - Updating the federation.ts template to import Person from @fedify/vocab instead of @fedify/fedify - Bumping @logtape/logtape version from ^1.1.0 to ^1.3.5 to match the version specified in the root deno.json --- packages/cli/src/init/action/deps.ts | 3 ++- packages/cli/src/init/templates/defaults/federation.ts.tpl | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/init/action/deps.ts b/packages/cli/src/init/action/deps.ts index adf712e0c..42a3959f9 100644 --- a/packages/cli/src/init/action/deps.ts +++ b/packages/cli/src/init/action/deps.ts @@ -33,7 +33,8 @@ export const getDependencies = ( pipe( { "@fedify/fedify": PACKAGE_VERSION, - "@logtape/logtape": "^1.1.0", + "@fedify/vocab": PACKAGE_VERSION, + "@logtape/logtape": "^1.3.5", }, merge(initializer.dependencies), merge(kv.dependencies), diff --git a/packages/cli/src/init/templates/defaults/federation.ts.tpl b/packages/cli/src/init/templates/defaults/federation.ts.tpl index 5a6824f53..6d3b0dfdb 100644 --- a/packages/cli/src/init/templates/defaults/federation.ts.tpl +++ b/packages/cli/src/init/templates/defaults/federation.ts.tpl @@ -1,4 +1,5 @@ -import { createFederation, Person } from "@fedify/fedify"; +import { createFederation } from "@fedify/fedify"; +import { Person } from "@fedify/vocab"; import { getLogger } from "@logtape/logtape"; /* imports */