Skip to content

Commit 153fcd1

Browse files
Merge pull request #85 from splitio/dw_replace_terms
[DW] Replace 'split', 'api key' and 'web console' terms
2 parents 4fdbb8d + ccd88d8 commit 153fcd1

10 files changed

Lines changed: 121 additions & 129 deletions

File tree

CHANGES.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
0.9.5 (May 15, 2023)
2+
- Updated @splitsoftware/splitio-commons package to version 1.8.2 that includes minor improvements.
3+
- Updated terminology on the SDKs codebase to be more aligned with current standard without causing a breaking change. The core change is the term split for feature flag on things like logs and IntelliSense comments.
4+
- Updated split storage modules to optimize some operations when using Redis and pluggable storages.
5+
- Updated some transitive dependencies for vulnerability fixes.
6+
17
0.9.4 (May 4, 2023)
28
- Updated some transitive dependencies for vulnerability fixes.
39
- Bugfixing - Updated `unfetch` package as a runtime dependency, required when using the "full" entrypoint (`import { SplitFactory } from '@splitsoftware/splitio-browserjs/full'`).
@@ -16,7 +22,7 @@
1622
0.9.0 (October 5, 2022)
1723
- Added a new impressions mode for the SDK called NONE, to be used in factory when there is no desire to capture impressions on an SDK factory to feed Split's analytics engine. Running NONE mode, the SDK will only capture unique keys evaluated for a particular feature flag instead of full blown impressions.
1824
- Updated default value of `scheduler.featuresRefreshRate` config parameter from 30 seconds to 60 seconds.
19-
- Updated @splitsoftware/splitio-commons package to version 1.7.1, that improves the performance of split evaluations (i.e., `getTreatment(s)` method calls) when using the default storage in memory, among other improvements.
25+
- Updated @splitsoftware/splitio-commons package to version 1.7.1, that improves the performance of feature flag evaluations (i.e., `getTreatment(s)` method calls) when using the default storage in memory, among other improvements.
2026

