Commit df287e6
refactor(plugin-sharing): put the shared logger contract on the precise signature (#11236)
Spell OptionalSharingLogger's members as a string message plus an optional
Record of string keys to any values, and absorb sharing-rule-provenance.ts
onto the shared type instead of a seventh local MinimalLogger.
The shared shape shipped with the loose (msg: any, ...rest: any[]) spelling
inherited from the two byte-identical declarations it replaced. That spelling
documents nothing and catches nothing -- the same complaint this card levels
at bare Function -- so the third module was unified onto the strict spelling
it already declared, rather than the reverse.
Caller cost is zero: every caller passes ctx.logger as any, or undefined.
All 12 in-module call sites already pass exactly (string, object?).
check:optional-error-sink membership is unchanged: 37 / 12 / 23 / 2, still
2 baselined. record-orphan-cleanup.ts's bare-Function members stay untouched
-- tightening them moves that gate's population and remains open on #10692.
Part of #10692
Claude-Session: https://claude.ai/code/session_01APWX2AwT3a4xDcjPCe8bk4
Co-authored-by: Claude <noreply@anthropic.com>1 parent e4a71d4 commit df287e6
3 files changed
Lines changed: 62 additions & 15 deletions
File tree
- .changeset
- packages/plugins/plugin-sharing/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
22 | 40 | | |
23 | 41 | | |
24 | 42 | | |
| |||
47 | 65 | | |
48 | 66 | | |
49 | 67 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 68 | + | |
57 | 69 | | |
58 | 70 | | |
59 | | - | |
60 | | - | |
| 71 | + | |
| 72 | + | |
61 | 73 | | |
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | 37 | | |
41 | 38 | | |
42 | 39 | | |
43 | 40 | | |
44 | | - | |
| 41 | + | |
45 | 42 | | |
46 | 43 | | |
47 | 44 | | |
| |||
0 commit comments