Skip to content

Commit e83005f

Browse files
authored
Merge pull request #91 from splitio/iffu
Prepare release 0.10.0
2 parents 64a6258 + df25f31 commit e83005f

9 files changed

Lines changed: 30 additions & 26 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
run: npm run test
4545

4646
- name: npm build
47-
run: BUILD_BRANCH=$(echo "${GITHUB_REF#refs/heads/}") BUILD_COMMIT=${{ github.sha }} npm run build
47+
run: BUILD_BRANCH=$(echo "${GITHUB_REF#refs/heads/}") npm run build
4848

4949
- name: Store assets
5050
if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/development' || github.ref == 'refs/heads/main') }}

.github/workflows/sonar-scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
run: npm run check
3333

3434
- name: npm Build
35-
run: BUILD_BRANCH=$(echo "${GITHUB_REF#refs/heads/}") BUILD_COMMIT=${{ github.sha }} npm run build
35+
run: BUILD_BRANCH=$(echo "${GITHUB_REF#refs/heads/}") npm run build
3636

3737
- name: SonarQube Scan (Push)
3838
if: github.event_name == 'push'

CHANGES.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
0.10.0 (July 18, 2023)
2+
- Updated @splitsoftware/splitio-commons package to version 1.9.0 that includes minor improvements:
3+
- Updated streaming architecture implementation to apply feature flag updates from the notification received which is now enhanced, improving efficiency and reliability of the whole update system.
4+
15
0.9.6 (June 29, 2023)
26
- Updated some transitive dependencies for vulnerability fixes.
37
- Updated @splitsoftware/splitio-commons package to version 1.8.3 that includes:

package-lock.json

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@splitsoftware/splitio-browserjs",
3-
"version": "0.9.6",
3+
"version": "0.10.0",
44
"description": "Split SDK for JavaScript on Browser",
55
"main": "cjs/index.js",
66
"module": "esm/index.js",
@@ -26,7 +26,7 @@
2626
"build:esm": "rimraf esm && tsc -outDir esm && ./scripts/build_esm_replace_imports.sh",
2727
"build:cjs": "rimraf cjs && tsc -outDir cjs -m CommonJS && ./scripts/build_cjs_replace_imports.sh",
2828
"build:umd-visualizer": "rollup --config rollup.visualizer.config.js",
29-
"build:umd": "rollup --config rollup.ci.config.js --branch=$BUILD_BRANCH --commit_hash=$BUILD_COMMIT",
29+
"build:umd": "rollup --config rollup.ci.config.js --branch=$BUILD_BRANCH",
3030
"build:ga-to-split-autorequire": "terser ./node_modules/@splitsoftware/splitio-commons/src/integrations/ga/autoRequire.js --mangle --output ./scripts/ga-to-split-autorequire.js",
3131
"test": "npm run test:unit && npm run test:e2e",
3232
"test:unit": "jest",
@@ -64,7 +64,7 @@
6464
"bugs": "https://github.com/splitio/javascript-browser-client/issues",
6565
"homepage": "https://github.com/splitio/javascript-browser-client#readme",
6666
"dependencies": {
67-
"@splitsoftware/splitio-commons": "1.8.3",
67+
"@splitsoftware/splitio-commons": "1.9.0",
6868
"@types/google.analytics": "0.0.40",
6969
"unfetch": "^4.2.0"
7070
},

rollup.ci.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import terser from '@rollup/plugin-terser';
33

44
export default env => {
55

6-
const fileName = (outputSuffix) => `split-browser-${env.branch !== 'main' ? `dev-${env.commit_hash || VERSION}` : VERSION}${outputSuffix ? `.${outputSuffix}` : ''}`;
6+
const fileName = (outputSuffix) => `split-browser-${env.branch !== 'main' ? 'dev-' + VERSION : VERSION}${outputSuffix ? '.' + outputSuffix : ''}`;
77

88
const createRollupConfig = (input, outputSuffix) => ({
99
input,

src/__tests__/browserSuites/telemetry.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export default async function telemetryBrowserSuite(fetchMock, assert) {
7171

7272
// @TODO check if iDe value is correct
7373
assert.deepEqual(data, {
74-
mE: {}, hE: { sp: { 500: 1 }, ms: { 500: 1 } }, tR: 0, aR: 0, iQ: 4, iDe: 1, iDr: 0, spC: 31, seC: 1, skC: 1, eQ: 1, eD: 0, sE: [], t: []
74+
mE: {}, hE: { sp: { 500: 1 }, ms: { 500: 1 } }, tR: 0, aR: 0, iQ: 4, iDe: 1, iDr: 0, spC: 31, seC: 1, skC: 1, eQ: 1, eD: 0, sE: [], t: [], ufs: { sp: 0, ms: 0 }
7575
}, 'metrics/usage JSON payload should be the expected');
7676

7777
finish.next();
@@ -91,7 +91,7 @@ export default async function telemetryBrowserSuite(fetchMock, assert) {
9191
// @TODO check if iDe value is correct
9292
assert.deepEqual(data, {
9393
mL: {}, mE: {}, hE: {}, hL: {}, // errors and latencies were popped
94-
tR: 0, aR: 0, iQ: 4, iDe: 1, iDr: 0, spC: 31, seC: 1, skC: 1, eQ: 1, eD: 0, sE: [], t: []
94+
tR: 0, aR: 0, iQ: 4, iDe: 1, iDr: 0, spC: 31, seC: 1, skC: 1, eQ: 1, eD: 0, sE: [], t: [], ufs: { sp: 0, ms: 0 }
9595
}, '2nd metrics/usage JSON payload should be the expected');
9696
return 200;
9797
});

src/settings/defaults.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { LogLevels, isLogLevelString } from '@splitsoftware/splitio-commons/src/
22
import { ConsentStatus, LogLevel } from '@splitsoftware/splitio-commons/src/types';
33
import { CONSENT_GRANTED } from '@splitsoftware/splitio-commons/src/utils/constants';
44

5-
const packageVersion = '0.9.6';
5+
const packageVersion = '0.10.0';
66

77
/**
88
* In browser, the default debug level, can be set via the `localStorage.splitio_debug` item.

types/splitio.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ interface ILoggerAPI {
137137
*/
138138
interface IUserConsentAPI {
139139
/**
140-
* Set or update the user consent status. Possible values are `true` and `false`, which represent user consent `'GRANTED'` and `'DECLINED'` respectively.
140+
* Sets or updates the user consent status. Possible values are `true` and `false`, which represent user consent `'GRANTED'` and `'DECLINED'` respectively.
141141
* - `true ('GRANTED')`: the user has granted consent for tracking events and impressions. The SDK will send them to Split cloud.
142142
* - `false ('DECLINED')`: the user has declined consent for tracking events and impressions. The SDK will not send them to Split cloud.
143143
*
@@ -149,7 +149,7 @@ interface IUserConsentAPI {
149149
*/
150150
setStatus(userConsent: boolean): boolean;
151151
/**
152-
* Get the user consent status.
152+
* Gets the user consent status.
153153
*
154154
* @function getStatus
155155
* @returns {ConsentStatus} The user consent status.

0 commit comments

Comments
 (0)