Skip to content

feat(comments): add createdAt sortBy + sortDir, deprecate new/old#13

Merged
Tsabary merged 1 commit into
mainfrom
feat/comments-createdat-sortby
Jun 24, 2026
Merged

feat(comments): add createdAt sortBy + sortDir, deprecate new/old#13
Tsabary merged 1 commit into
mainfrom
feat/comments-createdat-sortby

Conversation

@Tsabary

@Tsabary Tsabary commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Mirrors the server change (comments sort parity with entities): adds createdAt as the canonical comment time sort plus a sortDir param, and marks the directional aliases new (createdAt DESC) and old (createdAt ASC) deprecated.

  • FetchManyCommentsProps.sortBy: add createdAt; keep new/old as @deprecated members (server still accepts them, identical behavior, removed in v8, responds with deprecation headers).
  • Add sortDir?: "asc" | "desc".

Pairs with the server, monorepo, and docs PRs.

Verification: tsc --noEmit clean.

🤖 Generated with Claude Code

Mirrors the server change. Adds "createdAt" as the canonical comment
time sort plus a "sortDir" param, and marks the directional aliases
"new" (createdAt DESC) and "old" (createdAt ASC) deprecated — the
server still accepts them (identical behavior, removed in v8) but
responds with deprecation headers.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Tsabary Tsabary merged commit 962e4e6 into main Jun 24, 2026
1 check passed
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.

1 participant