Composite Profile: The Team Behind a Company's Internal Libraries
This is a composite, illustrative profile. No real company or team is described. It brings together circumstances common to platform teams who publish shared code for colleagues rather than for the public, a group that reads packaging advice but often finds it written only for open source.
Meet "Team C"
Team C is a handful of engineers inside a mid-sized organisation. They own a set of internal packages: an HTTP client wrapper with company defaults, a logging helper, some shared UI components and a configuration loader. Packages live in a private registry, and dozens of application teams depend on them. Team C does not have users who can simply fork and move on; their consumers are colleagues with deadlines, and a bad release lands on a shared incident channel within minutes.
How internal publishing differs from open source
- Consumers are known. Team C can, in principle, find every dependent repository. That makes breaking-change impact measurable rather than guessed.
- Upgrades are often mandated. Security or compliance work may require every team to move to a new version by a deadline, which changes how long old majors need support.
- Names can collide with public packages. An unscoped internal name that also exists on a public registry invites dependency confusion if build tooling is misconfigured.
- Licensing is simpler but not absent. The internal code may not need an open source licence, but its own third-party dependencies still carry obligations.
Practices that work well for a team like this
- Scope every internal package. Use a scope or namespace the organisation controls, and configure the package manager so that scope only resolves from the private registry:
# .npmrc in each consuming repo (illustrative) @acme-internal:registry=https://registry.example.internal/npm/- Follow semver strictly, even internally. Colleagues rely on caret ranges as much as anyone. Treat a major bump as a project with a migration note, not a casual tag.
- Publish a support window. For example: "the previous major receives security fixes for six months after a new major". Pick a window you can honour; the number here is only an example.
- Automate the release. Releases come from CI on a protected branch, never from a laptop, with the changelog generated from Conventional Commits or written in the merge request.
- Search before you break. Before removing an export, search the organisation's code for uses. A code search is the cheapest breaking-change detector available.
The recurring tension
Application teams want stability; Team C wants to fix design mistakes. Neither is wrong. A pattern that tends to hold up is a predictable rhythm: deprecate in one minor release, warn loudly at runtime or build time, and remove in the next major after the announced window. Predictability is what earns the trust to make changes at all.
For more on that rhythm, see the training unit on deprecation warnings, and for the trade-offs of running a private registry, the internal registry briefing.