Skip to content

Commit 9514f82

Browse files
Merge pull request #194 from splitio/development
Release v1.12.0
2 parents 599f6d5 + 29d572e commit 9514f82

5 files changed

Lines changed: 33 additions & 20 deletions

File tree

CHANGES.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
1.12.0 (May 10, 2024)
2+
- Updated @splitsoftware/splitio package to version 10.26.0 that includes minor updates:
3+
- Added support for targeting rules based on semantic versions (https://semver.org/).
4+
- Added special impression label "targeting rule type unsupported by sdk" when the matcher type is not supported by the SDK, which returns 'control' treatment.
5+
- Updated Split API client to include the flags spec version query parameter for the `splitChanges` and `auth` endpoints.
6+
- Updated internal use of the SDK client to remove EventEmitter memory leak warnings. These warnings were emitted when using multiple hooks and components from the SDK simultaneously, but they do not indicate an actual memory leak and are irrelevant for SDK usage (Related to https://github.com/splitio/react-client/issues/191).
7+
18
1.11.1 (March 26, 2024)
29
- Bugfixing - Added tslib as an explicit dependency to avoid issues with some package managers that don't resolve it automatically as a transitive dependency from @splitsoftware/splitio-commons (Related to issue https://github.com/splitio/javascript-client/issues/795).
310

package-lock.json

Lines changed: 17 additions & 17 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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@splitsoftware/splitio-react",
3-
"version": "1.11.1",
3+
"version": "1.12.0",
44
"description": "A React library to easily integrate and use Split JS SDK",
55
"main": "lib/index.js",
66
"module": "es/index.js",
@@ -63,7 +63,7 @@
6363
},
6464
"homepage": "https://github.com/splitio/react-client#readme",
6565
"dependencies": {
66-
"@splitsoftware/splitio": "10.25.2",
66+
"@splitsoftware/splitio": "10.26.0",
6767
"memoize-one": "^5.1.1",
6868
"shallowequal": "^1.1.0",
6969
"tslib": "^2.3.1"

src/utils.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ export function getSplitClient(factory: SplitIO.IBrowserSDK, key?: SplitIO.Split
5353

5454
// Handle client lastUpdate
5555
if (client.lastUpdate === undefined) {
56+
// Remove EventEmitter warning emitted when using multiple SDK hooks or components.
57+
// Unlike JS SDK, users can avoid using the client directly, making the warning irrelevant.
58+
client.setMaxListeners(0);
59+
5660
const updateLastUpdate = () => {
5761
const lastUpdate = Date.now();
5862
client.lastUpdate = lastUpdate > client.lastUpdate ? lastUpdate : client.lastUpdate + 1;

tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
"moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
1919
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
2020
},
21-
"include": ["src"],
21+
"include": [
22+
"src"
23+
],
2224
"exclude": [
2325
"./src/__tests__",
2426
"umd.ts",

0 commit comments

Comments
 (0)