Skip to content

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

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

API: Rename to NetworkClient, client as instance.#1405
jglogan merged 2 commits intoapple:mainfrom
jglogan:network-clientinit

Conversation

@jglogan
Copy link
Copy Markdown
Contributor

@jglogan jglogan commented Apr 8, 2026

  • 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.
@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants