LDClient method all_flags_state() should be used instead of all_flags() if you are passing flag data to the front end for use with the JavaScript SDK. It preserves some flag metadata that the front end requires in order to send analytics events correctly. Versions 2.5.0 and above of the JavaScript SDK are able to use this metadata, but the output of all_flags_state() will still work with older versions.all_flags_state() method also allows you to select only client-side-enabled flags to pass to the front end, by using the option client_side_only=True.LDClient.all_flags()Fetched April 11, 2026