Skip to content

Remove network-interfaces, use os.networkInterfaces() directly#7195

Open
ryancbahan wants to merge 1 commit into04-03-04-03-remove-camelcase-keysfrom
04-03-04-03-remove-network-interfaces
Open

Remove network-interfaces, use os.networkInterfaces() directly#7195
ryancbahan wants to merge 1 commit into04-03-04-03-remove-camelcase-keysfrom
04-03-04-03-remove-network-interfaces

Conversation

@ryancbahan
Copy link
Copy Markdown
Contributor

@ryancbahan ryancbahan commented Apr 3, 2026

Summary

  • Replace the single ni.fromIp() call in dev-server-2024.ts with an inline assertIpOnLocalInterface() helper using Node's os.networkInterfaces()
  • The call was only used as a validation check (return value discarded, throws if IP not found on local interface)
  • Remove network-interfaces from cli-kit dependencies and delete the hand-written .d.ts type declaration

The single usage was a validation check (ni.fromIp) that verifies an IP
exists on a local internal IPv4 interface. Replaced with a ~10 line
inline helper using Node's os.networkInterfaces(). Also removed the
hand-written type declaration file.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor Author

ryancbahan commented Apr 3, 2026

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 3, 2026

We detected some changes at packages/*/src and there are no updates in the .changeset.
If the changes are user-facing, run pnpm changeset add to track your changes and include them in the next release CHANGELOG.

Caution

DO NOT create changesets for features which you do not wish to be included in the public changelog of the next CLI release.

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