Skip to content

Commit 30a883a

Browse files
Polishing
1 parent 96167a9 commit 30a883a

File tree

4 files changed

+14
-21
lines changed

4 files changed

+14
-21
lines changed

.github/workflows/sonar-scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
with:
2020
fetch-depth: 0
2121

22-
- name: Set up nodejs
22+
- name: Set up Node.js
2323
uses: actions/setup-node@v3
2424
with:
2525
node-version: 'lts/*'

MIGRATION-GUIDE.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ For example, you should replace:
1717
```ts
1818
import { SplitFactory } from '@splitsoftware/splitio-browserjs';
1919

20-
const config: SplitIO.IBrowserSettings = {
21-
...
22-
}
23-
20+
const config: SplitIO.IBrowserSettings = { ... };
2421
const factory: SplitIO.ISDK = SplitFactory(config);
2522
```
2623

@@ -29,10 +26,7 @@ with:
2926
```ts
3027
import { SplitFactory } from '@splitsoftware/splitio-browserjs';
3128

32-
const config: SplitIO.IClientSideSettings = {
33-
...
34-
}
35-
29+
const config: SplitIO.IClientSideSettings = { ... };
3630
const factory: SplitIO.IBrowserSDK = SplitFactory(config);
3731
```
3832

@@ -80,11 +74,12 @@ const factory = SplitFactory({
8074

8175
The Google Analytics integrations were removed since they integrate with the *Google Universal Analytics* library, which was shut down on July 1, 2024, and [replaced by *Google Analytics 4*](https://support.google.com/analytics/answer/11583528?hl=en). Check [this docs](https://help.split.io/hc/en-us/articles/360040838752-Google-Analytics#google-analytics-4-ga4) for more information on how to integrate Split with Google Analytics 4.
8276

83-
## Removed internal ponyfills for the `Map` and `Set` global objects, dropping support for IE and other outdated browsers. The SDK now requires the runtime environment to support these features natively or provide a polyfill
77+
## Removed internal polyfills for the `Map` and `Set` global objects, dropping support for IE and other outdated browsers
78+
79+
The SDK no longer ships with internal implementations for the `Map` and `Set` global objects, which were used to support old browsers like IE.
8480

85-
The SDK no longer ships with internal implementations for the `Map` and `Set` global objects, which were used to support old browsers.
8681
If you need to target environments that do not support these features natively, you should provide a polyfill for them. For example, [es6-map](https://github.com/medikoo/es6-map) for `Map`, and [es6-set](https://github.com/medikoo/es6-set) for `Set`.
8782

8883
## Dropped support for Split Proxy below version 5.9.0. The SDK now requires Split Proxy 5.9.0 or above
8984

90-
If using the Split Proxy with the SDK in the browser, 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 SDK on client-side, which uses a new HTTP endpoint to retrieve the segments data and is only supported by Split Proxy 5.9.0.
85+
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 SDK on client-side, 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
@@ -70,7 +70,7 @@ Split has built and maintains SDKs for:
7070
* Java [Github](https://github.com/splitio/java-client) [Docs](https://help.split.io/hc/en-us/articles/360020405151-Java-SDK)
7171
* JavaScript [Github](https://github.com/splitio/javascript-client) [Docs](https://help.split.io/hc/en-us/articles/360020448791-JavaScript-SDK)
7272
* JavaScript for Browser [Github](https://github.com/splitio/javascript-browser-client) [Docs](https://help.split.io/hc/en-us/articles/360058730852-Browser-SDK)
73-
* Node [Github](https://github.com/splitio/javascript-client) [Docs](https://help.split.io/hc/en-us/articles/360020564931-Node-js-SDK)
73+
* Node.js [Github](https://github.com/splitio/javascript-client) [Docs](https://help.split.io/hc/en-us/articles/360020564931-Node-js-SDK)
7474
* PHP [Github](https://github.com/splitio/php-client) [Docs](https://help.split.io/hc/en-us/articles/360020350372-PHP-SDK)
7575
* 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)
7676
* Python [Github](https://github.com/splitio/python-client) [Docs](https://help.split.io/hc/en-us/articles/360020359652-Python-SDK)

ts-tests/index.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,13 @@ splitKey = 'someKey';
156156

157157
/**** Tests for ISDK interface ****/
158158

159-
// // For node with sync storage
159+
// // For Node.js with sync storage
160160
// nodeSettings = {
161161
// core: {
162162
// authorizationKey: 'key'
163163
// }
164164
// };
165-
// // For node with async storage
165+
// // For Node.js with async storage
166166
// asyncSettings = {
167167
// core: {
168168
// authorizationKey: 'key'
@@ -217,9 +217,7 @@ SDK.settings.features = { 'split_x': 'on' };
217217
// Client and Manager
218218
client = SDK.client();
219219
client = SDK.client('a customer key');
220-
// client = SDK.client('a customer key', 'a traffic type'); // Not valid in Browser JS SDK
221220
manager = SDK.manager();
222-
// // Today async clients are only possible on Node. Shared client creation not available here.
223221
asyncClient = AsyncSDK.client();
224222
asyncManager = AsyncSDK.manager();
225223

@@ -249,7 +247,7 @@ splitEvent = client.Event.SDK_READY_FROM_CACHE;
249247
splitEvent = client.Event.SDK_READY_TIMED_OUT;
250248
splitEvent = client.Event.SDK_UPDATE;
251249

252-
// Client implements methods from IEventEmitter that is a subset of NodeJS.Events. Testing a few.
250+
// Client implements methods from IEventEmitter that is a subset of Node.js EventEmitter. Testing a few.
253251
client = client.on(splitEvent, () => { });
254252
const a: boolean = client.emit(splitEvent);
255253
client = client.removeAllListeners(splitEvent);
@@ -341,7 +339,7 @@ splitEvent = asyncClient.Event.SDK_READY_FROM_CACHE;
341339
splitEvent = asyncClient.Event.SDK_READY_TIMED_OUT;
342340
splitEvent = asyncClient.Event.SDK_UPDATE;
343341

344-
// Client implements methods from NodeJS.Events. (same as for sync client, just for interface checking)
342+
// Client implements methods from Node.js EventEmitter. (same as for sync client, just for interface checking)
345343
asyncClient = asyncClient.on(splitEvent, () => { });
346344
const a1: boolean = asyncClient.emit(splitEvent);
347345
asyncClient = asyncClient.removeAllListeners(splitEvent);
@@ -428,7 +426,7 @@ splitViews = manager.splits();
428426
// Manager implements ready promise.
429427
promise = manager.ready();
430428

431-
// Manager implements methods from NodeJS.Events. Testing a few.
429+
// Manager implements methods from Node.js EventEmitter. Testing a few.
432430
manager = manager.on(splitEvent, () => { });
433431
const aa: boolean = manager.emit(splitEvent);
434432
manager = manager.removeAllListeners(splitEvent);
@@ -451,7 +449,7 @@ splitViewsAsync = asyncManager.splits();
451449
// asyncManager implements ready promise.
452450
promise = asyncManager.ready();
453451

454-
// asyncManager implements methods from NodeJS.Events. Testing a few.
452+
// asyncManager implements methods from Node.js EventEmitter. Testing a few.
455453
asyncManager = asyncManager.on(splitEvent, () => { });
456454
const aaa: boolean = asyncManager.emit(splitEvent);
457455
asyncManager = asyncManager.removeAllListeners(splitEvent);

0 commit comments

Comments
 (0)