@splitsoftware/splitio 10.26.1-rc.3 → 10.26.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,5 +1,6 @@
1
- 10.26.1 (June 13, 2024)
1
+ 10.26.1 (June 14, 2024)
2
2
  - Updated the internal imports of 'os' and 'ioredis' modules for NodeJS, to use EcmaScript 'import' rather than CommonJS 'require' for the ES modules build. This avoids runtime errors on some scenarios when bundling the SDK into a .mjs file or importing it from a .mjs file.
3
+ - Updated eventsource dependency for NodeJS. The eventsource v1.1.2 dependency was removed, and the SDK now uses an embedded adaptation that can accept an HTTP(S) agent option, like other HTTP(S) requests.
3
4
  - Updated @splitsoftware/splitio-commons package to version 1.16.0 that includes some vulnerability and bug fixes.
4
5
  - Bugfixing - Restored some input validation error logs that were removed in version 10.24.0. The logs inform the user when the `getTreatment(s)` methods are called with an invalid value as feature flag name or flag set name.
5
6
  - Bugfixing - Fixed localhost mode to emit SDK_UPDATE when mocked feature flags are updated in the `features` object map of the config object (Related to issue https://github.com/splitio/javascript-browser-client/issues/119).
@@ -1 +1 @@
1
- export var packageVersion = '10.26.1-rc.3';
1
+ export var packageVersion = '10.26.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.26.1-rc.3';
4
+ exports.packageVersion = '10.26.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@splitsoftware/splitio",
3
- "version": "10.26.1-rc.3",
3
+ "version": "10.26.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.15.1-rc.3",
43
+ "@splitsoftware/splitio-commons": "1.16.0",
44
44
  "@types/google.analytics": "0.0.40",
45
45
  "@types/ioredis": "^4.28.0",
46
46
  "bloom-filters": "^3.0.0",
@@ -82,7 +82,7 @@ function EventSource(url, eventSourceInitDict) {
82
82
  function onConnectionClosed(message) {
83
83
  if (readyState === EventSource.CLOSED) return;
84
84
  readyState = EventSource.CONNECTING;
85
- _emit('error', new Event('error', {message: message}));
85
+ _emit('error', new Event('error', { message: message }));
86
86
 
87
87
  // The url may have been changed by a temporary redirect. If that's the case,
88
88
  // revert it now, and flag that we are no longer pointing to a new origin
@@ -177,7 +177,7 @@ function EventSource(url, eventSourceInitDict) {
177
177
  self.connectionInProgress = false;
178
178
  // Handle HTTP errors
179
179
  if (res.statusCode === 500 || res.statusCode === 502 || res.statusCode === 503 || res.statusCode === 504) {
180
- _emit('error', new Event('error', {status: res.statusCode, message: res.statusMessage}));
180
+ _emit('error', new Event('error', { status: res.statusCode, message: res.statusMessage }));
181
181
  onConnectionClosed();
182
182
  return;
183
183
  }
@@ -187,7 +187,7 @@ function EventSource(url, eventSourceInitDict) {
187
187
  var location = res.headers.location;
188
188
  if (!location) {
189
189
  // Server sent redirect response without Location header.
190
- _emit('error', new Event('error', {status: res.statusCode, message: res.statusMessage}));
190
+ _emit('error', new Event('error', { status: res.statusCode, message: res.statusMessage }));
191
191
  return;
192
192
  }
193
193
  var prevOrigin = getOrigin(url);
@@ -200,7 +200,7 @@ function EventSource(url, eventSourceInitDict) {
200
200
  }
201
201
 
202
202
  if (res.statusCode !== 200) {
203
- _emit('error', new Event('error', {status: res.statusCode, message: res.statusMessage}));
203
+ _emit('error', new Event('error', { status: res.statusCode, message: res.statusMessage }));
204
204
  return self.close();
205
205
  }
206
206
 
@@ -386,9 +386,9 @@ EventSource.prototype.constructor = EventSource; // make stacktraces readable
386
386
  /**
387
387
  * Ready states
388
388
  */
389
- Object.defineProperty(EventSource, 'CONNECTING', {enumerable: true, value: 0});
390
- Object.defineProperty(EventSource, 'OPEN', {enumerable: true, value: 1});
391
- Object.defineProperty(EventSource, 'CLOSED', {enumerable: true, value: 2});
389
+ Object.defineProperty(EventSource, 'CONNECTING', { enumerable: true, value: 0 });
390
+ Object.defineProperty(EventSource, 'OPEN', { enumerable: true, value: 1 });
391
+ Object.defineProperty(EventSource, 'CLOSED', { enumerable: true, value: 2 });
392
392
 
393
393
  EventSource.prototype.CONNECTING = 0;
394
394
  EventSource.prototype.OPEN = 1;
@@ -1 +1 @@
1
- export const packageVersion = '10.26.1-rc.3';
1
+ export const packageVersion = '10.26.1';