@honeybadger-io/react-native 0.0.12 → 4.7.0

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 CHANGED
@@ -1,8 +1,21 @@
1
- # Changelog
1
+ # Change Log
2
+
2
3
  All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ # [4.7.0](https://github.com/honeybadger-io/honeybadger-js/compare/v4.6.2...v4.7.0) (2022-11-01)
7
+
8
+
9
+ ### Features
10
+
11
+ * migrate honeybadger-react-native to monorepo ([#901](https://github.com/honeybadger-io/honeybadger-js/issues/901)) ([46f3d7e](https://github.com/honeybadger-io/honeybadger-js/commit/46f3d7e0db7c4c18698fb2044802351efbbdbab9))
3
12
 
4
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
13
+
14
+
15
+
16
+
17
+ # Changelog
18
+ All notable changes to this project will be documented in this file.
6
19
 
7
20
  ## [0.0.12] - 2022-09-02
8
21
  ### Added
File without changes
package/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Honeybadger for React Native
2
+ ![Node CI](https://github.com/honeybadger-io/honeybadger-js/workflows/Node%20CI/badge.svg)
2
3
  [![npm version](https://badge.fury.io/js/%40honeybadger-io%2Freact-native.svg)](https://badge.fury.io/js/%40honeybadger-io%2Freact-native)
4
+ [![npm dm](https://img.shields.io/npm/dm/@honeybadger-io/react-native)](https://www.npmjs.com/package/@honeybadger-io/react-native)
5
+ [![npm dt](https://img.shields.io/npm/dt/@honeybadger-io/react-native)](https://www.npmjs.com/package/@honeybadger-io/react-native)
3
6
 
4
7
  A React Native library for integrating [Honeybadger](https://honeybadger.io) into your React Native iOS and Android apps.
5
8
 
@@ -34,12 +37,12 @@ You can log into your [Honeybadger](https://honeybadger.io) account to obtain yo
34
37
 
35
38
  The configure method takes additional configuration options.
36
39
 
37
- | Name | Type | Required | Default | Example |
38
- | ----- | ---- | ------- | ------- | ------- |
39
- | apiKey | String | YES | `""` | `"hb-api-key-1234"` |
40
- | reportErrors | Boolean | NO | true |
41
- | revision | String | NO | `""` | `"8afb34a"` |
42
- | projectRoot | String | NO | `""` | `"/path/to/project"` |
40
+ | Name | Type | Required | Default | Example |
41
+ |--------------|---------|----------|---------|----------------------|
42
+ | apiKey | String | YES | `""` | `"hb-api-key-1234"` |
43
+ | reportErrors | Boolean | NO | true | |
44
+ | revision | String | NO | `""` | `"8afb34a"` |
45
+ | projectRoot | String | NO | `""` | `"/path/to/project"` |
43
46
 
44
47
  ```js
45
48
  Honeybadger.configure(
@@ -85,17 +88,14 @@ Sets the logging level for the Honeybadger library.
85
88
 
86
89
  The following values are accepted:
87
90
 
88
- | Value | Meaning |
89
- | ----- | ---- |
90
- | "debug" | Everything will be logged to console. |
91
+ | Value | Meaning |
92
+ |-----------|------------------------------------------|
93
+ | "debug" | Everything will be logged to console. |
91
94
  | "warning" | Only warnings will be logged to console. |
92
- | "error" | Only errors will be logged to console. |
93
-
95
+ | "error" | Only errors will be logged to console. |
94
96
 
95
97
  The default logging level is "warning".
96
98
 
97
-
98
-
99
99
  ## Source Maps
100
100
 
101
101
  This package includes a script that will help you generate source maps for your project. To generate source maps for both iOS and Android, run the following from your project root directory.
@@ -119,4 +119,4 @@ npx react-native run-ios
119
119
 
120
120
  ## License
121
121
 
122
- The Honeybadger React Native library is MIT-licensed. See the LICENSE file in this repository for details.
122
+ The Honeybadger React Native library is MIT-licensed. See the [MIT-LICENSE](./MIT-LICENSE) file in this folder for details.
package/example/App.js CHANGED
@@ -14,17 +14,17 @@ import Honeybadger from '@honeybadger-io/react-native';
14
14
 
15
15
  export default function App() {
16
16
 
17
- const HONEYBADGER_API_KEY = '<Your Honeybadger.io API key>'; // TODO
18
- Honeybadger.configure(HONEYBADGER_API_KEY);
19
-
20
- function onBtnClicked() {
21
- throw ( new Error('This is a test error!') );
22
- }
23
-
24
- return (
25
- <SafeAreaView>
26
- <Button onPress={ onBtnClicked } title="Click me!" />
27
- </SafeAreaView>
28
- );
17
+ const HONEYBADGER_API_KEY = '<Your Honeybadger.io API key>'; // TODO
18
+ Honeybadger.configure(HONEYBADGER_API_KEY);
19
+
20
+ function onBtnClicked() {
21
+ throw ( new Error('This is a test error!') );
22
+ }
23
+
24
+ return (
25
+ <SafeAreaView>
26
+ <Button onPress={ onBtnClicked } title="Click me!" />
27
+ </SafeAreaView>
28
+ );
29
29
 
30
30
  }
package/example/index.js CHANGED
@@ -2,8 +2,8 @@
2
2
  * @format
3
3
  */
4
4
 
5
- import {AppRegistry} from 'react-native';
5
+ import { AppRegistry } from 'react-native';
6
6
  import App from './App';
7
- import {name as appName} from './app.json';
7
+ import { name as appName } from './app.json';
8
8
 
9
9
  AppRegistry.registerComponent(appName, () => App);