Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
981a1c0
implementation
EmilianoSanchez Nov 4, 2021
a4584ec
polishing
EmilianoSanchez Nov 5, 2021
f4ebb8f
revert some refactors
EmilianoSanchez Nov 5, 2021
9dfccd7
renamed PluggableStorage --> CustomStorage
EmilianoSanchez Nov 5, 2021
6b208b5
Revert "renamed PluggableStorage --> CustomStorage"
EmilianoSanchez Nov 5, 2021
1e668a5
polishing
EmilianoSanchez Nov 10, 2021
c5ad75c
handling storage.destroy async
EmilianoSanchez Nov 10, 2021
7fe07cc
polishing
EmilianoSanchez Nov 10, 2021
09689dc
polishing
EmilianoSanchez Nov 10, 2021
d872203
added some tests
EmilianoSanchez Nov 11, 2021
a9774f3
fixed listener test
EmilianoSanchez Nov 11, 2021
bfe62da
implementation and tests
EmilianoSanchez Nov 11, 2021
e7918dd
added comment
EmilianoSanchez Nov 11, 2021
ee3b142
impressions dedup
EmilianoSanchez Nov 12, 2021
1e1b3be
handling log errors in storage validation
EmilianoSanchez Nov 12, 2021
e655d71
polishing
EmilianoSanchez Nov 12, 2021
510b03a
polishing
EmilianoSanchez Nov 17, 2021
133d057
renamed wrapper.close to wrapper.disconnect
EmilianoSanchez Nov 17, 2021
1b81254
renamed CustomStorage to PluggableStorage
EmilianoSanchez Nov 22, 2021
5c675d2
Merge pull request #61 from splitio/consumer_mode_partial
EmilianoSanchez Nov 24, 2021
721407e
Merge pull request #60 from splitio/consumer_mode_client_side
EmilianoSanchez Nov 24, 2021
f68fe6b
upgraded ioredis for vulnerability fix
EmilianoSanchez Dec 1, 2021
4ada05a
removed NodeJS types
EmilianoSanchez Dec 2, 2021
4de6898
removed EventSource DOM type
EmilianoSanchez Dec 2, 2021
c1ebd25
fixed type
EmilianoSanchez Dec 9, 2021
8be0a3c
fix: prevent returning null dynamic config if treatment name contains…
EmilianoSanchez Dec 20, 2021
b40d1fe
updated MinEvents default export to prevent issue with Webpack
EmilianoSanchez Dec 20, 2021
642665e
fixed type check
EmilianoSanchez Dec 20, 2021
e5651b8
polishing
EmilianoSanchez Dec 21, 2021
dfe5936
prepare release
EmilianoSanchez Dec 21, 2021
334da0a
Merge pull request #62 from splitio/consumer_mode_polishing
EmilianoSanchez Dec 21, 2021
a95573d
updated README
EmilianoSanchez Dec 21, 2021
31e4d3c
Merge pull request #63 from splitio/SDKS-5391
EmilianoSanchez Dec 22, 2021
53b3a88
replaced default exports with named exports, and replaced object-assi…
EmilianoSanchez Jan 3, 2022
605b119
prepare rc
EmilianoSanchez Jan 3, 2022
9875f6b
polish log message 'Connecting to streaming'
EmilianoSanchez Jan 5, 2022
dbe54ed
Merge pull request #65 from splitio/CJS_and_ESM_interop_issues
EmilianoSanchez Jan 6, 2022
f4dac51
Merge branch 'development' into release_v1.1.0
EmilianoSanchez Jan 7, 2022
537aae8
updated readme
EmilianoSanchez Jan 7, 2022
c660e81
updated release date and licence.txt
EmilianoSanchez Jan 11, 2022
9b66749
Merge pull request #64 from splitio/release_v1.1.0
EmilianoSanchez Jan 11, 2022
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
9 changes: 5 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
],
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
"@typescript-eslint",
"import"
],

