Commit 90c7036
feat(v10/core): Deprecate
Marks `Scope.clear()` as `@deprecated` ahead of its removal in v11,
giving consumers an IDE deprecation warning and a migration path on v10.
`clear()` mutates a scope's fields in place but intentionally leaves the
client attached, which makes it an awkward reset primitive. The
recommended replacements are re-initializing the SDK or running code in
a fresh scope via `withScope`/`withIsolationScope`.
This is a JSDoc-only change — no runtime behavior changes on v10. The
removal itself lands on `develop` for v11.
#23230
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>scope.clear() method (#23231)1 parent 3d40666 commit 90c7036
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
549 | 549 | | |
550 | 550 | | |
551 | 551 | | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
552 | 555 | | |
553 | 556 | | |
554 | 557 | | |
| |||
0 commit comments