Releases: flippercloud/flipper
Releases · flippercloud/flipper
1.1.0
Read more about the Flipper 1.1.0 release on The Friday Deploy
Additions/Changes
- Better read-only mode for UI (#772).
- Allow configuring preload via a block similar to memoize (#771).
Rails.application.configure do # don't preload features for /assets/* but do for everything else config.flipper.preload = ->(request) { !request.path.start_with?('/assets') } end
- Added
strict
configuration to warn when accessing a feature that doesn't exist (#760, #763)Rails.application.configure do # Setting to `true` or `:raise` will raise error when a feature doesn't exist. # Use `:warn` to log a warning instead. config.flipper.strict = !Rails.env.production? end
- Handle deprecation of Rack::File in Rack 3.1 (#773).
- Human readable actor names in flipper-ui (#737).
- Expressions are now available and considered "alpha". They are not yet documented, but you can see examples in examples/expressions.rb. Those using the
flipper-active_record
adapter will want to migrate the database so it can store JSON expressions (#692)$ rails generate migration change_flipper_gates_value_to_text
change_column :flipper_gates, :value, :text
- Allow head requests to api (#759)
- Cloud Telemetry alpha (#775).
- Easier statsd setup (#779).
# You can now just do this in your configure block and it'll require the files and configure the client. Flipper.configure do |conf| conf.statsd = my_client end
- Load cloud secrets from Rails credentials (#782)
$ rails credentials:edit
flipper: cloud_token: <your-cloud-token> cloud_sync_secret: <your-webhook-secret>
New Contributors
- @RicardoTrindade made their first contribution in #745
- @jevin made their first contribution in #737
- @czj made their first contribution in #773
- @radar made their first contribution in #772
Full Changelog: v1.0.0...v1.1.0
1.0.0 - One Point Oh!
This release is more than just a version number. Read more about this release and the future of Flipper.
Additions/Changes
- ui, api: Allow Rack 3 (#670)
- cloud: The
flipper-cloud
gem has been merged into theflipper
and no longer needs to be added separately. Configure cloud by setting theFLIPPER_CLOUD_TOKEN
environment variable. (#743)# Gemfile gem 'flipper' - gem 'flipper-cloud'
Breaking Changes
- Removed
bool
,actors
,time
,actor
,percentage_of_actors
, andpercentage_of_time
methods onFlipper
andFlipper::DSL
. They are rarely if ever used and conflict with some upcoming features. If you are using them, you can migrate via a search and replace like so:- Change
Flipper.bool
=>Flipper::Types::Boolean.new
- Change
Flipper.boolean
=>Flipper::Types::Boolean.new
- Change
Flipper.actor
=>Flipper::Types::Actor.new
- Change
Flipper.percentage_of_actors
=>Flipper::Types::PercentageOfActors.new
- Change
Flipper.actors
=>Flipper::Types::PercentageOfActors.new
- Change
Flipper.percentage_of_time
=>Flipper::Types::PercentageOfTime.new
- Change
Flipper.time
=>Flipper::Types::PercentageOfTime.new
- Change
Become a Sponsor
If your company uses Flipper and wants to help us make it better, consider becoming a sponsor.