"env": {
Expand All @@ -15,10 +16,8 @@

"globals": {
// global TS types
"EventSource": "readonly", // @TODO remove. Configure as a type declaration
"MessageEvent": "readonly", // @TODO remove. Configure as a type declaration
"Event": "readonly", // @TODO remove. Configure as a type declaration
"NodeJS": "readonly",
"UniversalAnalytics": "readonly" // @TODO remove when moving GA integrations to Browser-SDK
},

Expand Down Expand Up @@ -81,7 +80,9 @@
}
],
"compat/compat": ["error", "defaults, not ie < 10, not node < 6"],
"no-throw-literal": "error"
"no-throw-literal": "error",
"import/no-default-export": "error",
"import/no-self-import": "error"
},
"parserOptions": {
"ecmaVersion": 2015,
Expand Down
13 changes: 10 additions & 3 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
1.1.0 (January 11, 2022)
- Added support for the SDK to run in "consumer" and "partial consumer" modes, with a pluggable implementation of it's internal storage, enabling
customers to implement this caching with any storage technology of choice and connect it to the SDK instance to be used instead of its default in-memory storage.
- Updated multiple modules due to general polishing and improvements, including the replacement of default exports with named exports, to avoid runtime errors with some particular configurations of Webpack projects.
- Updated ioredis dependency for vulnerability fixes.
- Bugfixing - Fixed issue returning dynamic configs if treatment name contains a dot (".").

1.0.0 (October 20, 2021)
- BREAKING CHANGE on multiple modules due to general polishing, improvements and bug fixes. In most cases the change is to use named exports. This affected mostly modules related with synchronization and storages.
- BREAKING CHANGE on multiple modules due to general polishing, improvements and bug fixes. In most cases the change is to use named exports. This affected mostly modules related with synchronization and storages.
- Updated streaming logic to use the newest version of our streaming service, including:
- Integration with Auth service V2, connecting to the new channels and applying the received connection delay.
- Implemented handling of the new MySegmentsV2 notification types (SegmentRemoval, KeyList, Bounded and Unbounded)
- New control notification for environment scoped streaming reset.
- Updated localhost mode to emit SDK_READY_FROM_CACHE event in Browser when using localStorage (Related to issue https://github.com/splitio/react-client/issues/34).
- Updated dependencies for vulnerability fixes.
- Updated localhost mode to emit SDK_READY_FROM_CACHE event in Browser when using localStorage (Related to issue https://github.com/splitio/react-client/issues/34).
- Updated dependencies for vulnerability fixes.

0.1.0 (March 30, 2021)
- Initial public release. It includes common modules to be consumed by the different Split implementations written in JavaScript. Based on the original JS SDK in the `javascript-client` repository.
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright © 2021 Split Software, Inc.
Copyright © 2022 Split Software, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Split Javascript SDK common components

[![npm version](https://badge.fury.io/js/%40splitsoftware%2Fsplitio-commons.svg)](https://badge.fury.io/js/%40splitsoftware%2Fsplitio) [![Build Status](https://travis-ci.com/splitio/javascript-commons.svg?branch=main)](https://travis-ci.com/splitio/javascript-commons)
[![npm version](https://badge.fury.io/js/%40splitsoftware%2Fsplitio-commons.svg)](https://badge.fury.io/js/%40splitsoftware%2Fsplitio-commons) [![Build Status](https://github.com/splitio/javascript-commons/actions/workflows/ci.yml/badge.svg)](https://github.com/splitio/javascript-commons/actions/workflows/ci.yml)

## Overview
This library 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.
Expand Down Expand Up @@ -30,8 +30,8 @@ Split has built and maintains SDKs for:
* iOS [Github](https://github.com/splitio/ios-client) [Docs](https://help.split.io/hc/en-us/articles/360020401491-iOS-SDK)
* Java [Github](https://github.com/splitio/java-client) [Docs](https://help.split.io/hc/en-us/articles/360020405151-Java-SDK)
* Javascript [Github](https://github.com/splitio/javascript-client) [Docs](https://help.split.io/hc/en-us/articles/360020448791-JavaScript-SDK)
* Node [Github](https://github.com/splitio/javascript-client) [Docs](https://help.split.io/hc/en-us/articles/360020564931-Node-js-SDK)
* Javascript for Browser [Github](https://github.com/splitio/javascript-browser-client) [Docs](https://help.split.io/hc/en-us/articles/360058730852-Browser-SDK)
* Node [Github](https://github.com/splitio/javascript-client) [Docs](https://help.split.io/hc/en-us/articles/360020564931-Node-js-SDK)
* PHP [Github](https://github.com/splitio/php-client) [Docs](https://help.split.io/hc/en-us/articles/360020350372-PHP-SDK)
* Python [Github](https://github.com/splitio/python-client) [Docs](https://help.split.io/hc/en-us/articles/360020359652-Python-SDK)
* React [Github](https://github.com/splitio/react-client) [Docs](https://help.split.io/hc/en-us/articles/360038825091-React-SDK)
Expand Down
Loading