Skip to content
Merged
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ This repo uses the following ways to release SDK updates:
- `Latest`: We continuously release major/minor/hotfix versions from the `main` branch. These releases go through all our internal quality gates and are very safe to use and intended to be the default for most teams.
- `Stable`: We promote releases from `Latest` when they have been used in the field for some time and in scale, considering time since release, adoption, and other quality and stability metrics. These releases will be indicated on [the releases page](https://github.com/getsentry/sentry-react-native/releases/) with the `Stable` suffix.

For a list of which SDK versions are bundled with each release, see [SDK-VERSIONS.md](SDK-VERSIONS.md).

## Requirements

- `react-native >= 0.65.0`
Expand Down
201 changes: 201 additions & 0 deletions SDK-VERSIONS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
# SDK Versions

This page lists which versions of the [Sentry Android SDK](https://github.com/getsentry/sentry-java), [Sentry Cocoa SDK](https://github.com/getsentry/sentry-cocoa), and [Sentry JavaScript SDK](https://github.com/getsentry/sentry-javascript) are bundled with each Sentry React Native SDK release.

## Maintenance

The SDK versions table is automatically updated during each release via the `craft-pre-release.sh` script.

To manually update the table with the current version, run `./scripts/update-sdk-versions-table.sh` from the repository root directory.

## Versions

| Sentry React Native SDK | Sentry Android SDK | Sentry Cocoa SDK | Sentry JavaScript SDK |
Comment thread
antonis marked this conversation as resolved.
Outdated
| ----------------------- | ------------------ | ---------------- | --------------------- |
| 8.0.0 | 8.32.0 | 9.4.1 | 10.38.0 |
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

m: It would be amazing to link these releases to the GH release page such as https://github.com/getsentry/sentry-react-native/releases/tag/8.0.0. It should be easy to update this with Claude and also to update the scripts to do this automatically.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Great idea 👍 Updated with f06c213 and the table is fully interactive now

| 7.13.0 | 8.32.0 | 8.58.0 | 10.38.0 |
| 7.12.1 | 8.31.0 | 8.58.0 | 10.38.0 |
| 7.12.0 | 8.31.0 | 8.58.0 | 10.38.0 |
| 7.11.0 | 8.31.0 | 8.58.0 | 10.37.0 |
| 7.10.0 | 8.31.0 | 8.58.0 | 10.36.0 |
| 7.9.0 | 8.30.0 | 8.58.0 | 10.34.0 |
| 7.8.0 | 8.29.0 | 8.57.3 | 10.30.0 |
| 7.7.0 | 8.27.0 | 8.57.3 | 10.26.0 |
| 7.6.0 | 8.25.0 | 8.57.2 | 10.24.0 |
| 7.5.0 | 8.25.0 | 8.57.1 | 10.22.0 |
| 7.4.0 | 8.23.0 | 8.57.0 | 10.20.0 |
| 7.3.0 | 8.23.0 | 8.56.2 | 10.18.0 |
| 7.2.0 | 8.21.1 | 8.56.1 | 10.12.0 |
| 7.1.0 | 8.21.1 | 8.56.0 | 10.12.0 |
| 7.0.1 | 8.20.0 | 8.53.2 | 10.8.0 |
| 7.0.0 | 8.20.0 | 8.53.2 | 10.8.0 |
| 6.22.0 | 7.22.6 | 8.56.2 | 8.55.0 |
| 6.21.0 | 7.22.6 | 8.53.2 | 8.55.0 |
| 6.20.0 | 7.22.6 | 8.53.2 | 8.55.0 |
| 6.19.0 | 7.22.6 | 8.53.2 | 8.55.0 |
| 6.18.1 | 7.22.6 | 8.53.2 | 8.55.0 |
| 6.18.0 | 7.22.6 | 8.53.2 | 8.55.0 |
| 6.17.0 | 7.22.6 | 8.53.1 | 8.54.0 |
| 6.16.1 | 7.22.5 | 8.53.1 | 8.54.0 |
| 6.16.0 | 7.22.5 | 8.52.1 | 8.54.0 |
| 6.15.1 | 7.22.5 | 8.52.1 | 8.54.0 |
| 6.15.0 | 7.22.5 | 8.52.0 | 8.54.0 |
| 6.14.0 | 7.22.5 | 8.50.2 | 8.54.0 |
| 6.13.1 | 7.22.5 | 8.49.2 | 8.54.0 |
| 6.13.0 | 7.22.5 | 8.49.2 | 8.54.0 |
| 6.12.0 | 7.22.5 | 8.49.1 | 8.54.0 |
| 6.11.0 | 7.22.5 | 8.49.0 | 8.54.0 |
| 6.10.0 | 7.22.5 | 8.48.0 | 8.54.0 |
| 6.9.1 | 7.22.1 | 8.45.0 | 8.54.0 |
| 6.9.0 | 7.22.0 | 8.45.0 | 8.54.0 |
| 6.8.0 | 7.22.0 | 8.45.0 | 8.54.0 |
| 6.7.0 | 7.20.1 | 8.44.0 | 8.54.0 |
| 6.6.0 | 7.20.1 | 8.44.0 | 8.53.0 |
| 6.5.0 | 7.20.0 | 8.43.0 | 8.47.0 |
| 6.4.0 | 7.18.0 | 8.41.0 | 8.40.0 |
| 6.3.0 | 7.18.0 | 8.41.0 | 8.40.0 |
| 6.2.0 | 7.17.0 | 8.40.1 | 8.37.1 |
| 6.1.0 | 7.15.0 | 8.38.0 | 8.34.0 |
| 6.0.0 | 7.15.0 | 8.37.0 | 8.33.1 |
| 5.36.0 | 7.18.1 | 8.41.0 | 7.119.1 |
| 5.35.0 | 7.15.0 | 8.37.0 | 7.119.1 |
| 5.34.0 | 7.15.0 | 8.37.0 | 7.119.1 |
| 5.33.2 | 7.14.0 | 8.36.0 | 7.119.1 |
| 5.33.1 | 7.14.0 | 8.36.0 | 7.119.0 |
| 5.33.0 | 7.14.0 | 8.36.0 | 7.119.0 |
| 5.32.0 | 7.14.0 | 8.36.0 | 7.119.0 |
| 5.31.1 | 7.14.0 | 8.36.0 | 7.119.0 |
| 5.31.0 | 7.14.0 | 8.36.0 | 7.119.0 |
| 5.30.0 | 7.14.0 | 8.34.0 | 7.119.0 |
| 5.29.0 | 7.14.0 | 8.33.0 | 7.118.0 |
| 5.28.0 | 7.13.0 | 8.33.0 | 7.117.0 |
| 5.27.0 | 7.13.0 | 8.32.0 | 7.117.0 |
| 5.26.0 | 7.12.0 | 8.31.1 | 7.117.0 |
| 5.25.0 | 7.11.0 | 8.30.0 | 7.117.0 |
| 5.24.3 | 7.10.0 | 8.36.0 | 7.117.0 |
| 5.24.2 | 7.10.0 | 8.29.1 | 7.117.0 |
| 5.24.1 | 7.10.0 | 8.29.1 | 7.117.0 |
| 5.24.0 | 7.10.0 | 8.28.0 | 7.117.0 |
| 5.23.1 | 7.8.0 | 8.27.0 | 7.113.0 |
| 5.23.0 | 7.8.0 | 8.27.0 | 7.113.0 |
| 5.22.3 | 7.8.0 | 8.26.0 | 7.113.0 |
| 5.22.2 | 7.8.0 | 8.25.0 | 7.113.0 |
| 5.22.1 | 7.8.0 | 8.25.0 | 7.110.1 |
| 5.22.0 | 7.8.0 | 8.24.0 | 7.110.1 |
| 5.21.0 | 7.6.0 | 8.21.0 | 7.100.1 |
| 5.20.0 | 7.5.0 | 8.21.0 | 7.100.1 |
| 5.19.3 | 7.5.0 | 8.21.0 | 7.100.1 |
| 5.19.2 | 7.3.0 | 8.20.0 | 7.100.1 |
| 5.19.1 | 7.3.0 | 8.17.1 | 7.100.1 |
| 5.19.0 | 7.3.0 | 8.17.1 | 7.100.1 |
| 5.18.0 | 6.34.0 | 8.17.1 | 7.81.1 |
| 5.17.0 | 6.34.0 | 8.17.1 | 7.81.1 |
| 5.16.0 | 6.34.0 | 8.17.1 | 7.81.1 |
| 5.15.2 | 6.34.0 | 8.17.1 | 7.81.1 |
| 5.15.1 | 6.34.0 | 8.17.1 | 7.81.1 |
| 5.15.0 | 6.34.0 | 8.17.1 | 7.81.1 |
| 5.14.1 | 6.34.0 | 8.15.2 | 7.81.1 |
| 5.14.0 | 6.34.0 | 8.15.2 | 7.81.1 |
| 5.13.0 | 6.33.1 | 8.15.2 | 7.80.0 |
| 5.12.0 | 6.32.0 | 8.14.2 | 7.76.0 |
| 5.11.1 | 6.30.0 | 8.13.0 | 7.73.0 |
| 5.11.0 | 6.30.0 | 8.13.0 | 7.73.0 |
| 5.10.0 | 6.29.0 | 8.11.0 | 7.69.0 |
| 5.9.2 | 6.29.0 | 8.11.0 | 7.69.0 |
| 5.9.1 | 6.28.0 | 8.10.0 | 7.63.0 |
| 5.9.0 | 6.28.0 | 8.9.4 | 7.63.0 |
| 5.8.1 | 6.27.0 | 8.9.3 | 7.61.0 |
| 5.8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 6.0.9 | 5.28.0 |
| 2.1.0 | 3.2.0 | 6.0.9 | 5.28.0 |
| 2.0.2 | 3.1.3 | 6.0.9 | 5.27.4 |
| 2.0.1 | 3.1.3 | 6.0.8 | 5.27.4 |
2 changes: 2 additions & 0 deletions scripts/craft-pre-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ yarn install
yarn lerna version --force-publish --exact --no-git-tag-version --no-push --include-merged-tags --yes "${NEW_VERSION}"
yarn set-version-samples
node scripts/version-bump.js
# Update SDK versions table with the new release
bash scripts/update-sdk-versions-table.sh
27 changes: 27 additions & 0 deletions scripts/update-rn-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/usr/bin/env bash
set -euo pipefail

file="$(dirname "$0")/../packages/core/package.json"
content=$(cat $file)
regex='"version": *"([0-9\.]+)"'
if ! [[ $content =~ $regex ]]; then
Comment thread
cursor[bot] marked this conversation as resolved.
echo "Failed to find the version in $file"
exit 1
fi

case $1 in
get-version)
echo ${BASH_REMATCH[1]}
;;
get-repo)
echo "https://github.com/getsentry/sentry-react-native.git"
;;
set-version)
newValue="\"version\": \"$2\""
echo "${content/${BASH_REMATCH[0]}/$newValue}" >$file
;;
*)
echo "Unknown argument $1"
exit 1
;;
esac
79 changes: 79 additions & 0 deletions scripts/update-sdk-versions-table.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
#!/usr/bin/env bash
set -euo pipefail

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
DOCS_FILE="$SCRIPT_DIR/../SDK-VERSIONS.md"

