Commit c84de68
authored
feat: only warn about missing feature context when feature is used (#459)
- Only emit evaluation events for a single feature instead of all if a
feature key is provided.
- Only warn about missing feature context when the feature is used
(isEnabled or config).
- Added `noUncheckedIndexedAccess` option to `tsconfig.json` for
stricter type checking.
- Modified `getFeatureDefinitions` method to now return
synchronous`FeatureDefinition[]`.
- Enhanced error handling in `_getFeaturesRemote` method (now returns a
disabled feature rather than undefined when feature is missing).
- Updated tests to reflect changes in feature handling and context
warnings.1 parent b511473 commit c84de68
File tree
10 files changed
+225
-239
lines changed- packages
- node-sdk
- src
- test
- openfeature-node-provider
- src
10 files changed
+225
-239
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments