Skip to content

Commit c14dc2e

Browse files
etrclaude
andcommitted
README: describe unregister_resource accurately (not a deprecated alias)
unregister_resource is NOT [[deprecated]] and NOT an alias for unregister_path — it atomically clears either an exact or a prefix registration (a capability unregister_path alone lacks). Correct the stale wording; the method stays. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NpysYDDJac63yz2mZKKiDf
1 parent 93556fc commit c14dc2e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -879,8 +879,10 @@ Regex validation is on by default; disable with `regex_checking(false)`
879879
on the builder if you need pure literal-path semantics.
880880

881881
**Unregistration.** `unregister_path(path)` and `unregister_prefix(path)`
882-
remove a previously registered resource by path. (`unregister_resource`
883-
exists as a deprecated alias for `unregister_path`.)
882+
remove an exact-match or prefix-match registration respectively.
883+
`unregister_resource(path)` is a kind-agnostic convenience that atomically
884+
clears whichever kind (exact or prefix) is registered at `path` — use it
885+
when the caller does not track how the resource was registered.
884886

885887
## Request
886888

0 commit comments

Comments
 (0)