From 0106ef941cfc136e73d4d480e305e78b954f6618 Mon Sep 17 00:00:00 2001 From: Rudy Fraser Date: Thu, 7 May 2026 16:34:40 -0400 Subject: [PATCH] Match CI yarn 1.22.22 lockfile output and apply prettier Run linters and verify-yarn-lock failed locally because my Node 20 / yarn 1.22.17 produced subtly different output than the Node 24 / yarn 1.22.22 combination CI uses. --- src/components/Link.tsx | 12 ++--- src/components/PostControls/index.tsx | 4 +- src/components/RichTextTag.tsx | 2 +- src/components/verification/index.ts | 6 +-- .../Settings/FollowingFeedPreferences.tsx | 2 +- src/state/queries/useQueryWithFallback.ts | 27 ++++++----- src/state/shell/composer/index.tsx | 6 +-- src/view/shell/bottom-bar/BottomBar.tsx | 15 +++--- yarn.lock | 46 +++++++++++++++++-- 9 files changed, 81 insertions(+), 39 deletions(-) diff --git a/src/components/Link.tsx b/src/components/Link.tsx index 7d55a5f48..5e111891b 100644 --- a/src/components/Link.tsx +++ b/src/components/Link.tsx @@ -125,9 +125,9 @@ export function useLink({ const requiresWarning = Boolean( !disableMismatchWarning && - displayText && - isExternal && - linkRequiresWarning(href, displayText), + displayText && + isExternal && + linkRequiresWarning(href, displayText), ) if (IS_WEB) { @@ -220,9 +220,9 @@ export function useLink({ const handleLongPress = useCallback(() => { const requiresWarning = Boolean( !disableMismatchWarning && - displayText && - isExternal && - linkRequiresWarning(href, displayText), + displayText && + isExternal && + linkRequiresWarning(href, displayText), ) if (requiresWarning) { diff --git a/src/components/PostControls/index.tsx b/src/components/PostControls/index.tsx index fb9b7b716..82c4cadd6 100644 --- a/src/components/PostControls/index.tsx +++ b/src/components/PostControls/index.tsx @@ -97,8 +97,8 @@ let PostControls = ({ const playHaptic = useHaptics() const isBlocked = Boolean( post.author.viewer?.blocking || - post.author.viewer?.blockedBy || - post.author.viewer?.blockingByList, + post.author.viewer?.blockedBy || + post.author.viewer?.blockingByList, ) const replyDisabled = post.viewer?.replyDisabled const {gtPhone} = useBreakpoints() diff --git a/src/components/RichTextTag.tsx b/src/components/RichTextTag.tsx index 3325671b6..5f853bbde 100644 --- a/src/components/RichTextTag.tsx +++ b/src/components/RichTextTag.tsx @@ -62,7 +62,7 @@ export function RichTextTag({ optimisticUpsert?.find( m => m.value === tag && m.targets.includes('tag'), )) && - !optimisticRemove?.find(m => m?.value === tag), + !optimisticRemove?.find(m => m?.value === tag), ) /* diff --git a/src/components/verification/index.ts b/src/components/verification/index.ts index 0e3fb6739..f100bcb99 100644 --- a/src/components/verification/index.ts +++ b/src/components/verification/index.ts @@ -45,9 +45,9 @@ export function useFullVerificationState({ verifications.length > 0 const hasIssuedVerification = Boolean( viewerState && - viewerState.role === 'verifier' && - // profileState.role === 'default' && - verifications.find(v => v.issuer === currentAccount?.did), + viewerState.role === 'verifier' && + // profileState.role === 'default' && + verifications.find(v => v.issuer === currentAccount?.did), ) return { diff --git a/src/screens/Settings/FollowingFeedPreferences.tsx b/src/screens/Settings/FollowingFeedPreferences.tsx index 6fa0e2fc3..265019d56 100644 --- a/src/screens/Settings/FollowingFeedPreferences.tsx +++ b/src/screens/Settings/FollowingFeedPreferences.tsx @@ -45,7 +45,7 @@ export function FollowingFeedPreferencesScreen({}: Props) { const mergeFeedEnabled = Boolean( variables?.lab_mergeFeedEnabled ?? - preferences?.feedViewPrefs?.lab_mergeFeedEnabled, + preferences?.feedViewPrefs?.lab_mergeFeedEnabled, ) return ( diff --git a/src/state/queries/useQueryWithFallback.ts b/src/state/queries/useQueryWithFallback.ts index bb8ff4fda..aca833837 100644 --- a/src/state/queries/useQueryWithFallback.ts +++ b/src/state/queries/useQueryWithFallback.ts @@ -26,8 +26,10 @@ import {postViewToThreadPlaceholder} from './usePostThread/views' /** * Extended query options that include fallback configuration */ -export interface UseQueryWithFallbackOptions - extends UseQueryOptions { +export interface UseQueryWithFallbackOptions< + TData, + TError, +> extends UseQueryOptions { /** * Enable automatic fallback to PDS + Microcosm on AppView errors * @default true for profile/post queries, false otherwise @@ -49,15 +51,18 @@ export interface UseQueryWithFallbackOptions /** * Extended infinite query options that include fallback configuration */ -export interface UseInfiniteQueryWithFallbackOptions - extends UseInfiniteQueryOptions< - TData, - TError, - TData, - TData, - any, - TPageParam - > { +export interface UseInfiniteQueryWithFallbackOptions< + TData, + TError, + TPageParam, +> extends UseInfiniteQueryOptions< + TData, + TError, + TData, + TData, + any, + TPageParam +> { /** * Enable automatic fallback to PDS + Microcosm on AppView errors * @default false diff --git a/src/state/shell/composer/index.tsx b/src/state/shell/composer/index.tsx index c29fb4187..9a1e212f4 100644 --- a/src/state/shell/composer/index.tsx +++ b/src/state/shell/composer/index.tsx @@ -97,9 +97,9 @@ export function Provider({children}: React.PropsWithChildren<{}>) { const author = opts.replyTo?.author || opts.quote?.author const isBlocked = Boolean( author && - (author.viewer?.blocking || - author.viewer?.blockedBy || - author.viewer?.blockingByList), + (author.viewer?.blocking || + author.viewer?.blockedBy || + author.viewer?.blockingByList), ) if (isBlocked) { Toast.show(_(msg`Cannot interact with a blocked user`), { diff --git a/src/view/shell/bottom-bar/BottomBar.tsx b/src/view/shell/bottom-bar/BottomBar.tsx index 0def50190..14864a68d 100644 --- a/src/view/shell/bottom-bar/BottomBar.tsx +++ b/src/view/shell/bottom-bar/BottomBar.tsx @@ -347,14 +347,13 @@ export function BottomBar({navigation}: BottomTabBarProps) { ) } -interface BtnProps - extends Pick< - React.ComponentProps, - | 'accessible' - | 'accessibilityRole' - | 'accessibilityHint' - | 'accessibilityLabel' - > { +interface BtnProps extends Pick< + React.ComponentProps, + | 'accessible' + | 'accessibilityRole' + | 'accessibilityHint' + | 'accessibilityLabel' +> { testID?: string icon: JSX.Element notificationCount?: string diff --git a/yarn.lock b/yarn.lock index 0abac69f0..a8225d117 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1253,7 +1253,20 @@ "@babel/parser" "^7.28.6" "@babel/types" "^7.28.6" -"@babel/traverse--for-generate-function-map@npm:@babel/traverse@^7.25.3", "@babel/traverse@^7.25.3", "@babel/traverse@^7.27.1", "@babel/traverse@^7.28.5", "@babel/traverse@^7.28.6", "@babel/traverse@^7.29.0": +"@babel/traverse--for-generate-function-map@npm:@babel/traverse@^7.25.3": + version "7.29.0" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.29.0.tgz#f323d05001440253eead3c9c858adbe00b90310a" + integrity sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA== + dependencies: + "@babel/code-frame" "^7.29.0" + "@babel/generator" "^7.29.0" + "@babel/helper-globals" "^7.28.0" + "@babel/parser" "^7.29.0" + "@babel/template" "^7.28.6" + "@babel/types" "^7.29.0" + debug "^4.3.1" + +"@babel/traverse@^7.25.3", "@babel/traverse@^7.27.1", "@babel/traverse@^7.28.5", "@babel/traverse@^7.28.6", "@babel/traverse@^7.29.0": version "7.29.0" resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.29.0.tgz#f323d05001440253eead3c9c858adbe00b90310a" integrity sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA== @@ -13074,7 +13087,16 @@ string-length@^5.0.1: char-regex "^2.0.0" strip-ansi "^7.0.1" -"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: +"string-width-cjs@npm:string-width@^4.2.0": + version "4.2.3" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" + integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.1" + +string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== @@ -13165,7 +13187,7 @@ string_decoder@~1.1.1: dependencies: safe-buffer "~5.1.0" -"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1: +"strip-ansi-cjs@npm:strip-ansi@^6.0.1": version "6.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== @@ -13179,6 +13201,13 @@ strip-ansi@^5.2.0: dependencies: ansi-regex "^4.1.0" +strip-ansi@^6.0.0, strip-ansi@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" + integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== + dependencies: + ansi-regex "^5.0.1" + strip-ansi@^7.0.1: version "7.1.2" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.1.2.tgz#132875abde678c7ea8d691533f2e7e22bb744dba" @@ -14205,7 +14234,7 @@ word-wrap@^1.2.5: resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.5.tgz#d2c45c6dd4fbce621a66f136cbe328afd0410b34" integrity sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA== -"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0: +"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0": version "7.0.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== @@ -14223,6 +14252,15 @@ wrap-ansi@^6.2.0: string-width "^4.1.0" strip-ansi "^6.0.0" +wrap-ansi@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" + integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + wrap-ansi@^8.0.1, wrap-ansi@^8.1.0: version "8.1.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214" -- knotmirror 0.0.1