Skip to content

refactor(service-datasource): merge federation + runtime admin into one package#1513

Merged
xuyushun441-sys merged 1 commit into
mainfrom
feat/merge-datasource-packages
Jun 2, 2026
Merged

refactor(service-datasource): merge federation + runtime admin into one package#1513
xuyushun441-sys merged 1 commit into
mainfrom
feat/merge-datasource-packages

Conversation

@xuyushun441-sys

Copy link
Copy Markdown
Contributor

What

Merges @objectstack/service-external-datasource (federation) and @objectstack/service-datasource-admin (runtime UI lifecycle) into a single @objectstack/service-datasource.

Why

They were always one ADR-0015 capability — the split existed only because the runtime admin was once private/out-of-repo. Now that both are open-source (#1502, #1511), that reason is gone, and one package is the simpler, truer model. Now is the cheapest time: only the cli depended on either package, so the rename's blast radius is minimal.

The earlier "keep them separate" arguments (independent mounting, the open-core DI seam, audit surface) turned out not to require a package boundary — they live at the plugin-constructor / module level. The two plugins still mount independently (serve wires each in its own block); merging the package did not couple them.

How

  • git mv preserves history for both halves.
  • Unified index.ts re-exports both surfaces; single canonical Logger.
  • Plugin runtime IDs unchanged (com.objectstack.service-external-datasource / com.objectstack.service-datasource-admin), so dedup matching + persisted references keep working — only the npm package name changed.
  • package.json: driver packages as optional peers; exports . + ./contracts; local tsup (index + contracts entries).
  • Consumers updated: cli dep, serve.ts dynamic imports, .changeset/config.json.

Verification

  • typecheck clean; 56 tests pass (federation + admin combined).
  • merged package build (incl. dts) + cli build green.

Note for the cloud repo

cloud doesn't import these directly (it consumes the framework CLI), so no cloud change is needed. The old package names are fully retired in framework live code/config.

🤖 Generated with Claude Code

@vercel

vercel Bot commented Jun 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
spec Ready Ready Preview, Comment Jun 2, 2026 3:47am

Request Review

…ne package

Consolidate `@objectstack/service-external-datasource` (federation) and
`@objectstack/service-datasource-admin` (runtime UI lifecycle) into a single
`@objectstack/service-datasource`. The two were always one ADR-0015 capability;
they were only split because the runtime admin was once private. Now that both
are open-source that reason is gone, so they become one package.

The two plugins still mount independently (serve wires each in its own block) —
merging the package did not couple them. Plugin runtime IDs
(`com.objectstack.service-external-datasource` /
`com.objectstack.service-datasource-admin`) are unchanged, so dedup matching and
any persisted references keep working.

- git mv preserves history for both halves.
- Unified index re-exports both surfaces; single canonical `Logger`.
- package.json: driver packages as optional peers, exports `.` + `./contracts`,
  local tsup (index + contracts entries).
- Consumers updated: cli dep + serve.ts dynamic imports + .changeset/config.json.
- Now is the cheapest time to do this: only the cli depended on either package.

Verified: typecheck clean; 56 tests pass (federation + admin); package build
(incl. dts) and cli build green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@xuyushun441-sys xuyushun441-sys force-pushed the feat/merge-datasource-packages branch from fb3d009 to 84c77fb Compare June 2, 2026 03:42
@github-actions github-actions Bot added documentation Improvements or additions to documentation dependencies Pull requests that update a dependency file tests tooling size/m labels Jun 2, 2026
@xuyushun441-sys xuyushun441-sys merged commit ed5d1a7 into main Jun 2, 2026
11 of 12 checks passed
@xuyushun441-sys xuyushun441-sys deleted the feat/merge-datasource-packages branch June 2, 2026 03:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation size/m tests tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants