js-sdk-contrib/libs/shared/flagd-core
Todd Baert f2efa55941
feat: support no default variant (#1354)
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
2025-07-16 09:17:07 -04:00
..
flagd-schemas@08b4c52d3b feat: support no default variant (#1354) 2025-07-16 09:17:07 -04:00
spec@bb2dc2ce32 fix(security): update vulnerability-updates (#1342) 2025-07-04 14:53:58 -04:00
src feat: support no default variant (#1354) 2025-07-16 09:17:07 -04:00
test-harness@59c3c3ccfb feat: support no default variant (#1354) 2025-07-16 09:17:07 -04:00
.eslintrc.json chore: update nx packages (#1147) 2025-01-10 11:36:17 -05:00
CHANGELOG.md chore(main): release flagd-core 1.1.0 (#1156) 2025-07-04 11:19:27 -04:00
README.md feat: Initial version of the flagd js core (#620) 2023-10-26 14:52:20 -04:00
jest.config.ts feat: Initial version of the flagd js core (#620) 2023-10-26 14:52:20 -04:00
package-lock.json chore(main): release flagd-core 1.1.0 (#1156) 2025-07-04 11:19:27 -04:00
package.json chore(main): release flagd-core 1.1.0 (#1156) 2025-07-04 11:19:27 -04:00
project.json chore: update nx packages (#1147) 2025-01-10 11:36:17 -05:00
tsconfig.json feat: Initial version of the flagd js core (#620) 2023-10-26 14:52:20 -04:00
tsconfig.lib.json chore: various gherkin improvements for e2e tests (#1008) 2024-11-06 13:49:22 -05:00
tsconfig.spec.json chore: various gherkin improvements for e2e tests (#1008) 2024-11-06 13:49:22 -05:00

README.md

flagd-core

flagd-core contain the core logic of flagd in-process evaluation provider. This package is intended to be used by concrete implementations of flagd in-process providers.

Usage

flagd-core wraps a simple flagd feature flag storage and flag evaluation logic.

To use this implementation, instantiate a FlagdCore and provide valid flagd flag configurations.

const core = new FlagdCore();
core.setConfigurations(FLAG_CONFIGURATION_STRING);

Once initialization is complete, use matching flag resolving call.

const resolution = core.resolveBooleanEvaluation('myBoolFlag', false, {});