drop @atproto/api from the dependency tree

The last references were stale comments; the package itself leaves
package.json, webpack's transpile list, and 102 packages from the lockfile.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Samuel Newman
2026-08-04 04:56:30 +03:00
parent ae0750099f
commit 02173556ab
12 changed files with 16 additions and 62 deletions
+2 -2
View File
@@ -1187,8 +1187,8 @@ export class Convo {
}
/*
* The lex client throws `XrpcResponseError`, not `@atproto/api`'s
* `XRPCError`, so the status/message branch narrows on the lex class. Only
* The lex client throws `XrpcResponseError`, so the status/message branch
* narrows on that class. Only
* a genuine server response carries a status: transport and internal lex
* failures are `XrpcInternalError`s and fall through to the generic arm,
* where `isNetworkError` keeps them out of the logs.
@@ -72,9 +72,9 @@ export async function optimisticallySaveBookmark(
if (index === 0) {
post.$type = 'app.bsky.feed.defs#postView'
/*
* The optimistic entry is synthesized from an `@atproto/api`
* `PostView`, whose string fields are unbranded, so it is asserted
* to the vendored view type the query data is now keyed on.
* The optimistic entry is synthesized with unbranded string
* fields, so it is asserted to the generated view type the query
* data is keyed on.
*/
const bookmark = {
createdAt: new Date().toISOString(),
+1 -2
View File
@@ -45,8 +45,7 @@ export function usePostQuery(uri: string | undefined) {
* Read one post by AT-URI, resolving a handle authority first when the URI
* carries one.
*
* The appview still answers with `@atproto/api`-shaped views for the callers of
* these hooks, so the generated view is asserted across at this single
* The appview response is asserted to the generated view at this single
* boundary rather than at every consumer.
*/
async function fetchPost(
+1 -1
View File
@@ -287,7 +287,7 @@ export function buildSearchPostsV2Filters(
}
/**
* Consistent with timestamp parsing in @atproto/api. Only the date is used; the
* Only the date is used; the
* time is appended here since the lexicon expects a datetime value.
*/
const parseTimestamp = (value: string | undefined): string | undefined => {