Commit 8b1ddb3
committed
refactor: update types and methods to align with flag terminology
- Changed `UntypedFlag` payload type from a union to `any` for flexibility.
- Refactored `Flag` type to use a default type of `{}` instead of `boolean | object | string | number | null`.
- Updated `TypedFlags` and `TypedFeatures` types to reflect the new flag structure.
- Renamed test cases and methods in `client.test.ts` to use `getFlag` and `getFlagDefinitions` for consistency with the flag-based approach.
- Enhanced documentation to clarify the transition from features to flags in the SDK.1 parent 5d2444e commit 8b1ddb3
4 files changed
Lines changed: 888 additions & 720 deletions
File tree
- packages
- node-sdk
- src
- test
- openfeature-node-provider/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
| 216 | + | |
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
232 | 231 | | |
233 | 232 | | |
234 | 233 | | |
| |||
380 | 379 | | |
381 | 380 | | |
382 | 381 | | |
383 | | - | |
| 382 | + | |
| 383 | + | |
384 | 384 | | |
385 | | - | |
386 | | - | |
| 385 | + | |
387 | 386 | | |
388 | 387 | | |
389 | 388 | | |
390 | | - | |
| 389 | + | |
391 | 390 | | |
392 | 391 | | |
393 | 392 | | |
| |||
397 | 396 | | |
398 | 397 | | |
399 | 398 | | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
404 | 409 | | |
405 | 410 | | |
406 | 411 | | |
| |||
0 commit comments