Skip to content

server: rename package to @nmtjs/server-host - #309

Merged
denny-il merged 1 commit into
mainfrom
dev/rename-server-host-package
Aug 2, 2026
Merged

denny-il merged 1 commit into
mainfrom
dev/rename-server-host-package

Conversation

@denny-il

@denny-il denny-il commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Rename the published package from @nmtjs/server to @nmtjs/server-host.
  • Update workspace consumers, imports, tests, and the lockfile.

Why

The @nmtjs/server registry entry is stuck in npm's unpublished tombstone state, so consumers cannot resolve the newly uploaded version and the beta release cannot complete. The new name also describes the package's shared HTTP/WebSocket host role more precisely.

Validation

  • vp env exec pnpm build
  • CI=true vp env exec pnpm vitest --run packages/server/tests packages/http-transport/tests packages/ws-transport/tests --reporter=agent (12 files, 69 tests)
  • vp env exec pnpm run fmt
  • vp env exec pnpm run check
  • git diff --check

Summary by CodeRabbit

  • Refactor
    • Migrated server-host integration across HTTP and WebSocket transports to the renamed server-host package.
    • Preserved existing transport APIs, response helpers, runtime behavior, and compatibility exports.
    • Updated Node.js, Bun, and Deno integrations to use the new package naming consistently.
    • Updated related development dependencies and test references.

@coderabbitai

coderabbitai Bot commented Aug 2, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: b03335db-2e0f-4301-93de-cc39479462ef

📥 Commits

Reviewing files that changed from the base of the PR and between 6cad3e6 and 1e53017.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (20)
  • packages/http-transport/package.json
  • packages/http-transport/src/adapter.ts
  • packages/http-transport/src/constants.ts
  • packages/http-transport/src/runtimes/bun.ts
  • packages/http-transport/src/runtimes/deno.ts
  • packages/http-transport/src/runtimes/node.ts
  • packages/http-transport/src/types.ts
  • packages/http-transport/src/utils.ts
  • packages/neem/package.json
  • packages/neem/tests/e2e/fixtures/cases/shared-server/shared-server.worker.ts
  • packages/server/package.json
  • packages/ws-transport/package.json
  • packages/ws-transport/src/adapter.ts
  • packages/ws-transport/src/runtimes/bun.ts
  • packages/ws-transport/src/runtimes/deno.ts
  • packages/ws-transport/src/runtimes/node.ts
  • packages/ws-transport/src/types.ts
  • packages/ws-transport/src/utils.ts
  • packages/ws-transport/tests/shared-server.spec.ts
  • packages/ws-transport/tests/stream-e2e.spec.ts

📝 Walkthrough

Walkthrough

The shared server package was renamed to @nmtjs/server-host. HTTP and WebSocket transports, workspace dependencies, runtime imports, type references, re-exports, and related tests now use the renamed package.

Changes

Server host package rename

Layer / File(s) Summary
Package identity and dependency migration
packages/server/package.json, packages/http-transport/package.json, packages/ws-transport/package.json, packages/neem/package.json
The package name and workspace dependencies now use @nmtjs/server-host.
HTTP transport migration
packages/http-transport/src/...
HTTP transport types, constants, response helpers, and runtime host factories now resolve from @nmtjs/server-host.
WebSocket and fixture migration
packages/ws-transport/src/..., packages/ws-transport/tests/..., packages/neem/tests/e2e/...
WebSocket transport imports, re-exports, type references, and shared-server fixtures now use @nmtjs/server-host.

Possibly related PRs

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the package rename that is the main change in the pull request.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dev/rename-server-host-package

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@denny-il
denny-il marked this pull request as ready for review August 2, 2026 19:01
@denny-il
denny-il merged commit b987118 into main Aug 2, 2026
5 checks passed
@denny-il
denny-il deleted the dev/rename-server-host-package branch August 2, 2026 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant