@pinwheel/react-native-pinwheel 2.5.3 → 2.5.4

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
@@ -4,23 +4,29 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  ## 2.5.x Releases
6
6
 
7
- [2.5.0](#250) | [2.5.1](#251) | [2.5.2](#252) | [2.5.3](#253)
7
+ [2.5.0](#250) | [2.5.1](#251) | [2.5.2](#252) | [2.5.3](#253) | [2.5.4](#254)
8
8
 
9
9
  ---
10
+
11
+ ### 2.5.4
12
+
13
+ #### Notes
14
+
15
+ - Bugfix: Normalize event names to lower case. Event names began firing as uppercase in versions 3.0.0 and 2.5.0.
16
+
10
17
  ### 2.5.3
11
18
 
12
19
  #### Notes
13
20
 
14
21
  - Changed Minimum Android SDK requirements to 22
15
22
 
16
- ---
23
+
17
24
  ### 2.5.2
18
25
 
19
26
  #### Notes
20
27
 
21
28
  - Expand internal functionality to support a broader range of platforms and increase conversion rate.
22
29
 
23
- ---
24
30
  ### 2.5.1
25
31
 
26
32
  #### Notes
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |s|
2
2
  s.name = "RNPinwheelSDK"
3
- s.version = "2.5.3"
3
+ s.version = "2.5.4"
4
4
  s.summary = "React Native plugin for Pinwheel's SDK"
5
5
  s.description = <<-DESC
6
6
  An open source React Native plugin for calling Pinwheel's native SDKs to manage payroll data.
package/constants.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Importing package.json here causes a problem with the folder structure when we npm pack and publish.
3
3
  */
4
- export declare const VERSION = "2.5.3";
4
+ export declare const VERSION = "2.5.4";
package/constants.js CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Importing package.json here causes a problem with the folder structure when we npm pack and publish.
3
3
  */
4
- export const VERSION = '2.5.3';
4
+ export const VERSION = '2.5.4';
package/index.js CHANGED
@@ -21,8 +21,12 @@ export default ({ linkToken, onLogin, onLoginAttempt, onSuccess, onError, onExit
21
21
  return;
22
22
  }
23
23
  const { name, payload } = event;
24
- onEvent && onEvent(name, payload);
25
- switch (name.toLowerCase()) {
24
+ // Our Android SDK, since the beginning, has been firing events with upper case.
25
+ // Since we are now wrapping the Android SDK to create the RN SDK, we need to reconcile
26
+ // the event names here.
27
+ const normalizedName = name.toLowerCase();
28
+ onEvent && onEvent(normalizedName, payload);
29
+ switch (normalizedName) {
26
30
  case 'exit':
27
31
  // console.log(`case: exit, onExit: ${onExit}`);
28
32
  onExit && onExit(payload);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pinwheel/react-native-pinwheel",
3
- "version": "2.5.3",
3
+ "version": "2.5.4",
4
4
  "type": "module",
5
5
  "description": "Pinwheel React Native SDK",
6
6
  "main": "index.js",