Skip to content

Commit f0452e8

Browse files
Merge pull request #95 from splitio/development
Release v1.0.1
2 parents f570cb2 + c4f5377 commit f0452e8

File tree

13 files changed

+2643
-1393
lines changed

13 files changed

+2643
-1393
lines changed

CHANGES.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1+
1.0.1 (November 11, 2024)
2+
- Bugfixing - Revert removal of TypeScript `SplitIO` namespace at `/types/splitio.d.ts` to allow explicit imports of types from the React Native SDK package. E.g., `import type { IReactNativeSettings } from '@splitsoftware/splitio-react-native/types/splitio';`.
3+
14
1.0.0 (November 1, 2024)
25
- Added support for targeting rules based on large segments.
36
- Added `factory.destroy()` method, which invokes the `destroy` method of all clients created by the factory.
47
- Updated @splitsoftware/splitio-commons package to version 2.0.0 that includes major updates and updated some transitive dependencies for vulnerability fixes.
58
- BREAKING CHANGES:
9+
- NOTE: Refer to ./MIGRATION-GUIDE.md for instructions on how to migrate your codebase from version 0.x to 1.0.0.
610
- Dropped support for Split Proxy below version 5.9.0, when using in the browser (client-side API). The SDK now requires Split Proxy 5.9.0 or above.
7-
- Renamed some TypeScript definitions in the SplitIO namespace to avoid conflicts with other Split packages: `SplitIO.ISDK` to `SplitIO.IBrowserSDK`, and `SplitIO.IClient` to `SplitIO.IBrowserClient`.
11+
- Renamed some TypeScript definitions in the `SplitIO` namespace to avoid conflicts with other Split packages: `SplitIO.ISDK` to `SplitIO.IBrowserSDK`, and `SplitIO.IClient` to `SplitIO.IBrowserClient`.
12+
- Removed TypeScript `SplitIO` namespace from `@splitsoftware/splitio-react-native/types/splitio`. Reverted in 1.0.1.
813
- Removed the `LocalhostFromObject` export from the default import (`import { LocalhostFromObject } from '@splitsoftware/splitio-react-native'`). It is no longer necessary to manually import and configure it in the `sync.localhostMode` option to enable localhost mode.
914

1015
0.10.0 (September 13, 2024)

MIGRATION-GUIDE.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Migrating to React Native SDK v1
2+
3+
React Native SDK v1.0.0 has a few breaking changes that you should consider when migrating from version 0.x.x.
4+
5+
## Renamed some TypeScript definitions in the `SplitIO` namespace to avoid conflicts with other Split packages
6+
7+
The renamed types are:
8+
- `SplitIO.ISDK` -> `SplitIO.IBrowserSDK`
9+
- `SplitIO.IClient` -> `SplitIO.IBrowserClient`
10+
11+
For example, you should replace:
12+
13+
```ts
14+
import { SplitFactory } from '@splitsoftware/splitio-react-native';
15+
16+
const config: SplitIO.IReactNativeSettings = { ... };
17+
const factory: SplitIO.ISDK = SplitFactory(config);
18+
```
19+
20+
with:
21+
22+
```ts
23+
import { SplitFactory } from '@splitsoftware/splitio-react-native';
24+
25+
const config: SplitIO.IReactNativeSettings = { ... };
26+
const factory: SplitIO.IBrowserSDK = SplitFactory(config);
27+
```
28+
29+
## Removed the `LocalhostFromObject` export from the default import
30+
31+
In order to simplify the SDK API, the `LocalhostFromObject` export was removed from the default import (`import { LocalhostFromObject } from '@splitsoftware/splitio-react-native'`), and it is no longer necessary to manually pass it to the `sync.localhostMode` configuration option to enable localhost mode.
32+
33+
If you were using the `LocalhostFromObject` export, you should remove it from your code. For example, replace:
34+
35+
```js
36+
import { SplitFactory, LocalhostFromObject } from '@splitsoftware/splitio-react-native';
37+
38+
const factory = SplitFactory({
39+
core: {
40+
authorizationKey: 'localhost',
41+
key: SOME_KEY
42+
},
43+
features: {
44+
'feature1': 'on'
45+
},
46+
sync: {
47+
localhostMode: LocalhostFromObject()
48+
}
49+
});
50+
```
51+
52+
with:
53+
54+
```js
55+
import { SplitFactory } from '@splitsoftware/splitio-react-native';
56+
57+
const factory = SplitFactory({
58+
core: {
59+
authorizationKey: 'localhost',
60+
key: SOME_KEY
61+
},
62+
features: {
63+
'feature1': 'on'
64+
}
65+
});
66+
```
67+
68+
## Dropped support for Split Proxy below version 5.9.0. The SDK now requires Split Proxy 5.9.0 or above
69+
70+
If using the Split Proxy with the SDK, make sure to update it to version 5.9.0 or above. This is required due to the introduction of Large Segments matchers in the React Native SDK, which uses a new HTTP endpoint to retrieve the segments data and is only supported by Split Proxy 5.9.0.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Split has built and maintains SDKs for:
6565
* Java [Github](https://github.com/splitio/java-client) [Docs](https://help.split.io/hc/en-us/articles/360020405151-Java-SDK)
6666
* JavaScript [Github](https://github.com/splitio/javascript-client) [Docs](https://help.split.io/hc/en-us/articles/360020448791-JavaScript-SDK)
6767
* JavaScript for Browser [Github](https://github.com/splitio/javascript-browser-client) [Docs](https://help.split.io/hc/en-us/articles/360058730852-Browser-SDK)
68-
* Node [Github](https://github.com/splitio/javascript-client) [Docs](https://help.split.io/hc/en-us/articles/360020564931-Node-js-SDK)
68+
* Node.js [Github](https://github.com/splitio/javascript-client) [Docs](https://help.split.io/hc/en-us/articles/360020564931-Node-js-SDK)
6969
* PHP [Github](https://github.com/splitio/php-client) [Docs](https://help.split.io/hc/en-us/articles/360020350372-PHP-SDK)
7070
* PHP thin-client [Github](https://github.com/splitio/php-thin-client) [Docs](https://help.split.io/hc/en-us/articles/18305128673933-PHP-Thin-Client-SDK)
7171
* Python [Github](https://github.com/splitio/python-client) [Docs](https://help.split.io/hc/en-us/articles/360020359652-Python-SDK)

0 commit comments

Comments
 (0)