Repository navigation
Commit aefbf59
committed
fix(changeset): the pending client entry's closing register is dated, not present-tense — all three "not addressed here" clauses had been answered
`.changeset/client-get-session-envelope-and-refresh-read.md` is release input:
`changeset version` copies it verbatim into `packages/client/CHANGELOG.md` and
it ships in the npm tarball. Its closing paragraph was an undated present-tense
register of what the change left undone, and every one of its three clauses had
since been falsified on `origin/main`:
- the anonymous `/get-session` `null` "would need the published return
annotation to widen" — `374d9d3afa` moved the PRODUCER instead:
`refuseAnonymousSession` converts `200` + literal `null` into the ADR-0112
`401 UNAUTHENTICATED` refusal, so an anonymous `auth.me()` rejects and the
annotation needs no widening at all;
- `SessionUser.image` "declared `z.string().optional()`" — `0e51278f3`
declares it `z.string().nullish()`;
- `auth.login` / `auth.register` "normalize into `data` but set no `success`"
— `01388fe81` put them on `normalizeSessionResponse`, which returns
`{ success: true, ...body, data }`.
Each clause is kept as what it recorded, anchored to when it was written, with
the landing that answered it beside it. The dated better-auth 1.7.2 transcript
above is history and is untouched.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DvvamiacK328idtBYJBxV31 parent f1c9bb3 commit aefbf59
1 file changed
Lines changed: 18 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
0 commit comments