Skip to content

docs(migration): add MIGRATION.md for functional-options API break#323

Merged
zeevdr merged 2 commits into
mainfrom
docs/275-functional-options-migration
May 1, 2026
Merged

docs(migration): add MIGRATION.md for functional-options API break#323
zeevdr merged 2 commits into
mainfrom
docs/275-functional-options-migration

Conversation

@zeevdr
Copy link
Copy Markdown
Member

@zeevdr zeevdr commented May 1, 2026

Summary

PRs #235, #236, #249, #254 swept every public service constructor from struct-config to functional options. The old Config / ServiceConfig / RecorderConfig / GatewayConfig structs are removed and there is no backward-compatibility shim (alpha policy).

This adds MIGRATION.md at the repo root documenting before/after for each affected constructor and the full list of With...() options:

  • internal/serverNew, NewGateway (gateway-side options carry a Gateway prefix to disambiguate from same-package server options)
  • internal/auditNewUsageRecorder
  • internal/authNewInterceptor
  • internal/configNewService
  • sdk/adminclientNew
  • internal/schemaNewService

The pattern rule recorded at the bottom: required arguments stay positional; only optional arguments use With...() options.

Closes #275

Test plan

  • make test green
  • CI green

🤖 Generated with Claude Code

)

PRs #235, #236, #249, #254 replaced struct-config constructors with
functional options across server, gateway, audit, auth, config,
adminclient, and schema. The Config / ServiceConfig / RecorderConfig /
GatewayConfig structs are removed without backward-compat shims (alpha).

This document records before/after for each affected constructor and the
list of With...() options, so SDK consumers and embedders know what to
update when bumping versions.

Closes #275

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@zeevdr zeevdr force-pushed the docs/275-functional-options-migration branch from 965bdec to d61f586 Compare May 1, 2026 05:45
@zeevdr zeevdr merged commit ed719b2 into main May 1, 2026
13 checks passed
@zeevdr zeevdr deleted the docs/275-functional-options-migration branch May 1, 2026 06:31
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.

Add migration notes for functional-options API break

1 participant