Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
11.7.1 (October 8, 2025)
- Bugfix - Updated @splitsoftware/splitio-commons package to version 2.7.1, which fixes the `debug` option to support log levels when the `logger` option is used.

11.7.0 (October 7, 2025)
- Added support for custom loggers: added `logger` configuration option and `factory.Logger.setLogger` method to allow the SDK to use a custom logger.
- Updated @splitsoftware/splitio-commons package to version 2.7.0.
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@splitsoftware/splitio",
"version": "11.7.0",
"version": "11.7.1",
"description": "Split SDK",
"files": [
"README.md",
Expand Down Expand Up @@ -38,7 +38,7 @@
"node": ">=14.0.0"
},
"dependencies": {
"@splitsoftware/splitio-commons": "2.7.0",
"@splitsoftware/splitio-commons": "2.7.1",
"bloom-filters": "^3.0.4",
"ioredis": "^4.28.0",
"js-yaml": "^3.13.1",
Expand Down
10 changes: 7 additions & 3 deletions src/__tests__/offline/node.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ tape('Node.js Offline Mode', function (t) {

const factory = SplitFactory({
...config,
debug: 'ERROR', // enable logs to check the message. If logger is provided, any log level different than 'NONE' will be overridden to 'DEBUG'.
core: {
...config.core,
key: 'ignored' // just set to log a warning
},
debug: 'INFO', // enable logs to check the message.
logger: console // use console as custom logger.
});
const client = factory.client();
Expand All @@ -92,9 +96,9 @@ tape('Node.js Offline Mode', function (t) {
assert.pass('If tried to load a file with invalid extension, we should emit SDK_READY_TIMED_OUT.');

assert.ok(console.error.calledWithMatch(`splitio => sync:offline: There was an issue loading the mock feature flags data. No changes will be applied to the current cache. Error: Invalid extension specified for feature flags mock file. Accepted extensions are ".yml" and ".yaml". Your specified file is ${config.features}`));
assert.notOk(console.warn.called, 'warn should not be called');
assert.ok(console.warn.calledWithMatch('splitio => Provided `key` is ignored in server-side SDK.'));
assert.ok(console.info.called, 'info should be called');
assert.ok(console.debug.called, 'debug should be called');
assert.notOk(console.debug.called, 'debug should not be called');

console.error.restore();
console.warn.restore();
Expand Down
2 changes: 1 addition & 1 deletion src/settings/defaults/version.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const packageVersion = '11.7.0';
export const packageVersion = '11.7.1';