Skip to content

API: Rename to NetworkClient, client as instance. - #1405

Merged
jglogan merged 2 commits into
apple:mainfrom
jglogan:network-clientinit
Apr 8, 2026
Merged

jglogan merged 2 commits into
apple:mainfrom
jglogan:network-clientinit

Conversation

@jglogan

@jglogan jglogan commented Apr 8, 2026

Copy link
Copy Markdown
Contributor
  • Part of [Request]: TECH DEBT: Refactor network resource management for 1.0. #1404.
  • COMPATIBILITY: Breaking change to client API. XPC protocol and persistent data remain fully compatibile.
  • Renames ClientNetwork to NetworkClient, aligning with ContainerClient.
  • Client uses instance methods instead of utility functions, with an init(serviceIdentifier:) for the XPC service name. The value is currently unused.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

Clean up resource management.

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

- COMPATIBILITY: Breaking change to client API.
  XPC protocol and persistent data remain fully
  compatibile.
- Renames `ClientNetwork` to `NetworkClient`,
  aligning with `ContainerClient`.
- Client uses instance methods instead of utility
  functions, with an `init(serviceIdentifier:)`
  for the XPC service name. The value is currently
  unused.
@github-actions github-actions Bot added the facet/cli Work related to generic or cross-cutting CLI features label Apr 8, 2026
@jglogan
jglogan merged commit a1981c3 into apple:main Apr 8, 2026
3 checks passed
@jglogan
jglogan deleted the network-clientinit branch April 8, 2026 20:54
jianliang00 pushed a commit to jianliang00/container that referenced this pull request Aug 28, 2026
- Part of apple#1404.
- COMPATIBILITY: Breaking change to client API. XPC protocol and
persistent data remain fully compatibile.
- Renames `ClientNetwork` to `NetworkClient`, aligning with
`ContainerClient`.
- Client uses instance methods instead of utility functions, with an
`init(serviceIdentifier:)` for the XPC service name. The value is
currently unused.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

facet/cli Work related to generic or cross-cutting CLI features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants