Skip to content

Commit 9f9561e

Browse files
Merge branch 'baseline_semver' into split_changes_version
2 parents 8fa62f3 + c2a8d92 commit 9f9561e

Some content is hidden

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

73 files changed

+743
-423
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
1.14.0 (April XX, 2024)
2+
- Added support for Semver matchers.
23
- Updated impression label to 'unsupported matcher type' when the matcher type is not supported by the SDK.
34
- Updated Split API client to include the flags spec version query parameter for the `splitChanges` and `auth` endpoints.
45

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: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@splitsoftware/splitio-commons",
3-
"version": "1.13.2-rc.2",
3+
"version": "1.13.2-rc.5",
44
"description": "Split JavaScript SDK common components",
55
"main": "cjs/index.js",
66
"module": "esm/index.js",
@@ -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)