Skip to content

Conversation

@matthewelwell
Copy link
Contributor

@matthewelwell matthewelwell commented Jun 1, 2022

No description provided.

dabeeeenster and others added 4 commits June 1, 2022 10:46
* feat: initial sdk rewrite

* chore: refactor tests structure to account for sdk tests

* feat: add flagsmith node.js SDK implementation

* chore: minor refactoring

* docs: add JSDoc comments for the SDK

* docs: update example of SDK usage

* chore: add example to precommit linting

* chore: add gh action for tests

* chore: trigger tests when pushed to main

* fix: retry logic for sdk

* SDK Fixes

* Throw on empty SDK key

* Minor

* Update test, update updateEnvironment function names

* Log defaultFlagHandler on Feature does not exist error

* Update example package.json readme

* Renamed BT to Flagsmith last remnants

* Use flagsmith 2.0.0-beta.1 in example

* chore: fixes as per PR comments

* chore: update exports for commonjs valid module

* chore: fix exporting issues

* Fix setTrait Return Type

The `setTrait` method returns a promise but the interface makes it look like a synchronous operation. This could lead to race conditions if the call is not awaited before a `getValue` with a userId is executed.

* Fix traits logic

* Bump version

* Prevent local eval race conditions, getIdentitySegments, add server key check for local evaluation, update examples, improve tests

* lint

* Adjust default flag handling

* correct retries prop

* correct retries prop

* added asdf

* Version bump

* bump 2.0.0-beta.5, build on prepublish

* ES5 support, beta.6 bump

* ES5 compat for IdentityFeaturesList

* PR Feedback

* Resolve todo on mv test

* chore: update tests

* chore: remove redundant submodule

* chore: remove submodule files

* chore: fix tests running for submodule with test data

* chore: wip on submodule

* chore: clear old submodule

* fix: get test data after clone

* fix: checkout submodules on the action stage

* chore: additional tests

* feat: add caching & tests

* feat: add onEnvironmentChange callback

* chore: add test for local environment + identity flags

* chore: fix race condition checking for environment flags

* chore: add misc tests

* chore: split sdk main test file

* bump 2.0.0-beta.7

* chore: add test coverage

* feat: feature segments add

* fix: feature state priority calculation

* chore: remove unused code

Co-authored-by: yuriihorodnyi21 <yuriihorond450@gmail.com>
Co-authored-by: kyle-ssg <kyle@solidstategroup.com>
Co-authored-by: Michael Beemer <beeme1mr@users.noreply.github.com>
Co-authored-by: Matthew Elwell <matthewe@solidstategroup.com>
* feat: add semver support for segment condition

* Remove console.log statement

Co-authored-by: Matthew Elwell <matthewe@solidstategroup.com>
@dabeeeenster dabeeeenster merged commit 6789a67 into main Jun 7, 2022
@dabeeeenster dabeeeenster deleted the release/2.0.0 branch June 7, 2022 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants