react-native-plaid-link-sdk 11.0.2 → 11.1.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/README.md CHANGED
@@ -67,7 +67,8 @@ const MyPlaidComponent = () => {
67
67
  token: "#GENERATED_LINK_TOKEN#",
68
68
  // OPTIONAL - log level.
69
69
  logLevel: LinkLogLevel.ERROR,
70
- // OPTIONAL - Hides native activity indicator if true.
70
+ // OPTIONAL - A `Bool` indicating that Link should skip displaying a loading animation until the Link UI is fully loaded.
71
+ // See Types.ts for more information.
71
72
  noLoadingState: false,
72
73
  }}
73
74
  onSuccess={(success: LinkSuccess) => { console.log(success) }}
@@ -143,13 +144,23 @@ You can also use the `usePlaidEmitter` hook in react functional components:
143
144
  })
144
145
  ```
145
146
 
147
+ ## Upgrading
148
+
149
+ Plaid releases updates to the SDK approximately every few months. For the best user experience, we recommend using the latest version of the SDK.
150
+
151
+ Major SDK versions are released annually. SDK versions are supported for two years; with each major SDK release, Plaid will stop officially supporting any previous SDK versions that are more than two years old.
152
+
153
+ While these older versions are expected to continue to work without disruption, Plaid will not provide assistance with unsupported SDK versions.
154
+
146
155
  ## Version compatibility
147
156
 
148
157
  | Plaid SDK Version | Min React Native Version | Android SDK | Android Min Version | Android Compile Version| iOS SDK | iOS Min Version | Status |
149
158
  |-------------------|--------------------------|-------------|---------------------|------------------------|---------|-----------------|-------------------------------|
159
+ | 11.0.3 | * | [4.0.0+] | 21 | 33 | >=5.0.0 | 14.0 | Active, supports Xcode 15.0.1 |
150
160
  | 11.0.2 | * | [4.0.0+] | 21 | 33 | >=5.0.0 | 14.0 | Active, supports Xcode 15.0.1 |
151
161
  | 11.0.1 | * | [4.0.0+] | 21 | 33 | >=5.0.0 | 14.0 | Active, supports Xcode 15.0.1 |
152
162
  | 11.0.0 | * | [4.0.0+] | 21 | 33 | >=5.0.0 | 14.0 | Active, supports Xcode 15.0.1 |
163
+ | 10.9.1 | >= 0.66.0 | [3.14.1+] | 21 | 33 | >=4.7.0 | 11.0 | Active, supports Xcode 14 |
153
164
  | 10.9.0 | >= 0.66.0 | [3.14.1+] | 21 | 33 | >=4.7.0 | 11.0 | Active, supports Xcode 14 |
154
165
  | 10.8.0 | >= 0.66.0 | [3.14.0+] | 21 | 33 | >=4.7.0 | 11.0 | Active, supports Xcode 14 |
155
166
  | 10.7.0 | >= 0.66.0 | [3.14.0+] | 21 | 33 | >=4.6.4 | 11.0 | Active, supports Xcode 14 |
@@ -4,7 +4,7 @@
4
4
  <application>
5
5
  <meta-data
6
6
  android:name="com.plaid.link.react_native"
7
- android:value="11.0.2" />
7
+ android:value="11.1.0" />
8
8
  </application>
9
9
 
10
10
  </manifest>
package/dist/PlaidLink.js CHANGED
@@ -29,10 +29,11 @@ export const usePlaidEmitter = (LinkEventListener) => {
29
29
  }, []);
30
30
  };
31
31
  export const openLink = (props) => __awaiter(void 0, void 0, void 0, function* () {
32
- var _a;
32
+ var _a, _b;
33
33
  let config = props.tokenConfig;
34
+ let noLoadingState = (_a = config.noLoadingState) !== null && _a !== void 0 ? _a : false;
34
35
  if (Platform.OS === 'android') {
35
- NativeModules.PlaidAndroid.startLinkActivityForResult(config.token, config.noLoadingState, (_a = config.logLevel) !== null && _a !== void 0 ? _a : LinkLogLevel.ERROR, (result) => {
36
+ NativeModules.PlaidAndroid.startLinkActivityForResult(config.token, noLoadingState, (_b = config.logLevel) !== null && _b !== void 0 ? _b : LinkLogLevel.ERROR, (result) => {
36
37
  if (props.onSuccess != null) {
37
38
  props.onSuccess(result);
38
39
  }
@@ -47,7 +48,7 @@ export const openLink = (props) => __awaiter(void 0, void 0, void 0, function* (
47
48
  });
48
49
  }
49
50
  else {
50
- NativeModules.RNLinksdk.create(config.token, config.noLoadingState);
51
+ NativeModules.RNLinksdk.create(config.token, noLoadingState);
51
52
  let presentFullScreen = props.iOSPresentationStyle == LinkIOSPresentationStyle.FULL_SCREEN;
52
53
  NativeModules.RNLinksdk.open(presentFullScreen, (result) => {
53
54
  if (props.onSuccess != null) {
package/dist/Types.d.ts CHANGED
@@ -5,7 +5,7 @@ interface CommonPlaidLinkOptions {
5
5
  }
6
6
  export type LinkTokenConfiguration = (CommonPlaidLinkOptions & {
7
7
  token: string;
8
- noLoadingState: boolean;
8
+ noLoadingState?: boolean;
9
9
  });
10
10
  export declare enum LinkLogLevel {
11
11
  DEBUG = "debug",
package/ios/RNLinksdk.m CHANGED
@@ -27,7 +27,7 @@ static NSString* const kRNLinkKitVersionConstant = @"version";
27
27
  RCT_EXPORT_MODULE();
28
28
 
29
29
  + (NSString*)sdkVersion {
30
- return @"11.0.2"; // SDK_VERSION
30
+ return @"11.1.0"; // SDK_VERSION
31
31
  }
32
32
 
33
33
  + (NSString*)objCBridgeVersion {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-plaid-link-sdk",
3
- "version": "11.0.2",
3
+ "version": "11.1.0",
4
4
  "description": "React Native Plaid Link SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -62,8 +62,5 @@
62
62
  "react": "18.0.0",
63
63
  "react-native": "0.69.9",
64
64
  "typescript": "^4.9.5"
65
- },
66
- "dependencies": {
67
- "react-native-plaid-link-sdk": "^10.4.0"
68
65
  }
69
66
  }
@@ -10,11 +10,11 @@ Pod::Spec.new do |s|
10
10
 
11
11
  s.authors = package['author']
12
12
  s.homepage = "https://plaid.com/docs/link/ios/"
13
- s.platform = :ios, "11.0"
13
+ s.platform = :ios, "14.0"
14
14
 
15
15
  s.source = { :git => "https://github.com/plaid/react-native-plaid-link-sdk.git", :tag => "v#{s.version}" }
16
16
  s.source_files = "ios/*.{h,m,swift}"
17
17
 
18
18
  s.dependency 'React-Core'
19
- s.dependency 'Plaid', '~> 5.0.0'
19
+ s.dependency 'Plaid', '~> 5.1.0'
20
20
  end
File without changes