@splitsoftware/splitio 10.28.1-rc.0 → 10.28.1-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.28.1-rc.0';
1
+ export var packageVersion = '10.28.1-rc.2';
@@ -4,12 +4,14 @@ import { LocalhostFromFile } from '../sync/offline/LocalhostFromFile';
4
4
  import { defaults } from './defaults/node';
5
5
  import { validateStorage } from './storage/node';
6
6
  import { validateRuntime } from './runtime/node';
7
+ var FLAG_SPEC_VERSION = '1.1';
7
8
  var params = {
8
9
  defaults: defaults,
9
10
  runtime: validateRuntime,
10
11
  storage: validateStorage,
11
12
  logger: validateLogger,
12
13
  localhost: function () { return LocalhostFromFile(); },
14
+ flagSpec: function () { return FLAG_SPEC_VERSION; }
13
15
  // In Node.js the SDK ignores `config.integrations`, so a validator for integrations is not required
14
16
  };
15
17
  export function settingsFactory(config) {
@@ -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.28.1-rc.0';
4
+ exports.packageVersion = '10.28.1-rc.2';
@@ -7,12 +7,14 @@ var LocalhostFromFile_1 = require("../sync/offline/LocalhostFromFile");
7
7
  var node_1 = require("./defaults/node");
8
8
  var node_2 = require("./storage/node");
9
9
  var node_3 = require("./runtime/node");
10
+ var FLAG_SPEC_VERSION = '1.1';
10
11
  var params = {
11
12
  defaults: node_1.defaults,
12
13
  runtime: node_3.validateRuntime,
13
14
  storage: node_2.validateStorage,
14
15
  logger: builtinLogger_1.validateLogger,
15
16
  localhost: function () { return (0, LocalhostFromFile_1.LocalhostFromFile)(); },
17
+ flagSpec: function () { return FLAG_SPEC_VERSION; }
16
18
  // In Node.js the SDK ignores `config.integrations`, so a validator for integrations is not required
17
19
  };
18
20
  function settingsFactory(config) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@splitsoftware/splitio",
3
- "version": "10.28.1-rc.0",
3
+ "version": "10.28.1-rc.2",
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.17.1-rc.0",
43
+ "@splitsoftware/splitio-commons": "1.17.1-rc.1",
44
44
  "@types/google.analytics": "0.0.40",
45
45
  "@types/ioredis": "^4.28.0",
46
46
  "bloom-filters": "^3.0.0",
@@ -1 +1 @@
1
- export const packageVersion = '10.28.1-rc.0';
1
+ export const packageVersion = '10.28.1-rc.2';
@@ -6,12 +6,15 @@ import { defaults } from './defaults/node';
6
6
  import { validateStorage } from './storage/node';
7
7
  import { validateRuntime } from './runtime/node';
8
8
 
9
+ const FLAG_SPEC_VERSION = '1.1';
10
+
9
11
  const params = {
10
12
  defaults,
11
13
  runtime: validateRuntime,
12
14
  storage: validateStorage,
13
15
  logger: validateLogger,
14
16
  localhost: () => LocalhostFromFile(),
17
+ flagSpec: () => FLAG_SPEC_VERSION
15
18
  // In Node.js the SDK ignores `config.integrations`, so a validator for integrations is not required
16
19
  };
17
20
 
@@ -491,6 +491,12 @@ interface IBasicSDK {
491
491
  * @property Logger
492
492
  */
493
493
  Logger: ILoggerAPI
494
+ /**
495
+ * Destroys all the clients created by this factory.
496
+ * @function destroy
497
+ * @returns {Promise<void>}
498
+ */
499
+ destroy(): Promise<void>
494
500
  }
495
501
  /****** Exposed namespace ******/
496
502
  /**