Skip to content

Commit 37f2a91

Browse files
authored
Merge pull request #40 from splitio/development
Release v1.0.2
2 parents 8a2e04c + f8ef0f1 commit 37f2a91

File tree

10 files changed

+95
-76
lines changed

10 files changed

+95
-76
lines changed

CHANGES.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
1.0.1 (January 12, 2023)
1+
1.0.2 (May 16, 2023)
2+
- 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 JSDocs tags.
3+
4+
1.0.1 (Jan 12, 2023)
25
- Explicitly added ngsw-bypass parameter into streaming url to avoid issues with default Angular service workers configurations
36
- Updated @splitsoftware/splitio-browserjs package to version 0.9.2, which includes:
47
- Updated some transitive dependencies for vulnerability fixes.
58
- Bugfixing - Upgrade @splitsoftware/splitio-commons package to version 1.7.3 which includes a memory leak fix for localhost mode (Related to issue https://github.com/splitio/javascript-commons/issues/181) among other improvements.
69

7-
1.0.0 (December 15, 2022)
10+
1.0.0 (Dec 15, 2022)
811
- Updated the minimum angular version to match Angular's support up to date. Breaking change version is regarding the angular minimum version update, there are no breaking changes to Split's plugin API or functionality itself.
912

10-
0.4.0 (October 5, 2022)
13+
0.4.0 (Oct 5, 2022)
1114
- 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.
1215
- Updated default value of `scheduler.featuresRefreshRate` config parameter from 30 seconds to 60 seconds.
1316
- Updated @splitsoftware/splitio-browserjs package to version 0.9.0, which includes:

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
This repository contains utilities for the Angular framework, that integrates with Split JS SDK and offers an integrated experience with the Angular framework
33

44
## Overview
5-
This utilities are 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.
5+
This utilities are 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.
66

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

@@ -27,11 +27,11 @@ export class AppComponent implements OnInit {
2727
// Subscribe to init to make sure the SDK is properly loaded before asking for a treatment
2828
this.splitio.init({
2929
core: {
30-
authorizationKey: 'YOUR_SDK_API_KEY',
30+
authorizationKey: 'YOUR_SDK_KEY',
3131
key: 'CUSTOMER_ID'
3232
}
3333
}).subscribe(() => {
34-
var treatment = this.splitio.getTreatment('SPLIT_NAME');
34+
var treatment = this.splitio.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: 33 additions & 19 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-angular",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Split Angular utilities to simplify Split SDK browser client usage",
55
"scripts": {
66
"ng": "ng",
@@ -16,7 +16,7 @@
1616
"npm_pack": "cd dist && npm pack",
1717
"package": "npm run lint && npm run build_lib && npm run cp && npm run npm_pack",
1818
"lint": "ng lint",
19-
"publish:rc": "npm run lint && npm run build_lib && npm run cp && npm publish dist --tag rc",
19+
"publish:rc": "npm run lint && npm run build_lib && npm run cp && cd dist && npm publish --tag rc",
2020
"publish:stable": "npm run lint && npm run build_lib && npm run cp && npm publish dist"
2121
},
2222
"repository": {
@@ -53,7 +53,7 @@
5353
"@angular-eslint/eslint-plugin-template": "13.5.0",
5454
"@angular-eslint/schematics": "13.5.0",
5555
"@angular-eslint/template-parser": "13.5.0",
56-
"@splitsoftware/splitio-browserjs": "0.9.2",
56+
"@splitsoftware/splitio-browserjs": "0.9.5",
5757
"@types/jest": "^27.4.1",
5858
"@typescript-eslint/eslint-plugin": "5.27.1",
5959
"@typescript-eslint/parser": "5.27.1",

projects/splitio/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-angular",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Split Angular utilities to simplify Split SDK browser client usage",
55
"repository": {
66
"type": "git",
@@ -21,7 +21,7 @@
2121
"bugs": "https://github.com/splitio/angular-sdk-plugin/issues",
2222
"homepage": "https://github.com/splitio/angular-sdk-plugin#readme",
2323
"dependencies": {
24-
"@splitsoftware/splitio-browserjs": "^0.9.2"
24+
"@splitsoftware/splitio-browserjs": "0.9.5"
2525
},
2626
"peerDependencies": {
2727
"@angular/core": ">=13.3.0",

projects/splitio/src/lib/__tests__/mocks/SplitView.mock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const mockedSplitView = [
1+
export const mockedFeatureFlagView = [
22
{
33
'changeNumber': 0,
44
'configs': {},

projects/splitio/src/lib/__tests__/splitio.service.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { SplitService } from '../splitio.service';
2-
import { mockedSplitView } from './mocks/SplitView.mock';
2+
import { mockedFeatureFlagView } from './mocks/SplitView.mock';
33
import { config, localhostConfig } from './testUtils/sdkConfigs';
44

55
describe('SplitService', () => {
@@ -253,10 +253,10 @@ describe('SplitService', () => {
253253
service.init(localhostConfig);
254254
service.sdkReady$.subscribe(() => {
255255
// @ts-ignore
256-
expect(service.getSplits()).toEqual(mockedSplitView);
257-
expect(service.getSplitNames()).toEqual(mockedSplitView.map(split => split.name));
256+
expect(service.getSplits()).toEqual(mockedFeatureFlagView);
257+
expect(service.getSplitNames()).toEqual(mockedFeatureFlagView.map(split => split.name));
258258
// @ts-ignore
259-
expect(service.getSplit('test_split2')).toEqual(mockedSplitView[1]);
259+
expect(service.getSplit('test_split2')).toEqual(mockedFeatureFlagView[1]);
260260
expect(service.getSplit('nonexistent_split')).toBeNull();
261261
done();
262262
});

0 commit comments

Comments
 (0)