@splitsoftware/splitio 10.23.1 → 10.23.2-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGES.txt CHANGED
@@ -1,3 +1,7 @@
1
+ 10.24.0 (October XX, 2023)
2
+ - 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).
3
+ - Updated @splitsoftware/splitio-commons package to version 1.10.0 that includes vulnerability fixes, and adds the `defaultTreatment` property to the `SplitView` object.
4
+
1
5
  10.23.1 (September 22, 2023)
2
6
  - Updated @splitsoftware/splitio-commons package to version 1.9.1. This update removes the handler for 'unload' DOM events, that can prevent browsers from being able to put pages in the back/forward cache for faster back and forward loads (Related to issue https://github.com/splitio/javascript-client/issues/759).
3
7
 
@@ -1 +1 @@
1
- export var packageVersion = '10.23.1';
1
+ export var packageVersion = '10.23.2-rc.1';
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageVersion = void 0;
4
- exports.packageVersion = '10.23.1';
4
+ exports.packageVersion = '10.23.2-rc.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@splitsoftware/splitio",
3
- "version": "10.23.1",
3
+ "version": "10.23.2-rc.1",
4
4
  "description": "Split SDK",
5
5
  "files": [
6
6
  "README.md",
@@ -40,7 +40,7 @@
40
40
  "node": ">=6"
41
41
  },
42
42
  "dependencies": {
43
- "@splitsoftware/splitio-commons": "1.9.1",
43
+ "@splitsoftware/splitio-commons": "1.10.1-rc.0",
44
44
  "@types/google.analytics": "0.0.40",
45
45
  "@types/ioredis": "^4.28.0",
46
46
  "bloom-filters": "^3.0.0",
@@ -100,7 +100,7 @@
100
100
  "check:version": "cross-env NODE_ENV=test tape -r ./ts-node.register src/settings/__tests__/defaults.spec.js",
101
101
  "test-browser": "npm run test-browser-unit && npm run test-browser-e2e",
102
102
  "test-browser-unit": "cross-env NODE_ENV=test karma start karma/unit.karma.conf.js",
103
- "test-browser-e2e": "npm run test-browser-e2e-online && npm run test-browser-e2e-offline && npm run test-browser-e2e-destroy && npm run test-browser-e2e-errorCatching && npm run test-browser-e2e-push && npm run test-browser-e2e-gaIntegration",
103
+ "test-browser-e2e": "npm run test-browser-e2e-online && npm run test-browser-e2e-offline && npm run test-browser-e2e-destroy && npm run test-browser-e2e-errorCatching && npm run test-browser-e2e-push",
104
104
  "test-browser-e2e-online": "cross-env NODE_ENV=test karma start karma/e2e.online.karma.conf.js",
105
105
  "test-browser-e2e-offline": "cross-env NODE_ENV=test karma start karma/e2e.offline.karma.conf.js",
106
106
  "test-browser-e2e-destroy": "cross-env NODE_ENV=test karma start karma/e2e.destroy.karma.conf.js",
@@ -1 +1 @@
1
- export const packageVersion = '10.23.1';
1
+ export const packageVersion = '10.23.2-rc.1';
@@ -663,7 +663,12 @@ declare namespace SplitIO {
663
663
  */
664
664
  configs: {
665
665
  [treatmentName: string]: string
666
- }
666
+ },
667
+ /**
668
+ * The default treatment of the feature flag.
669
+ * @property {string} defaultTreatment
670
+ */
671
+ defaultTreatment: string,
667
672
  };
668
673
  /**
669
674
  * A promise that resolves to a feature flag view.
@@ -1370,7 +1375,7 @@ declare namespace SplitIO {
1370
1375
  /**
1371
1376
  * Returns a TreatmentWithConfig value, which an object with both treatment and config string for the given feature.
1372
1377
  * For usage on the Browser as we defined the key on the settings.
1373
- * @function getTreatment
1378
+ * @function getTreatmentWithConfig
1374
1379
  * @param {string} featureFlagName - The string that represents the feature flag we want to get the treatment.
1375
1380
  * @param {Attributes=} attributes - An object of type Attributes defining the attributes for the given key.
1376
1381
  * @returns {TreatmentWithConfig} The TreatmentWithConfig, the object containing the treatment string and the
@@ -1417,6 +1422,74 @@ declare namespace SplitIO {
1417
1422
  * @returns {TreatmentsWithConfig} The map with all the TreatmentWithConfig objects
1418
1423
  */
1419
1424
  getTreatmentsWithConfig(featureFlagNames: string[], attributes?: Attributes): TreatmentsWithConfig,
1425
+ /**
1426
+ * Returns a Treatments value, which is an object map with the treatments for the feature flags related to the given flag set.
1427
+ * @function getTreatmentsByFlagSet
1428
+ * @param {string} key - The string key representing the consumer.
1429
+ * @param {string} flagSet - The flag set name we want to get the treatments.
1430
+ * @param {Attributes=} attributes - An object of type Attributes defining the attributes for the given key.
1431
+ * @returns {Treatments} The map with all the TreatmentWithConfig objects
1432
+ */
1433
+ getTreatmentsByFlagSet(key: SplitKey, flagSet: string, attributes?: Attributes): Treatments,
1434
+ /**
1435
+ * Returns a Treatments value, which is an object map with the treatments for the feature flags related to the given flag set.
1436
+ * @function getTreatmentsByFlagSet
1437
+ * @param {string} flagSet - The flag set name we want to get the treatments.
1438
+ * @param {Attributes=} attributes - An object of type Attributes defining the attributes for the given key.
1439
+ * @returns {Treatments} The map with all the TreatmentWithConfig objects
1440
+ */
1441
+ getTreatmentsByFlagSet(flagSet: string, attributes?: Attributes): Treatments,
1442
+ /**
1443
+ * Returns a TreatmentsWithConfig value, which is an object map with the TreatmentWithConfig (an object with both treatment and config string) for the feature flags related to the given flag sets.
1444
+ * @function getTreatmentsWithConfigByFlagSet
1445
+ * @param {string} key - The string key representing the consumer.
1446
+ * @param {string} flagSet - The flag set name we want to get the treatments.
1447
+ * @param {Attributes=} attributes - An object of type Attributes defining the attributes for the given key.
1448
+ * @returns {Treatments} The map with all the TreatmentWithConfig objects
1449
+ */
1450
+ getTreatmentsWithConfigByFlagSet(key: SplitKey, flagSet: string, attributes?: Attributes): TreatmentsWithConfig,
1451
+ /**
1452
+ * Returns a TreatmentsWithConfig value, which is an object map with the TreatmentWithConfig (an object with both treatment and config string) for the feature flags related to the given flag set.
1453
+ * @function getTreatmentsWithConfigByFlagSet
1454
+ * @param {string} flagSet - The flag set name we want to get the treatments.
1455
+ * @param {Attributes=} attributes - An object of type Attributes defining the attributes for the given key.
1456
+ * @returns {Treatments} The map with all the TreatmentWithConfig objects
1457
+ */
1458
+ getTreatmentsWithConfigByFlagSet(flagSet: string, attributes?: Attributes): TreatmentsWithConfig,
1459
+ /**
1460
+ * Returns a Returns a Treatments value, which is an object with both treatment and config string for to the feature flags related to the given flag sets.
1461
+ * @function getTreatmentsByFlagSets
1462
+ * @param {string} key - The string key representing the consumer.
1463
+ * @param {Array<string>} flagSets - An array of the flag set names we want to get the treatments.
1464
+ * @param {Attributes=} attributes - An object of type Attributes defining the attributes for the given key.
1465
+ * @returns {Treatments} The map with all the TreatmentWithConfig objects
1466
+ */
1467
+ getTreatmentsByFlagSets(key: SplitKey, flagSets: string[], attributes?: Attributes): Treatments,
1468
+ /**
1469
+ * Returns a Returns a Treatments value, which is an object with both treatment and config string for to the feature flags related to the given flag sets.
1470
+ * @function getTreatmentsByFlagSets
1471
+ * @param {Array<string>} flagSets - An array of the flag set names we want to get the treatments.
1472
+ * @param {Attributes=} attributes - An object of type Attributes defining the attributes for the given key.
1473
+ * @returns {Treatments} The map with all the TreatmentWithConfig objects
1474
+ */
1475
+ getTreatmentsByFlagSets(flagSets: string[], attributes?: Attributes): Treatments,
1476
+ /**
1477
+ * Returns a TreatmentsWithConfig value, which is an object map with the TreatmentWithConfig (an object with both treatment and config string) for the feature flags related to the given flag sets.
1478
+ * @function getTreatmentsWithConfigByFlagSets
1479
+ * @param {string} key - The string key representing the consumer.
1480
+ * @param {Array<string>} flagSets - An array of the flag set names we want to get the treatments.
1481
+ * @param {Attributes=} attributes - An object of type Attributes defining the attributes for the given key.
1482
+ * @returns {Treatments} The map with all the TreatmentWithConfig objects
1483
+ */
1484
+ getTreatmentsWithConfigByFlagSets(key: SplitKey, flagSets: string[], attributes?: Attributes): TreatmentsWithConfig,
1485
+ /**
1486
+ * Returns a TreatmentsWithConfig value, which is an object map with the TreatmentWithConfig (an object with both treatment and config string) for the feature flags related to the given flag sets.
1487
+ * @function getTreatmentsWithConfigByFlagSets
1488
+ * @param {Array<string>} flagSets - An array of the flag set names we want to get the treatments.
1489
+ * @param {Attributes=} attributes - An object of type Attributes defining the attributes for the given key.
1490
+ * @returns {Treatments} The map with all the TreatmentWithConfig objects
1491
+ */
1492
+ getTreatmentsWithConfigByFlagSets(flagSets: string[], attributes?: Attributes): TreatmentsWithConfig,
1420
1493
  /**
1421
1494
  * Tracks an event to be fed to the results product on Split user interface.
1422
1495
  * For usage on NodeJS as we don't have only one key.