Skip to content

Commit 3570326

Browse files
Merge pull request #310 from splitio/development
Release v1.14.0
2 parents 1c1e459 + 62fb0a4 commit 3570326

File tree

92 files changed

+815
-578
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+815
-578
lines changed

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Javascript commons library
1+
# JavaScript commons library
22

33
## What did you accomplish?
44

CHANGES.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
1.14.0 (May 6, 2024)
2+
- Added support for targeting rules based on semantic versions (https://semver.org/).
3+
- Added special impression label "targeting rule type unsupported by sdk" when the matcher type is not supported by the SDK, which returns 'control' treatment.
4+
- Updated Split API client to include the flags spec version query parameter for the `splitChanges` and `auth` endpoints.
5+
16
1.13.1 (January 10, 2024)
27
- Updated client `destroy` method to release SDK key immediately and avoid unexpected warning logs when a factory is created with the same SDK key after the previous one was destroyed.
38

CONTRIBUTORS-GUIDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Contributing to the Split Javascript SDK Commons
1+
# Contributing to the Split JavaScript SDK Commons
22

33
Split SDK is an open source project and we welcome feedback and contribution. The information below describes how to build the project with your changes, run the tests, and send the Pull Request(PR).
44

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Split Javascript SDK common components
1+
# Split JavaScript SDK common components
22

33
[![npm version](https://badge.fury.io/js/%40splitsoftware%2Fsplitio-commons.svg)](https://badge.fury.io/js/%40splitsoftware%2Fsplitio-commons) [![Build Status](https://github.com/splitio/javascript-commons/actions/workflows/ci.yml/badge.svg)](https://github.com/splitio/javascript-commons/actions/workflows/ci.yml)
44

@@ -27,13 +27,15 @@ Split has built and maintains SDKs for:
2727
* .NET [Github](https://github.com/splitio/dotnet-client) [Docs](https://help.split.io/hc/en-us/articles/360020240172--NET-SDK)
2828
* Android [Github](https://github.com/splitio/android-client) [Docs](https://help.split.io/hc/en-us/articles/360020343291-Android-SDK)
2929
* Angular [Github](https://github.com/splitio/angular-sdk-plugin) [Docs](https://help.split.io/hc/en-us/articles/6495326064397-Angular-utilities)
30+
* Flutter [Github](https://github.com/splitio/flutter-sdk-plugin) [Docs](https://help.split.io/hc/en-us/articles/8096158017165-Flutter-plugin)
3031
* GO [Github](https://github.com/splitio/go-client) [Docs](https://help.split.io/hc/en-us/articles/360020093652-Go-SDK)
3132
* iOS [Github](https://github.com/splitio/ios-client) [Docs](https://help.split.io/hc/en-us/articles/360020401491-iOS-SDK)
3233
* Java [Github](https://github.com/splitio/java-client) [Docs](https://help.split.io/hc/en-us/articles/360020405151-Java-SDK)
33-
* Javascript [Github](https://github.com/splitio/javascript-client) [Docs](https://help.split.io/hc/en-us/articles/360020448791-JavaScript-SDK)
34-
* Javascript for Browser [Github](https://github.com/splitio/javascript-browser-client) [Docs](https://help.split.io/hc/en-us/articles/360058730852-Browser-SDK)
34+
* JavaScript [Github](https://github.com/splitio/javascript-client) [Docs](https://help.split.io/hc/en-us/articles/360020448791-JavaScript-SDK)
35+
* JavaScript for Browser [Github](https://github.com/splitio/javascript-browser-client) [Docs](https://help.split.io/hc/en-us/articles/360058730852-Browser-SDK)
3536
* Node [Github](https://github.com/splitio/javascript-client) [Docs](https://help.split.io/hc/en-us/articles/360020564931-Node-js-SDK)
3637
* PHP [Github](https://github.com/splitio/php-client) [Docs](https://help.split.io/hc/en-us/articles/360020350372-PHP-SDK)
38+
* 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)
3739
* Python [Github](https://github.com/splitio/python-client) [Docs](https://help.split.io/hc/en-us/articles/360020359652-Python-SDK)
3840
* React [Github](https://github.com/splitio/react-client) [Docs](https://help.split.io/hc/en-us/articles/360038825091-React-SDK)
3941
* React Native [Github](https://github.com/splitio/react-native-client) [Docs](https://help.split.io/hc/en-us/articles/4406066357901-React-Native-SDK)

package-lock.json

Lines changed: 2 additions & 158 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@splitsoftware/splitio-commons",
3-
"version": "1.13.1",
4-
"description": "Split Javascript SDK common components",
3+
"version": "1.14.0",
4+
"description": "Split JavaScript SDK common components",
55
"main": "cjs/index.js",
66
"module": "esm/index.js",
77
"types": "types",
@@ -63,7 +63,6 @@
6363
"@typescript-eslint/eslint-plugin": "^6.6.0",
6464
"@typescript-eslint/parser": "^6.6.0",
6565
"cross-env": "^7.0.2",
66-
"csv-streamify": "^4.0.0",
6766
"eslint": "^8.48.0",
6867
"eslint-plugin-compat": "^4.2.0",
6968
"eslint-plugin-import": "^2.25.3",

src/__tests__/testUtils/csv.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import fs from 'fs';
2+
import rl from 'readline';
3+
4+
export function readCSV(filePath: string, delimiter = ','): Promise<string[][]> {
5+
return new Promise((resolve) => {
6+
const parser = rl.createInterface({
7+
input: fs.createReadStream(filePath)
8+
});
9+
10+
const data: string[][] = [];
11+
12+
parser
13+
.on('line', line => {
14+
data.push(line.split(delimiter));
15+
})
16+
.on('close', () => resolve(data));
17+
});
18+
}

0 commit comments

Comments
 (0)