Skip to content

Conversation

@dahlia
Copy link
Member

@dahlia dahlia commented Jan 14, 2026

Summary

After PR #517 extracted vocabulary classes into the separate @fedify/vocab package, fedify init was still generating projects that only installed @fedify/fedify and imported vocabulary types from the wrong package. This PR fixes the CLI to properly configure new projects with the correct dependencies and imports.

Related issues

Changes

  • Added @fedify/vocab to the default dependencies in getDependencies()
  • Updated the federation.ts template to import Person from @fedify/vocab instead of @fedify/fedify
  • Bumped @logtape/logtape version from ^1.1.0 to ^1.3.5 to match the version specified in the root deno.json

Benefits

Projects created with fedify init will now:

  • Automatically include the @fedify/vocab package as a dependency
  • Use the correct import paths for vocabulary types, preventing runtime errors
  • Use the latest version of LogTape consistent with the monorepo

Checklist

  • Did you add a changelog entry to the CHANGES.md?
  • Did you write some relevant docs about this change (if it's a new feature)?
  • Did you write a regression test to reproduce the bug (if it's a bug fix)?
  • Did you write some tests for this change (if it's a new feature)?
  • Did you run mise test on your machine?

Additional notes

This is a bug fix for the CLI package that should be included in the next release to ensure that new projects created after the vocabulary extraction work correctly out of the box.

After fedify-dev#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
@issues-auto-labeler issues-auto-labeler bot added component/build Build system and packaging component/cli CLI tools related component/federation Federation object related labels Jan 14, 2026
@codecov
Copy link

codecov bot commented Jan 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dahlia dahlia merged commit c276300 into fedify-dev:main Jan 14, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/build Build system and packaging component/cli CLI tools related component/federation Federation object related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants