Skip to content

Commit 0a8f408

Browse files
Merge pull request #129 from splitio/development
Release v1.8.2
2 parents 6e4e213 + c614ed2 commit 0a8f408

34 files changed

Lines changed: 10501 additions & 7356 deletions

.eslintrc.js

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
module.exports = {
2+
'env': {
3+
'browser': true,
4+
'es6': true,
5+
'node': true
6+
},
7+
'extends': [
8+
'eslint:recommended',
9+
'plugin:react/recommended',
10+
'plugin:@typescript-eslint/recommended'
11+
],
12+
'parser': '@typescript-eslint/parser',
13+
'parserOptions': {
14+
'ecmaVersion': 2015,
15+
'sourceType': 'module'
16+
},
17+
'plugins': [
18+
'react',
19+
'@typescript-eslint',
20+
'import'
21+
],
22+
'rules': {
23+
'indent': ['error', 2, { 'SwitchCase': 1 }],
24+
'quotes': ['warn', 'single', 'avoid-escape'],
25+
'linebreak-style': ['error', 'unix'],
26+
'camelcase': ['error', { 'properties': 'never' }],
27+
'no-use-before-define': ['error', 'nofunc'],
28+
'eol-last': ['error', 'always'],
29+
'keyword-spacing': 'error',
30+
'no-trailing-spaces': 'error',
31+
'space-before-function-paren': ['error', {'named': 'never'}],
32+
'react/display-name': 'off',
33+
'@typescript-eslint/no-empty-function': 'off',
34+
'@typescript-eslint/no-inferrable-types': 'off',
35+
'@typescript-eslint/no-explicit-any': 'off',
36+
'@typescript-eslint/no-non-null-assertion': 'off',
37+
'@typescript-eslint/no-unused-vars': ['warn', { 'argsIgnorePattern': '^_' }],
38+
},
39+
'overrides': [{
40+
'files': ['src/**/*.ts', 'src/**/*.tsx'],
41+
'excludedFiles': ['src/**/__tests__/**'],
42+
'extends': [
43+
'plugin:compat/recommended'
44+
],
45+
'settings': {
46+
'polyfills': [
47+
'Promise' // required as a polyfill by the user
48+
]
49+
},
50+
'rules': {
51+
'no-restricted-syntax': ['error', 'ForOfStatement', 'ForInStatement'],
52+
'compat/compat': ['error', 'defaults, not ie < 11'],
53+
'no-throw-literal': 'error',
54+
'import/no-self-import': 'error',
55+
// 'import/no-default-export': 'error', // Default exports are a common practice in React
56+
}
57+
}]
58+
}

.github/workflows/ci-cd.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,14 @@ jobs:
9494
matrix:
9595
environment:
9696
- stage
97-
- stage-eu
97+
#- stage-eu
9898
include:
9999
- environment: stage
100100
account_id: "079419646996"
101101
bucket: split-public-stage
102-
- environment: stage-eu
103-
account_id: "901851837056"
104-
bucket: split-public-stage-eu-west-1
102+
# - environment: stage-eu
103+
# account_id: "901851837056"
104+
# bucket: split-public-stage-eu-west-1
105105

106106
steps:
107107
- name: Download assets
@@ -137,14 +137,14 @@ jobs:
137137
matrix:
138138
environment:
139139
- prod
140-
- prod-eu
140+
#- prod-eu
141141
include:
142142
- environment: prod
143143
account_id: "825951051969"
144144
bucket: split-public
145-
- environment: prod-eu
146-
account_id: "842946900133"
147-
bucket: split-public-eu-west-1
145+
# - environment: prod-eu
146+
# account_id: "842946900133"
147+
# bucket: split-public-eu-west-1
148148

149149
steps:
150150
- name: Download assets

