@splitsoftware/splitio 10.23.2-rc.1 → 10.23.2-rc.2

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.
@@ -1 +1 @@
1
- export var packageVersion = '10.23.2-rc.1';
1
+ export var packageVersion = '10.23.2-rc.2';
@@ -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.2-rc.1';
4
+ exports.packageVersion = '10.23.2-rc.2';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@splitsoftware/splitio",
3
- "version": "10.23.2-rc.1",
3
+ "version": "10.23.2-rc.2",
4
4
  "description": "Split SDK",
5
5
  "files": [
6
6
  "README.md",
package/src/.DS_Store ADDED
Binary file
@@ -1 +1 @@
1
- export const packageVersion = '10.23.2-rc.1';
1
+ export const packageVersion = '10.23.2-rc.2';
Binary file
@@ -911,7 +911,7 @@ declare namespace SplitIO {
911
911
  *
912
912
  * @typedef {string} SplitFilterType
913
913
  */
914
- type SplitFilterType = 'byName' | 'byPrefix';
914
+ type SplitFilterType = 'bySet' | 'byName' | 'byPrefix';
915
915
  /**
916
916
  * Defines a feature flag filter, described by a type and list of values.
917
917
  */
@@ -1428,7 +1428,7 @@ declare namespace SplitIO {
1428
1428
  * @param {string} key - The string key representing the consumer.
1429
1429
  * @param {string} flagSet - The flag set name we want to get the treatments.
1430
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
1431
+ * @returns {Treatments} The map with all the Treatments objects
1432
1432
  */
1433
1433
  getTreatmentsByFlagSet(key: SplitKey, flagSet: string, attributes?: Attributes): Treatments,
1434
1434
  /**
@@ -1436,16 +1436,16 @@ declare namespace SplitIO {
1436
1436
  * @function getTreatmentsByFlagSet
1437
1437
  * @param {string} flagSet - The flag set name we want to get the treatments.
1438
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
1439
+ * @returns {Treatments} The map with all the Treatments objects
1440
1440
  */
1441
1441
  getTreatmentsByFlagSet(flagSet: string, attributes?: Attributes): Treatments,
1442
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.
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 set.
1444
1444
  * @function getTreatmentsWithConfigByFlagSet
1445
1445
  * @param {string} key - The string key representing the consumer.
1446
1446
  * @param {string} flagSet - The flag set name we want to get the treatments.
1447
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
1448
+ * @returns {TreatmentsWithConfig} The map with all the TreatmentWithConfig objects
1449
1449
  */
1450
1450
  getTreatmentsWithConfigByFlagSet(key: SplitKey, flagSet: string, attributes?: Attributes): TreatmentsWithConfig,
1451
1451
  /**
@@ -1453,7 +1453,7 @@ declare namespace SplitIO {
1453
1453
  * @function getTreatmentsWithConfigByFlagSet
1454
1454
  * @param {string} flagSet - The flag set name we want to get the treatments.
1455
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
1456
+ * @returns {TreatmentsWithConfig} The map with all the TreatmentWithConfig objects
1457
1457
  */
1458
1458
  getTreatmentsWithConfigByFlagSet(flagSet: string, attributes?: Attributes): TreatmentsWithConfig,
1459
1459
  /**
@@ -1462,7 +1462,7 @@ declare namespace SplitIO {
1462
1462
  * @param {string} key - The string key representing the consumer.
1463
1463
  * @param {Array<string>} flagSets - An array of the flag set names we want to get the treatments.
1464
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
1465
+ * @returns {Treatments} The map with all the Treatments objects
1466
1466
  */
1467
1467
  getTreatmentsByFlagSets(key: SplitKey, flagSets: string[], attributes?: Attributes): Treatments,
1468
1468
  /**
@@ -1470,7 +1470,7 @@ declare namespace SplitIO {
1470
1470
  * @function getTreatmentsByFlagSets
1471
1471
  * @param {Array<string>} flagSets - An array of the flag set names we want to get the treatments.
1472
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
1473
+ * @returns {Treatments} The map with all the Treatments objects
1474
1474
  */
1475
1475
  getTreatmentsByFlagSets(flagSets: string[], attributes?: Attributes): Treatments,
1476
1476
  /**
@@ -1479,7 +1479,7 @@ declare namespace SplitIO {
1479
1479
  * @param {string} key - The string key representing the consumer.
1480
1480
  * @param {Array<string>} flagSets - An array of the flag set names we want to get the treatments.
1481
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
1482
+ * @returns {TreatmentsWithConfig} The map with all the TreatmentWithConfig objects
1483
1483
  */
1484
1484
  getTreatmentsWithConfigByFlagSets(key: SplitKey, flagSets: string[], attributes?: Attributes): TreatmentsWithConfig,
1485
1485
  /**
@@ -1487,7 +1487,7 @@ declare namespace SplitIO {
1487
1487
  * @function getTreatmentsWithConfigByFlagSets
1488
1488
  * @param {Array<string>} flagSets - An array of the flag set names we want to get the treatments.
1489
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
1490
+ * @returns {TreatmentsWithConfig} The map with all the TreatmentWithConfig objects
1491
1491
  */
1492
1492
  getTreatmentsWithConfigByFlagSets(flagSets: string[], attributes?: Attributes): TreatmentsWithConfig,
1493
1493
  /**
@@ -1620,6 +1620,46 @@ declare namespace SplitIO {
1620
1620
  * @returns {AsyncTreatmentsWithConfig} TreatmentsWithConfig promise that resolves to the map of TreatmentsWithConfig objects.
1621
1621
  */
1622
1622
  getTreatmentsWithConfig(key: SplitKey, featureFlagNames: string[], attributes?: Attributes): AsyncTreatmentsWithConfig,
1623
+ /**
1624
+ * Returns a Treatments value, which is an object map with the treatments for the feature flags related to the given flag set.
1625
+ * For usage on NodeJS as we don't have only one key.
1626
+ * @function getTreatmentsByFlagSet
1627
+ * @param {string} key - The string key representing the consumer.
1628
+ * @param {string} flagSet - The flag set name we want to get the treatments.
1629
+ * @param {Attributes=} attributes - An object of type Attributes defining the attributes for the given key.
1630
+ * @returns {AsyncTreatments} Treatments promise that resolves to the treatments object map.
1631
+ */
1632
+ getTreatmentsByFlagSet(key: SplitKey, flagSet: string, attributes?: Attributes): AsyncTreatments,
1633
+ /**
1634
+ * 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.
1635
+ * For usage on NodeJS as we don't have only one key.
1636
+ * @function getTreatmentsWithConfigByFlagSet
1637
+ * @param {string} flagSet - The flag set name we want to get the treatments.
1638
+ * @param {string} key - The string key representing the consumer.
1639
+ * @param {Attributes=} attributes - An object of type Attributes defining the attributes for the given key.
1640
+ * @returns {AsyncTreatmentsWithConfig} TreatmentsWithConfig promise that resolves to the TreatmentsWithConfig object.
1641
+ */
1642
+ getTreatmentsWithConfigByFlagSet(key: SplitKey, flagSet: string, attributes?: Attributes): AsyncTreatmentsWithConfig,
1643
+ /**
1644
+ * 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.
1645
+ * For usage on NodeJS as we don't have only one key.
1646
+ * @function getTreatmentsByFlagSets
1647
+ * @param {string} key - The string key representing the consumer.
1648
+ * @param {Array<string>} flagSets - An array of the flag set names we want to get the treatments.
1649
+ * @param {Attributes=} attributes - An object of type Attributes defining the attributes for the given key.
1650
+ * @returns {AsyncTreatments} Treatments promise that resolves to the treatments object map.
1651
+ */
1652
+ getTreatmentsByFlagSets(key: SplitKey, flagSets: string[], attributes?: Attributes): AsyncTreatments,
1653
+ /**
1654
+ * 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.
1655
+ * For usage on NodeJS as we don't have only one key.
1656
+ * @function getTreatmentsWithConfigByFlagSets
1657
+ * @param {string} key - The string key representing the consumer.
1658
+ * @param {Array<string>} flagSets - An array of the flag set names we want to get the treatments.
1659
+ * @param {Attributes=} attributes - An object of type Attributes defining the attributes for the given key.
1660
+ * @returns {AsyncTreatmentsWithConfig} TreatmentsWithConfig promise that resolves to the TreatmentsWithConfig object.
1661
+ */
1662
+ getTreatmentsWithConfigByFlagSets(key: SplitKey, flagSets: string[], attributes?: Attributes): AsyncTreatmentsWithConfig,
1623
1663
  /**
1624
1664
  * Tracks an event to be fed to the results product on Split user interface, and returns a promise to signal when the event was successfully queued (or not).
1625
1665
  * @function track