@honeybadger-io/react-native 6.2.0 → 6.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/README.md +1 -1
- package/dist/index.js +2 -2
- package/package.json +2 -2
- package/scripts/honeybadger-upload-sourcemaps.sh +25 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,23 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [6.2.2](https://github.com/honeybadger-io/honeybadger-js/compare/@honeybadger-io/react-native@6.2.1...@honeybadger-io/react-native@6.2.2) (2023-10-09)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **react-native:** fix sourcemaps for iOS builds with hermes ([#1197](https://github.com/honeybadger-io/honeybadger-js/issues/1197)) ([d516ef0](https://github.com/honeybadger-io/honeybadger-js/commit/d516ef0b75a2e46f4c374d042a6c5a90179e4f53))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [6.2.1](https://github.com/honeybadger-io/honeybadger-js/compare/@honeybadger-io/react-native@6.2.0...@honeybadger-io/react-native@6.2.1) (2023-09-12)
|
|
16
|
+
|
|
17
|
+
**Note:** Version bump only for package @honeybadger-io/react-native
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
6
23
|
## [6.2.0](https://github.com/honeybadger-io/honeybadger-js/compare/@honeybadger-io/react-native@6.1.1...@honeybadger-io/react-native@6.2.0) (2023-09-07)
|
|
7
24
|
|
|
8
25
|
|
package/README.md
CHANGED
|
@@ -49,7 +49,7 @@ Error reports can be [customized](https://docs.honeybadger.io/lib/javascript/gui
|
|
|
49
49
|
### Limitations
|
|
50
50
|
Some native errors on Android may not be recorded if they cause an immediate crash of the app before the notice makes it to Honeybadger.
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
## Source Maps
|
|
53
53
|
To generate and upload source maps to Honeybadger, use the following command:
|
|
54
54
|
```shell
|
|
55
55
|
npx honeybadger-upload-sourcemaps --apiKey <your project API key> --revision <build revision>
|
package/dist/index.js
CHANGED
|
@@ -84,7 +84,7 @@ function __generator(thisArg, body) {
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
var name = "@honeybadger-io/react-native";
|
|
87
|
-
var version = "6.2.
|
|
87
|
+
var version = "6.2.2";
|
|
88
88
|
|
|
89
89
|
var Transport = /** @class */ (function () {
|
|
90
90
|
function Transport() {
|
|
@@ -283,7 +283,7 @@ var Honeybadger = /** @class */ (function (_super) {
|
|
|
283
283
|
_this.__notifier = {
|
|
284
284
|
name: '@honeybadger-io/react-native',
|
|
285
285
|
url: 'https://github.com/honeybadger-io/honeybadger-js/tree/master/packages/react-native',
|
|
286
|
-
version: '6.2.
|
|
286
|
+
version: '6.2.2'
|
|
287
287
|
};
|
|
288
288
|
_this.__jsHandlerInitialized = false;
|
|
289
289
|
_this.__nativeHandlerInitialized = false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@honeybadger-io/react-native",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.2",
|
|
4
4
|
"description": "Honeybadger.io for React Native.",
|
|
5
5
|
"author": "Andrey Butov <andreybutov@antair.com> (https://andreybutov.com)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@honeybadger-io/core": "^6.3.0"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "96a0f90cd1cac6cf09f074af70199744d757995c"
|
|
54
54
|
}
|
|
@@ -174,7 +174,6 @@ if $USE_HERMES; then
|
|
|
174
174
|
# react native <= 0.68
|
|
175
175
|
HERMES_PATH_2="$NODE_MODULES/hermes-engine/$OS_BIN/hermesc"
|
|
176
176
|
|
|
177
|
-
|
|
178
177
|
if [ -f "$HERMES_PATH_1" ]; then
|
|
179
178
|
HERMES_EXECUTABLE="$HERMES_PATH_1"
|
|
180
179
|
elif [ -f "$HERMES_PATH_2" ]; then
|
|
@@ -184,9 +183,6 @@ if $USE_HERMES; then
|
|
|
184
183
|
exit 1
|
|
185
184
|
fi
|
|
186
185
|
|
|
187
|
-
|
|
188
|
-
echo "Generating Hermes Android source map ..."
|
|
189
|
-
|
|
190
186
|
#
|
|
191
187
|
# compile the Android code to bytecode and generate the Hermes sourcemap
|
|
192
188
|
#
|
|
@@ -209,39 +205,42 @@ if $USE_HERMES; then
|
|
|
209
205
|
|
|
210
206
|
|
|
211
207
|
#
|
|
212
|
-
#
|
|
208
|
+
# For iOS, we're no longer using the hermes output concatenation,
|
|
209
|
+
# even for hermes builds, as it produces incorrect sourcemaps.
|
|
213
210
|
#
|
|
214
211
|
|
|
215
|
-
HERMES_EXECUTABLE="$PROJECT_ROOT_DIR/ios/Pods/hermes-engine/destroot/bin/hermesc"
|
|
212
|
+
# HERMES_EXECUTABLE="$PROJECT_ROOT_DIR/ios/Pods/hermes-engine/destroot/bin/hermesc"
|
|
216
213
|
|
|
217
|
-
if [ ! -f "$HERMES_EXECUTABLE" ]; then
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
fi
|
|
214
|
+
# if [ ! -f "$HERMES_EXECUTABLE" ]; then
|
|
215
|
+
# echo "Error: The Hermes compiler executable for iOS was not found in the expected location: $HERMES_EXECUTABLE . Did you run pod install in the ios/ directory?"
|
|
216
|
+
# exit 1
|
|
217
|
+
# fi
|
|
221
218
|
|
|
222
|
-
|
|
223
|
-
echo "Generating Hermes iOS source map ..."
|
|
219
|
+
# echo "Generating Hermes iOS source map ..."
|
|
224
220
|
|
|
225
221
|
#
|
|
226
222
|
# Compile the iOS code to bytecode and generate the Hermes sourcemap.
|
|
227
223
|
#
|
|
228
224
|
|
|
229
|
-
"$HERMES_EXECUTABLE" \
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
225
|
+
# "$HERMES_EXECUTABLE" \
|
|
226
|
+
# -O \
|
|
227
|
+
# -emit-binary \
|
|
228
|
+
# -output-source-map \
|
|
229
|
+
# -out="$IOS_COMPILER_BUNDLE" \
|
|
230
|
+
# "$IOS_PACKAGER_BUNDLE" > /dev/null 2>&1
|
|
235
231
|
|
|
236
232
|
#
|
|
237
233
|
# merge the two iOS sourcemaps
|
|
238
234
|
#
|
|
239
235
|
|
|
240
|
-
node "$NODE_MODULES/react-native/scripts/compose-source-maps.js" \
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
236
|
+
# node "$NODE_MODULES/react-native/scripts/compose-source-maps.js" \
|
|
237
|
+
# "$IOS_PACKAGER_SOURCE_MAP" \
|
|
238
|
+
# "$IOS_COMPILER_SOURCE_MAP" \
|
|
239
|
+
# -o "$IOS_FINAL_SOURCE_MAP" > /dev/null 2>&1
|
|
240
|
+
|
|
244
241
|
|
|
242
|
+
# Same operation for hermes builds on iOS as with --no-hermes; see note above.
|
|
243
|
+
mv "$IOS_PACKAGER_SOURCE_MAP" "$IOS_FINAL_SOURCE_MAP"
|
|
245
244
|
|
|
246
245
|
#
|
|
247
246
|
# cleanup
|
|
@@ -253,9 +252,9 @@ if $USE_HERMES; then
|
|
|
253
252
|
"$ANDROID_COMPILER_BUNDLE" \
|
|
254
253
|
"$ANDROID_COMPILER_SOURCE_MAP" \
|
|
255
254
|
"$IOS_PACKAGER_BUNDLE" \
|
|
256
|
-
"$IOS_PACKAGER_SOURCE_MAP" \
|
|
257
|
-
"$IOS_COMPILER_BUNDLE" \
|
|
258
|
-
"$IOS_COMPILER_SOURCE_MAP"
|
|
255
|
+
"$IOS_PACKAGER_SOURCE_MAP" # \
|
|
256
|
+
# "$IOS_COMPILER_BUNDLE" \
|
|
257
|
+
# "$IOS_COMPILER_SOURCE_MAP"
|
|
259
258
|
|
|
260
259
|
else
|
|
261
260
|
|
|
@@ -304,7 +303,7 @@ curl https://api.honeybadger.io/v1/source_maps \
|
|
|
304
303
|
curl https://api.honeybadger.io/v1/source_maps \
|
|
305
304
|
-F api_key="$API_KEY" \
|
|
306
305
|
-F revision="$REVISION" \
|
|
307
|
-
-F minified_url=main.jsbundle \
|
|
306
|
+
-F minified_url="*/main.jsbundle" \
|
|
308
307
|
-F source_map=@"$IOS_FINAL_SOURCE_MAP" \
|
|
309
308
|
-F minified_file=@"$EMPTY_FILE" > /dev/null 2>&1
|
|
310
309
|
|