Commit 1acd6fd
authored
fix(flags): handle plain array and object forms in
* fix overrides
* Address PR feedback: extract helper and use parameterised tests
- Extract arrayToFlagsRecord helper to eliminate duplicated array-to-flags-object conversion
- Refactor tests to use it.each for parameterised testing
* Address PR feedback: narrow return type and log invalid options
- Narrow arrayToFlagsRecord return type from Record<string, string | boolean> to Record<string, true>
- Replace unreachable _fireFeatureFlagsCallbacks call with warning log for invalid overrideOptions
* add changesetoverrideFeatureFlags (#3245)1 parent 7efa558 commit 1acd6fd
File tree
4 files changed
+68
-5
lines changed- .changeset
- packages
- browser/src
- __tests__
- types/src
4 files changed
+68
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
958 | 958 | | |
959 | 959 | | |
960 | 960 | | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
961 | 988 | | |
962 | 989 | | |
963 | 990 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
64 | 73 | | |
65 | 74 | | |
66 | 75 | | |
| |||
946 | 955 | | |
947 | 956 | | |
948 | 957 | | |
| 958 | + | |
| 959 | + | |
949 | 960 | | |
950 | 961 | | |
951 | 962 | | |
| |||
968 | 979 | | |
969 | 980 | | |
970 | 981 | | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
971 | 991 | | |
972 | 992 | | |
973 | 993 | | |
| |||
983 | 1003 | | |
984 | 1004 | | |
985 | 1005 | | |
986 | | - | |
987 | | - | |
988 | | - | |
989 | | - | |
| 1006 | + | |
990 | 1007 | | |
991 | 1008 | | |
992 | 1009 | | |
| |||
1013 | 1030 | | |
1014 | 1031 | | |
1015 | 1032 | | |
1016 | | - | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
1017 | 1044 | | |
1018 | 1045 | | |
1019 | 1046 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
221 | 224 | | |
222 | 225 | | |
223 | 226 | | |
| |||
0 commit comments