Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.6.0 #184

Merged
merged 7 commits into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from 5 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
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.11.1
v20.13.1
7 changes: 7 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2.6.0 (May 15, 2024)
- Updated @splitsoftware/splitio package to version 10.26.0 that includes:
- Added support for targeting rules based on semantic versions (https://semver.org/).
- Added special impression label "targeting rule type unsupported by sdk" when the matcher type is not supported by the SDK, which returns 'control' treatment.
- Updated Split API client to include the flags spec version query parameter for the `splitChanges` and `auth` endpoints.
- Updated base image to node:20.13.1-alpine3.19

2.5.1 (Mar 14, 2024)
- Updated @splitsoftware/splitio package to version 10.25.1 that includes:
- Updated @splitsoftware/splitio-commons package to version 1.13.1 that includes vulnerability fixes, flag sets support, and other improvements.
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Builder stage
FROM node:20.11.1-alpine3.19 AS builder
FROM node:20.13.1-alpine3.19 AS builder

WORKDIR /usr/src/split-evaluator

Expand All @@ -8,7 +8,7 @@ COPY package.json package-lock.json ./
RUN npm install --only=production

# Runner stage
FROM node:20.11.1-alpine3.19 AS runner
FROM node:20.13.1-alpine3.19 AS runner

WORKDIR /usr/src/split-evaluator

Expand Down
2 changes: 1 addition & 1 deletion client/__tests__/treatmentsByFlagSets.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { expectedGreenResults, expectedPurpleResults, expectedPinkResults } = req
jest.mock('node-fetch', () => {
return jest.fn().mockImplementation((url) => {

const sdkUrl = 'https://sdk.test.io/api/splitChanges?since=-1';
const sdkUrl = 'https://sdk.test.io/api/splitChanges?s=1.1&since=-1';
const splitChange2 = require('../../utils/mocks/splitchanges.since.-1.till.1602796638344.json');
if (url.startsWith(sdkUrl)) return Promise.resolve({ status: 200, json: () => (splitChange2), ok: true });

Expand Down
2 changes: 1 addition & 1 deletion client/__tests__/treatmentsWithConfigByFlagSets.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { expectedGreenResultsWithConfig, expectedPurpleResultsWithConfig, expecte

jest.mock('node-fetch', () => {
return jest.fn().mockImplementation((url) => {
const sdkUrl = 'https://sdk.test.io/api/splitChanges?since=-1';
const sdkUrl = 'https://sdk.test.io/api/splitChanges?s=1.1&since=-1';
const splitChange2 = require('../../utils/mocks/splitchanges.since.-1.till.1602796638344.json');
if (url.startsWith(sdkUrl)) return Promise.resolve({ status: 200, json: () => (splitChange2), ok: true});
return Promise.resolve({ status: 200, json: () => ({}), ok: true });
Expand Down
2 changes: 1 addition & 1 deletion environmentManager/__tests__/manager.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const app = require('../../app');
jest.mock('node-fetch', () => {
return jest.fn().mockImplementation((url) => {

const sdkUrl = 'https://sdk.test.io/api/splitChanges?since=-1';
const sdkUrl = 'https://sdk.test.io/api/splitChanges?s=1.1&since=-1';
const splitChange2 = require('../../utils/mocks/splitchanges.since.-1.till.1602796638344.json');
if (url.startsWith(sdkUrl)) return Promise.resolve({ status: 200, json: () => (splitChange2), ok: true });

Expand Down
Loading