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:
@@ -100,7 +100,6 @@
|
|||||||
"prettier": "prettier --check ."
|
"prettier": "prettier --check ."
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@atproto/api": "0.20.39",
|
|
||||||
"@atproto/common-web": "0.5.9",
|
"@atproto/common-web": "0.5.9",
|
||||||
"@atproto/lex": "0.3.6",
|
"@atproto/lex": "0.3.6",
|
||||||
"@atproto/lex-password-session": "0.2.0",
|
"@atproto/lex-password-session": "0.2.0",
|
||||||
|
|||||||
Generated
-43
@@ -242,9 +242,6 @@ importers:
|
|||||||
|
|
||||||
.:
|
.:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@atproto/api':
|
|
||||||
specifier: 0.20.39
|
|
||||||
version: 0.20.39
|
|
||||||
'@atproto/common-web':
|
'@atproto/common-web':
|
||||||
specifier: 0.5.9
|
specifier: 0.5.9
|
||||||
version: 0.5.9
|
version: 0.5.9
|
||||||
@@ -908,10 +905,6 @@ packages:
|
|||||||
resolution: {integrity: sha512-vfvoDhu6ds6BT3Pqe+d2/LBU1WpDRtt69y6zltlfMCoucPm82m1j50/Wb6xTvv+oZ+2j0JyZVXsmXQ12SWYQJg==}
|
resolution: {integrity: sha512-vfvoDhu6ds6BT3Pqe+d2/LBU1WpDRtt69y6zltlfMCoucPm82m1j50/Wb6xTvv+oZ+2j0JyZVXsmXQ12SWYQJg==}
|
||||||
engines: {node: '>=22'}
|
engines: {node: '>=22'}
|
||||||
|
|
||||||
'@atproto/api@0.20.39':
|
|
||||||
resolution: {integrity: sha512-FRjwAmYe0kKlWsAe8IvfbmAAKyjpXnl2NV67vWEEjux0FwIEIG6JbOo6YkD5tjK2xjL0Daa429R0E8phmxRrrQ==}
|
|
||||||
engines: {node: '>=22'}
|
|
||||||
|
|
||||||
'@atproto/common-web@0.5.9':
|
'@atproto/common-web@0.5.9':
|
||||||
resolution: {integrity: sha512-2c5C6YV8352JJz9Z5fNfcsstllaKGAb3cQW9aO7unMAGh/FzTGFq+xOwNMW2lTeagO6z530uxYm8AiSRM6O+DQ==}
|
resolution: {integrity: sha512-2c5C6YV8352JJz9Z5fNfcsstllaKGAb3cQW9aO7unMAGh/FzTGFq+xOwNMW2lTeagO6z530uxYm8AiSRM6O+DQ==}
|
||||||
engines: {node: '>=22'}
|
engines: {node: '>=22'}
|
||||||
@@ -973,10 +966,6 @@ packages:
|
|||||||
engines: {node: '>=22'}
|
engines: {node: '>=22'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
'@atproto/lexicon@0.7.11':
|
|
||||||
resolution: {integrity: sha512-ukCZMCWmiu7fAlssBbLs+IMaf2K2R9mADaTKz2jEeC/xeZ3jT77Ka0S2G+ELBB+Dc9ijBACU0iPMQLhquOkuzQ==}
|
|
||||||
engines: {node: '>=22'}
|
|
||||||
|
|
||||||
'@atproto/repo@0.10.11':
|
'@atproto/repo@0.10.11':
|
||||||
resolution: {integrity: sha512-QqDzEv8d6NUuqZ0xvWG+n8DfWd4Vuka04nyuD9oglKsj5avB1zbEsWx3Oit1oYtZFUf9JSVWMDqMXhu3UbB+lA==}
|
resolution: {integrity: sha512-QqDzEv8d6NUuqZ0xvWG+n8DfWd4Vuka04nyuD9oglKsj5avB1zbEsWx3Oit1oYtZFUf9JSVWMDqMXhu3UbB+lA==}
|
||||||
engines: {node: '>=22'}
|
engines: {node: '>=22'}
|
||||||
@@ -985,10 +974,6 @@ packages:
|
|||||||
resolution: {integrity: sha512-EHsEHtasH/DGPljBYecVDjweGMQ5eTu6Ns0GZ5z0qdqpOI8ipBvldWnMIxWkA+5HfZ9Dsu4V1MX0WP7wgL8cuA==}
|
resolution: {integrity: sha512-EHsEHtasH/DGPljBYecVDjweGMQ5eTu6Ns0GZ5z0qdqpOI8ipBvldWnMIxWkA+5HfZ9Dsu4V1MX0WP7wgL8cuA==}
|
||||||
engines: {node: '>=22'}
|
engines: {node: '>=22'}
|
||||||
|
|
||||||
'@atproto/xrpc@0.8.10':
|
|
||||||
resolution: {integrity: sha512-++FNpTVF61fF8+3Kk1RYtdTO7xyUTdIc/Cmfk2CMn29Qw9tZD8bmW+M5db1Z0okYWFWK8Wqu7bc9VmF8tUB8Jg==}
|
|
||||||
engines: {node: '>=22'}
|
|
||||||
|
|
||||||
'@babel/code-frame@7.10.4':
|
'@babel/code-frame@7.10.4':
|
||||||
resolution: {integrity: sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg==}
|
resolution: {integrity: sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg==}
|
||||||
|
|
||||||
@@ -4320,9 +4305,6 @@ packages:
|
|||||||
resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==}
|
resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==}
|
||||||
engines: {node: '>= 0.4'}
|
engines: {node: '>= 0.4'}
|
||||||
|
|
||||||
await-lock@3.0.0:
|
|
||||||
resolution: {integrity: sha512-eO6fLiSnrJrMdjWMNK8zbVRXPs2TKJg78iKZd9wDpN3na5tcoV6EoeiOlMgk2QaAQ1gIrK1YuMsJHXWqz89tSA==}
|
|
||||||
|
|
||||||
babel-jest@29.7.0:
|
babel-jest@29.7.0:
|
||||||
resolution: {integrity: sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==}
|
resolution: {integrity: sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==}
|
||||||
engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
|
engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
|
||||||
@@ -9754,17 +9736,6 @@ snapshots:
|
|||||||
|
|
||||||
'@atproto-labs/simple-store@0.5.1': {}
|
'@atproto-labs/simple-store@0.5.1': {}
|
||||||
|
|
||||||
'@atproto/api@0.20.39':
|
|
||||||
dependencies:
|
|
||||||
'@atproto/common-web': 0.5.9
|
|
||||||
'@atproto/lexicon': 0.7.11
|
|
||||||
'@atproto/syntax': 0.7.4
|
|
||||||
'@atproto/xrpc': 0.8.10
|
|
||||||
await-lock: 3.0.0
|
|
||||||
multiformats: 13.4.2
|
|
||||||
tlds: 1.261.0
|
|
||||||
zod: 3.25.76
|
|
||||||
|
|
||||||
'@atproto/common-web@0.5.9':
|
'@atproto/common-web@0.5.9':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@atproto/lex-data': 0.1.7
|
'@atproto/lex-data': 0.1.7
|
||||||
@@ -9875,13 +9846,6 @@ snapshots:
|
|||||||
tslib: 2.8.1
|
tslib: 2.8.1
|
||||||
yargs: 18.1.0
|
yargs: 18.1.0
|
||||||
|
|
||||||
'@atproto/lexicon@0.7.11':
|
|
||||||
dependencies:
|
|
||||||
'@atproto/common-web': 0.5.9
|
|
||||||
'@atproto/syntax': 0.7.4
|
|
||||||
multiformats: 13.4.2
|
|
||||||
zod: 3.25.76
|
|
||||||
|
|
||||||
'@atproto/repo@0.10.11':
|
'@atproto/repo@0.10.11':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@atproto/common': 0.8.0
|
'@atproto/common': 0.8.0
|
||||||
@@ -9898,11 +9862,6 @@ snapshots:
|
|||||||
iso-datestring-validator: 2.2.2
|
iso-datestring-validator: 2.2.2
|
||||||
tslib: 2.8.1
|
tslib: 2.8.1
|
||||||
|
|
||||||
'@atproto/xrpc@0.8.10':
|
|
||||||
dependencies:
|
|
||||||
'@atproto/lexicon': 0.7.11
|
|
||||||
zod: 3.25.76
|
|
||||||
|
|
||||||
'@babel/code-frame@7.10.4':
|
'@babel/code-frame@7.10.4':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@babel/highlight': 7.25.9
|
'@babel/highlight': 7.25.9
|
||||||
@@ -13788,8 +13747,6 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
possible-typed-array-names: 1.1.0
|
possible-typed-array-names: 1.1.0
|
||||||
|
|
||||||
await-lock@3.0.0: {}
|
|
||||||
|
|
||||||
babel-jest@29.7.0(@babel/core@7.29.0(supports-color@8.1.1))(supports-color@8.1.1):
|
babel-jest@29.7.0(@babel/core@7.29.0(supports-color@8.1.1))(supports-color@8.1.1):
|
||||||
dependencies:
|
dependencies:
|
||||||
'@babel/core': 7.29.0(supports-color@8.1.1)
|
'@babel/core': 7.29.0(supports-color@8.1.1)
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
* label simply drops the `https://` scheme for readability.
|
* label simply drops the `https://` scheme for readability.
|
||||||
*
|
*
|
||||||
* Kept as a dependency-free leaf module (no #/lib/strings/url-helpers import)
|
* Kept as a dependency-free leaf module (no #/lib/strings/url-helpers import)
|
||||||
* so its unit tests stay fast and isolated from the heavy @atproto/api graph.
|
* so its unit tests stay fast and isolated from the lexicon graph.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function stripLeadingAt(handle: string): string {
|
function stripLeadingAt(handle: string): string {
|
||||||
|
|||||||
@@ -94,7 +94,8 @@ describe('cleanError', () => {
|
|||||||
it('surfaces the authentication-required code of a lex error', () => {
|
it('surfaces the authentication-required code of a lex error', () => {
|
||||||
/*
|
/*
|
||||||
* The lex client derives `AuthenticationRequired` from a 401 with no XRPC
|
* The lex client derives `AuthenticationRequired` from a 401 with no XRPC
|
||||||
* payload, where `@atproto/api` used the spaced "Authentication Required".
|
* payload, where the pre-migration client used the spaced
|
||||||
|
* "Authentication Required".
|
||||||
* Neither is special-cased in `cleanError`, so what matters is that the
|
* Neither is special-cased in `cleanError`, so what matters is that the
|
||||||
* class- and code-prefixed stringification does not reach the user.
|
* class- and code-prefixed stringification does not reach the user.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -568,9 +568,8 @@ export function MessagesList({
|
|||||||
embed = {
|
embed = {
|
||||||
$type: 'app.bsky.embed.record',
|
$type: 'app.bsky.embed.record',
|
||||||
/*
|
/*
|
||||||
* `getPost` still returns an `@atproto/api` view, whose `uri` and
|
* `getPost` hands back `uri` and `cid` as plain strings rather
|
||||||
* `cid` are plain strings rather than the branded syntax types
|
* than the branded syntax types the lexicon input declares.
|
||||||
* the lexicon input declares.
|
|
||||||
*/
|
*/
|
||||||
record: {
|
record: {
|
||||||
uri: post.uri,
|
uri: post.uri,
|
||||||
|
|||||||
@@ -1187,8 +1187,8 @@ export class Convo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The lex client throws `XrpcResponseError`, not `@atproto/api`'s
|
* The lex client throws `XrpcResponseError`, so the status/message branch
|
||||||
* `XRPCError`, so the status/message branch narrows on the lex class. Only
|
* narrows on that class. Only
|
||||||
* a genuine server response carries a status: transport and internal lex
|
* a genuine server response carries a status: transport and internal lex
|
||||||
* failures are `XrpcInternalError`s and fall through to the generic arm,
|
* failures are `XrpcInternalError`s and fall through to the generic arm,
|
||||||
* where `isNetworkError` keeps them out of the logs.
|
* where `isNetworkError` keeps them out of the logs.
|
||||||
|
|||||||
@@ -72,9 +72,9 @@ export async function optimisticallySaveBookmark(
|
|||||||
if (index === 0) {
|
if (index === 0) {
|
||||||
post.$type = 'app.bsky.feed.defs#postView'
|
post.$type = 'app.bsky.feed.defs#postView'
|
||||||
/*
|
/*
|
||||||
* The optimistic entry is synthesized from an `@atproto/api`
|
* The optimistic entry is synthesized with unbranded string
|
||||||
* `PostView`, whose string fields are unbranded, so it is asserted
|
* fields, so it is asserted to the generated view type the query
|
||||||
* to the vendored view type the query data is now keyed on.
|
* data is keyed on.
|
||||||
*/
|
*/
|
||||||
const bookmark = {
|
const bookmark = {
|
||||||
createdAt: new Date().toISOString(),
|
createdAt: new Date().toISOString(),
|
||||||
|
|||||||
@@ -45,8 +45,7 @@ export function usePostQuery(uri: string | undefined) {
|
|||||||
* Read one post by AT-URI, resolving a handle authority first when the URI
|
* Read one post by AT-URI, resolving a handle authority first when the URI
|
||||||
* carries one.
|
* carries one.
|
||||||
*
|
*
|
||||||
* The appview still answers with `@atproto/api`-shaped views for the callers of
|
* The appview response is asserted to the generated view at this single
|
||||||
* these hooks, so the generated view is asserted across at this single
|
|
||||||
* boundary rather than at every consumer.
|
* boundary rather than at every consumer.
|
||||||
*/
|
*/
|
||||||
async function fetchPost(
|
async function fetchPost(
|
||||||
|
|||||||
@@ -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.
|
* time is appended here since the lexicon expects a datetime value.
|
||||||
*/
|
*/
|
||||||
const parseTimestamp = (value: string | undefined): string | undefined => {
|
const parseTimestamp = (value: string | undefined): string | undefined => {
|
||||||
|
|||||||
@@ -144,9 +144,8 @@ export function useSaveDraftMutation() {
|
|||||||
composerState,
|
composerState,
|
||||||
)
|
)
|
||||||
/*
|
/*
|
||||||
* `composerStateToDraft` builds the draft against the `@atproto/api`
|
* `composerStateToDraft` builds the draft with unbranded string fields,
|
||||||
* types, whose string fields are unbranded, so it is asserted once here
|
* so it is asserted once here to the generated input type.
|
||||||
* to the vendored input type.
|
|
||||||
*/
|
*/
|
||||||
const draft = apiDraft as unknown as app.bsky.draft.defs.Draft
|
const draft = apiDraft as unknown as app.bsky.draft.defs.Draft
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import {app} from '#/lexicons'
|
import {app} from '#/lexicons'
|
||||||
/**
|
/**
|
||||||
* Types for draft display and local media tracking.
|
* Types for draft display and local media tracking.
|
||||||
* Server draft types come from @atproto/api.
|
* Server draft types come from the generated `#/lexicons` modules.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
+1
-1
@@ -45,7 +45,7 @@ function patchSourceMapFilter(rules, pathPattern) {
|
|||||||
|
|
||||||
module.exports = async function (env, argv) {
|
module.exports = async function (env, argv) {
|
||||||
env.babel = {
|
env.babel = {
|
||||||
dangerouslyAddModulePathsToTranspile: ['@bsky.app/expo', '@atproto/api'],
|
dangerouslyAddModulePathsToTranspile: ['@bsky.app/expo'],
|
||||||
}
|
}
|
||||||
let config = await createExpoWebpackConfigAsync(env, argv)
|
let config = await createExpoWebpackConfigAsync(env, argv)
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user