CHANGES.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
1.8.2 (April 3, 2023)
2+
- Updated linter dependencies and rules. The deprecated TSLint package was replaced by ESLint.
3+
- Updated some transitive dependencies for vulnerability fixes.
4+
- Updated @splitsoftware/splitio package to version 10.22.4 that includes minor improvements.
5+
16
1.8.1 (December 16, 2022)
27
- Updated some transitive dependencies for vulnerability fixes.
38
- Bugfixing - Upgrade @splitsoftware/splitio dependency to version 10.22.3 which includes a memory leak fix for localhost mode (Related to issue https://github.com/splitio/javascript-commons/issues/181) among other improvements.
@@ -64,7 +69,7 @@
6469
- Updated Split's SDK package for vulnerability fixes.
6570

6671
1.2.4 (February 11, 2021)
67-
- Updated CommonJS and ES Modules builds to always resolve browser modules of the Javascript SDK and avoid issues when using Node-based testing framework such as Jest (issues #13, #34).
72+
- Updated CommonJS and ES Modules builds to always resolve browser modules of the JavaScript SDK and avoid issues when using Node-based testing framework such as Jest (issues #13, #34).
6873

6974
1.2.3 (February 8, 2021)
7075
- Updated React peer dependency range to include React@17.x.x.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright © 2022 Split Software, Inc.
1+
Copyright © 2023 Split Software, Inc.
22

33
Licensed under the Apache License, Version 2.0 (the "License");
44
you may not use this file except in compliance with the License.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ Split has built and maintains SDKs for:
7979
* GO [Github](https://github.com/splitio/go-client) [Docs](https://help.split.io/hc/en-us/articles/360020093652-Go-SDK)
8080
* iOS [Github](https://github.com/splitio/ios-client) [Docs](https://help.split.io/hc/en-us/articles/360020401491-iOS-SDK)
8181
* Java [Github](https://github.com/splitio/java-client) [Docs](https://help.split.io/hc/en-us/articles/360020405151-Java-SDK)
82-
* Javascript [Github](https://github.com/splitio/javascript-client) [Docs](https://help.split.io/hc/en-us/articles/360020448791-JavaScript-SDK)
83-
* Javascript for Browser [Github](https://github.com/splitio/javascript-browser-client) [Docs](https://help.split.io/hc/en-us/articles/360058730852-Browser-SDK)
82+
* JavaScript [Github](https://github.com/splitio/javascript-client) [Docs](https://help.split.io/hc/en-us/articles/360020448791-JavaScript-SDK)
83+
* JavaScript for Browser [Github](https://github.com/splitio/javascript-browser-client) [Docs](https://help.split.io/hc/en-us/articles/360058730852-Browser-SDK)
8484
* Node [Github](https://github.com/splitio/javascript-client) [Docs](https://help.split.io/hc/en-us/articles/360020564931-Node-js-SDK)
8585
* PHP [Github](https://github.com/splitio/php-client) [Docs](https://help.split.io/hc/en-us/articles/360020350372-PHP-SDK)
8686
* Python [Github](https://github.com/splitio/python-client) [Docs](https://help.split.io/hc/en-us/articles/360020359652-Python-SDK)

jest.config.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,18 @@ module.exports = {
33

44
testEnvironment: 'jsdom',
55

6-
setupFilesAfterEnv: ['./setupTests.js'],
6+
globals: {
7+
'ts-jest': {
8+
tsconfig: 'tsconfig.jest.json',
9+
}
10+
},
711

812
// Test files are .js, .jsx, .ts and .tsx files inside of __tests__ folders and with a suffix of .test or .spec
9-
testMatch: [ "**/__tests__/**/?(*.)+(spec|test).[jt]s?(x)" ],
13+
testMatch: ['**/__tests__/**/?(*.)+(spec|test).[jt]s?(x)'],
1014

1115
// Included files for test coverage (npm run test:coverage)
1216
collectCoverageFrom: [
13-
"src/**/*.{js,jsx,ts,tsx}",
14-
"!src/__tests__/**",
17+
'src/**/*.{js,jsx,ts,tsx}',
18+
'!src/__tests__/**',
1519
]
1620
};

0 commit comments

Comments
 (0)