2127
0.8.0 (July 22, 2022)
2228
- Added `autoRequire` configuration option to the Google Analytics to Split integration, which takes care of requiring the splitTracker plugin on trackers dynamically created by Google tag managers (See https://help.split.io/hc/en-us/articles/360040838752#set-up-with-gtm-and-gtag.js).
@@ -25,7 +31,7 @@
2531
- Updated some dependencies for vulnerability fixes.
2632

2733
0.7.0 (June 29, 2022)
28-
- Added a new config option to control the tasks that listen or poll for updates on feature flags and segments, via the new config sync.enabled . Running online Split will always pull the most recent updates upon initialization, this only affects updates fetching on a running instance. Useful when a consistent session experience is a must or to save resources when updates are not being used.
34+
- Added a new config option to control the tasks that listen or poll for updates on feature flags and segments, via the new config sync.enabled . Running online, Split will always pull the most recent updates upon initialization, this only affects updates fetching on a running instance. Useful when a consistent session experience is a must or to save resources when updates are not being used.
2935
- Updated telemetry logic to track the anonymous config for user consent flag set to declined or unknown.
3036
- Updated submitters logic, to avoid duplicating the post of impressions to Split cloud when the SDK is destroyed while its periodic post of impressions is running.
3137
- Bugfixing - Updated submitters logic, to avoid dropping impressions and events that are being tracked while POST request is pending.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![npm version](https://badge.fury.io/js/%40splitsoftware%2Fsplitio-browserjs.svg)](https://badge.fury.io/js/%40splitsoftware%2Fsplitio-browserjs) [![Build Status](https://github.com/splitio/javascript-browser-client/actions/workflows/ci-cd.yml/badge.svg)](https://github.com/splitio/javascript-browser-client/actions/workflows/ci-cd.yml)
44

55
## Overview
6-
This SDK is designed to work with Split, the platform for controlled rollouts, which serves features to your users via a Split feature flag to manage your complete customer experience.
6+
This SDK is designed to work with Split, the platform for controlled rollouts, which serves features to your users via feature flags to manage your complete customer experience.
77

88
[![Twitter Follow](https://img.shields.io/twitter/follow/splitsoftware.svg?style=social&label=Follow&maxAge=1529000)](https://twitter.com/intent/follow?screen_name=splitsoftware)
99

@@ -21,7 +21,7 @@ import { SplitFactory } from '@splitsoftware/splitio-browserjs';
2121
// Instantiate the SDK
2222
var factory = SplitFactory({
2323
core: {
24-
authorizationKey: 'YOUR_SDK_API_KEY',
24+
authorizationKey: 'YOUR_SDK_KEY',
2525
key: 'CUSTOMER_ID'
2626
}
2727
});
@@ -31,7 +31,7 @@ var client = factory.client();
3131

3232
// Set a callback to listen for the SDK_READY event, to make sure the SDK is properly loaded before asking for a treatment
3333
client.on(client.Event.SDK_READY, function() {
34-
var treatment = client.getTreatment('SPLIT_NAME');
34+
var treatment = client.getTreatment('FEATURE_FLAG_NAME');
3535
if (treatment == 'on') {
3636
// insert code here for on treatment
3737
} else if (treatment == 'off') {

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@splitsoftware/splitio-browserjs",
3-
"version": "0.9.4",
3+
"version": "0.9.5-rc.0",
44
"description": "Split SDK for JavaScript on Browser",
55
"main": "cjs/index.js",
66
"module": "esm/index.js",
@@ -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.1",
67+
"@splitsoftware/splitio-commons": "1.8.2-rc.2",
6868
"@types/google.analytics": "0.0.40",
6969
"unfetch": "^4.2.0"
7070
},

src/__tests__/consumer/browser_consumer.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const timeFrame = Date.now();
2222
/** @type SplitIO.IBrowserAsyncSettings */
2323
const config = {
2424
core: {
25-
authorizationKey: 'SOME API KEY', // in consumer mode, api key is only used to identify the sdk instance
25+
authorizationKey: 'SOME SDK KEY', // in consumer mode, SDK key is only used to identify the sdk instance
2626
key: 'UT_Segment_member'
2727
},
2828
mode: 'consumer',

src/__tests__/consumer/browser_consumer_partial.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const TOTAL_EVENTS = 5;
2020
/** @type SplitIO.IBrowserAsyncSettings */
2121
const config = {
2222
core: {
23-
authorizationKey: 'SOME API KEY', // in consumer mode, api key is only used to identify the sdk instance
23+
authorizationKey: 'SOME SDK KEY', // in consumer mode, SDK key is only used to identify the sdk instance
2424
key: 'UT_Segment_member'
2525
},
2626
mode: 'consumer_partial',

src/index.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
/**
2-
Copyright 2022 Split Software
3-
4-
Licensed under the Apache License, Version 2.0 (the "License");
5-
you may not use this file except in compliance with the License.
6-
You may obtain a copy of the License at
7-
8-
http://www.apache.org/licenses/LICENSE-2.0
9-
10-
Unless required by applicable law or agreed to in writing, software
11-
distributed under the License is distributed on an "AS IS" BASIS,
12-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
See the License for the specific language governing permissions and
14-
limitations under the License.
15-
**/
16-
171
export { SplitFactory } from './splitFactory';
182
export { InLocalStorage } from '@splitsoftware/splitio-commons/src/storages/inLocalStorage/index';
193
export { GoogleAnalyticsToSplit } from '@splitsoftware/splitio-commons/src/integrations/ga/GoogleAnalyticsToSplit';

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.4';
5+
const packageVersion = '0.9.5-rc.0';
66

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

ts-tests/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ browserSettings = {
174174
// For browser with async storage
175175
browserAsyncSettings = {
176176
core: {
177-
authorizationKey: 'api-key',
177+
authorizationKey: 'sdk-key',
178178
key: 'customer-key'
179179
},
180180
mode: 'consumer',

0 commit comments

Comments
 (0)