-
#1909
fd07633
Thanks @tdeekens! - refactor: all types for be prefixed with T -
#1910
45609ed
Thanks @tdeekens! - refactor: to always destructure props -
#1907
700a2b2
Thanks @renovate! - Update react and react-dom while removing usage of defaultProps. -
Updated dependencies [
fd07633
,45609ed
,700a2b2
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
#1899
66a404d
Thanks @renovate! - chore: update all dependencies -
Updated dependencies [
66a404d
,66df5a0
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
Updated dependencies [
612461e
,72f308b
]:- @flopflip/[email protected]
- @flopflip/[email protected]
- Updated dependencies [
7624ccb
]:- @flopflip/[email protected]
- @flopflip/[email protected]
- Updated dependencies []:
- @flopflip/[email protected]
- @flopflip/[email protected]
- Updated dependencies []:
- @flopflip/[email protected]
- @flopflip/[email protected]
-
Updated dependencies [
9d6e379
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
#1875
6672683
Thanks @tdeekens! - Fix reversing adapter identifiers in place -
Updated dependencies [
6672683
]:- @flopflip/[email protected]
- @flopflip/[email protected]
- Updated dependencies [
e817bcc
]:- @flopflip/[email protected]
- @flopflip/[email protected]
- Updated dependencies []:
- @flopflip/[email protected]
- @flopflip/[email protected]
- Updated dependencies []:
- @flopflip/[email protected]
- @flopflip/[email protected]
- Updated dependencies []:
- @flopflip/[email protected]
- @flopflip/[email protected]
- Updated dependencies []:
- @flopflip/[email protected]
- @flopflip/[email protected]
- Updated dependencies []:
- @flopflip/[email protected]
- @flopflip/[email protected]
- Updated dependencies []:
- @flopflip/[email protected]
- @flopflip/[email protected]
-
#1852
b90946f
Thanks @renovate! - fix(deps): update all dependencies -
Updated dependencies [
95e9bfd
,b90946f
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
#1850
fffc52c
Thanks @CarlosCortizasCT! - Exporting the new hooks introduced in the previous release. -
Updated dependencies []:
- @flopflip/[email protected]
- @flopflip/[email protected]
-
#1848
2f75a14
Thanks @CarlosCortizasCT! - Included a new hook that allows a consumer to read all the flags configured in the FlopFlip context.Example:
import { useAllFeatureToggles } from '@flopflip/react-broadcast'; const MyComponent = () => { const allFeatureToggles = useAllFeatureToggles(); return ( <div> {allFeatureToggles.map(({ featureName, featureValue }) => ( <div key={id}> <span>Feature name: {featureName}</span> <span>Feature value: {featureValue}</span> </div> ))} </div> ); };
-
Updated dependencies [
445ee19
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
Updated dependencies [
7835be0
,054eb0e
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
#1829
7bab836d
Thanks @renovate! - fix(deps): update all dependencies -
Updated dependencies [
7bab836d
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
#1819
bd713a41
Thanks @renovate! - fix(deps): update all dependencies -
Updated dependencies [
bd713a41
,c99ee374
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
#1815
5bbe7bd1
Thanks @renovate! - fix(deps): update all dependencies -
Updated dependencies [
5bbe7bd1
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
Updated dependencies [
2723f752
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
#1805
0909a2f5
Thanks @tdeekens! - Migrate from yarn to pnpm. -
Updated dependencies [
0909a2f5
]:- @flopflip/[email protected]
- @flopflip/[email protected]
- Updated dependencies [
f8ad668b
]:- @flopflip/[email protected]
- @flopflip/[email protected]
- Updated dependencies []:
- @flopflip/[email protected]
- @flopflip/[email protected]
-
#1797
34c4b6fd
Thanks @tdeekens! - TheuseAdapterStatus
hooks now allow to fetch status of one or more adapters instead of always all.You can pass the
adapterIdentifiers
argument which is of typeTAdapterIdentifiers[]
. This means you can:const status = useAdapterStatus({ adapterIdentifiers: ['http', 'memory] });
This returns
isConfigured
once both adapters have reached the configurd state.
- Updated dependencies [
34c4b6fd
,c5439254
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
#1792
e537658a
Thanks @tdeekens! - fix: build with older types -
Updated dependencies [
e537658a
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
#1767
c47dbbbc
Thanks @renovate! - fix(deps): update all dependencies -
#1774
fd66f538
Thanks @renovate! - fix(deps): update all dependencies -
Updated dependencies [
c47dbbbc
,fd66f538
]:- @flopflip/[email protected]
- @flopflip/[email protected]
- Updated dependencies []:
- @flopflip/[email protected]
- @flopflip/[email protected]
-
#1747
8914921b
Thanks @tdeekens! - To update browser list and compilation targets. Ideally this should not affect consumers. -
Updated dependencies [
8914921b
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
#1745
d5a25758
Thanks @renovate! - fix(deps): update all dependencies -
Updated dependencies [
d5a25758
,3fc3012a
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
#1734
163548bf
Thanks @renovate! - fix(deps): update dependency eslint-plugin-simple-import-sort to v10 -
#1733
340bd768
Thanks @renovate! - fix(deps): update all dependencies -
Updated dependencies [
163548bf
,340bd768
,2f15d324
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
Updated dependencies [
c89cbc5d
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
Updated dependencies [
da4e3075
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
Updated dependencies [
ac088ccf
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
63f2a54a
Thanks @tdeekens! - Another attempt to fix the GitHub release tab -
Updated dependencies [
63f2a54a
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
eac3ea46
Thanks @tdeekens! - Fix release issue with updating release on GitHub -
Updated dependencies [
eac3ea46
]:- @flopflip/[email protected]
- @flopflip/[email protected]
- Updated dependencies [
c268ee5f
]:- @flopflip/[email protected]
- @flopflip/[email protected]
- Updated dependencies []:
- @flopflip/[email protected]
- @flopflip/[email protected]
-
#1707
1db0d869
Thanks @renovate! - fix(deps): update all dependencies -
Updated dependencies [
1db0d869
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
#1704
7569eaf7
Thanks @renovate! - fix(deps): update all dependencies -
Updated dependencies [
7569eaf7
,cb156f1d
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
#1692
dda66af9
Thanks @tdeekens! - Fixes an issue with previous release -
Updated dependencies [
dda66af9
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
Updated dependencies [
37c71527
,b71e5f72
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
Updated dependencies [
12a30d04
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
#1661
360a61c5
Thanks @renovate! - fix(deps): update all dependencies -
Updated dependencies [
360a61c5
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
Updated dependencies [
75872793
,9f4fd476
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
Updated dependencies [
940ac66c
,ea64c97f
,9cac278c
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
#1625
50d202af
Thanks @renovate! - fix(deps): update all dependencies -
Updated dependencies [
50d202af
,c6d54bd0
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
#1614
36ade93e
Thanks @renovate! - fix(deps): update all dependencies -
Updated dependencies [
36ade93e
]:- @flopflip/[email protected]
-
#1612
aea0a3aa
Thanks @emmenko! - Bump version of all packages. The previous release didn't include all changes so we're forcing a new release. -
Updated dependencies [
aea0a3aa
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
#1604
4f13cb85
Thanks @tdeekens! - Refactor to import fixes from pnpm migration tomain
-
Updated dependencies [
4f13cb85
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
#1586
7272bce5
Thanks @renovate! - fix(deps): update all dependencies -
Updated dependencies [
7272bce5
]:- @flopflip/[email protected]
-
#1558
3624d423
Thanks @tdeekens! - Refactor to use TypeScript v4.5 feature of inline type imports -
Updated dependencies [
746f4057
,3624d423
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
#1543
5c02eb83
Thanks @tdeekens! - refactor: to migrate to yarn#3 -
Updated dependencies [
5c02eb83
]:- @flopflip/[email protected]
- @flopflip/[email protected]
- Updated dependencies [
fef83a93
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
Updated dependencies [
98bc4018
,a14d3863
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
#1469
62168194
Thanks @renovate! - fix(deps): update all dependencies -
Updated dependencies [
62168194
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
#1464
ef59e379
Thanks @renovate! - fix(deps): update all dependencies -
Updated dependencies [
ef59e379
]:- @flopflip/[email protected]
- @flopflip/[email protected]
- Updated dependencies [
fe4fdfc0
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
Updated dependencies [
10f981f5
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
bc7b3f41
#1414 Thanks @tdeekens! - chore: update dependencies and add eslint sorting of imports -
Updated dependencies [
bc7b3f41
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
Updated dependencies [
8707dfd8
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
808080d0
#1406 Thanks @tdeekens! - chore: update dependencies -
Updated dependencies [
91f6379b
,808080d0
]:- @flopflip/[email protected]
- Updated dependencies [
5461b6c
]:- @flopflip/[email protected]
- @flopflip/[email protected]
- Updated dependencies [
780a527
]:- @flopflip/[email protected]
- @flopflip/[email protected]
- Updated dependencies [
fbc9bce
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
Updated dependencies [
e12bda8
]:- @flopflip/[email protected]
- @flopflip/[email protected]
- Updated dependencies [
dfc1463
]:- @flopflip/[email protected]
- @flopflip/[email protected]
- Updated dependencies [
8fd148b
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
Updated dependencies [
d203f38
,1a1d468
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
92ebba8
#1382 Thanks @tdeekens! - chore: add manypkg for validation for workspaces -
Updated dependencies [
498f3bc
,92ebba8
]:- @flopflip/[email protected]
- @flopflip/[email protected]
- Updated dependencies [
0fbcac4
]:- @flopflip/[email protected]
- @flopflip/[email protected]
- Updated dependencies [
badd563
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
57c90be
#1374 Thanks @tdeekens! - feat: add support for number json variationsPrior to this
@flopflip
supportedsttring
orboolean
variations. With it it also supports JSON variations (as LaunchDarkly calls them). For@flopflip
these variations are of typeRecord<string, unknown>
orunknown[]
. In the future we might allow passing in a generic to narrow down the type.
- Updated dependencies [
57c90be
]:- @flopflip/[email protected]
- @flopflip/[email protected]
- Updated dependencies [
e9b47fd
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
3d2a174
#1367 Thanks @tdeekens! - feat: allow adapters to affect each others stateAn adapter can now have an
effectIds
besides its ownid
. This allows one adapter to effect other adapters state. In turn allowing flopflip to theoretically support multiple adapters.
-
41d403e
#1366 Thanks @tdeekens! - refactor: adapters to have own state sliceThe
react-redux
package has one potential breaking change. If you usedselectFlags
and/or orselectFlag
directly then you will have to use their new signature.-useSelector(selectFlags); +useSelector(selectFlags());
-useSelector(selectFlag('fooFlag'); +useSelector(selectFlag([adapter.id], 'fooFlag'));
In the second example
memory
could beid
of your adapter. In the future we plan to support multiple adapters resulting in an array being passed.Note that in other locations, e.g. with
useFeatureToggle
we now which adapter you are using as we retrive it from the adapter context.
-
b099b51
#1362 Thanks @tdeekens! - refactor: updateFlags to be only on adapterThe
updateFlags
export from each adapter is no longer present. Please use theadapter.updateFlags
function instead. The prior was a re-export of the latter for longer anyway.This affects also other locations you should hopefully not be affected by:
test-utils
: does not exportupdateFlags
anymore. Useadapter.updateFlags
- Globals: The globals on the window do not contain a
window.__flopflip__.[id].updateFlags
anymore
-
Updated dependencies [
521660c
,b099b51
,3d2a174
,b9c74ed
,1e34552
,ea542f5
,339a427
,4c1d86b
,41d403e
,981075d
,feddd2c
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
cbacd83
#1352 Thanks @tdeekens! - refactor: to use explicit React imports -
Updated dependencies [
f288170
,5e825b9
,d72a4cd
,33b3216
,18bd598
,cbacd83
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
Updated dependencies [
cf47e40
]:- @flopflip/[email protected]
- Updated dependencies [
9ba0922
]:- @flopflip/[email protected]
- @flopflip/[email protected]
- Updated dependencies [
5d2376b
]:- @flopflip/[email protected]
- @flopflip/[email protected]
- Updated dependencies [
e927867
]:- @flopflip/[email protected]
- @flopflip/[email protected]
- Updated dependencies [
a25c329
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
1e559be
#1331 Thanks @tdeekens! - refactor: to remove type essentials -
Updated dependencies [
1e559be
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
23b4e4d
#1329 Thanks @tdeekens! - fix: to simplify types of configure -
Updated dependencies [
23b4e4d
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
Updated dependencies [
40e212f
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
Updated dependencies [
787b265
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
Updated dependencies [
fb8d122
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
853b28d
#1321 Thanks @tdeekens! - fix: to not use typings on any package -
Updated dependencies [
853b28d
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
f0e8c66
#1314 Thanks @tdeekens! - refactor: to use preconstruct cliThis swaps out our complete build tooling to embrase a more focussed approach.
This should not create issues as all entry points have been migrated.
-
Updated dependencies [
ad5935f
,f0e8c66
]:- @flopflip/[email protected]
- @flopflip/[email protected]
891fb29
#1287 Thanks @renovate! - flopflip is now built with TypeScript v4 which can cause compatibility issues if you project runs on an older version of TypeScript
- Updated dependencies [
891fb29
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
Updated dependencies [
5598832
]:- @flopflip/[email protected]
-
eac3bd4
#1269 Thanks @tdeekens! - chore: update dependencies across packages -
Updated dependencies [
eac3bd4
]:- @flopflip/[email protected]
- @flopflip/[email protected]
- Updated dependencies [
8c97b10
]:- @flopflip/[email protected]
- Updated dependencies [
651a0ac
]:- @flopflip/[email protected]
-
Updated dependencies [
407f8e7
,407f8e7
]:- @flopflip/[email protected]
- @flopflip/[email protected]
- Updated dependencies [
6034a1c
]:- @flopflip/[email protected]
-
Updated dependencies [
b4dd923
]:- @flopflip/[email protected]
-
Updated dependencies [
76354f8
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
bafdc4b
#1110 Thanks @tdeekens! - feat: add use-flag-variationsYou can use evaluate multiple flag variations at the same time:
const [variation1, variation2] = useFlagVariations([ FLAG.VARIATION_A, FLAG.VARIATION_B, ]);
Is the same as:
const variation1 = useFlagVariation(FLAG.VARIATION_A); const variation2 = useFlagVariation(FLAG.VARIATION_B);
-
8ce10a9
#1106 Thanks @tdeekens! - feat: add use-flag-variation hookYou can now conveniently a flag variation without evaluating its actual state (as with
useFeatureToggle
).const variation = useFlagVariation('myFlagName'); const isAEnabled = variation === VARIATION_A; const isBEnabled = variation === VARIATION_B; // Is the same as const isAEnabled = useFlagVariation('myFlagName', VARIATION_A); const isBEnabled = useFlagVariation('myFlagName', VARIATION_B);
Using
useFlagVariation
is often a bit more concise if you want to work with the variation value yourself.
- Updated dependencies [
bafdc4b
,8ce10a9
]:- @flopflip/[email protected]
-
32cc6a8
#1102 Thanks @tdeekens! - Update dependencies (TypeScript 3.9) -
Updated dependencies [
32cc6a8
]:- @flopflip/[email protected]
- @flopflip/[email protected]
-
Updated dependencies [
ee96512
]:- @flopflip/[email protected]