Skip to content

chore(deps): bump up nitro to v0.28.1#104

Merged
patrickkabwe merged 1 commit into
mainfrom
chore/bump-up-nitro
Aug 26, 2025
Merged

chore(deps): bump up nitro to v0.28.1#104
patrickkabwe merged 1 commit into
mainfrom
chore/bump-up-nitro

Conversation

@patrickkabwe
Copy link
Copy Markdown
Owner

@patrickkabwe patrickkabwe commented Aug 26, 2025

  • Bump nitro-codegen and react-native-nitro-modules to version 0.28.1.
  • Update react-native-safe-area-context to version 5.6.1.
  • Update README.md to reflect the new version of react-native-nitro-modules.
  • Modify Swift-Cxx bridge methods to include noexcept for better error handling.
  • Update Podfile.lock to reflect changes in NitroInAppBrowser and NitroModules versions.

Summary by CodeRabbit

  • Documentation

    • Updated README to reflect default import usage for NitroInAppBrowser.
    • Refreshed installation instructions to reference react-native-nitro-modules@0.28.1.
    • Polished code samples (quote style) and cleaned up formatting, including license section.
  • Chores

    • Bumped dev dependencies nitro-codegen and react-native-nitro-modules to ^0.28.1.

- Bump nitro-codegen and react-native-nitro-modules to version 0.28.1.
- Update react-native-safe-area-context to version 5.6.1.
- Update README.md to reflect the new version of react-native-nitro-modules.
- Modify Swift-Cxx bridge methods to include noexcept for better error handling.
- Update Podfile.lock to reflect changes in NitroInAppBrowser and NitroModules versions.
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Aug 26, 2025

Walkthrough

Documentation updated to reflect a default export for NitroInAppBrowser and minor formatting tweaks. Development dependencies nitro-codegen and react-native-nitro-modules bumped from ^0.28.0 to ^0.28.1 in package.json.

Changes

Cohort / File(s) Summary
Docs update
README.md
Updated usage to default export (import NitroInAppBrowser from 'react-native-nitro-in-app-browser'), adjusted quotes in a sample, and minor formatting cleanups (license, whitespace).
Dev dependency bump
package.json
Bumped nitro-codegen and react-native-nitro-modules from ^0.28.0 to ^0.28.1; no script or API changes.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • chore: bump up nitro #60 — Also updates nitro-codegen and react-native-nitro-modules versions in package.json, matching the dependency bump here.

Suggested labels

released on @next, released

Poem

Thump-thump goes my tiny dev heart—
I nibble docs, a default to impart.
Version bumps hop by, neat and light,
Quotes aligned, samples just right.
In the meadow of code I cheer:
“Ship it swift, the path is clear!” 🥕🐇

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/bump-up-nitro

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
README.md (1)

34-46: Fix: using await in a non-async onPress handler

The example uses await inside onPress={() => { ... }} which is not async and will fail. Mark the handler async.

Apply this diff to correct the snippet:

-        onPress={() => {
+        onPress={async () => {
           try {
             await NitroInAppBrowser.open('https://nowietech.com', {
               barColor: 'purple',
               controlColor: '#000000',
               dismissButtonLabel: 'close',
               presentationStyle: 'fullScreen',
             });
           } catch (error) {
             console.error(error);
           }
         }}
🧹 Nitpick comments (2)
package.json (1)

71-75: Tighten peer dependency range for react-native-nitro-modules

Given the dev toolchain now targets 0.28.1, allowing any version via "*" may let consumers install an older 0.27.x that’s incompatible at runtime/codegen time. Recommend expressing a compatible peer range.

Apply this diff to reflect a safe peer range:

   "peerDependencies": {
     "react": "*",
     "react-native": "*",
-    "react-native-nitro-modules": "*"
+    "react-native-nitro-modules": "^0.28.1"
   },
README.md (1)

18-20: Installation pin vs. range: consider using a caret or documenting compatibility

Pinning to react-native-nitro-modules@0.28.1 is fine for reproducibility. If you intend to allow compatible patch updates, consider showing a caret range or add a note about supported versions.

Example:

bun install react-native-nitro-in-app-browser react-native-nitro-modules@^0.28.1

Optionally, include npm/yarn equivalents for broader audience.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 79519bf and 33b9ca5.

⛔ Files ignored due to path filters (6)
  • bun.lock is excluded by !**/*.lock
  • example/ios/Podfile.lock is excluded by !**/*.lock
  • nitrogen/generated/ios/NitroInAppBrowser-Swift-Cxx-Bridge.cpp is excluded by !**/generated/**
  • nitrogen/generated/ios/NitroInAppBrowser-Swift-Cxx-Bridge.hpp is excluded by !**/generated/**
  • nitrogen/generated/ios/swift/HybridNitroInAppBrowserSpec_cxx.swift is excluded by !**/generated/**
  • nitrogen/generated/ios/swift/NitroInAppBrowserOptions.swift is excluded by !**/generated/**
📒 Files selected for processing (2)
  • README.md (4 hunks)
  • package.json (1 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
README.md (2)
example/App.tsx (1)
  • NitroInAppBrowser (11-27)
src/specs/nitro-in-app-browser.nitro.ts (1)
  • NitroInAppBrowser (3-7)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: Build iOS Example App (old architecture)
  • GitHub Check: Build iOS Example App (new architecture)
  • GitHub Check: Build Android Example App (old architecture)
  • GitHub Check: Build Android Example App (new architecture)
🔇 Additional comments (3)
package.json (1)

63-68: Dev dependency bumps to Nitro v0.28.1 look good

nitro-codegen and react-native-nitro-modules are aligned at ^0.28.1. Scripts still reference nitro-codegen, so this keeps toolchain consistent.

README.md (2)

40-41: String literal casing/typing looks consistent

Using 'fullScreen' matches the typical string union casing shown elsewhere. No action needed.


27-27: No changes required: default export confirmed

The src/index.ts file clearly includes export default NitroInAppBrowser on line 17, so the README’s default import is correct.

@patrickkabwe patrickkabwe merged commit eb99ece into main Aug 26, 2025
5 checks 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