From 3fb55d81d0dd0f38174645903bb9691e8a22c9e6 Mon Sep 17 00:00:00 2001 From: Shivangi Date: Mon, 9 Feb 2026 16:01:06 +0530 Subject: [PATCH 1/2] chore: bump version to 1.0.2 --- example/src/ExampleScreen.tsx | 7 +- package.json | 2 +- src/components/BugBubble.tsx | 1 - src/components/FloatingButton.tsx | 5 +- .../LogEntry/expanded/WebSocketExpanded.tsx | 7 +- src/components/LogList.tsx | 6 +- src/utils/searchUtils.ts | 6 +- yarn.lock | 82 +++++++++---------- 8 files changed, 61 insertions(+), 55 deletions(-) diff --git a/example/src/ExampleScreen.tsx b/example/src/ExampleScreen.tsx index f2e67bd..078c026 100644 --- a/example/src/ExampleScreen.tsx +++ b/example/src/ExampleScreen.tsx @@ -188,8 +188,7 @@ export function ExampleScreen() { Automatic Interception:{' '} - Just add the{' '} - BugBubble{' '} + Just add the BugBubble{' '} component, and everything should automatically start working for you. Your console logs, network requests, and WebSocket events will be automatically intercepted and logged. But if you still need to @@ -293,9 +292,7 @@ export function ExampleScreen() { 📊 Analytics Events Analytics events must be logged explicitly using{' '} - - BugBubbleLogger.logAnalytics() - + BugBubbleLogger.logAnalytics() = ({ style }) => { right: config.floatingButtonPosition.right ?? 20, }); } - }, [config?.floatingButtonPosition?.top, config?.floatingButtonPosition?.right]); + }, [ + config?.floatingButtonPosition?.top, + config?.floatingButtonPosition?.right, + ]); const panResponder = useRef( PanResponder.create({ diff --git a/src/components/LogEntry/expanded/WebSocketExpanded.tsx b/src/components/LogEntry/expanded/WebSocketExpanded.tsx index f05e62f..e272f2c 100644 --- a/src/components/LogEntry/expanded/WebSocketExpanded.tsx +++ b/src/components/LogEntry/expanded/WebSocketExpanded.tsx @@ -25,9 +25,10 @@ const getEventColor = (event: string): string => { export const WebSocketExpanded = memo(({ log }) => { const eventColor = getEventColor(log.event || 'unknown'); - const eventText = log.event && typeof log.event === 'string' - ? log.event.toUpperCase() - : 'UNKNOWN'; + const eventText = + log.event && typeof log.event === 'string' + ? log.event.toUpperCase() + : 'UNKNOWN'; return ( diff --git a/src/components/LogList.tsx b/src/components/LogList.tsx index b937834..7deb5f0 100644 --- a/src/components/LogList.tsx +++ b/src/components/LogList.tsx @@ -40,8 +40,10 @@ export const LogList: React.FC = React.memo(({ type }) => { - {type && typeof type === 'string' - ? `${type.charAt(0).toUpperCase()}${type.slice(1)} Logs (${logs.length})` + {type && typeof type === 'string' + ? `${type.charAt(0).toUpperCase()}${type.slice(1)} Logs (${ + logs.length + })` : `Logs (${logs.length})`} { // Search in message - if (log.message && typeof log.message === 'string' && log.message.toLowerCase().includes(query)) { + if ( + log.message && + typeof log.message === 'string' && + log.message.toLowerCase().includes(query) + ) { return true; } diff --git a/yarn.lock b/yarn.lock index 45014c4..6a5ca23 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2347,6 +2347,31 @@ __metadata: languageName: node linkType: hard +"@lokal-dev/react-native-bugbubble@workspace:.": + version: 0.0.0-use.local + resolution: "@lokal-dev/react-native-bugbubble@workspace:." + dependencies: + "@eslint/compat": "npm:^1.3.2" + "@eslint/eslintrc": "npm:^3.3.1" + "@eslint/js": "npm:^9.35.0" + "@react-native/babel-preset": "npm:0.81.1" + "@react-native/eslint-config": "npm:^0.81.1" + "@types/react": "npm:^19.1.12" + del-cli: "npm:^6.0.0" + eslint: "npm:^9.35.0" + eslint-config-prettier: "npm:^10.1.8" + eslint-plugin-prettier: "npm:^5.5.4" + prettier: "npm:^2.8.8" + react: "npm:19.1.0" + react-native: "npm:0.81.5" + react-native-builder-bob: "npm:^0.40.15" + typescript: "npm:^5.9.2" + peerDependencies: + react: "*" + react-native: "*" + languageName: unknown + linkType: soft + "@nicolo-ribaudo/eslint-scope-5-internals@npm:5.1.1-v1": version: 5.1.1-v1 resolution: "@nicolo-ribaudo/eslint-scope-5-internals@npm:5.1.1-v1" @@ -8422,6 +8447,22 @@ __metadata: languageName: node linkType: hard +"react-native-bugbubble-example@workspace:example": + version: 0.0.0-use.local + resolution: "react-native-bugbubble-example@workspace:example" + dependencies: + "@expo/metro-runtime": "npm:~6.1.2" + expo: "npm:~54.0.25" + expo-status-bar: "npm:~3.0.8" + react: "npm:19.1.0" + react-dom: "npm:19.1.0" + react-native: "npm:0.81.5" + react-native-builder-bob: "npm:^0.40.15" + react-native-monorepo-config: "npm:^0.1.9" + react-native-web: "npm:~0.21.0" + languageName: unknown + linkType: soft + "react-native-builder-bob@npm:^0.40.15": version: 0.40.15 resolution: "react-native-builder-bob@npm:0.40.15" @@ -8454,47 +8495,6 @@ __metadata: languageName: node linkType: hard -"react-native-in-app-devtools-example@workspace:example": - version: 0.0.0-use.local - resolution: "react-native-in-app-devtools-example@workspace:example" - dependencies: - "@expo/metro-runtime": "npm:~6.1.2" - expo: "npm:~54.0.25" - expo-status-bar: "npm:~3.0.8" - react: "npm:19.1.0" - react-dom: "npm:19.1.0" - react-native: "npm:0.81.5" - react-native-builder-bob: "npm:^0.40.15" - react-native-monorepo-config: "npm:^0.1.9" - react-native-web: "npm:~0.21.0" - languageName: unknown - linkType: soft - -"react-native-in-app-devtools@workspace:.": - version: 0.0.0-use.local - resolution: "react-native-in-app-devtools@workspace:." - dependencies: - "@eslint/compat": "npm:^1.3.2" - "@eslint/eslintrc": "npm:^3.3.1" - "@eslint/js": "npm:^9.35.0" - "@react-native/babel-preset": "npm:0.81.1" - "@react-native/eslint-config": "npm:^0.81.1" - "@types/react": "npm:^19.1.12" - del-cli: "npm:^6.0.0" - eslint: "npm:^9.35.0" - eslint-config-prettier: "npm:^10.1.8" - eslint-plugin-prettier: "npm:^5.5.4" - prettier: "npm:^2.8.8" - react: "npm:19.1.0" - react-native: "npm:0.81.5" - react-native-builder-bob: "npm:^0.40.15" - typescript: "npm:^5.9.2" - peerDependencies: - react: "*" - react-native: "*" - languageName: unknown - linkType: soft - "react-native-is-edge-to-edge@npm:^1.2.1": version: 1.2.1 resolution: "react-native-is-edge-to-edge@npm:1.2.1" From b0f702ec014582d67f603959210e59d55715bc31 Mon Sep 17 00:00:00 2001 From: Shivangi Date: Mon, 9 Feb 2026 18:00:14 +0530 Subject: [PATCH 2/2] chore: bump version to 1.0.2 and applied prettier fixes --- eslint.config.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/eslint.config.mjs b/eslint.config.mjs index 16b00bb..19684f7 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -21,6 +21,7 @@ export default defineConfig([ rules: { 'react/react-in-jsx-scope': 'off', 'prettier/prettier': 'error', + 'react-hooks/exhaustive-deps': 'warn', }, }, {