From 142059768f17b91200b3cb24e406fca631411dc9 Mon Sep 17 00:00:00 2001 From: Emiliano Sanchez Date: Fri, 1 Mar 2024 12:00:03 -0300 Subject: [PATCH] Upgrade js-commons and transitive dependencies for vulnerability fixes --- CHANGES.txt | 30 +++++++++++++++++------------- example/package-lock.json | 12 ++++++------ package-lock.json | 30 +++++++++++++++--------------- package.json | 4 ++-- src/settings/defaults.ts | 2 +- types/splitio.d.ts | 2 -- 6 files changed, 41 insertions(+), 39 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 4674125..63799f3 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,10 +1,14 @@ +0.8.1 (March 4, 2023) + - Updated @splitsoftware/splitio-commons package to version 1.13.1 and some transitive dependencies for vulnerability fixes. + - Updated evaluation flow to log a warning when using flag sets that don't contain cached feature flags. + 0.8.0 (November 3, 2023) -- Added support for Flag Sets on the SDK, which enables grouping feature flags and interacting with the group rather than individually (more details in our documentation): - - Added new variations of the get treatment methods to support evaluating flags in given flag set/s. - - getTreatmentsByFlagSet and getTreatmentsByFlagSets - - getTreatmentWithConfigByFlagSets and getTreatmentsWithConfigByFlagSets - - Added a new optional Split Filter configuration option. This allows the SDK and Split services to only synchronize the flags in the specified flag sets, avoiding unused or unwanted flags from being synced on the SDK instance, bringing all the benefits from a reduced payload. - - Updated the SDK manager methods to expose flag sets on flag views. + - Added support for Flag Sets on the SDK, which enables grouping feature flags and interacting with the group rather than individually (more details in our documentation): + - Added new variations of the get treatment methods to support evaluating flags in given flag set/s. + - getTreatmentsByFlagSet and getTreatmentsByFlagSets + - getTreatmentWithConfigByFlagSets and getTreatmentsWithConfigByFlagSets + - Added a new optional Split Filter configuration option. This allows the SDK and Split services to only synchronize the flags in the specified flag sets, avoiding unused or unwanted flags from being synced on the SDK instance, bringing all the benefits from a reduced payload. + - Added `sets` property to the `SplitView` object returned by the `split` and `splits` methods of the SDK manager to expose flag sets on flag views. - Added `defaultTreatment` property to the `SplitView` object returned by the `split` and `splits` methods of the SDK manager (Related to issue https://github.com/splitio/javascript-commons/issues/225). - Added support for MacOS and TvOS platforms (Related to issue https://github.com/splitio/react-native-client/issues/63). - Updated @splitsoftware/splitio-commons package to version 1.11.0 that includes vulnerability fixes, support for Flag Sets, and adds the `defaultTreatment` property to the `SplitView` object. @@ -12,7 +16,7 @@ 0.7.0 (August 31, 2023) - Updated @splitsoftware/splitio-commons package to version 1.9.0 that includes a minor improvement: - - Updated streaming architecture implementation to apply feature flag updates from the notification received which is now enhanced, improving efficiency and reliability of the whole update system. + - Updated streaming architecture implementation to apply feature flag updates from the notification received which is now enhanced, improving efficiency and reliability of the whole update system. - Updated some transitive dependencies for vulnerability fixes. - Updated Android build.gradle config for compatibility with upcoming React Native v0.73 while keeping backward compatibility (Related to https://github.com/splitio/react-native-client/pull/54). @@ -58,12 +62,12 @@ 0.1.0 (October 20, 2021) - Added localhost mode support (Read more in our docs here: https://help.split.io/hc/en-us/articles/4406066357901-React-Native-SDK#localhost-mode). - Updated @splitsoftware/splitio-commons dependency to version 1.0.0, which includes: - - Updated localhost mode to emit SDK_READY_FROM_CACHE event in Browser when using localStorage (Related to issue https://github.com/splitio/react-client/issues/34). - - Updated streaming logic to use the newest version of our streaming service, including: - - Integration with Auth service V2, connecting to the new channels and applying the received connection delay. - - Implemented handling of the new MySegmentsV2 notification types (SegmentRemoval, KeyList, Bounded and Unbounded) - - New control notification for environment scoped streaming reset. - - Fix of some log messages typos, among other improvements. + - Updated localhost mode to emit SDK_READY_FROM_CACHE event in Browser when using localStorage (Related to issue https://github.com/splitio/react-client/issues/34). + - Updated streaming logic to use the newest version of our streaming service, including: + - Integration with Auth service V2, connecting to the new channels and applying the received connection delay. + - Implemented handling of the new MySegmentsV2 notification types (SegmentRemoval, KeyList, Bounded and Unbounded) + - New control notification for environment scoped streaming reset. + - Fix of some log messages typos, among other improvements. - Updated some NPM dependencies for vulnerability fixes. 0.0.1 (July 29, 2021) diff --git a/example/package-lock.json b/example/package-lock.json index d8094db..2a5e9cb 100644 --- a/example/package-lock.json +++ b/example/package-lock.json @@ -7151,9 +7151,9 @@ } }, "node_modules/ip": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.8.tgz", - "integrity": "sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg==" + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.9.tgz", + "integrity": "sha512-cyRxvOEpNHNtchU3Ln9KC/auJgup87llfQpQ+t5ghoC/UhL16SWzbueiCsdTnWmqAWl7LadfuwhlqmtOaqMHdQ==" }, "node_modules/is-arrayish": { "version": "0.2.1", @@ -18633,9 +18633,9 @@ } }, "ip": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.8.tgz", - "integrity": "sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg==" + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.9.tgz", + "integrity": "sha512-cyRxvOEpNHNtchU3Ln9KC/auJgup87llfQpQ+t5ghoC/UhL16SWzbueiCsdTnWmqAWl7LadfuwhlqmtOaqMHdQ==" }, "is-arrayish": { "version": "0.2.1", diff --git a/package-lock.json b/package-lock.json index cb4e676..c7f9ab8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,15 @@ { "name": "@splitsoftware/splitio-react-native", - "version": "0.8.0", + "version": "0.8.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@splitsoftware/splitio-react-native", - "version": "0.8.0", + "version": "0.8.1", "license": "Apache-2.0", "dependencies": { - "@splitsoftware/splitio-commons": "1.11.0" + "@splitsoftware/splitio-commons": "1.13.1" }, "devDependencies": { "@react-native-community/eslint-config": "^2.0.0", @@ -4901,9 +4901,9 @@ } }, "node_modules/@splitsoftware/splitio-commons": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/@splitsoftware/splitio-commons/-/splitio-commons-1.11.0.tgz", - "integrity": "sha512-JxXltOwFrTSDgvuM4MTzrNzxYEX2YSaNLNM/STtehLNRC20O7rYgUrEWT3xcvVOgGMwouyFOpGpNL94TthN2Aw==", + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/@splitsoftware/splitio-commons/-/splitio-commons-1.13.1.tgz", + "integrity": "sha512-xGu94sLx+tJb6PeM26vH8/LEElsaVbh2BjoLvL5twR4gKsVezie5ZtHhejWT1+iCVCtJuhjZxKwOm4HGYoVIHQ==", "dependencies": { "tslib": "^2.3.1" }, @@ -8718,9 +8718,9 @@ } }, "node_modules/ip": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.8.tgz", - "integrity": "sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg==", + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.9.tgz", + "integrity": "sha512-cyRxvOEpNHNtchU3Ln9KC/auJgup87llfQpQ+t5ghoC/UhL16SWzbueiCsdTnWmqAWl7LadfuwhlqmtOaqMHdQ==", "dev": true }, "node_modules/is-absolute": { @@ -21257,9 +21257,9 @@ } }, "@splitsoftware/splitio-commons": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/@splitsoftware/splitio-commons/-/splitio-commons-1.11.0.tgz", - "integrity": "sha512-JxXltOwFrTSDgvuM4MTzrNzxYEX2YSaNLNM/STtehLNRC20O7rYgUrEWT3xcvVOgGMwouyFOpGpNL94TthN2Aw==", + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/@splitsoftware/splitio-commons/-/splitio-commons-1.13.1.tgz", + "integrity": "sha512-xGu94sLx+tJb6PeM26vH8/LEElsaVbh2BjoLvL5twR4gKsVezie5ZtHhejWT1+iCVCtJuhjZxKwOm4HGYoVIHQ==", "requires": { "tslib": "^2.3.1" }, @@ -24126,9 +24126,9 @@ } }, "ip": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.8.tgz", - "integrity": "sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg==", + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.9.tgz", + "integrity": "sha512-cyRxvOEpNHNtchU3Ln9KC/auJgup87llfQpQ+t5ghoC/UhL16SWzbueiCsdTnWmqAWl7LadfuwhlqmtOaqMHdQ==", "dev": true }, "is-absolute": { diff --git a/package.json b/package.json index 729e2c2..e6ff5e8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@splitsoftware/splitio-react-native", - "version": "0.8.0", + "version": "0.8.1", "description": "Split SDK for React Native", "main": "lib/commonjs/index.js", "module": "lib/module/index.js", @@ -60,7 +60,7 @@ }, "homepage": "https://github.com/splitio/react-native-client#readme", "dependencies": { - "@splitsoftware/splitio-commons": "1.11.0" + "@splitsoftware/splitio-commons": "1.13.1" }, "devDependencies": { "@react-native-community/eslint-config": "^2.0.0", diff --git a/src/settings/defaults.ts b/src/settings/defaults.ts index b5fa959..57783e0 100644 --- a/src/settings/defaults.ts +++ b/src/settings/defaults.ts @@ -1,7 +1,7 @@ import { ConsentStatus } from '@splitsoftware/splitio-commons/src/types'; import { CONSENT_GRANTED } from '@splitsoftware/splitio-commons/src/utils/constants'; -const packageVersion = '0.8.0'; +const packageVersion = '0.8.1'; export const defaults = { startup: { diff --git a/types/splitio.d.ts b/types/splitio.d.ts index 060a7a3..50659a1 100644 --- a/types/splitio.d.ts +++ b/types/splitio.d.ts @@ -196,8 +196,6 @@ interface ISharedSettings { /** * List of feature flag filters. These filters are used to fetch a subset of the feature flag definitions in your environment, in order to reduce the delay of the SDK to be ready. * - * At the moment, only one type of feature flag filter is supported: by name. - * * Example: * `splitFilter: [ * { type: 'byName', values: ['my_feature_flag_1', 'my_feature_flag_2'] }, // will fetch feature flags named 'my_feature_flag_1' and 'my_feature_flag_2'