# Get current versions
RN_VERSION=$("$SCRIPT_DIR/update-rn-version.sh" get-version)
ANDROID_VERSION=$("$SCRIPT_DIR/update-android.sh" get-version)
COCOA_VERSION=$("$SCRIPT_DIR/update-cocoa.sh" get-version)
JS_VERSION=$("$SCRIPT_DIR/update-javascript.sh" get-version)

echo "Current versions:"
echo " React Native SDK: $RN_VERSION"
echo " Android SDK: $ANDROID_VERSION"
echo " Cocoa SDK: $COCOA_VERSION"
echo " JavaScript SDK: $JS_VERSION"

# Create the new row
NEW_ROW="| $RN_VERSION | $ANDROID_VERSION | $COCOA_VERSION | $JS_VERSION |"

# Check if the docs file exists
if [ ! -f "$DOCS_FILE" ]; then
echo "Creating $DOCS_FILE..."
cat > "$DOCS_FILE" << EOF
# SDK Versions

This page lists which versions of the [Sentry Android SDK](https://github.com/getsentry/sentry-java), [Sentry Cocoa SDK](https://github.com/getsentry/sentry-cocoa), and [Sentry JavaScript SDK](https://github.com/getsentry/sentry-javascript) are bundled with each Sentry React Native SDK release.

## Maintenance

The SDK versions table is automatically updated during each release via the \`craft-pre-release.sh\` script.

To manually update the table with the current version, run \`./scripts/update-sdk-versions-table.sh\` from the repository root directory.

## Versions
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Template heading mismatches committed file heading

Low Severity

The file-creation template uses ## Versions as the section heading, but the committed SDK-VERSIONS.md uses ## Sentry SDK Versions. If the file is ever deleted and the script recreates it, the heading will be inconsistent with what was originally intended and reviewed.

Fix in Cursor Fix in Web


| Sentry React Native SDK | Sentry Android SDK | Sentry Cocoa SDK | Sentry JavaScript SDK |
| ----------------------- | ------------------ | ---------------- | --------------------- |
$NEW_ROW
EOF
echo "Created $DOCS_FILE with initial version entry"
else
# Check if this version already exists in the table
if grep -q "^| $RN_VERSION |" "$DOCS_FILE"; then
echo "Version $RN_VERSION already exists in the table. Updating it..."
# Update the existing row
awk -v new_row="$NEW_ROW" -v rn_version="$RN_VERSION" '
/^\| [0-9]/ {
if ($2 == rn_version) {
print new_row
next
}
}
{ print }
' "$DOCS_FILE" > "$DOCS_FILE.tmp"
mv "$DOCS_FILE.tmp" "$DOCS_FILE"
echo "Updated version $RN_VERSION in $DOCS_FILE"
else
echo "Adding new version to $DOCS_FILE..."
# Find the header separator line and insert the new row after it
awk -v new_row="$NEW_ROW" '
BEGIN { added = 0 }
/^\| Sentry React Native SDK \|/ && added == 0 {
Comment thread
sentry[bot] marked this conversation as resolved.
Outdated
print
getline
print
print new_row
added = 1
next
}
{ print }
' "$DOCS_FILE" > "$DOCS_FILE.tmp"
mv "$DOCS_FILE.tmp" "$DOCS_FILE"
echo "Added version $RN_VERSION to $DOCS_FILE"
fi
fi

echo "Done!"
Loading